WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PREEMPT_RT LINUX 2.6.29.6 patched with patch 2.6.29.1 seems to work !  (Read 2241 times)

Offline python

  • Newbie
  • *
  • Posts: 4

Hi,

I have applied the TinyCore patch 2.6.29.1 on the PREEMPT_RT Linux version 2.6.29.6 ... it is working so far.

Are there any problems to expect because of the small differents in the Linux versions ?

--Armin
 
PS: patch sequence:  vanila kernel 2.6.29.6 -> PREEMPR_RT patch -> tinyCore patch 2.6.29.1

Offline granaos

  • Newbie
  • *
  • Posts: 8
Re: PREEMPT_RT LINUX 2.6.29.6 patched with patch 2.6.29.1 seems to work !
« Reply #1 on: October 09, 2010, 08:00:30 PM »
Hi Armin would you like to share your notes? because I'm doing with tinycore 3 and in  2 hours I would post my results. However can you tell how can I put modules compilled into tinycore.gz.

 My idea is to replace the directory /lib/modules  which is in tinycore.gz with my modules after compiling.
The same with the directory firmware.


Granaos



Offline granaos

  • Newbie
  • *
  • Posts: 8
Re: PREEMPT_RT LINUX 2.6.29.6 patched with patch 2.6.29.1 seems to work !
« Reply #2 on: October 15, 2010, 12:01:55 AM »

Results:   Problems


1     According to:  http://wiki.tinycorelinux.com/Custom+Kernel
      wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.7.tar.bz2
      wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.33.7-rt29.bz2

      tar xfj linux-2.6.33.7.tar.bz2
      cd linux-2.6.23.1
      bzcat ../patch-2.6.33.7-rt29.bz2 | patch -p1
      cp ../config-2.6.33.3-tinycore .config
      make menuconfig
      make bzImage;make modules;make INSTALL_MOD_PATH=/results modules_install firmware_install

      I got a new bzImage, new firmware directory and new modules directory


2     According to:  http://wiki.tinycorelinux.com/Remastering

      sudo mkdir /mnt/tmp
      sudo mount tinycore.iso /mnt/tmp -o loop,ro
      cp -a /mnt/tmp/boot /tmp
      mv /tmp/boot/tinycore.gz /tmp
      sudo umount /mnt/tmp

      mkdir /tmp/extract
      cd /tmp/extract
      zcat /tmp/tinycore.gz | sudo cpio -i -H newc -d

      --> put my new modules directory  instead of one contained on tinycore.gz  and
          put my new firmware directory  (both under /lib in the tinycore.gz) 

      sudo depmod -b /tmp/extract 2.6.29.1-tinycore
      sudo ldconfig -r /tmp/extract

      cd /tmp/extract
      find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz
      cd /tmp
      advdef -z4 tinycore.gz

      I got a new tinycore.gz

3     I use an installed grub which I use to load my ubuntu


4     After rebooting a I can load my new tinycore

5     Problems:
      First:       Not GUI only console
      Second:      If I stop pressing keys for a couple of minutes the system hangs.


Observations:
      When I run lsmod there is NOT a single module loaded.
      (why any modules have been loaded? what order they follow to been loaded?)
      (where and what configurations files do I need to check?)

     
      I would appreciate if someone can help.


      Granaos

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11040
Re: PREEMPT_RT LINUX 2.6.29.6 patched with patch 2.6.29.1 seems to work !
« Reply #3 on: October 15, 2010, 03:15:02 AM »
You ran depmod for the wrong kernel version.

For missing GUI and the hang, something else is wrong there, missing modules would not cause that.
The only barriers that can stop you are the ones you create yourself.

Offline granaos

  • Newbie
  • *
  • Posts: 8
Re: PREEMPT_RT LINUX 2.6.29.6 patched with patch 2.6.29.1 seems to work !
« Reply #4 on: October 15, 2010, 08:31:49 PM »
You are right....  After correcting depmod I got GUI

Thanks