ts-7000
[Top] [All Lists]

Re: [ts-7000] Install a kernel in a TS-7400

To:
Subject: Re: [ts-7000] Install a kernel in a TS-7400
From: "Michael Schmidt" <>
Date: Thu, 26 Oct 2006 09:31:26 -0700
> 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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU