Hello,
> I'm trying a harmless check-usb-update script to make sure I
> understand the process before I try anything radical. I gather from
> the script that the USB flash should contain a VFAT filesystem on
> partition 1.
The filesystem can be ext2, vfat, or any other filesystem supported by
the kernel. Currently the fat and vfat modules are loaded although you
could modify /bin/check-usb-update(on the initial ramdisk) to load any
other modules you need.
> My /tsinit script there reads
>
> #!/bin/sh
> /bin/touch test-1
>
> the console diagnostic says
> /mnt/root/tsinit: 2: /bin/touch: not found
>
> I notice that /bin/touch is actually a symbolic link to
> /mnt/root/bin/touch . The check-usb-update script seems to have
> mounted the USB flash at /mnt/root, so it would seem that the whole
> raft of busybox and other commands are unavailable. Is there a way
> around this that I've overlooked?
Your script is being executed from the initial ramdisk. The initial
ramdisk is 1MB so all of the Linux commands available on the onboard
flash are not available in the initial ramdisk. Although busybox is
available in /bin of the initial ramdisk and has support for the
following commands.
ADCpoll, [, ash, basename, busybox, cat, chgrp, chmod, chown,
chroot, cmp, cp, cut, date, dd, df, dirname, dmesg, du, echo,
egrep, env, eptime, expr, false, fdisk, fgrep, find, free,
getopt, grep, gunzip, head, hostname, ifconfig, insmod, jp, kill,
killall, ln, load7300, ls, lsmod, md5sum, mkdir, mkfifo, mknod, more,
mount, mtdcp, mv, netstat, peekpoke, ping, pivot_root, printf, ps, pwd,
reboot, rm, rmdir, rmmod, route, rx, sed, setcons, sh, sha1sum,
sleep, stty, sync, tail, tar, tee, telnetd, test, tftp, time,
top, tr, true, umount, uname, unzip, usleep, uudecode, uuencode,
vi, wget, xargs, zcat
As you've noticed there are symbolic links to other commands such as touch
that point to /mnt/root/bin. You'll notice you can typically run these
commands after a fast boot because the onboard flash is mounted read
only to /mnt/root. Although when the check-usb-update script runs the
onboard flash is not mounted. So you could mount the onboard flash from
your tsinit script, or you could copy any commands you need to the USB
flash drive.
//Eddie
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/
|