Reply
Thread Tools
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#661
Originally Posted by starkwiz View Post
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.....
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#662
/etc/bootmenu/d/20-archlinux.item

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

The Following User Says Thank You to pali For This Useful Post:
Posts: 17 | Thanked: 9 times | Joined on Apr 2012 @ India
#663
Originally Posted by pali View Post
/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's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#664
Originally Posted by pali View Post
/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 !

?????



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???
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800

Last edited by ArchiMark; 2013-04-28 at 19:01. Reason: Updated Info
 
Posts: 17 | Thanked: 9 times | Joined on Apr 2012 @ India
#665
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.
 

The Following User Says Thank You to starkwiz For This Useful Post:
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#666
Originally Posted by starkwiz View Post
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/

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...


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....

__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800

Last edited by ArchiMark; 2013-04-28 at 20:53. Reason: Updated Info - After Re-Extracting Rootfs file
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#667
Originally Posted by ArchiMark View Post
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".
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#668
bootmenu item files must have \n line ending (not \r\n)
 

The Following 2 Users Say Thank You to pali For This Useful Post:
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#669
Originally Posted by peterleinchen View Post
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.....

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...
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800

Last edited by ArchiMark; 2013-04-28 at 23:10. Reason: Updated Info
 
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#670
Originally Posted by pali View Post
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.
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
Reply

Tags
bootmenu, u-boot


 
Forum Jump


All times are GMT. The time now is 06:01.