usb-gadget not working (debian install)


patrick295767

Member
Joined
Jan 10, 2013
Messages
223
Hi,

I have installed Debian Squeeze on the pandora from scratch as explained in the wiki, plus I had to make it work with adapting. On the way to work, but I got a problem with the USB.

There are a few random init scripts we need for things:
Angstrom sudo cp /etc/init.d/led-config /media/mmcblk0p1/etc/init.d - configure the LEDs properly.
Angstrom sudo cp /etc/init.d/usb-gadget /media/mmcblk0p1/etc/init.d - for initializing the usb gadget device - g_cdc for USB networking, for instance.
Angstrom sudo cp /usr/bin/usb-gadget /media/mmcblk0p1/usr/bin
Angstrom sudo cp /etc/profile.d/op_env.sh /media/mmcblk0p1/etc/profile.d - effectively just tells SDL to use tslib driver
Angstrom sudo cp /etc/default/leds /media/mmcblk0p1/etc/default
Angstrom sudo cp /etc/default/usb-gadget /media/mmcblk0p1/etc/default
Angstrom sudo cp /etc/skel/.asoundrc /media/mmcblk0p1/etc/skel

And some more stuff to install in Debian:
Debian apt-get install libnotify-bin
This usb gives me troubles. 

I do run the usb-gadget but nothing chnages.

lsusb remains empty. I did as above. 

lsmod tells me:

ipv6

wl1251_sdio

wl1251

mac80211

cfg80211

ads7846

hwmon

insmod on work too. cuz at the end I shall get.

bluetooth

ehci_hcd

omaplfb

pvrsrvkm

zram

snd_seq

snd_seq_device

snd_pcm_oss

snd_mixer_oss

ipv6

fuse

ads7846

hwmon

Regards
 
Last edited by a moderator:
Ok after digging into the libs, I found which module whcih has to be enabled.

 [ solved ]

 You need to add this g_cdc to the /etc to your modules

or

Code:
modprobe g_cdc
 
Note that this will increase power usage/battery drain significantly.
maybe we could monitor it with  crontab? 

crontab -e 

and then

while : ; do 

   date >> ~/.test

   apm -VV >> ~/.test

    sleep 5m

doen
with and without enabling it to draw two x,y  curves over the time to evaluate this drain
 
got all working. I will have to make a wiki how to install debian from scratch with an alternatiwe method
 
Back
Top