Skip to contentSkip to conversation

xenomai version 2.4.4 with linux kernel 2.6.25.11 under ubuntu problem

Xenomai-help [email protected] 4 participants 7 messages Aug 4, 2008 – Aug 5, 2008

lore
Share & tools
lore
#0 lore raw

Dear

I am trying to install Xenomai under Ubuntu following this guide:
http://www.xenomai.org/index.php/Xenomai_quick_build_quide

I have successfully patched the kernel with xenomai and compiled it.

I have created a new entry in grub/menu.lst

title kernel 2.6.25.11 with xenomai 2.4.4 and Ubuntu 8.04 root (hd0,2)
kernel /boot/vmlinuz-2.6.25.11-xenomai-2.4.4 root=/dev/hdb3 ro zeno_nucleus.xenomai_gid=1004

I have one hard disk with two partitions and I am working on hdb3.

At the reboot of the PC I see the message:

cannot open root device "hdb3" or unknown-block(0,0) please append a correct root= boot option; here are the available partitions:
0100 65536 ram0 (driver?)
0101 65536 ram1 (driver?)
…
010f 65536 ram15 (driver?)

kernel panic - not syncing: VFS unable to mount root fs on unknown-block(0,0)

- I have included in the kernel, not as module the File System EXT3.
- I have also included in the kernel, not as module, the ATA/ATAPI/MFM/RLL Support -> Enhanced IDE/MFM

Any suggestions?

Thanks in advance

----------------------------------------------------------------
Stefano Franzoni
Sofware Research
Marposs S.p.A. - via Saliceto 13
40010 Bentivoglio (BO) - Italy
www.marposs.com

Tel: +39 051 899633
Fax: +39 051 899802
[email protected]
----------------------------------------------------------------

#1 lore raw
Quoted 4 lines · [email protected] wrote:

- I have also included in the kernel, not as module, the ATA/ATAPI/MFM/RLL Support -> Enhanced IDE/MFM

Any suggestions?

You also need to enable the actual IDE controller used by your computer (the Enhanced IDE/MFM setting is just an option that will make the IDE controllers visible, but as such it does not cause any controller-specific code to be compiled). If in doubt, enable all IDE controllers, boot, read the logs, then only keep the controller which you really use.

Note that if you have a sufficiently recent hardware, your IDE controller will in fact be a SATA controller, and your root partition will become /dev/sda3, this requires a few changes in /etc/fstab that are unfortunately incompatible with a previous installation.

Signature · 1 line
                                                 Gilles.
#4 lore raw
In reply to [email protected]

HI,

Im not the expert but I had the same problem under xubuntu 7.10. I tried mkinitrd, but this command doesn't come standard with Ubuntu. I resorted to Debian and installed under an unencrypted fs. I think that the fs encryption could be ur problem.

Dehann

Quoted 54 lines · On Mon, Aug 4, 2008 at 4:49 PM, <[email protected]> wrote:

Dear

I am trying to install Xenomai under Ubuntu following this guide:
http://www.xenomai.org/index.php/Xenomai_quick_build_quide

I have successfully patched the kernel with xenomai and compiled it.

I have created a new entry in grub/menu.lst

title kernel 2.6.25.11 with xenomai 2.4.4 and Ubuntu 8.04 root (hd0,2)
kernel /boot/vmlinuz-2.6.25.11-xenomai-2.4.4 root=/dev/hdb3 ro zeno_nucleus.xenomai_gid=1004

I have one hard disk with two partitions and I am working on hdb3.

At the reboot of the PC I see the message:

cannot open root device "hdb3" or unknown-block(0,0) please append a correct root= boot option; here are the available partitions:
0100 65536 ram0 (driver?)
0101 65536 ram1 (driver?)
…
010f 65536 ram15 (driver?)

kernel panic - not syncing: VFS unable to mount root fs on unknown-block(0,0)

- I have included in the kernel, not as module the File System EXT3.
- I have also included in the kernel, not as module, the ATA/ATAPI/MFM/RLL Support -> Enhanced IDE/MFM

