I have got a new batch of TS7550 which have kernel 2.6.24.4 #28, and the Jun
2010 initrd image.
It used to work that a USB device with an executable tsinit file would get
executed. This has stopped happening with the newest boards.
I have stared at this until I am blue in the face, inserted set -x, tried the
commands manually and it doesn't work when running from linuxrc!
The section of linuxrc is
devmem 0xc8000004 32 0x106
devmem 0xcc000060 32 0x1
let x=`devmem 0xcc000068`
let y=`devmem 0xcc000064`
x=$(((x | y) & 0x1))
if [ "$x" -eq 1 ]; then
(
ts7500ctl --redledon
mount -t tmpfs tmpfs /lib/modules
tar -x -z -f /modules.tar.gz -C /
modprobe scsi_mod
modprobe sd_mod
modprobe usbcore
modprobe ehci_hcd
modprobe usb_storage
modprobe smsc95xx
modprobe ohci_hcd
umount /lib/modules
x=0
while [ "$x" -lt 150 -a ! -e /sys/block/sda ]; do
x=$((x+1))
sleep .1
done
mount -o ro /dev/sda1 /mnt/usbdev
if [ -x /mnt/usbdev/tsinit ]; then
/mnt/usbdev/tsinit <$CONSOLE >$CONSOLE 2>&1
fi
umount /mnt/usbdev
ts7500ctl --redledoff
) &
fi
The red LED comes on and goes off after 15 seconds.
User 'set -x' I can see that:
+ ts7500ctl --redledon
+ mount -t tmpfs tmpfs /lib/modules
+ tar -x -z -f /modules.tar.gz -C /
+ modprobe scsi_mod
modprobe: module 'scsi_mod' not found
+ modprobe sd_mod
modprobe: module 'sd_mod' not found
+ modprobe usbcore
modprobe: module 'usbcore' not found
+ modprobe ehci_hcd
modprobe: module 'ehci_hcd' not found
+ modprobe usb_storage
modprobe: module 'usb_storage' not found
+ modprobe smsc95xx
modprobe: module 'smsc95xx' not found
+ modprobe ohci_hcd
modprobe: module 'ohci_hcd' not found
+ umount /lib/modules
umount: can't umount /mnt/root/lib/modules: Invalid argument
So after extracting the modules from the tar.gz file, modprobe fails to load
the modules.
But if I cut and paste and run exactly the same commands, it works fine!
Has anyone else seen this and found a fix? (yes, I put a sleep 1 statement
after the tar; no that didn't help)
It's not a problem with modules.tar.gz as the command works at the command
line, and I don't think the command line environment is different enough from
the linuxrc environment to cause a problem!
By the way, the module ohci_hcd is genuinely NOT in the modules.tar.gz file.
But this doesn't stop the rest of it working.
And to reiterate, what looks exactly the same in the previous version of
linuxrc from TS work fine.
Martin
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|