maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   uImage was not found ? (https://talk.maemo.org/showthread.php?t=90948)

Mr User 2013-08-03 12:45

uImage was not found ?
 
hello everyone

so i followed the guid for installing the arch linux on n900 but when i run u-boot-update-bootmenu i get this message

Configuration file : /etc/bootmenu.d/21-arch.item

Error : kernel image '/boot/uImage' was not found in /boot or /opt/boot

so i tryed to copy the uImage to those directories but i still get the same error

Help me plz

lenoch 2013-08-03 15:26

Re: uImage was not found ?
 
To dear moderators: I would vote for merging this thread to the Arch Linux ARM thread even though it actually deals with U-Boot/BootMenu in general. Or just leave it as is.

You need to show us your /etc/bootmenu.d/21-arch.item BootMenu configuration file and tell us if your Arch is on a µSD card (most probably it is) and which partition.

Here’s my conf that boots (I installed from scratch yesterday). The kernel /boot/uImage is nowhere but the first partition of my µSD.

Code:

ITEM_NAME="Arch Linux ARM"
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${EXT_CARD}p1"
ITEM_FSTYPE="ext4"
ITEM_OMAPTAG="1"
ITEM_CMDLINE="root=/dev/mmcblk0p1 rootwait init=/usr/lib/systemd/systemd omapfb.vram=0:3M,1:3M,2:3M"

Edit:
If you were indeed using a correct BootMenu config, isn’t it by any chance possible that you forgot to actually install the kernel? If we are lucky and everything else works properly (what is your U-Boot version? – It is shown for a while at bootup; mine is 2013.04 from Apr 20 2013.), it should be that either the config is not written properly or that the kernel is not in place.

Quote:

Originally Posted by Skry (Post 1156035)
Chroot into your new Alarm install

Before we can boot to the fresh system, we need to do some trivial work in chroot.
See Chroot.

Update and configure system

Choose local mirror for pacman

Add my repository to /etc/pacman.conf
Code:

[n900-base]
SigLevel = Never
Include = /etc/pacman.d/alarm-n900

[n900-extra]
SigLevel = Never
Include = /etc/pacman.d/alarm-n900

Code:

echo "Server = http://alarm-n900.org/\$repo" > /etc/pacman.d/alarm-n900
Install packages necessary to boot, and upgrade your system:
Code:

pacman -Syu linux-omap-n900 linux-headers-omap-n900 n900-firmware n900-integration

Yeah, and what happened to your existing installation? I thought you were up and running since you were interested in setting up your touchscreen already :-)

The rootfs I used (and then manually upgraded) was 2013.02, I totally forgot about this one :-/
Quote:

Originally Posted by Skry (Post 1355745)
alarm-n900-201306-rootfs.tar.gz


Mr User 2013-08-03 15:56

Re: uImage was not found ?
 
First of all thank you so much in fact i did managed to install the arch on my sdcard and it was perfect the only probleme it was very slow that's why i wanted to install it my emmc but i get this error

and her it is my bootmenu configuration

Code:

ITEM_NAME="Arch"
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"

Thanks

lenoch 2013-08-03 16:18

Re: uImage was not found ?
 
Now I’m not sure. As you see, my Arch on µSD lies in /dev/mmcblk0p1 (this path is taken by the Arch kernel from the bootloader config). In Maemo it is /dev/mmcblk1p1 for a change.

Is your Arch partition mounted, in Maemo? What does this command output? (You don’t need to chroot.)
Code:

mount | grep p5
Personally, I’m happy with Arch on µSD, it is easier to troubleshoot and play with. If you still have a swap partition/file on your EMMC, you could use it from Arch to improve performance.

Anyway, would you mind changing your config line to this?
Code:

ITEM_CMDLINE="root=/dev/mmcblk1p5 rootwait init=/usr/lib/systemd/systemd omapfb.vram=0:3M,1:3M,2:3M"
Dunno if it helps.

Mr User 2013-08-03 17:10

Re: uImage was not found ?
 
Quote:

Originally Posted by lenoch (Post 1364687)
Now I’m not sure. As you see, my Arch on µSD lies in /dev/mmcblk0p1 (this path is taken by the Arch kernel from the bootloader config). In Maemo it is /dev/mmcblk1p1 for a change.

Is your Arch partition mounted, in Maemo? What does this command output? (You don’t need to chroot.)
Code:

mount | grep p5
Personally, I’m happy with Arch on µSD, it is easier to troubleshoot and play with. If you still have a swap partition/file on your EMMC, you could use it from Arch to improve performance.

Anyway, would you mind changing your config line to this?
Code:

ITEM_CMDLINE="root=/dev/mmcblk1p5 rootwait init=/usr/lib/systemd/systemd omapfb.vram=0:3M,1:3M,2:3M"
Dunno if it helps.

Again thank you

the mmcblk0p5 is mounted on mnt

/dev/mmcblk0p5 on /mnt type ext3 (0) << result of mount | grep p5

i did change mmcblk0p5 by mmcblk1p5 and i still have the same error

