#!/bin/sh
set -x
cat /proc/driver/musb_hdrc
pcsuite-enable.sh
cat /proc/driver/musb_hdrc
echo H >/proc/driver/musb_hdrc
cat /proc/driver/musb_hdrc
echo host >/sys/devices/platform/musb_hdrc/mode
cat /proc/driver/musb_hdrc
echo e > /proc/driver/musb_hdrc 
cat /proc/driver/musb_hdrc
echo F > /proc/driver/musb_hdrc 
cat /proc/driver/musb_hdrc
echo host >/sys/devices/platform/musb_hdrc/mode
cat /proc/driver/musb_hdrc
echo H >/proc/driver/musb_hdrc
cat /proc/driver/musb_hdrc
echo I > /proc/driver/musb_hdrc
cat /proc/driver/musb_hdrc
echo host >/sys/devices/platform/musb_hdrc/mode
cat /proc/driver/musb_hdrc
echo H >/proc/driver/musb_hdrc
cat /proc/driver/musb_hdrc
echo "Done echo'ing"
echo "Connect the flash drive in 3 seconds!"
stop bme; 
cat /proc/driver/musb_hdrc; sleep 1
cat /proc/driver/musb_hdrc; sleep 1
cat /proc/driver/musb_hdrc; sleep 1
cat /proc/driver/musb_hdrc

i2cset=/home/user/i2c/i2cset
$i2cset -y -m 0x07 2 0x6b 0x01 0x05; while true; do 
cat /proc/driver/musb_hdrc
sleep 1; 
$i2cset -y -m 0x80 2 0x6b 0x00 0x80; 
done
