maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1) (https://talk.maemo.org/showthread.php?t=81613)

pali 2013-05-25 19:24

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
(Read first post) Last uboot version (2013.04-1) has support for ext4.

Alecsandru 2013-05-25 19:43

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
mmc1 (part o) is current device
unrecognized filesystem type
could you provide your bootmenu?
or can we place the bootmenu.img.d folder and bootmenu file in nand? like attached kernel?
it has a problem with the bootmenu.img.d folder and bootmenu file being on ext4 partition :confused: or doesn't recognize ext4 partition correctly , the fact is : it recognize my kernel config from bootmenu but doesn't want to load to load zimage from bootmenu.img.d folder :confused: or doesn't read correctly bootmenu file

Alecsandru 2013-05-26 18:29

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
any update pali or o way to move those on nand or on /home?

pali 2013-05-26 18:41

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
please provide (more detailed) output from u-boot why it not booting your kernel and also output from u-boot-update-bootmenu. and are you sure you have last version of uboot?

Alecsandru 2013-05-26 19:03

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
yes , latest version of u-boot , throws-me unknown filesystem when It tries to load kp52

xvan 2013-05-30 15:53

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I need some help booting nemo, with the kernel options...
is there anyway to save the kernel log?

I modified some things, because I didn't had an empty sd.

I wrote the raw image first partiton to my sd, partition 2 (checked that worked)
I alredy had a swap on sdcard, partition 4.
I modified the fstab with the proper patitions uuid.

I wrote the kernel u-image to the emmc, (maemo 'MyDocs')

I used the same kernel options for nitdroid. except the init=.

when booting:

kernel loads.
finds root ext4 partition in the sd card
shows some tmpfs error -2
doesnt find init
panics

I dont know where the kernel log is the kernel log saved.

----EDIT----
Solved: nemo's kernel inverts the memory order, so maemo's mmcblk1p2 is nemo's mmcblk0p2

----EDIT2----
Nemo can be installed with less than 1Gb + swap space...
To do that, instead of burning the raw image, mount it somwhere. Then copy the complete system to an empty ext partition...Then configure uboot.

Alecsandru 2013-06-05 19:28

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
bump ,any update pali? thank you

pali 2013-06-05 19:35

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@Alecsandru: http://talk.maemo.org/showthread.php...21#post1347021

Alecsandru 2013-06-05 19:38

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
pali I can boot other os from ext4 but maemo doesn't boot . unknown filesystem type, what i'm doing wrong?

pali 2013-06-05 19:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
again: please provide output of u-boot-update-bootmenu and also version of uboot you are using for booting. also please provide full output from uboot console where it fail booting.

Estel 2013-06-06 22:38

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Pali, there seems to be something strange with NOLO->u-boot->kernel passthrough of flags (if I understand it correctly).

The thing is, that *without* u-boot, enabling one or few R&D flags (not R&D as a whole), result in - as intended - only those enabled flags having effects. For example, if I:

Code:

--set-rd-flags=force-power-key
...then, the only change is that no matter of boot reason, my device boots fully to user mode. Boot Nokia logo gets "toolbox" N8** icon, *without* green text about kernel version, etc. No things like keyboard flickering on device activity gets enabled.

Now, if I do the same *while* using u-boot, for split second after boot everything is as it should (nokia logo with toolbox, no keyboard flickering at activity)), then, u-boot takes control and passes it to kernel. Instantly, I start to get *whole* bunch of full R&D, *including* keyboard flickering on activity, green text about kernel and hardware version, etc.

It's not a big deal, as keyboard flickering can be disabled by editing [i]/sbin/preinit/, but it clearly states, that something isn't as it should re those parameters, if using u-boot. Device thinks about full R&D mode, while it should only have some flags active.

I also hope, that it doesn't leads in having more unnecessary flags active after nolo->u-boot messup (like, serial console etc), as it would mean silent increase in battery consumption (invisible for powertop).

Please, investigate.

/Estel

Ps.

If I hear "send bug to mainstream", a bunny will die.

pali 2013-06-06 23:06

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I do not know what you mean with full R&D mode.

R&D flags are stored in CAL in one NULL term string separated by char ','. NULL string means disabled R&D mode. There is special flag "master" which is present there if string is not NULL and do nothing. If string is not NULL then R&D mode is enabled.

keyboard flickering can be configured via config file /etc/pmconfig.

