OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> How Does Kexecboot Find A Kernel?
BerndS
post Jan 11 2009, 05:40 AM
Post #1





Group: Members
Posts: 66
Joined: 26-September 04
Member No.: 4,770



Hi

I still do not understand how kexecboot decides which partition to add to the menu

My experience until now:

I installed Angstrom on the internal RAM of my C760, afterwards Ubuntu on my SD Card and then kexecboot. Then I tested kexecboot and it worked fine : I could boot either Angstrom or Ubuntu.

Than I customized my Angstrom and installed missing packages and after that kexecboot did not find the Angstrom on the internal RAM anymore - it only found the Ubuntu on the SD card. Without a SD card kexecboot stops with

Probing /dev/mtdblock0
Probing /dev/mtdblock1
Probing /dev/mtdblock2
Probing /dev/mtdblock3
No bootable device found


So then I installed Anstrom with OPIE on my internal RAM and reinstalled kexecboot . And voila, kexecboot found the Angstrom/OPIE on the internal RAM and I could boot it. Than I customized Angstrom/OPIE and now kexecboot does not find the Angstrom on the internal RAM anymore.

In all cases I did not change the files in the /boot directory ...

Why does kexecboot do not find the Angstrom on the internal RAM?

Update 11.01.09 20:11

Now I reinstalled Angstrom with Opie on the internal RAM and afterwards reinstalled kexecboot. And kexecboot again finds the Angstrom on the internal RAM. But now it does not find the Angstrom/Opie on the SD card anymore (it does find ubuntu and Angstrom with X on the other partitions of the SD card). I do not see a difference between the boot directory in the ram and the boot directory on the SD card (partition 4; a primary partition formated with ext2 if that matters):


root@c7x0:~$ ls -l /boot
-rw-r--r-- 1 root root 23 Oct 31 15:01 image.nfo
-rw-r--r-- 1 root root 68 Oct 31 15:01 kernel-cmdline
lrwxrwxrwx 1 root root 13 Jan 1 1970 zImage -> zImage-2.6.24
-rw-r--r-- 1 root root 1264516 Oct 31 15:00 zImage-2.6.24

root@c7x0:~$ ls -l //media/mmcblk0p4/boot
-rw-r--r-- 1 root root 31 Jan 8 2009 image.nfo
-rw-r--r-- 1 root root 69 Jan 11 2009 kernel-cmdline
lrwxrwxrwx 1 root root 13 Jan 11 2009 zImage -> zImage-2.6.24
-rw-r--r-- 1 root root 1264516 Oct 31 13:58 zImage-2.6.24


root@c7x0:~$ cat /boot/image.nfo
Angstroem Opie 2007.12

root@c7x0:~$ cat /media/mmcblk0p4/boot/image.nfo
Angstroem Opie 2007.12 Develop

root@c7x0:~$ cat /boot/kernel-cmdline
console=ttyS0,115200n8 console=tty1 noinitrd dyntick=enable debug

root@c7x0:~$ cat /media/mmcblk0p4/boot/kernel-cmdline
console=ttyS0,115200n8 console=tty1 noinitrd dyntick=enable debug


regards

Bernd
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
ant
post Jan 16 2009, 01:47 AM
Post #2





Group: Members
Posts: 163
Joined: 11-March 04
From: IT
Member No.: 2,270



Bern,

I'm pretty sure the problems with kernel not found in nand are originated by corrupted jffs filesystem.
How do you install and edit the images?

On c860 I can even install two images on nand:

flash_eraseall /dev/mtd2
flash_eraseall /dev/mtd3

nandwrite /dev/mtd2 myfirstimage.jffs2.bin
nandwrite /dev/mtd3 mysecondimage.jffs2.bin

But you can't yet use the standard images provided by openembedded...some changes are needed:
- populate /boot
- edit fstab
- remove 16bytes Sharp headers if you want to flash by hand (updater.sh does it automatically)

Please remember kexecboot/multiboot is not yet finished.
The kexecboot-kernels for c7x0 and akita were lacking the CF boot while spitz missed nand boot.
Why? Because the kernel size on Zaurus is limited...some options were compiled as module..and the work started from standard angstrom kernels.

What does it mean?
If we compile all the options the standard kernel will be too big to be flashed on nand...i.e. we'll break compatibility with Sharp layout (kernel in mtd1).

The good news is the developers are almost all convinced we should create openembedded/angstrom builds ready for multiboot.
A new release is planned very soon!

Regards

Ant
Go to the top of the page
 
+Quote Post
BerndS
post Jan 16 2009, 09:37 AM
Post #3





Group: Members
Posts: 66
Joined: 26-September 04
Member No.: 4,770



Hi Ant,

QUOTE(ant @ Jan 16 2009, 10:47 AM) *
I'm pretty sure the problems with kernel not found in nand are originated by corrupted jffs filesystem.


How to I check if the jffs filesystem is corrupt?

I've installed the package mtd-utils -- but there's no fsck.jffs2 in that package.

QUOTE
How do you install and edit the images?


I installed the image using the flash functionality of the CL760 (press okay while powering on...). After the first reboot I install additional packages with ipkg.

Regards

Bernd

Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2014 - 07:03 PM