I've been needing dual boot for a long time. Redbook really lacks in
that regard. That said, I've taken several approaches.
1) Jim's idea is a great one. I've used expect scripts in to connect
to Redboot via the serial port using minicom to do conditional booting
for a long time. No reason I can see that it wouldn't work using
telnet as well.
2) Another approach that I've used in the past, that does not require
a network connected computer is to save several Redboot configuration
images to files on the flash file system. Set up a particular Redboot
configuration using fconfig. Then using nanddump, create a file image
to be restored selectively later. To restore a particular redboot
configuration, use nandwrite (I think it's called) from userspace.
You also have to use mtd_debug to erase the whole 16K block, so make
sure the image file is the whole 16k block as well.
Following are the relevant lines from a writerbconfig script file I
used for some time.
mtd_debug erase /dev/mtd/2 3096576 16384
nandwrite -s 3096576 /dev/mtd/2 $1
(Please use with caution and verify addresses carefully. This was
used with a ts7260.)
The one problem about using method 2 in a production environment is
that the MAC address is stored in the Redboot config, so a config
image from one unit should not be used in another ts72xx unit.
3) Another method would be change the default Redboot script to boot
to an initial ramdisk, which allows ultimate flexibility by setting up
some boot conditions in the linuxrc. Take a look at the initrd for
the 7400 or for the fastboot 7300. This can be used on a production
machine.
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/
|