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)

ArchiMark 2013-04-28 16:59

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

Originally Posted by starkwiz (Post 1339712)
You're welcome.
Now, I can think of few things as below:
1. Check if the partition created is ext3,p5 and on your internal sd.
2. Check if you are still able to correctly mount in /mnt, also go through the data once mounted.
3. If the above 2 things look fine, try extracting again.

Hope you know the commands to check those things.

I might give a try sometime this week.
Will let you know if it works for me.

Thanks again for all your help!

1. I just did

Code:

# mount
/dev/mmcblk0p5 on /mnt type ext3 (0)

It is on my internal storage (and I don't have a microSD card inside n900 right now...)

However, I reboot and then do mount command /dev/mmcblk0p5 is not listed. Only /dev/mmcblk0p2 and /dev/mmcblk0p1 are shown plus 4-5 other mount points....

So, I have to do

Code:

# mount -t ext3 /dev/mmcblk0p5 /mnt
Then I can see it mounted....

And then I do 'u-boot-update-bootmenu' and get the error message I wrote before:

Code:

# u-boot-update-bootmenu

Adding entry for: 'Maemo 5 with attached kernel 2.6.28-omap1 (internal Nand)'

Configuration file: /etc/bootmenu/d/20-archlinux.item

Warning: Invalid file - missing kernel or script file - skipping...

Generating u-boot bootmenu script....



2. When I do 'ls' in '/mnt', I do see all the Arch Linux directories listed that I extracted from the rootfs file....

Strange.....

I have a feeling there's something very simple that is wrong....just have to find it.....

pali 2013-04-28 17:15

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
/etc/bootmenu/d/20-archlinux.item

It should be /etc/bootmenu.d/20-archlinux.item

starkwiz 2013-04-28 17:17

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

Originally Posted by pali (Post 1339722)
/etc/bootmenu/d/20-archlinux.item

It should be /etc/bootmenu.d/20-archlinux.item

I was just about to reply that, hope it works.

ArchiMark 2013-04-28 18:31

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

Originally Posted by pali (Post 1339722)
/etc/bootmenu/d/20-archlinux.item

It should be /etc/bootmenu.d/20-archlinux.item

I only have '/etc/bootmenu.d directory from what I see in '/etc'....

I do not have a '/etc/bootmenu/d/' directory !

?????

:confused:

UPDATE

I ran u-boot-update-bootmenu again, just to check error message....

It does say /etc/bootmenu.d/20-archlinux.item

So, the '/etc/bootmenu/d/20-archlinux.item' must have been a typo when typing post.....sorry about that....

Still says

Code:

#u-boot-update-bootmenu

Adding bootmenu entry for: 'Maemo 5 with attached kernel 2.6.28-omap1 (Internal Nand)'
Configuration file: /etc/bootmenu.d/20-archlinux.item

Warning: Invalid file - missing kernel or script - skipping....

Generating u-boot bootmenu script....

Any other ideas???

starkwiz 2013-04-28 19:20

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
I believe this is the original article for arch linux on n900:
http://talk.maemo.org/showthread.php?t=81892
It suggests an option of using latest version of archlinux arm, you might want to try it, instead of using already modified archlinux rootfs.
Also it suggests running "sync" command after extracting files to make sure all the data is actually written to disk and not in buffer.
Before you to try the other option, can you try extracting again and run the sync command.
Make sure that uimage exists in /mnt/boot
Then run u-boot-update-menu while p5 is not mounted.

I am not really sure how u-boot-update-menu accesses the image file location and if it needs to be mounted, while running the command.
So, just wondering if mounting that partition is locking access to uimage.

ArchiMark 2013-04-28 19:32

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

Originally Posted by starkwiz (Post 1339748)
I believe this is the original article for arch linux on n900:
http://talk.maemo.org/showthread.php?t=81892
It suggests an option of using latest version of archlinux arm, you might want to try it, instead of using already modified archlinux rootfs.

Yes, that is the Arch thread....although, instructions are very high level, ie, not 'step-by-step'...that is why I am following step-by-step instructions on the other blog page I gave link to before...

http://blog.jakgibb.com/2013/03/28/a...stall-on-n900/

Quote:

Also it suggests running "sync" command after extracting files to make sure all the data is actually written to disk and not in buffer.
Before you to try the other option, can you try extracting again and run the sync command.
Make sure that uimage exists in /mnt/boot
Yes, I did 'sync' command after extracting files...


Quote:

Then run u-boot-update-menu while p5 is not mounted.

I am not really sure how u-boot-update-menu accesses the image file location and if it needs to be mounted, while running the command.
So, just wondering if mounting that partition is locking access to uimage.
Hmmm....Just tried with p5 unmounted and still get same error message in u-boot-update-bootmenu....

I checked and 'uImage' is in /mnt/boot/.....

So, will try re-extracting again and see what happens...

Thanks...

UPDATE

Re-extracted the rootfs file and tried u-boot-update-bootmenu again, but still get the same error message....

:confused:

peterleinchen 2013-04-28 20:56

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

Originally Posted by ArchiMark (Post 1339569)
Thanks....

So, installed u-boot-flasher via apt-get....

I created a new u-boot menu entry as follows:

Code:

ITEM_NAME="Arch Linux ARM (eMMC)"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p5"
ITEM_FSTYPE="ext3"
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk0p5 rootwait init=/bin/systemd omapfb.vram=0:3M,1:3M,2:3M quiet"


Just a simple question: did you edit that item file under Windows?
Then it is obvious ...

And one more, but not related to your posted problem: I do not know about arch kernel to see the devices on N900. Maybe you need to change your "root=/dev/mmcblk0p5" to "root=/dev/mmcblk1p5".

pali 2013-04-28 22:21

Re: U-Boot for Nokia RX-51 with BootMenu (updated version 2012.10-rc3-1)
 
bootmenu item files must have \n line ending (not \r\n)

ArchiMark 2013-04-28 23:02

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

Originally Posted by peterleinchen (Post 1339765)
Just a simple question: did you edit that item file under Windows?
Then it is obvious ...

No, edited the file in nano in terminal on N900.....

Quote:

And one more, but not related to your posted problem: I do not know about arch kernel to see the devices on N900. Maybe you need to change your "root=/dev/mmcblk0p5" to "root=/dev/mmcblk1p5".
You are right, that for some reason, arch does flip partitions around....will try that....

**** Well, tried changing partition reference, but still get same error message in u-boot-update-bootmenu....

Thanks for all your help...

ArchiMark 2013-04-28 23:16

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

Originally Posted by pali (Post 1339780)
bootmenu item files must have \n line ending (not \r\n)

So, are you saying that if I click return key after the last line and then save file, it is OK or are you saying to actually type in '\n' at the end of the last line or ?

Thanks.


All times are GMT. The time now is 05:08.

vBulletin® Version 3.8.8