the funny part is that i didn't used to get this error in fact before i installed the arch on sdcard i tryed to install it first in emmc and the u-boot-update-bootmenu worked fine but the system wasn't booting but know i can't even reach this step i should notice that i reflashed my n900

sLumPia 2013-08-03 17:13

Re: uImage was not found ?
 
Quote:

Originally Posted by Mr User (Post 1364684)
ITEM_KERNEL="/boot/uImage"
ITEM_DEVICE="${INT_CARD}p5"

You're using absolute path here, so u-boot will look for uImage file in /boot folder on /dev/mmcblk0p5.

Mr User 2013-08-03 17:40

Re: uImage was not found ?
 
souldn't look for it in that path i mean what's the solution

lenoch 2013-08-03 18:38

Re: uImage was not found ?
 
I managed to get a little more insight in how U-Boot/BootMenu work.

To fight the issue that somehow your kernel cannot be found you can try this solution. If you have not deviated much from Maemo’s EMMC partition layout (you could post your setup), do the following:

– put the Arch kernel (uImage) in /opt/boot/ (you may need to create the /opt/boot directory, like me)

– use the following config:
Code:

ITEM_NAME="Arch Linux ARM"
ITEM_KERNEL="/opt/boot/uImage"
ITEM_DEVICE="${INT_CARD}p2"
ITEM_FSTYPE="ext3"
ITEM_OMAPTAG="1"
ITEM_CMDLINE="root=/dev/mmcblk1p5 rootwait init=/usr/lib/systemd/systemd omapfb.vram=0:3M,1:3M,2:3M"

This should work given that your /home (= /opt) partition is the second on EMMC. We might need to rethink ITEM_CMDLINE but at least U-Boot/BootMenu should be able to generate a proper /home/user/MyDocs/bootmenu.scr config file (don’t hesitate to look in it, it is almost a text file).

Mr User 2013-08-03 19:28

Re: uImage was not found ?
 
lenoch << There is no end for fun with you

so i tryed what you said and it didn't work but here is the thing

i get this message '/opt/boot/uImage' was not found in /boot or /opt/boot so the next thing that i did is this

Code:

ITEM_NAME="Arch"
ITEM_KERNEL="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"

and u-boot didn't complain about it so i reboot the device and i selected arch but i get this

unable to read file boot.img.d/uImage

lenoch 2013-08-03 20:12

Re: uImage was not found ?
 
I wonder how your partition layout looks like and what could be wrong, seems like I’m quite blind today. Would you mind running fdisk /dev/mmcblk0 and pressing 'p' to print the partition table (and 'q' to safely get out of there)?

Why would U-Boot look for /opt/boot/uImage in /boot or /opt/boot if it was given an absolute path to the /opt directory?

How about putting the Arch kernel in MyDocs? Typically this is a FAT32 partition (the first one) on EMMC.

Code:

ITEM_NAME="Arch"
ITEM_KERNEL="uImage" (or "/uImage" maybe?)
ITEM_DEVICE="${INT_CARD}p1"
ITEM_FSTYPE="vfat" (or just "fat")
ITEM_OMAPATAG="1"
ITEM_CMDLINE="root=/dev/mmcblk0p5 rootwait
init=/usr/lib/systemd/systemd omapfb.vram=0:3M,1:3M,2:3M quiet"

If uImage is not there after you run u-boot-update-bootmenu (I hope it does not complain again), just copy it in /home/user/MyDocs.

Mr User 2013-08-03 20:24

Re: uImage was not found ?
 
here it is my partition table
Code:

      Device Boot        System
/dev/mmcblk0p1      Win95 FAT32
/dev/mmcblk0p2      Linux
/dev/mmcblk0p3      Linux Swap
/dev/mmcblk0p4      Extended
/dev/mmcblk0p5      Linux

i copied the uImage to MyDocs again nothing happened so i will hard reset the phone and then i will start from scratch and we will see what's going to happen

>> i hope that i didn't bother you

lenoch 2013-08-03 20:30

Re: uImage was not found ?
 
Please don’t wipe anything out. You could make sure you have a clean environment just by reinstalling u-boot, but even this is not necessary in a practical sense (there is no magic involved, we’re just being blind and deaf). Let us have a look at this sometime else, preferably at #maemo-alternatives (I use ChatZilla Firefox extension for this).

peterleinchen 2013-08-03 20:42

Re: uImage was not found ?
 
Quote:

Originally Posted by lenoch (Post 1364680)
– It is shown for a while at bootup; mine is 2013.04 from Apr 20 2013.)

Quote:

Originally Posted by Mr User (Post 1364722)
unable to read file boot.img.d/uImage

This really does not like latest version of u-boot 2013-04, which is meeded to boot alarm.

Mr User 2013-08-04 16:57

Re: uImage was not found ?
 
any ways i hard reset my phone i don't have that probleme any more but i don't have arch item in the bootmenu all what i get is this

Attached kernel
internal emmc
external sd card
u-boot boot order
u-boot console


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

vBulletin® Version 3.8.8