Hi Nikolaus,

 

I think adding the F2 F3 + recovery option 3) to the 2.6.24.3 kernel would be a 
nice feature ;-)

Still easiest way for users is option 2).

 

1) use an old kernel with F2,F3 support and install a recovery image (it just 
copies the files to your nand)

 Afterwards store the uImage kernel 2.6.24.3 with left sn, shift,ctrl + F1

 

2) Build your own installer scripts in a seperate kernel 2.6.24.3 uImage

 

You can make your own installer. Some idea's which Nils made already developed 
can be seen below

http://www.mail-archive.com/mipsbook-devel@linuxtogo.org/msg00072.html

ftp://ftp.linuxtogo.org/pub/images/letux400/installer/lt400-26inst-1.0.tar.gz

Just start from SD card and this installs all files to you nand. 

 

3) Add F2, F3 options + jffs2 to 2.6.24.3 kernel

 

For our kernel we can easily add jffs2 support (Add the same setup as kernel 
2.4). 

On my trendtac, the minifs is stored at /dev/mtdblock3 as jffs2.

And can be mounted with # mount -t jffs2 /dev/mtdblock3 

 

(On previous kernels when F3 is pressed the kernel boots from /dev/mtdblock3, 
this is not added to our kernel 2.6.24.3 yet) 

F2 and F3 mods of previous kernel posted here:

http://projects.kwaak.net/twiki/bin/view/Epc700/KernelStartupF2F3

 

Grt Ruben.


 
> To: mipsbook-devel@linuxtogo.org
> CC: mipsbook-devel@linuxtogo.org
> From: h...@computer.org
> Date: Thu, 13 May 2010 12:18:34 +0200
> Subject: Re: [Mipsbook-devel] Boot process analysed (please comment)
> 
> >
> > 2. minifs
> > ------------
> >
> > This appears a mini-linux system that operates as a second stage 
> > bootloader or at least as a maintainance tool. It lives in the /dev/ 
> > mtd3 partition.
> >
> > It is not clear if it contains its own kernel or shares the kernel 
> > with the real system.
> >
> > Download: http://www.trendtac.nl/documents/Recovery_EPC700.zip (this 
> > includes also a certain version of a recovery.img for 4.)
> >
> > I guess (since I could neither find code in U-Boot nor the Kernel - 
> > and one can't overwrite a rootfs while it is being used) the 
> > function of this minifs is to show the penguin picture, and check 
> > for F3 to flash a root-filesystem. And, boot the final system if F3 
> > is not pressed.
> >
> > To get this minifs into flash through U-Boot, one has to press fn 
> > +leftshift+rightshift and have minifs.img (this is a .jffs2) on a 
> > FAT-SD card (does not work on my broken device - or the kernel in 
> > flash does not work any more).
> 
> I have followed (mostly) the instructions at 
> http://members.home.nl/janrinze/trendtac.html#Hacking_the_root_filing_system 
> : and got an excerpt of the minifs.
> 
> 
> Key findings:
> * it is indeed a "Mini-Linux" rootfs
> * without kernel (so it shares the kernel with the production system - 
> which must e.g. support jffs2)
> * uses busybox
> * has a directory /wkw_sh which contains the recovery menus (which use 
> clear, echo, read etc. to communicate with the user)
> * it reads the Ethernet Mac address from the MAC partition
> * it looks for a "Recovery*.img"
> * recovery (reflashing) is handled by /wkw_sh/recovery.sh
> * it optionally formats (eraseall) /dev/mtdnand (which must IMHO be 
> provided by the kernel initialization?)
> * it mounts /dev/nand to /mnt/target
> * it does a tar jxf to /mnt/target
> * I could not find a reference to the *.rec format for Letux 400 
> recovery (Note: the machine I have analysed appears to be older than 
> the standard Letux 400)
> * a setup_system.sh script appears to wget the full system from some 
> internet server
> * the server is identified through an obscure getserver command built 
> into busybox
> * some scripts write to echo 0 > /proc/jz/numlock_led, echo 0 > /proc/ 
> jz/capslock_led, echo 0 > /proc/jz/eth0_led, echo 1 > /proc/jz/ 
> numlock_led etc. So we should provide them in the 2.6 kernel
> * /etc/inittab is configured to run the /etc/init.d/start scropt on tty0
> 
> What does this mean for our Kernel 2.6?
> 
> 1. we can't simply flash the kernel into NAND - we will most likely 
> the recovery function (that may be the issue on my machine that I now 
> have a 2.6 kernel without jffs2 support in the kernel partition)
> 2. we can either make the kernel compatible to the minifs or
> 3. develop our own minifs compatible to the kernel
> 
> BR,
> Nikolaus
> 
> 
> 
> _______________________________________________
> Mipsbook-devel mailing list
> Mipsbook-devel@linuxtogo.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel
                                          
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Mipsbook-devel mailing list
Mipsbook-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel

Reply via email to