Reply
Thread Tools
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#281
Back again....

I've untarred Arch rootfs file onto my microSD card....kept partitioning simple to get this going....figure I can always redo this if I want once I have successfully gotten Arch to run....

So, now onto to Step 5.....have some questions please...

5- Install and configure U-boot

Install u-boot version (that sports booting 3.x kernels)
add boot entry in /etc/bootmenu.d/Arch.item

example

Code:
ITEM_NAME="Arch Linux ARM"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p5"
ITEM_FSTYPE="ext4"
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk1p5 rootwait init=/bin /systemd omapfb.vram=0:3M,1:3M,2:3M quiet"This should work if you untar the image FileSystem on /dev/mmcblk0p5
run

Code:
u-boot-update-bootmenu

reboot
Question 1

Where do I create the bootmenu item?

Do you mean from inside the /etc/bootmenu.d/ directory on the microSD card where I untarred the rootfs file or ?


Question 2

Only have 2 partitions on my microSD card as follows:

/dev/mmcblk1p1 vfat

/dev/mmcblk1p2 ext2


So, should my bootmenu item look like this:

Code:
Code:
ITEM_NAME="Arch Linux ARM"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p2"
ITEM_FSTYPE="ext2"
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk1p2 rootwait init=/bin /systemd omapfb.vram=0:3M,1:3M,2:3M quiet"
Thanks!
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#282
Originally Posted by ArchiMark View Post
Where do I create the bootmenu item?

Do you mean from inside the /etc/bootmenu.d/ directory on the microSD card where I untarred the rootfs file or ?
Not on the microSD, no.
All the uboot menu items go in /etc/bootmenu.d/ on the phone itself.

Originally Posted by ArchiMark View Post
Question 2

Only have 2 partitions on my microSD card as follows:

/dev/mmcblk1p1 vfat

/dev/mmcblk1p2 ext2

So, should my bootmenu item look like this:

Code:
Code:
ITEM_NAME="Arch Linux ARM"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p2"
ITEM_FSTYPE="ext2"
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk1p2 rootwait init=/bin /systemd omapfb.vram=0:3M,1:3M,2:3M quiet"
Thanks!
Assuming you have extracted Arch to the ext2 parition, (I don't know if u-boot reads FAT?), I believe you just need to change:
root=/dev/mmcblk1p2
to
root=/dev/mmcblk0p2
as the block numbers are not the same as in maemo.

Give that a try, just don't forget to run u-boot-update-bootmenu afterwards.
__________________
BTC:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj
 

The Following 2 Users Say Thank You to jd4200 For This Useful Post:
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#283
Originally Posted by jd4200 View Post
Not on the microSD, no.
All the uboot menu items go in /etc/bootmenu.d/ on the phone itself.


Assuming you have extracted Arch to the ext2 parition, (I don't know if u-boot reads FAT?), I believe you just need to change:
root=/dev/mmcblk1p2
to
root=/dev/mmcblk0p2
as the block numbers are not the same as in maemo.

Give that a try, just don't forget to run u-boot-update-bootmenu afterwards.
Thanks for your help!

Yes, I extracted to the ext2 partition....

Updated Arch.item per your comments...

However, now, having problem trying to run 'u-boot-update-bootmenu'.....

Do I run this command while in Terminal in maemo on n900 or u-boot when I start up n900?

When I try doing it in terminal on n900 I get:

Code:
$ u-boot-update-bootmenu
~sh: u-boot-update-bootmenu: not found
Thanks for your help!
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#284
Originally Posted by ArchiMark View Post
However, now, having problem trying to run 'u-boot-update-bootmenu'.....
You run that inside maemo terminal: any time you make any changes to the files in /etc/bootmenu.d/ you need to run that.

If it saying command not found, have you installed u-boot-tools and u-boot itself (not from the repositories)?
https://atrey.karlin.mff.cuni.cz/~pa...c3-1_armel.deb

Edit:
You really need to read the first post of this thread VERY carefully.
From the other thread it seems you have installed u-boot from the repositories, which is broken.

You need to completely remove u-boot, and install the versions from here.
this, this, and this.

Originally Posted by Front Page
Install U-Boot

Get U-Boot.
Get your system to boot to Maemo first. This is the most trivial part of the installation, and you need to get this done and tested before continuing. I don't want or need any reports of not being able to boot.

NOTE:
U-Boot in Fremantle repos currently can't boot 3.x kernels, see here for a proper build.
__________________
BTC:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj

Last edited by jd4200; 2013-03-29 at 18:11.
 
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#285
Originally Posted by jd4200 View Post
You run that inside maemo terminal: any time you make any changes to the files in /etc/bootmenu.d/ you need to run that.

If it saying command not found, have you installed u-boot-tools and u-boot itself (not from the repositories)?
https://atrey.karlin.mff.cuni.cz/~pa...c3-1_armel.deb

Edit:
You really need to read the first post of this thread VERY carefully.
From the other thread it seems you have installed u-boot from the repositories, which is broken.

You need to completely remove u-boot, and install the versions from here.
this, this, and this.
THANK YOU for all your detailed input...really helps!

I have read the first post several times, while it is good overview, it is not that detailed for dummy like me....

- Yes, installed U-Boot from testing repo as I thought it was the right version.....

- Didn't realize that the U-Boot flasher file didn't include everything...

So, will do as you instruct and try it again....
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#286
If all else fails, start from scratch and follow this tutorial:
http://tinyurl.com/archn900
__________________
BTC:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj
 
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#287
Originally Posted by jd4200 View Post
If all else fails, start from scratch and follow this tutorial:
http://tinyurl.com/archn900
THANKS!

Wish I'd seen that sooner.....

Meanwhile, I tried installing U-Boot as per your instructions....

Got following error message in terminal:

Code:
....blah, blah, blah......

Generating u-boot image for kernel 'u-boot-2012.10-rc3-1.bin'...
Adding bootmenu entry for: 'U-Boot 2012.10-rc3-1'

Configuration file: /etc/bootmenu.d/Arch.item:
/usr/bin/u-boot-update-bootmenu: /etc/bootmenu.d/Arch.item: line 6: INT_CARD: not found
/usr/bin/u-boot-update-bootmenu: /etc/bootmenu.d/Arch.item: line 6: rootwait: not found
Setting up u-boot-tools (2012.10-rc3-1) ...
Errors were encountered while processing:
 u-boot-flasher_2012.04-2_armel.deb
Just noticed on the blog page that there's one more file to install?

(root) apt-get install fiasco-image-update-ask
I did not install that file...did that now....
Re-ran U-Boot install, but now I see that it updated kernel to another version....is that OK?

Also, per blog page, I edited my Arch.item file to say 'EXT_CARD' instead of 'INT_CARD', since I'm using SD card....

Did 'u-boot-update-bootmenu' too...

Now I get the following message:

Code:
....blah, blah, blah......

Generating u-boot image for kernel 'u-boot-2012.10-rc3-1.bin'...
Adding bootmenu entry for: 'U-Boot 2012.10-rc3-1'

Configuration file: /etc/bootmenu.d/Arch.item:
/usr/bin/u-boot-update-bootmenu: /etc/bootmenu.d/Arch.item: line 6: EXT_CARD: not found
/usr/bin/u-boot-update-bootmenu: /etc/bootmenu.d/Arch.item: line 6: rootwait: not found

Please advise....

Thanks!
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800

Last edited by ArchiMark; 2013-03-29 at 19:36. Reason: Added Question & Update
 
Posts: 204 | Thanked: 754 times | Joined on Jan 2012 @ Finland
#288
@ArchiMark

Error you got is pretty straightforward, fix the menu item. There are plenty of examples how it should be done mentioned already, it's not that complicated. If you can't make it, please at least post the contents of the file so we can actually help, but do know that the inability to resolve problem like this will probably mean a very hard learning curve ahead with Arch.

@no-one in particular

I may sound like an *******, but U-Boot has been discussed already in this thread many times, even though this is not a thread for U-Boot. I understand that it can be a pain to set up, but this thread will not be of any help to anyone, nor constructive in any way, if its filled up by 20 pages of U-Boot errors mostly caused by inability to read instructions. So, the U-Boot thread has very detailed instructions, and in my book, it has every bit of info you may need to have in setting it up. This thread has many useful posts and even examples how it should be done. If someone feels this is not enough, both we and maemo.org have a wiki, feel free to make a documentation of the matter everyone can understand.
 

The Following 5 Users Say Thank You to Skry For This Useful Post:
ArchiMark's Avatar
Posts: 414 | Thanked: 109 times | Joined on Mar 2007 @ Silicon Valley
#289
Skyry & Others,

My apologies for my recent posts about U-Boot issues, etc.....

FWIW, I did set up Arch by myself to dual boot with Win7 on the little Fujitsu U820 convertible tabletPC that I had a while back.....so, I have successfully installed Arch before as well as other linux distros in the past.

This is also reason that I am interested in getting Arch running on the n900....

I will try to work on this myself...

Thanks.
__________________
Mark
Silicon Valley Digerati

Nokia N900
Previous: Nokia N810 & N800
 
Posts: 204 | Thanked: 754 times | Joined on Jan 2012 @ Finland
#290
Don't take it that way, like I said, post the contents of the item file and we'll help.
 

The Following User Says Thank You to Skry For This Useful Post:
Reply


 
Forum Jump


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