Any suggestions?

Thanks in advance

----------------------------------------------------------------
Stefano Franzoni
Sofware Research
Marposs S.p.A. - via Saliceto 13
40010 Bentivoglio (BO) - Italy
www.marposs.com

Tel: +39 051 899633
Fax: +39 051 899802
[email protected]
----------------------------------------------------------------
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#5 lore raw
Quoted 6 lines · Dehann Fourie

HI,

Im not the expert but I had the same problem under xubuntu 7.10. I tried mkinitrd, but this command doesn't come standard with Ubuntu. I resorted to Debian and installed under an unencrypted fs. I think that the fs encryption could be ur problem.

mkinitrd is and old package, replaced with mkinitramfs. There is no reason fs encryption could be a problem with Xenomai, and if it is, then it is a bug and needs fixing.

Signature · 1 line
                                                 Gilles.
#6 lore raw
In reply to Dehann Fourie
Quoted 38 lines · Dehann Fourie

HI,

Im not the expert but I had the same problem under xubuntu 7.10. I tried mkinitrd, but this command doesn't come standard with Ubuntu. I resorted to Debian and installed under an unencrypted fs. I think that the fs encryption could be ur problem.

Dehann

On Mon, Aug 4, 2008 at 4:49 PM, <[email protected] <mailto:[email protected]>> wrote:

Dear

I am trying to install Xenomai under Ubuntu following this guide:
http://www.xenomai.org/index.php/Xenomai_quick_build_quide

I have successfully patched the kernel with xenomai and compiled it.

I have created a new entry in grub/menu.lst

title kernel 2.6.25.11 <http://2.6.25.11> with xenomai 2.4.4 and Ubuntu 8.04
root (hd0,2)
kernel /boot/vmlinuz-2.6.25.11-xenomai-2.4.4 root=/dev/hdb3 ro zeno_nucleus.xenomai_gid=1004

I have one hard disk with two partitions and I am working on hdb3.

At the reboot of the PC I see the message:

cannot open root device "hdb3" or unknown-block(0,0) please append a correct root= boot option; here are the available partitions:
0100 65536 ram0 (driver?)
0101 65536 ram1 (driver?)
…
010f 65536 ram15 (driver?)

Quoted 6 lines

kernel panic - not syncing: VFS unable to mount root fs on unknown-block(0,0)

- I have included in the kernel, not as module the File System EXT3.
- I have also included in the kernel, not as module, the ATA/ATAPI/MFM/RLL Support -> Enhanced IDE/MFM

You should also compile in the chipset stuff needed for the drive you boot from if you don't want the hassle of creating an initrd. I had to compile in BLK_DEV_PIIX for mine and also added some generic ones as non-modules.

Theo

#2 lore raw
In reply to Gilles Chanteperdrix

Hello Gilles,

The problem is solved, it was exactly the Enhanced IDE/MFM option.

Many thanks

Stefano

Gilles
Chanteperdrix
<gilles.chanteper To
[email protected]> [email protected]
cc
04/08/2008 16:54 [email protected]
Subject
Re: [Xenomai-help] xenomai version 2.4.4 with linux kernel 2.6.25.11 under ubuntu problem

Quoted 4 lines · [email protected] wrote:

- I have also included in the kernel, not as module, the ATA/ATAPI/MFM/RLL Support -> Enhanced IDE/MFM

Any suggestions?

You also need to enable the actual IDE controller used by your computer (the Enhanced IDE/MFM setting is just an option that will make the IDE controllers visible, but as such it does not cause any controller-specific code to be compiled). If in doubt, enable all IDE controllers, boot, read the logs, then only keep the controller which you really use.

Note that if you have a sufficiently recent hardware, your IDE controller will in fact be a SATA controller, and your root partition will become /dev/sda3, this requires a few changes in /etc/fstab that are unfortunately incompatible with a previous installation.

--
Gilles.