![]() |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
The idea would be to start U-Boot and then run the attached kernel (or a kernel image from MyDocs) but changing the cmdline: "init=/sbin/preinit ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs rootflags=bulk_read,no_chk_data_crc rw console=ttyMTD,log console=tty0 snd-soc-rx51.hp_lim=42 snd-soc-tlv320aic3x.hp_dac_lim=6" replacing init to point to /bin/sh. (problem is I didn't enable R&D mode when I should have, and now I can't enable it anymore.. maybe I have enough time to run Pali's watchdogs programs. That is, if it doesn't segfault -- another issue I still have to investigate). Anyway, thanks a million for the idea. Let's see how far I get.. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
1 Attachment(s)
OK. In the console I did:
Code:
setenv mmcnum 1 The kernel started (with framebuffer console), but then stopped after printing this (I made, and attach, a photo of it :) Code:
UBIFS error (pid 1): ubifs_get_sb: cannot open "/dev/root: , error [...] Considering the PITA of having to type all these things on the U-boot console I will now stop and ASK, PLEASE, ANYONE, is there anything I'm still missing? I'll wait. No hurry. But I'm going a bit crazy (and the weekend is coming to an end -- meaning no more real time to play with this), and I have the feeling that I can still pull this off and unbrick the N900. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
If yes, you can create a script file (or two scripts: common-part, kernel-bootarg), convert it by mkimage, copy it to SD, launch it by u-boot's console. This should reduce the hassle of having to write everything every time. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
Root is mounted or not ? I would not have corrupted the NAND file system and now you need a sort of UbiFS filesystem check utility |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
I don't mind typing it all by hand. Painful as it is.. reminds me of my childhood, typing BASIC programs off a magazine. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
Quote:
And *then* I'll be able to do what I wanted to do this weekend. Namely test my own version of kernel-power (OK, I can do that on another N900, but let's keep this dramatic..) Thanks a lot for your help Fabry! |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
What you should do: Convert the RescueOS image into a uImage and its initrd into a uInitrd. Load them off another SD card (some N900s may be picky) and do what you have to do. You just bricked a rather important part of Maemo, and there's no way you're restoring it without some help from external software. |
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
Quote:
The origin of my problem was stupid. I wanted getbootstate to return always USER. Problem is it doesn't return anything (because I didn't make it execuable). preinit panics on that before it gives me the option to start a shell or do anything.. Hence I want to actually skip it, boot directly to /bin/sh, do whatever preparations I need to (do a bit of what preinit actually does) and then chmod +x /sbin/getbootstate. Quote:
|
Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.04-2)
2 Attachment(s)
Follow-up from #443 above:
First of all: @Pali. Please implement also the saveenv command! (will make my life easier in the future.. :) Now I repeated essentially the same as yesterday, except the setenv mmcnum/mmcpart/mmctype because they are (luckily) set as default. so I also skipped the switchmmc (not sure if I did mmc dev 1 though). Then I did setenv mmckernfile zImage- [ @Pali: command line completion please?! ] then setenv atagaddr 0x80000100 then setenv bootargs like yesterday, but without "console=ttyMTD,log" (just to avoid typing too much stuff). Then run kernload, then run kernboot (first photo is before hitting RETURN). The kernel booted, and got stuck like yesterday, but the errors are slightly different. I got: Code:
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0) Code:
UBIFS error (pid 1): ubifs_get_sb: cannot open "/dev/root: , error [...] Since my fingers are already hurting from all this U-boot console typing and will leave the topic for now. I suppose Pali is on (well-deserved) leave at the moment so I'll just patiently wait for advise. Obviously, the other resident experts around (thinking of Fabry, Misiak and Hurrian, among others) are welcome to make any suggestions! |
All times are GMT. The time now is 17:00. |
vBulletin® Version 3.8.8