Hi All,

   I too like the idea of a 2nd stage reboot from scratch.


   This could easily allow the following to occur:

   try to boot the new kernel....

   if this doesn't work after X tries,
     (keep alive or reset button rescues hard crashed kernel, driver,
etc.)

   reboot using an older known good kernel

   and HOPEFULLY the previous bad boot was at least able
    save some of its history in non-volatile memory.

   This would make bringing up a new kernel or CPU
   MUCH EASIER!!

   One simple thing I have used in the past is to store some small number
in non-volatile memory. At each stage of the boot up process a different
number is stored. It is then a simple matter of examining that number to
see where the latest boot failed.

   warm regards to all,
   John


On Sat, 18 Oct 2008, bifferos wrote:

> 
> --- On Sat, 18/10/08, Stanislav Sinyagin <[EMAIL PROTECTED]> wrote:
> 
> > In the short term, I want to build a kernel which would
> > have 
> > CONFIG_CMDLINE pointing the root to the USB stick --
> > basically it's 
> > what bifferos is doing in his squidge distribution. But I
> > want to make it 
> > possible in a way that is consistent with the OpenWRT
> > mainline.
> 
> I should just point out that you can already have USB root 
> in a way consistent with OpenWrt mainline and that is 
> described here:  http://wiki.openwrt.org/UsbStorageHowto 
> if possibly a little out of date, you should get the idea.
> 
> In one way it makes maintenance easier if only the kernel
> goes in the on-board flash, and everything else on the 
> USB stick, but with OpenWrt the kernel changes so fast
> that I'm not sure how wise this really is (kernel modules
> have to be compatible, after all).   What I'd really 
> like to see (and I don't believe this would be too 
> difficult) is a second-stage bootloader that actually 
> pulls the kernel off the USB stick.  For the Edimax 
> BR-6104KP I have at least *some* of the code needed to
> do this - just haven't managed to finish it yet.
> 
> regards,
> biff.
> 
> 
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to