View Single Post
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#91
Originally Posted by pali View Post
Yes, but it is bad to tell that this is vmlinuz if in fact it is zImage. (As I wrote I do not like some stupid hacks this type). Why multiboot does not work if file has normal zImage name??
Sorry, I made a mistake.

I digged sources a bit ( http://maemo.org/packages/source/vie...boot/0.2.10-1/ , downloaded source package, MohammadAG is maintainer, but if you want to ask questions, ask Jay-C, he is original author of code - see readme file at the very bottom).

There is line (lines 20-21) in scripts/multiboot:
# vmlinuz searchlist
VMLINUZ_SEARCH="boot/multiboot/vmlinuz- boot/multiboot/zImage- boot/vmlinuz- boot/zImage-"
So it also searches zImage- files! And also in "/boot"!

Confirmed: kernel renamed to /boot/zImage-2.6.28.10pali1
/etc/multiboot.d/01-Maemo-kernel-power46.item contents:
ITEM_NAME="Maemo kernel-power46-pali1"
ITEM_KERNEL="2.6.28.10pali1"
ITEM_MODULES=ext3
(empty line at end of file, but don't know if it's needed)
and it still boots Thank you pali for mobilizing me to read the sources of multiboot

There is also file README, which part of reads:
1.Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

The configuration files are in /etc/multiboot.d/

Each file named <whatever>.item represents a bootable configuration,
which can be selected from the bootup menu.


1.1 Item file format
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

A line starting with # is a comment

All other lines must be like the following:-

ITEM_ID="..."
A short name for this configuration.
No spaces, no special characters, max 6 characters long.

ITEM_NAME="..."
A description string for this configuration.
Shown on the bootmenu screen.

ITEM_KERNEL="..."
Kernel version to run in this configuration.
If the running kernel is not correct, multiboot will reflash
the device and reboot automatically.

ITEM_MODULES="..."
A list of kernel modules required to boot this configuration.
E.g. "ext2 ext3 fat vfat"

ITEM_DEVICE="..."
Root partition device name.
Use ${EXT_CARD} to point to the external MMC,
and ${INT_CARD} for internal.
E.g. "${EXT_CARD}p2" for partition 2 in removable MMC.

ITEM_FSTYPE="..."
Filesystem type for the root fs.
Usually ext2 or ext3.
Also, you must have the fs module loaded.

ITEM_FSOPTIONS="..."
Filesystem options for root fs. Typically,
for ext2/ext3:
"rw,noatime,errors=remount-ro"

ITEM_INITRC="..."
Init program to execute when switching over to root.
Optional, default is to search the usual locations.

ITEM_INITFS="..."
Locations where the Maemo root fs is moved after pivot.
Typically "initrd" or "mnt/initfs"
Defaults to "mnt/initfs"
And these are all options available in item file. Only 3: ITEM_KERNEL, ITEM_NAME, ITEM_MODULES are required by titan's power kernel, I just included this to see if your kernel maybe needs or can use any more options to use all its features?

Thanks for your great work again

Also: updated my previous post with instructions how to manually make it work with multiboot to better fulfill standards (zImage instead of vmlinuz). I was aware of the difference between these two files, but thought it was just a naming convention.

Last edited by misiak; 2011-04-20 at 18:43.
 

The Following 4 Users Say Thank You to misiak For This Useful Post: