| Prev | 19   27     28   29   30     31   39 | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Arch Linux ARM on N900 (https://talk.maemo.org/showthread.php?t=81892)

ArchiMark 2013-03-29 15:08

Re: Arch Linux ARM on N900
 
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...

Quote:

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!

jd4200 2013-03-29 15:42

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by ArchiMark (Post 1332792)
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.

Quote:

Originally Posted by ArchiMark (Post 1332792)
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.

ArchiMark 2013-03-29 17:22

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by jd4200 (Post 1332798)
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!

jd4200 2013-03-29 18:04

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by ArchiMark (Post 1332817)
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.

Quote:

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.


ArchiMark 2013-03-29 18:15

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by jd4200 (Post 1332827)
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.... :rolleyes:

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

So, will do as you instruct and try it again.... :)

jd4200 2013-03-29 18:17

Re: Arch Linux ARM on N900
 
If all else fails, start from scratch and follow this tutorial:
http://tinyurl.com/archn900

ArchiMark 2013-03-29 19:12

Re: Arch Linux ARM on N900
 
Quote:

Originally Posted by jd4200 (Post 1332831)
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?

Quote:

(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!

Skry 2013-03-29 23:45

Re: Arch Linux ARM on N900
 
@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.

ArchiMark 2013-03-30 00:39

Re: Arch Linux ARM on N900
 
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.

Skry 2013-03-30 00:47

Re: Arch Linux ARM on N900
 
Don't take it that way, like I said, post the contents of the item file and we'll help.


| Prev | 19   27     28   29   30     31   39 | Next | Last
All times are GMT. The time now is 00:38.

vBulletin® Version 3.8.8