linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RT + comedi (dual boot ubuntu 9.10/debian 7.0)
@ 2013-06-26 13:08 Braud Caroline
  2013-06-26 14:04 ` Uwe Kleine-König
  2013-10-09  7:47 ` Braud Caroline
  0 siblings, 2 replies; 4+ messages in thread
From: Braud Caroline @ 2013-06-26 13:08 UTC (permalink / raw)
  To: linux-rt-users

Hi evryone,

I was using ubuntu 9.10 (ubuntustudio-9.10-alternate-amd64.iso) with linux-rt package.
It was working well, I could run the Cyclictest with good RT jitters.
Also, I was using comedi and could manage a USBDUX board and a M&C board (PCI-DAS6036).

 I needed to update my distrib for some reasons, so I did some search and found that Ubuntu does not support anymore the package linux-rt ... so I couldn't keep RT with an update version of ubuntu ...
I installed a debian distrib in dual boot using a liveCD (debian livecd 7.0 AMD64, Gnome).
Everthing went well and I could drive my board (PCI-DAS6036) with comedi without any problems.

Here is the structure of my disk:
/dev/sda1 = /boot
/dev/sda2 = /  (Unbuntu 9.10)
/dev/sda6 = /  (debian 7.0)
/dev/sda7 = /home 

with a common swap, home and boot for both distributions

$ sudo fdisk -l
Disque /dev/sda : 80.0 Go, 80026361856 octets
255 têtes, 63 secteurs/piste, 9729 cylindres, total 156301488 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x000aa812

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1   *          63      208844      104391   83  Linux
/dev/sda2          208845    61641404    30716280   83  Linux
/dev/sda3        61641466   156296384    47327459+   5  Étendue
/dev/sda5        61641468    70027334     4192933+  82  partition d'échange Linux / Solaris
/dev/sda6        70027398   131459894    30716248+  83  Linux
/dev/sda7       131459958   156296384    12418213+  83  Linux


I was quite happy with that and I decided to boot the rt of the debian distribution. It was not working (it was frozen at the login stage ...). So I installed the RT following this website: http://www.pengutronix.com/software/linux-rt/debian_en.html

Since I installed it I have now 3 problems (that may be linked):
1- Grub erased my previous grub so I cannot boot on Ubuntu anymore ... (not linked directly to rt-user problems, but comes from the installation of rt distrib)
2- Cyclictest tests do not work anymore
3- My board is not reconnized automatically by comedi anymore

1-  
On debian: EVERYTHING OK
$ ls -lah /
lrwxrwxrwx   1 root root   40 juin  25 17:13 initrd.img -> /boot/initrd.img-2.6.33.7.2-rt30-1-amd64
lrwxrwxrwx   1 root root   30 juin  25 10:13 initrd.img.old -> /boot/initrd.img-3.2.0-4-amd64
lrwxrwxrwx   1 root root   36 juin  25 17:13 vmlinuz -> boot/vmlinuz-2.6.33.7.2-rt30-1-amd64
lrwxrwxrwx   1 root root   26 juin  25 10:18 vmlinuz.old -> boot/vmlinuz-3.2.0-4-amd64

On Ubuntu (from debian): PROBLEM WITH THE IMAGE LINK
$ sudo mkdir /mnt/Ubuntu
$ sudo mount /dev/sda2 /mnt/Ubuntu/
$ sudo mount /dev/sda1 /mnt/Ubuntu/boot
$ ls -lah /mnt/Ubuntu/
lrwxrwxrwx   1 root root   27 janv. 10  2012 initrd.img -> boot/initrd.img-2.6.31-9-rt
lrwxrwxrwx   1 root root   24 janv. 10  2012 vmlinuz -> boot/vmlinuz-2.6.31-9-rt

I understand the problem ... but how to repair it ?

2-
It seems that I'm missing linux-headers from kernel 2.6 (see bellow):

