maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   u-boot for the RX-51 (N900) (https://talk.maemo.org/showthread.php?t=62146)

Hurrian 2011-09-26 22:29

Re: u-boot for the RX-51 (N900)
 
Cool, finally, progress towards booting Maemo from eMMC without using mtd5.

By the way, I think that with this, we can finally mess with getting rid of /sbin/preinit (which imo is a huge WTF) without risking a reflash! (initrd runs backupmenu if it sees slide open? recovery OS from u-boot?)

Rob1n 2011-09-27 07:56

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by Fabry (Post 1096939)
But Cpio does not involve the use of EXT2 ?
Cpio Is just a archive format, but when the kernel, during boot process, decompresses the cpio image on ramfs does not try to use EXT2 ?

It shouldn't involve ext2, no, the cpio is extracted to tmpfs.

mirakels 2011-09-27 08:55

Re: u-boot for the RX-51 (N900)
 
So the cpio archive could be a way to go.
Then it comes to what exactly is needed to setup a prerootfs to boot from.
The multiboot script creates loads of device nodes and insmods many modules. I guess this can be simplified.

I think we only need /dev/console and the mmcblk devices and only need to load the ext2 module to access the real root filesystem.
All other stuff should be done by the init command on the real root filesystem.

Or am I missing something.

Radicalz38 2011-09-28 10:34

Re: u-boot for the RX-51 (N900)
 
@Pali
Could you compile your bootmenu patch against stskeeps' version of u-boot? I tried compiling al's latest u-boot(clean) and caused the same reboot loop so I decided to try compiling stskeeps version of u-boot and merged with kp49 and it worked flawlessly on my device. So my request is could you provide a compiled version of u-boot.bin that is patched with stskeeps u-boot for some of us who are having problems with the current u-boot? I'm not really good at these patch & diff thingy that's why I am asking if you could do it?


Thanks and I hope you would be reconsidering my request :o

pali 2011-09-28 10:49

Re: u-boot for the RX-51 (N900)
 
bootmenu patches rebased on top of matan (origin ali/stskeeps) version are in branch pali: https://gitorious.org/u-boot-shr/u-boot/commits/pali

pali 2011-09-28 10:56

Re: u-boot for the RX-51 (N900)
 
All versions of u-boot (expect mine) need to have enabled R&D mode with disabled watchdogs. Mine version should not boot default Maemo5 correctly with enabled R&D.

So try boot mine version version again but disable R&D mode

Problem is with watchdog...

Fabry 2011-09-28 12:19

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by pali (Post 1098019)
All versions of u-boot (expect mine) need to have enabled R&D mode with disabled watchdogs.

Matan's version (Nov 2010) has watchdog code (you can stay on console as long you want).
This at least on Hw Rev 2101

pali 2011-09-28 12:44

Re: u-boot for the RX-51 (N900)
 
Quote:

Originally Posted by Fabry (Post 1098078)
Matan's version (Nov 2010) has watchdog code (you can stay on console as long you want).
This at least on Hw Rev 2101

Mine has code for watchdog too. But matan's version totaly disable watchdog (so if you tried boot bad/broken/unbootable kernel you will need to restart phone with battery!). My version kick watchdog every 2s (when U-Boot is active). When U-Boot is stopped (started kernel) there is time 30s to kick watchdog again (prevent restart) which is then handled by os kernel... But this is bad behaviour: If device is in R&D mode with CAL flag disabled-watchog Maemo5 think that watchdog is disable and never kick it...

kinggo 2011-10-01 08:11

Re: u-boot for the RX-51 (N900)
 
well, I have to admit that I'm lost in all this. Before I was using kp v45 with u-boot and everything was working fine. But then my N900 kind of died. Now I have a new one with kp v48 so can someone tell me which u-boot should I install that is compatible with kp v48 so I can boot new release of MeeGo?

Radicalz38 2011-10-02 00:45

Re: u-boot for the RX-51 (N900)
 
Hi pali.... Seems like matan's version of u-boot ain't working for me. But if I compile stskeep's(no modifications) version directly U-Boot seems working fully. Could you also create one from stskeeps version? Without matan's patches just yours on stskeeps version?


All times are GMT. The time now is 12:03.

vBulletin® Version 3.8.8