[maemo-developers] Regarding Enabling of USB on restart of NokiaN800

From: priyank kumar chourasia priyank_bhopal at rediffmail.com
Date: Mon Oct 29 10:15:31 EET 2007
Hi Kimmo,Thanks for replying, I tried by modifying  /etc/init.d/ke-recv by adding OSSO_KE_RECV_IGNORE_CABLE=1 but the problem still persist.My observation is that after getting commmands sudo gainroot(in below script) system goes into another cell and that could be a matter of problem.but if this is the case then I think the change of icon(MMC to USBnet ) should also not take place.Is there any other Idea that u can suggest me to trace out the problem ....On Fri, 26 Oct 2007 17:18:17 +0300 Kimmo Hämäläinen wroteOn Fri, 2007-10-26 at 13:50 +0000, ext priyank kumar chourasia wrote:> Hi All,> I am facing problem in enabling the USB automatically on restart of> Nokia N800,Following is the script saved in /etc/init.d/usbnet> > > > #! /bin/sh> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin> NAME=usbnet> DESC="USB Networking for Nokia 800"> INITFILE=/etc/init.d/$NAME> sudo gainroot> USBNET="`lsmod | grep g_ether`"> if [ "$USBNET" = "" ]> then> insmod /mnt/initfs/lib/modules/2.6.18-omap1/g_ether.ko>>log> 2>>error> fi> sleep 1> /sbin/ifup usb0>>log> 2>>error> exit 0> > Added the above script with following commands> update-rc.d usbnet defaults> > Now the problems are as follows> 1. USB networking icon gets changed but on pinging the device it> doesnt repond that means only GUI changes are taking place.> 2. Having clicked on MMC card(From usbnet) and then OK causes system> hangs.> > Can someone help me that why usb net changes are not happening> actually ???Try adding "export OSSO_KE_RECV_IGNORE_CABLE=1" in the beginningof /etc/init.d/ke-recv. It might be that ke-recv is loadingg_file_storage when the USB cable is attached (normally /usr/sbin/osso-usb-mass-storage-enable.sh is executed then).BR; Kimmo> > > Regards,> Priyank> > > > _______________________________________________> maemo-developers mailing list> maemo-developers at maemo.org> https://lists.maemo.org/mailman/listinfo/maemo-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20071029/6d269bc7/attachment.htm 
More information about the maemo-developers mailing list