> Hello,
>
> I want to install a new kernel in my TS-7400. I have downloaded these
> sources:
>
> ftp://ftp.embeddedarm.com/ts-arm-linux-cd/sources/tskernel-2.4.26-ts11-src.tar.gz
>
> And with the help of the crosstools found in the CD
> (crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2), I have been able
> to
> compile a new zImage (700Kb). Now I see in the documentation that I have
> to make a:
>
> insmod /ts7xxx_nand.o; mtdcp /mnt/root/zImage 1 0
>
> But first I want to be sure that I will be able to recover the old kernel
> if the
> new one fails. So my questions are:
>
> - Anyone knows how to read the old kernel?
The mtdcp command can be used:
mtdcp 0 0 1048576 ./old-kernel
This command will copy data from partition 0 (the kernel partition) starting
a block 0 for 1048576 bytes and put this data in the file "old-kernel" in
the current directory. (mtdcp is sorta like dd except it knows how to
handle bad NAND flash blocks...)
> - How do I restore the old kernel if the new one fails?. Perhaps a TFTP
> mechanism? I've found no information about this in internet.
If you are booting from NAND flash and you get a bad kernel on the board you
will need a TS-9441 board to recover.
There is a program on the ftp site "tsbootrom-update" which you could use to
program your TS-7400 to boot from the SD card instead of NAND flash, but you
would have to make sure you had an SD card set up correctly first. I
believe the 7400 documentation covers what you would need to do, including
copying your 7400 kernel and initrd partitions on the NAND flash to
corresponding partitions on the SD card. In this way you could safely
recover from a bad kernel by dd'ing your known kernel back to the kernel
partition of the SD card from (e.g.) a Linux box with SD card reader,
instead of needing a TS-9441 board. When everything was finished you could
then copy it back to NAND flash and switch the boot loader back to booting
from NAND flash.
>
> thanks for your help,
> arnau
>
regards,
Michael
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/
|