So I do not understand what you mean with full or non full R&D mode...


When some R&D flags are set, NOLO add some special ATAGS for linux kernel (serial console). Last u-boot totally ignore ATAGS from NOLO and generate them for kernel itself. Also uboot does not have CAL support, so these special ATAGS are not passed to kernel even if NOLO set it.

Because uboot generating ATAGS, you can tell to uboot what should pass to kernel. It can be configured via uboot env variables.

setup_omap_atag - 1 - for passing ATAGS
setup_console_atag - 1 - for enabling serial console
setup_boot_reason_atag - str - for overwriting boot reason
setup_boot_mode_atag - str - for overwriting boot mode

Example of usage (in uboot console) - enable serial console and enter to update MMC mode:
setenv setup_omap_atag 1
setenv setup_console_atag 1
setenv setup_boot_reason_atag pwr_key
setenv setup_boot_mode_atag update

Alecsandru 2013-06-08 00:08

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
it's possible to move bootmenu.img folder and boot .src in /home?

pali 2013-06-08 00:18

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
No. It must be on first eMMC partition.

Alecsandru 2013-06-10 18:33

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
can you share some hints to make the cssu kernel as default image in the case that MyDocs get corrupted?

pali 2013-06-10 18:38

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Not possible, because u-boot is compiled to load configuration from first eMMC partition (MyDocs)

elros34 2013-06-10 18:51

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by Alecsandru (Post 1350413)
it's possible to move bootmenu.img folder and boot .src in /home?

http://talk.maemo.org/showpost.php?p...&postcount=580

Alecsandru 2013-06-10 19:05

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I don't think i'm able to compile the u-boot , at least not yet

Estel 2013-06-10 21:26

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
In case of eMMC corruption, it should be possible to load configuration from SD card, instead of first eMMC partition. Never tried that, though, which reminds me it's one of the things I definitelly *should* do, as it makes device free of need for flashing via external machine, for almost all cases.

/Estel

panjgoori 2013-06-18 20:49

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
hello. i'm trying to install U-Boot via HAM but its giving error. "Unable to install U-Boot with kernel 2.6.28omap1". I have KP 52 installed.

pali 2013-06-18 21:40

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@panjgoori: write more details from HAM

panjgoori 2013-06-19 12:35

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by pali (Post 1353041)
@panjgoori: write more details from HAM

nothing more displayed in HAM, this may be usefull to you that previously i had backupmenu with bootmenu installed. i removed them and tried to install back u-boot via HAM but giving problem. Its not showing anything else. is there any way i can provide you log ?

disappear 2013-06-19 13:48

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by panjgoori
nothing more displayed in HAM, this may be usefull to you that previously i had backupmenu with bootmenu installed. i removed them and tried to install back u-boot via HAM but giving problem. Its not showing anything else. is there any way i can provide you log ?
Hi I had the same problem before some weeks,so what i did:
sudo gainroot
dpkg -l | grep ^rc
dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge
removing kp52:
apt-get remove -y kernel-power kernel-power-modules
dpkg -l | grep ^rc
dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge
apt-get clean
apt-get autoclean
apt-get autoremove
don't touch the icon from menu
restart n900,if you don't boot the system flash only kernel:
flasher-3.5 -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin --flash-only=kernel -f -R
Add the sdk repositores of fremantle in /etc/apt/sources.list with opensshserver:
Quote:

deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free
Install u-boot from pali;
apt-get install -y u-boot-tools u-boot-flasher
restart n900
apt-get install kernel-power-settings
restart n900
sudo gainroot
u-boot-update-bootmenu
restart with open ukeyboard
choose kp52
If you want to installing backupmenu:
apt-get install backupmenu
restart n900,with close ukeyboard,when shows the titles of u-boot,open ukeyboard and you see how loading bootmenu,choose maemo with..
then advice from Pali:
root
ln -s /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power52.item /etc/default/bootmenu.item
after that the backmenu shoud properly load kp52
I think this is all,if somebody have other advice please share it
edit:Opps sorry man,that way is not for you because you have cssu-thumb and if you remove kp52 then you have to complete flashing your n900,again sorry man i did't notice than you are with cssu-thumb

panjgoori 2013-06-19 17:56

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@disapppear: thanks for the answer. i dont want to flash my device. waiting for Pali's reply. if no help then i have no choice but to follow your guide.