~/rt-tests$ make all
cc -D VERSION_STRING=0.85 -c src/cyclictest/cyclictest.c -Wall -Wno-nonnull -O2 -DNUMA -D_GNU_SOURCE -Isrc/include
In file included from src/cyclictest/cyclictest.c:37:0:
src/cyclictest/rt_numa.h:23:68: fatal error: /usr/src/linux-headers-2.6.31-9-rt/include/config/numa.h: Aucun fichier ou dossier de ce type
compilation terminated.
make: *** [cyclictest.o] Erreur 1

$ ls /usr/src/linux-headers-2.6.31-9-rt
ls: impossible d'accéder à /usr/src/linux-headers-2.6.31-9-rt: Aucun fichier ou dossier de ce type

$ sudo apt-get install  linux-headers-2.6.33.7.2-rt30-1-amd64
Les paquets suivants contiennent des dépendances non satisfaites :
 linux-headers-2.6.33.7.2-rt30-1-amd64 : Dépend: gcc-4.3 mais il n'est pas installable
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

How can I solve this problem ? Can I install headers for kernel 2.6 together with linux-headers-3.2.0-4-amd64 from the standart debian ?

3-
/dev/comedi0: No such file or directory

(http://www.comedi.org/doc/install.html)

$ sudo modprobe options comedi comedi_num_legacy_minors=4
libkmod: ERROR ../libkmod/libkmod.c:505 kmod_lookup_alias_from_builtin_file: could not open builtin file '/lib/modules/2.6.33.7.2-rt30-1-amd64/modules.builtin.bin'
FATAL: Module options not found.

$ ls /lib/modules/2.6.33.7.2-rt30-1-amd64/
kernel           modules.alias.bin    modules.dep      modules.devname  modules.symbols
modules.alias  modules.builtin.bin  modules.dep.bin  modules.softdep  modules.symbols.bin

Please, can you tell me what went wrong with the installation of the rt distrib ??
Thanks and sorry for this long message,

Caro
PC: Intel/1xQuadCore @ 2.5 GHz, 4 GB RAM, 3 TB space
 
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RT + comedi (dual boot ubuntu 9.10/debian 7.0)
  2013-06-26 13:08 RT + comedi (dual boot ubuntu 9.10/debian 7.0) Braud Caroline
@ 2013-06-26 14:04 ` Uwe Kleine-König
  2013-10-09  7:47 ` Braud Caroline
  1 sibling, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2013-06-26 14:04 UTC (permalink / raw)
  To: Braud Caroline; +Cc: linux-rt-users

Hello Braud,

On Wed, Jun 26, 2013 at 03:08:51PM +0200, Braud Caroline wrote:
> I was using ubuntu 9.10 (ubuntustudio-9.10-alternate-amd64.iso) with linux-rt package.
> It was working well, I could run the Cyclictest with good RT jitters.
> Also, I was using comedi and could manage a USBDUX board and a M&C board (PCI-DAS6036).
> 
>  I needed to update my distrib for some reasons, so I did some search and found that Ubuntu does not support anymore the package linux-rt ... so I couldn't keep RT with an update version of ubuntu ...
> I installed a debian distrib in dual boot using a liveCD (debian livecd 7.0 AMD64, Gnome).
> Everthing went well and I could drive my board (PCI-DAS6036) with comedi without any problems.
> 
> Here is the structure of my disk:
> /dev/sda1 = /boot
> /dev/sda2 = /  (Unbuntu 9.10)
> /dev/sda6 = /  (debian 7.0)
> /dev/sda7 = /home 
> 
> with a common swap, home and boot for both distributions
> 
> $ sudo fdisk -l
> Disque /dev/sda : 80.0 Go, 80026361856 octets
> 255 têtes, 63 secteurs/piste, 9729 cylindres, total 156301488 secteurs
> Unités = secteurs de 1 * 512 = 512 octets
> Taille de secteur (logique / physique) : 512 octets / 512 octets
> taille d'E/S (minimale / optimale) : 512 octets / 512 octets
> Identifiant de disque : 0x000aa812
> 
> Périphérique Amorce  Début        Fin      Blocs     Id  Système
> /dev/sda1   *          63      208844      104391   83  Linux
> /dev/sda2          208845    61641404    30716280   83  Linux
> /dev/sda3        61641466   156296384    47327459+   5  Étendue
> /dev/sda5        61641468    70027334     4192933+  82  partition d'échange Linux / Solaris
> /dev/sda6        70027398   131459894    30716248+  83  Linux
> /dev/sda7       131459958   156296384    12418213+  83  Linux
> 
> 
> I was quite happy with that and I decided to boot the rt of the debian
> distribution. It was not working (it was frozen at the login stage
You're saying that Debian 7.0 works fine with the non-rt kernel, but
hangs with the -rt flavour kernel? That's the problem I suggest to
address. What means "frozen at the login stage" exactly? Does your
machine is still pingable then? I don't know what the comedi driver is
used for, but IIRC it is still in staging, so can you reproduce without
loading the comedi driver?

Best regards
Uwe


-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RT + comedi (dual boot ubuntu 9.10/debian 7.0)
  2013-06-26 13:08 RT + comedi (dual boot ubuntu 9.10/debian 7.0) Braud Caroline
  2013-06-26 14:04 ` Uwe Kleine-König
@ 2013-10-09  7:47 ` Braud Caroline
  1 sibling, 0 replies; 4+ messages in thread
From: Braud Caroline @ 2013-10-09  7:47 UTC (permalink / raw)
  To: Braud Caroline; +Cc: linux-rt-users

 Hello,

I'm back with my old distribution and I decided not to touch it anymore ...
I will install RT with a more recent distrib in a separate computer.

Please can you advise me the most appropriate recent distribution to use the RT kernel and comedi drivers ?
(if you have a step by step installation of the RT kernel, it would be perfect !)

Thanks,
Karo
 
 Le Mercredi 26 Juin 2013 15:08 CEST, "Braud Caroline" <Caroline.Braud@univ-lille1.fr> a écrit: 
 
> Hi evryone,
> 
> I was using ubuntu 9.10 (ubuntustudio-9.10-alternate-amd64.iso) with linux-rt package.
> It was working well, I could run the Cyclictest with good RT jitters.
> Also, I was using comedi and could manage a USBDUX board and a M&C board (PCI-DAS6036).
> 
>  I needed to update my distrib for some reasons, so I did some search and found that Ubuntu does not support anymore the package linux-rt ... so I couldn't keep RT with an update version of ubuntu ...
> I installed a debian distrib in dual boot using a liveCD (debian livecd 7.0 AMD64, Gnome).
> Everthing went well and I could drive my board (PCI-DAS6036) with comedi without any problems.
> 
> Here is the structure of my disk:
> /dev/sda1 = /boot
> /dev/sda2 = /  (Unbuntu 9.10)
> /dev/sda6 = /  (debian 7.0)
> /dev/sda7 = /home 
> 
> with a common swap, home and boot for both distributions
> 
> $ sudo fdisk -l
> Disque /dev/sda : 80.0 Go, 80026361856 octets
> 255 têtes, 63 secteurs/piste, 9729 cylindres, total 156301488 secteurs
> Unités = secteurs de 1 * 512 = 512 octets
> Taille de secteur (logique / physique) : 512 octets / 512 octets
> taille d'E/S (minimale / optimale) : 512 octets / 512 octets
> Identifiant de disque : 0x000aa812
> 
> Périphérique Amorce  Début        Fin      Blocs     Id  Système
> /dev/sda1   *          63      208844      104391   83  Linux
> /dev/sda2          208845    61641404    30716280   83  Linux
> /dev/sda3        61641466   156296384    47327459+   5  Étendue
> /dev/sda5        61641468    70027334     4192933+  82  partition d'échange Linux / Solaris
> /dev/sda6        70027398   131459894    30716248+  83  Linux
> /dev/sda7       131459958   156296384    12418213+  83  Linux
> 
> 
> I was quite happy with that and I decided to boot the rt of the debian distribution. It was not working (it was frozen at the login stage ...). So I installed the RT following this website: http://www.pengutronix.com/software/linux-rt/debian_en.html
> 
> Since I installed it I have now 3 problems (that may be linked):
> 1- Grub erased my previous grub so I cannot boot on Ubuntu anymore ... (not linked directly to rt-user problems, but comes from the installation of rt distrib)
> 2- Cyclictest tests do not work anymore
> 3- My board is not reconnized automatically by comedi anymore
> 
> 1-  
> On debian: EVERYTHING OK
> $ ls -lah /
> lrwxrwxrwx   1 root root   40 juin  25 17:13 initrd.img -> /boot/initrd.img-2.6.33.7.2-rt30-1-amd64
> lrwxrwxrwx   1 root root   30 juin  25 10:13 initrd.img.old -> /boot/initrd.img-3.2.0-4-amd64
> lrwxrwxrwx   1 root root   36 juin  25 17:13 vmlinuz -> boot/vmlinuz-2.6.33.7.2-rt30-1-amd64
> lrwxrwxrwx   1 root root   26 juin  25 10:18 vmlinuz.old -> boot/vmlinuz-3.2.0-4-amd64
> 
> On Ubuntu (from debian): PROBLEM WITH THE IMAGE LINK
> $ sudo mkdir /mnt/Ubuntu
> $ sudo mount /dev/sda2 /mnt/Ubuntu/
> $ sudo mount /dev/sda1 /mnt/Ubuntu/boot
> $ ls -lah /mnt/Ubuntu/
> lrwxrwxrwx   1 root root   27 janv. 10  2012 initrd.img -> boot/initrd.img-2.6.31-9-rt
> lrwxrwxrwx   1 root root   24 janv. 10  2012 vmlinuz -> boot/vmlinuz-2.6.31-9-rt
> 
> I understand the problem ... but how to repair it ?
> 
> 2-
> It seems that I'm missing linux-headers from kernel 2.6 (see bellow):
> 
> ~/rt-tests$ make all
> cc -D VERSION_STRING=0.85 -c src/cyclictest/cyclictest.c -Wall -Wno-nonnull -O2 -DNUMA -D_GNU_SOURCE -Isrc/include
> In file included from src/cyclictest/cyclictest.c:37:0:
> src/cyclictest/rt_numa.h:23:68: fatal error: /usr/src/linux-headers-2.6.31-9-rt/include/config/numa.h: Aucun fichier ou dossier de ce type
> compilation terminated.
> make: *** [cyclictest.o] Erreur 1
> 
> $ ls /usr/src/linux-headers-2.6.31-9-rt
> ls: impossible d'accéder à /usr/src/linux-headers-2.6.31-9-rt: Aucun fichier ou dossier de ce type
> 
> $ sudo apt-get install  linux-headers-2.6.33.7.2-rt30-1-amd64
> Les paquets suivants contiennent des dépendances non satisfaites :
>  linux-headers-2.6.33.7.2-rt30-1-amd64 : Dépend: gcc-4.3 mais il n'est pas installable
> E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
> 
> How can I solve this problem ? Can I install headers for kernel 2.6 together with linux-headers-3.2.0-4-amd64 from the standart debian ?
> 
> 3-
> /dev/comedi0: No such file or directory
> 
> (http://www.comedi.org/doc/install.html)
> 
> $ sudo modprobe options comedi comedi_num_legacy_minors=4
> libkmod: ERROR ../libkmod/libkmod.c:505 kmod_lookup_alias_from_builtin_file: could not open builtin file '/lib/modules/2.6.33.7.2-rt30-1-amd64/modules.builtin.bin'
> FATAL: Module options not found.
> 
> $ ls /lib/modules/2.6.33.7.2-rt30-1-amd64/
> kernel           modules.alias.bin    modules.dep      modules.devname  modules.symbols
> modules.alias  modules.builtin.bin  modules.dep.bin  modules.softdep  modules.symbols.bin
> 
> Please, can you tell me what went wrong with the installation of the rt distrib ??
> Thanks and sorry for this long message,
> 
> Caro
> PC: Intel/1xQuadCore @ 2.5 GHz, 4 GB RAM, 3 TB space
>  
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RT + comedi (dual boot ubuntu 9.10/debian 7.0)
       [not found] <52554911.4020109@nnytech.net>
@ 2013-10-14 11:11 ` Braud Caroline
  0 siblings, 0 replies; 4+ messages in thread
From: Braud Caroline @ 2013-10-14 11:11 UTC (permalink / raw)
  To: Martin K; +Cc: linux-rt-users

 Thanks Martin K, I'll try that.


  
Le Mercredi 9 Octobre 2013 14:16 CEST, Martin K <martin@nnytech.net> a écrit: 
 
> On 10/9/2013 3:47 AM, Braud Caroline wrote:
> >   Hello,
> >
> > I'm back with my old distribution and I decided not to touch it anymore ...
> > I will install RT with a more recent distrib in a separate computer.
> >
> > Please can you advise me the most appropriate recent distribution to use the RT kernel and comedi drivers ?
> > (if you have a step by step installation of the RT kernel, it would be perfect !)
> >
> > Thanks,
> > Karo
> >   
> >
> 
> Karo,
> Recently I started with a fresh installation of Kubuntu version 13.04
> 
> I installed the source and header packages for the kernel version that 
> came with 13.04. Also several packages were needed for building the 
> kernel on Ubuntu I did not rebuild this kernel or use this kernel 
> version (keep reading).
> See:
> http://www.howtoforge.com/kernel_compilation_ubuntu
> 
> 1. I then looked up the latest released RT patch set on kernel.org:
> https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/
> 
> 2. I downloaded
> https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patches-3.10.14-rt9.tar.bz2
> 
> 3. And the corresponding linux version (3.10.14)
> https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.14.tar.bz2
> 
> 4. I unzipped both, putting the patches directory into the linux source dir
> 
> 5. I installed quilt and applied the patch series (from the linux-x.x.x/ 
> directory) using the command:
> quilt push -a
> 
> 6. I copied the default kernel configuration from the stock linux 
> version to use as a template:
> cp /boot/config-`uname -r` ./.config
> 
> 7. Configure the kernel (enable RT PREEMPT)
> make menuconfig
> 
> 8. Build the kernel
> make-kpkg clean
> fakeroot make-kpkg --initrd --append-to-version=-karo kernel_image 
> kernel_headers
> 
> 9. Install
> cd ../
> [look for kernel*dpkg here]
> dpkg -i ...
> 
> 10. reboot and check to see if it worked.
> 
> ---
> I welcome critique on my method. I am not a kernel developer.
> 
> One question I have, and I'm sorry for being ignorant:
> - If I had wanted to apply the RT patch for linux 3.8.13.7, how do I get 
> kernel source version 3.8.13.7?
> There is no release that I'm aware of for this version, and I was unable 
> to find this in the kernel git repository. Was I looking in the wrong one?
> 
> -
> Martin Klingensmith
> 
> 
 
 

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-14 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26 13:08 RT + comedi (dual boot ubuntu 9.10/debian 7.0) Braud Caroline
2013-06-26 14:04 ` Uwe Kleine-König
2013-10-09  7:47 ` Braud Caroline
     [not found] <52554911.4020109@nnytech.net>
2013-10-14 11:11 ` Braud Caroline

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).