NOTE: Xenomai conflicts with PC speaker support.
Hi
I meet a strange situation when I compile xenomai-2.4-rc5 on Linux-2.6.23
Linux Kernel Configuration
Real-time sub-system --->
--- NOTE: Xenomai conflicts with PC speaker support.
│ │ │ │ --- (menu Device Drivers/Input device support/Miscellaneous devices) │ │
I don't know what drivers conflicts with PC speaker support?
Quoted 6 lines · jie zhang
Hi
I meet a strange situation when I compile xenomai-2.4-rc5 on Linux-2.6.23Linux Kernel Configuration
Real-time sub-system --->
--- NOTE: Xenomai conflicts with PC speaker support.
Quoted 6 lines
│ │ │ │ --- (menu Device Drivers/Input device support/Miscellaneous devices) │ │I don't know what drivers conflicts with PC speaker support?
It is not a driver, it is xenomai as a whole. There are two ways out of this:
- either the processor you use is better than a 586, in which case you should probably select this processor in Linux configuration, it will give you better performance;
- or you really want to compile your kernel for something without a tsc, in which case you should unselect support for the PC speaker (menu Device drivers/Input device support/Miscellaneous devices/PC Speaker support).
Signature · 1 line
Gilles Chanteperdrix
[Xenomai-help] RTDM blocking non RT task
Hi,
I have a non-RT task (from user space) reading an RTDM driver (nrt_read). I would like to block the task on read as long as RTDM doesn't have data to read.
For the moment I use rt_event_wait but it doesn't work with non-RT task (it works only with a RT task).
Do you have any idea?
Thanks Patrick
Re: [Xenomai-help] RTDM blocking non RT task
Quoted 9 lines · Patrick
Hi,
I have a non-RT task (from user space) reading an RTDM driver (
nrt_read). I would like to block the task on read as long as RTDM doesn't have data to read.
For the moment I usert_event_waitbut it doesn't work with non-RT task (it works only with a RT task).Do you have any idea?
Since the context is not real-time, you can use any Linux services, as you would do with a non real-time driver, such as *sleep_on* or wait_event*, provided that you call wake_up* from an nrt signal handler.
Signature · 1 line
Gilles Chanteperdrix
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · jie zhang
Hi,
I tried to install same xenomai and same Linux distribution on my laptop and my PC, and I only found there are problem in my laptop, so it must be the cause of the hardware, but it is amazing just because I choose the kernel configuration in turn, the note disappear before I disabled the Miscellaneous devices, I am so suprised , could you tell me why it will be that? could you tell me what options resolved the problem?
Read my answer again, it tells you which option resolve your problem. What are the problems with your laptop ? Please send us your .config and boot logs.
Signature · 1 line
Gilles Chanteperdrix
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 32 lines · jie zhang
Hi gilles,
I really have problem with my laptop, I carefully select the kernel configurations, but oh my god, there are still kernel panic kernel panic - not syncing: VFS unable to mount root fs on unknown-block(0,0) and it sees that is because root=/dev/sda? have problem
the following is my menu.lsttitle xenomai root (hd0,5) kernel /vmlinuz-2.6.23-xenomai root=/dev/sda6(What should Iwrote here?) ro
title Ubuntu 7.10, kernel 2.6.22-14-generic root (hd0,5) kernel /vmlinuz-2.6.22-14-genericroot=UUID=4db354f4-1591-42a0-a09b-f551dd8405f8 ro quiet splash
initrd /initrd.img-2.6.22-14-generic
quietwhen I use df
/dev/sda722588240 4031060 17409740 19% /varrun 513156 148 513008 1% /var/run varlock 513156 0 513156 0% /var/lock udev 513156 92 513064 1% /dev devshm 513156 0 513156 0% /dev/shm lrm 513156 34696 478460 7% /lib/modules/2.6.22-14-generic/volatile /dev/sda6 474440 38167 411776 9% /boot /dev/sda8 61519876 5132588 53262248 9% /home /dev/sda1 19525456 5738448 13787008 30% /media/sda1
Quoted 1 line
what should I do to resolve the kernel panic,
Please do not drop [email protected] from your answers.
The message "unable to mount root" means that well, the kernel is unable to mount a root filesystem.
This may be normal if you reused a kernel configuration which uses an initrd (initial ram disk image). If you want this configuration to work, you should create an initrd for your kernel (if the kernel installation did not do it by itself), usually you do this by calling mkinitrd with some parameters like the kernel version (mkinitrd --help is your friend). You then have to tell grub or lilo to use the initrd which you just created.
The other way to work around this problem is to create your kernel with built-in drivers for your root device disk controller (from your various posts, I would say that you have a PIIX Sata controller) and your root filesystem (probably ext3). This way you can completely get rid of an initrd, unless you use the Logical Volume Manager, in which case you have to boot from an initrd.
Signature · 1 line
Gilles Chanteperdrix
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · jie zhang
Hi gilles,
except initrd , what should I wrote on the "Kernel /vmlinuz-2.6.23-xenomai root=/dev/??????(sda?) " does it have relation ship with the kernel panic, I was confused now, I am so sorry for trouble you. by the way , do you know some thing about UUID?
Please do send mails to the [email protected] mailing list, not only to me.
Your problem is with initrd, so try and solve the initrd problem first. My advice is to run mkinitrd and to make your grub entry look exactly like the non-Xenomai entry. If your grub.conf entry has an initrd entry, grub will generate the correct command line for your kernel, so you do not have to specify a root=something to the Xenomai entry.
If, on the other hand, you build the kernel with built-in support for the root device disk controller and root filesystem, you can get rid of the initrd item, but specify a root=/dev/sda? on the image command line.
UUID is another way to specify a partition name which is independent of the number of disks on your system.
If for instance, UUID 4db354f4-1591-42a0-a09b-f551dd8405f8 is /dev/sda6 and you plug another disk on your system, what was previously called /dev/sda6 becomes /dev/sdb6, its UUID will still be valid.
So, you can use the same root=UUID argument for Xenomai as for your original kernel.
Signature · 1 line
Gilles Chanteperdrix