panjgoori 2013-06-21 16:30

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
any solution for me ? if no then im forced to proceed with disappear's post and reflash my device.

pali 2013-06-21 16:35

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@panjgoori: check if you have enabled extras-devel repository and try also updating catalogues. if it does not help, try to install uboot via apt-get (package u-boot-flasher)

panjgoori 2013-06-21 16:58

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by pali (Post 1353736)
@panjgoori: check if you have enabled extras-devel repository and try also updating catalogues. if it does not help, try to install uboot via apt-get (package u-boot-flasher)

strange. i tried to install U-Boot via termianl apt-get install u-boot-flasher and it installed without any problem. and is now showing without any problem. one more than does it needs any extra step to install backupmenu along with multiboot ? or i should simply install backupmenu.

edit: installed backupmenu. it also installed bootmenu along with it. when i select kernel power 52 in U-Boot list and after flashing kernel it shows bootmenu screen. is its normal ? beside this device boots without any problem.

NeXt 2013-06-22 21:10

Re: U-Boot for Nokia RX-51 with BootMenu
 
Quote:

Originally Posted by Nobless (Post 1196629)
I also parted MyDocs(resized) and added mmcblk0p4 partition of 2GB, and u-boot offers to boot from Internal Flash, eMMC, SD, etc. What u do to fix that ? And when i type:
Code:

fatls mmc 1
i get this
Code:

./
../
nameshistory.syg
voices/
sounds/
skin/
itinerary/
icons/
eula/

1 files, 8 dirs

Before partitioning all worked fine :)

Quote:

Originally Posted by pali (Post 1196659)
Run as root: fsck.vfat -a /dev/your_fat_part
It will check and repair fat partition. Also problem can be in u-boot...

hi, I have the same issue, more than 3 default partitions in eMMC and when reboot I only see the u-boot's default menu, so delete the new partitions mmcblk0p4 (extended), mmcblk0p5 ext3 and mmcblk0p6 ext3, and mmblk0p1 (vfat partition in eMMC) was with 21GB and no alocate space of 7GB, but u-boot's boot menu only show default menu (Internal Flash, eMMC, SD).

Then resize the mmcblk0p1 to default size and everything works good :S (note: I was used a edited vanilla bin so mmcblk0p2 have a size of 5 GB)

what changes u-boot needs to get new internal partitions and a u-boot menu working? it's a bug? also I checked with fsck.vfat the mmblk0p1 and tried reinstall u-boot-tools and u-boot-flasher but without results.

how you fix that Nobless? any idea pali?

best regards.

pali 2013-06-23 06:54

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
@NeXt: Try to reformat FAT partition under linux with mkfs.vfat or mkfs.msdos. U-Boot does not have full linux vfat FS driver, so does not support everything supported by linux vfat driver. Other option could be switch to some ext FS.

ejcrashed 2013-06-25 19:11

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Hi Pali, is there any way to boot a console only (aka recovery mode) kernel from SD card?

I did a mistake while doing some tinkering with my N900 and got into reboot loop, i don't wan to reflash, i just need to boot and mount rootfs so i could restore some files?

Greets.

Alecsandru 2013-06-25 21:19

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
can you add images to boot items? like n9's ubiboot?

ejcrashed 2013-06-26 21:18

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by ejcrashed (Post 1354679)
Hi Pali, is there any way to boot a console only (aka recovery mode) kernel from SD card?

I did a mistake while doing some tinkering with my N900 and got into reboot loop, i don't wan to reflash, i just need to boot and mount rootfs so i could restore some files?

Greets.

Nevermind, got around it using nemo.

topet2k12001 2013-07-03 09:09

This Works Well
 
Quote:

Originally Posted by disappear (Post 1353207)
<snip>

Install u-boot from pali;

Code:

apt-get install -y u-boot-tools u-boot-flasher
restart n900

Code:

apt-get install kernel-power-settings
I would put a note here:

  1. There will be a pop-up notification telling you that U-Boot will be "overwritten" (i.e. Kernel Power will flash it). Do not accept it.
  2. This will result to Kernel Power Boot Image for U-Boot to be not installed.
  3. Open FAM and check if Kernel Power Boot Image for U-Boot is not installed. If so, install it. You will not be prompted to flash/overwrite the U-Boot Kernel
restart n900

Code:

sudo gainroot
u-boot-update-bootmenu

restart with open ukeyboard
choose kp52

If you want to installing backupmenu:

Code:

apt-get install backupmenu
Quote:

restart n900,with close ukeyboard,when shows the titles of u-boot,open ukeyboard and you see how loading bootmenu,choose maemo with..
I would edit this as:

  1. Turn off N900
  2. Keep keyboard open
  3. Turn on N900
  4. U-Boot will appear. You can select a Kernel.
  5. After selecting a Kernel, don't close the keyboard. Boot Menu (with Backupmenu inside of it) will initiate.

then advice from Pali:

Code:

root
ln -s /etc/bootmenu.d/20-Maemo5-kernel-power-2.6.28.10-power52.item /etc/default/bootmenu.item

after that the backmenu shoud properly load kp52
I think this is all,if somebody have other advice please share it

Just wanted to report that this works. :) I now have:

  1. Default kernel
  2. Kernel Power 52
  3. Backupmenu
...all powered by U-Boot. :) My next step now is to decide which CSSU I want to install, and then NITDroid. As for Nemo...I'll probably install it just so that I can write a Wiki Page/article about U-Boot and the steps to get it working with Backupmenu. :)

EDIT: I have modified the quoted message from "disappear" to show how I did it (basically it's the same steps but I rephrased them to be more descriptive/newbie-friendly).

I'll write an article for this in the Wiki Pages...not sure if this should be in a new Wiki article or if this should be placed/added in an existing Wiki Page/Article...please let me know your thoughts. I will likewise make a video of it (will reflash during the weekend to start all over).

marmistrz 2013-07-09 13:46

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Well, I put a config file for Nemo to /etc/bootmenu.d/

Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="/dev/mmcblk0p6"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p5"

But no entry is being displayed. What's more, I can't boot kernel-power now too (at first boot after installing kp there's was omap kernel and kp to choose, but now standard options (emmcboot, sdboot & etc.)). What am I doing wrong?

should u-boot-update-bootmenu be run as user or as root? Tried both, none work.

sLumPia 2013-07-09 14:23

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
ITEM_DEVICE value should be in format:
ITEM_DEVICE="${INT_CARD}pX"
or
ITEM_DEVICE="${EXT_CARD}pX"

marmistrz 2013-07-09 17:17

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by sLumPia (Post 1357888)
ITEM_DEVICE value should be in format:
ITEM_DEVICE="${INT_CARD}pX"
or
ITEM_DEVICE="${EXT_CARD}pX"

OK, my 21-Nemo.item looks like that:


Code:

ITEM_NAME="Nemo"
ITEM_KERNEL="uImage"
ITEM_DEVICE="${INT_CARD}p6"
ITEM_FSTYPE="vfat"
ITEM_CMDLINE="root=/dev/mmcblk0p5"

But still no custom entries (including kernel-power-bootimg) show up.

pali 2013-07-09 18:18

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by marmistrz (Post 1357885)
...now standard options (emmcboot, sdboot & etc.)...

This looks like your first eMMC partition (MyDocs) is not valid fat, ext2 or ext4. Some Windows and Linux systems using some fat extension which is not supported by u-boot, so then u-boot cannot read bootmenu file from MyDocs.
You need to (re)format MyDocs partition from Maemo (to be sure that you use correct format) to one support filesystem (fat, ext2 or ext4).

marmistrz 2013-07-09 18:41

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by pali (Post 1357921)
This looks like your first eMMC partition (MyDocs) is not valid fat, ext2 or ext4. Some Windows and Linux systems using some fat extension which is not supported by u-boot, so then u-boot cannot read bootmenu file from MyDocs.
You need to (re)format MyDocs partition from Maemo (to be sure that you use correct format) to one support filesystem (fat, ext2 or ext4).

I was using gparted to shrink the partition. But fsck-ing the partition gives no problem. Is gparted doing some strange stuff?

pali 2013-07-09 18:45

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Problem is that u-boot support only subset of fat fs supported by linux and windows. gparted using dosfstools for fat support. And I think it enabled (or used) some fat extension which is not supported by u-boot.

marmistrz 2013-07-09 18:49

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
Quote:

Originally Posted by pali (Post 1357929)
Problem is that u-boot support only subset of fat fs supported by linux and windows. gparted using dosfstools for fat support. And I think it enabled (or used) some fat extension which is not supported by u-boot.

Thanks.
and should I run u-boot-update-bootmenu as root or as user?


All times are GMT. The time now is 18:58.

vBulletin® Version 3.8.8