Realtime kernel build quickie + bootsplash (or not)

Share your own howto's etc. Not for support questions!

Postby jongi » 2007-10-13 23:55

If there is a later rt patch againgst say the 2.6.23 kernel, what is the quickest and easiest way to recompile deb files?
jongi
 
Posts: 477
Joined: 2007-04-15 02:41

Postby mzilikazi » 2007-10-14 13:29

jongi wrote:If there is a later rt patch againgst say the 2.6.23 kernel, what is the quickest and easiest way to recompile deb files?

Using the same kernel source you must first unapply the patch w/ the -R switch:
Code: Select all
cd linux-2.6.23-rt1
bzcat ../patch-2.6.23-rt1.bz2|patch -p1 -R

Then apply the new patch:
Code: Select all
bzcat ../patch-2.6.23-rt2.bz2|patch -p1

Then build as per usual.
Code: Select all
cd ..
mv linux-2.6.23-rt1 linux-2.6.23-rt2
cd linux-2.6.23-rt2
make menuconfig
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby Scoop » 2007-10-16 05:35

Thanx for this howto.
I built a 2.6.23-rt kernel and got nvidia working on Debian sid amd64.

I could not find Virtualization under Processor Type and Features in make menuconfig.
For me it was under Device IDs (I think that's it).

Also I was missing a couple of important pkgs at the start like libncurses5-dev but Googling sorted that out.
Now I'm going to recomplie with a couple of tweaks mentioned in the Alsa low-latency howto.
http://alsa-project.org/main/index.php/ ... ency_howto

Thanks again
Norv
Scoop
 
Posts: 21
Joined: 2004-09-14 20:18
Location: Australia

Postby mzilikazi » 2007-10-16 20:37

Scoop wrote:Also I was missing a couple of important pkgs at the start like libncurses5-dev but Googling sorted that out.
Now I'm going to recomplie with a couple of tweaks mentioned in the Alsa low-latency howto.
http://alsa-project.org/main/index.php/ ... ency_howto

Thanks again
Norv

Initially this howto was just a few lines and was aimed mostly at those folks that were already setup to build kernels. More of a crash course in kernel building if you will. It has since grown a bit. :)

Thanks for the ALSA link. I had not seen that before and am anxious to try some of those tweaks.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby mzilikazi » 2007-10-30 15:14

A quick update for patch-2.6.23.1-rt5
Code: Select all
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2
wget http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.23.1.bz2
wget http://fatcat.ftj.agh.edu.pl/~przyboro/other/bootsplash/bootsplash-3.1.6-2.6.23.diff
wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.23.1-rt5.bz2
tar xjvf linux-2.6.23.tar.bz2
cd linux-2.6.23
patch -p1 <../bootsplash-3.1.6-2.6.23.diff
bzcat ../patch-2.6.23.1.bz2 |patch -p1
bzcat ../patch-2.6.23.1-rt5.bz2 |patch -p1

The reason we start with 2.6.23 source is that bootsplash has not been updated for 2.6.23.1 so apply the bootsplash patch first then the 2.6.23.1 patch and finally the rt patch.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby kabniel » 2007-11-03 21:48

Hi,
I compiled 2.6.23.1 with rt support using the howto and everything went fine, except that my system cant set the clock at boot/shutdown, and when i run it manually i get:

# /etc/init.d/hwclock.sh start
Setting the system clock.
select() to /dev/rtc to wait for clock tick timed out
* Unable to set System Clock to: Sat Nov 3 21:31:05 UTC 2007


Is there something that is missing in the kernel config?
I used oldconfig with my old 2.6.22-2-i686 kernel shipped with Lenny and just hit enter on all the new options for 2.6.23.1 since i didnt understand what most of it was, then i changed to realtime and 1000hz in menuconfig.
User avatar
kabniel
 
Posts: 228
Joined: 2007-07-10 21:03
Location: Sweden

Postby mzilikazi » 2007-11-05 04:08

kabniel wrote:Hi,
I compiled 2.6.23.1 with rt support using the howto and everything went fine, except that my system cant set the clock at boot/shutdown, and when i run it manually i get:

# /etc/init.d/hwclock.sh start
Setting the system clock.
select() to /dev/rtc to wait for clock tick timed out
* Unable to set System Clock to: Sat Nov 3 21:31:05 UTC 2007


Is there something that is missing in the kernel config?
I used oldconfig with my old 2.6.22-2-i686 kernel shipped with Lenny and just hit enter on all the new options for 2.6.23.1 since i didnt understand what most of it was, then i changed to realtime and 1000hz in menuconfig.

What hardware do you have?
Code: Select all
lspci -v

I won't claim to know alot about this issue but here's what I have my .config
Code: Select all
$ zgrep RTC /proc/config.gz
CONFIG_HPET_EMULATE_RTC=y
CONFIG_RTC=y
# CONFIG_RTC_HISTOGRAM is not set
# CONFIG_HPET_RTC_IRQ is not set
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_RTC_CLASS is not set

If you don't already have it try editing .config to:
Code: Select all
CONFIG_HPET_RTC_IRQ=n
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby kabniel » 2007-11-05 13:57

Code: Select all
# lspci -v
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, fast devsel, latency 0
   Memory at f0000000 (32-bit, prefetchable) [size=128M]
   Capabilities: [e4] Vendor Specific Information
   Capabilities: [a0] AGP version 3.0

00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02) (prog-if 00 [Normal decode])
   Flags: bus master, 66MHz, fast devsel, latency 64
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
   Memory behind bridge: fa900000-fe9fffff
   Prefetchable memory behind bridge: cff00000-efefffff

00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, medium devsel, latency 0, IRQ 17
   I/O ports at ef00 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, medium devsel, latency 0, IRQ 19
   I/O ports at ef20 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, medium devsel, latency 0, IRQ 20
   I/O ports at ef40 [size=32]

00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, medium devsel, latency 0, IRQ 17
   I/O ports at ef80 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, medium devsel, latency 0, IRQ 16
   Memory at febffc00 (32-bit, non-prefetchable) [size=1K]
   Capabilities: [50] Power Management version 2
   Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=64
   I/O behind bridge: 0000d000-0000dfff
   Memory behind bridge: fea00000-feafffff

00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
   Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
   Subsystem: ASUSTeK Computer Inc. P5P800-MX Mainboard
   Flags: bus master, medium devsel, latency 0, IRQ 20
   I/O ports at 01f0 [size=8]
   I/O ports at 03f4 [size=1]
   I/O ports at 0170 [size=8]
   I/O ports at 0374 [size=1]
   I/O ports at fc00 [size=16]
   Memory at 70000000 (32-bit, non-prefetchable) [size=1K]

00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02) (prog-if 8f [Master SecP SecO PriP PriO])
   Subsystem: ASUSTeK Computer Inc. P4P800 SE Mainboard
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 20
   I/O ports at efe0 [size=8]
   I/O ports at efac [size=4]
   I/O ports at efa0 [size=8]
   I/O ports at efa8 [size=4]
   I/O ports at ef60 [size=16]

00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
   Subsystem: ASUSTeK Computer Inc. P4P800 Mainboard
   Flags: medium devsel, IRQ 21
   I/O ports at 0400 [size=32]

01:00.0 VGA compatible controller: nVidia Corporation GeForce 7600 GS (rev a2) (prog-if 00 [VGA])
   Subsystem: Micro-Star International Co., Ltd. Unknown device 0640
   Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 17
   Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
   Memory at d0000000 (32-bit, prefetchable) [size=256M]
   Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
   [virtual] Expansion ROM at fe9e0000 [disabled] [size=128K]
   Capabilities: [60] Power Management version 2
   Capabilities: [44] AGP version 3.0

02:05.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)
   Subsystem: ASUSTeK Computer Inc. A7V600/P4P800/K8V motherboard
   Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
   Memory at feafc000 (32-bit, non-prefetchable) [size=16K]
   I/O ports at d800 [size=256]
   Capabilities: [48] Power Management version 2
   Capabilities: [50] Vital Product Data

02:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
   Subsystem: Unex Technology Corp. ND010
   Flags: bus master, medium devsel, latency 64, IRQ 16
   I/O ports at d400 [size=256]
   Memory at feafbc00 (32-bit, non-prefetchable) [size=256]
   Capabilities: [50] Power Management version 2

02:0d.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
   Subsystem: Creative Labs CT4832 SBLive! Value
   Flags: bus master, medium devsel, latency 64, IRQ 22
   I/O ports at df80 [size=32]
   Capabilities: [dc] Power Management version 1

02:0d.1 Input device controller: Creative Labs SB Live! Game Port (rev 07)
   Subsystem: Creative Labs Gameport Joystick
   Flags: bus master, medium devsel, latency 64
   I/O ports at dfe0 [size=8]
   Capabilities: [dc] Power Management version 1


Here is the RTC settings i have in the new kernel where setting system time at boot doesnt work.
Code: Select all
# cat /boot/config-2.6.23.1-rt5 |grep RTC
CONFIG_RTC=m
# CONFIG_RTC_HISTOGRAM is not set
CONFIG_GEN_RTC=m
CONFIG_GEN_RTC_X=y
# CONFIG_HPET_RTC_IRQ is not set
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_RTC_LIB=m
CONFIG_RTC_CLASS=m
# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
# I2C RTC drivers
CONFIG_RTC_DRV_DS1307=m
CONFIG_RTC_DRV_DS1672=m
CONFIG_RTC_DRV_MAX6900=m
CONFIG_RTC_DRV_RS5C372=m
CONFIG_RTC_DRV_ISL1208=m
CONFIG_RTC_DRV_X1205=m
CONFIG_RTC_DRV_PCF8563=m
CONFIG_RTC_DRV_PCF8583=m
# CONFIG_RTC_DRV_M41T80 is not set
# SPI RTC drivers
CONFIG_RTC_DRV_RS5C348=m
CONFIG_RTC_DRV_MAX6902=m
# Platform RTC drivers
CONFIG_RTC_DRV_CMOS=m
CONFIG_RTC_DRV_DS1553=m
# CONFIG_RTC_DRV_STK17TA8 is not set
CONFIG_RTC_DRV_DS1742=m
CONFIG_RTC_DRV_M48T86=m
# CONFIG_RTC_DRV_M48T59 is not set
CONFIG_RTC_DRV_V3020=m
# on-CPU RTC drivers


And here is from my old config where setting system time at boot works. Except for a couple of new options in 2.6.23.1, i cant see any real difference between the two.
Code: Select all
# cat /boot/config-2.6.22-2-686 |grep RTC
CONFIG_RTC=m
CONFIG_GEN_RTC=m
CONFIG_GEN_RTC_X=y
# CONFIG_HPET_RTC_IRQ is not set
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_RTC_LIB=m
CONFIG_RTC_CLASS=m
# RTC interfaces
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
# I2C RTC drivers
CONFIG_RTC_DRV_DS1307=m
CONFIG_RTC_DRV_DS1672=m
CONFIG_RTC_DRV_MAX6900=m
CONFIG_RTC_DRV_RS5C372=m
CONFIG_RTC_DRV_ISL1208=m
CONFIG_RTC_DRV_X1205=m
CONFIG_RTC_DRV_PCF8563=m
CONFIG_RTC_DRV_PCF8583=m
# SPI RTC drivers
CONFIG_RTC_DRV_RS5C348=m
CONFIG_RTC_DRV_MAX6902=m
# Platform RTC drivers
CONFIG_RTC_DRV_CMOS=m
CONFIG_RTC_DRV_DS1553=m
CONFIG_RTC_DRV_DS1742=m
CONFIG_RTC_DRV_M48T86=m
CONFIG_RTC_DRV_V3020=m
# on-CPU RTC drivers
User avatar
kabniel
 
Posts: 228
Joined: 2007-07-10 21:03
Location: Sweden

Postby kabniel » 2007-11-05 17:03

I managed to work around my RTC/hwclock problem by adding the --directisa option to my /etc/init.d/hwclock* scripts.

I would still like to know why it happened, but i guess it is possible that the kernel supplied by Debian is patched to fix this problem, since i only encountered it with the kernels i compiled myself.
User avatar
kabniel
 
Posts: 228
Joined: 2007-07-10 21:03
Location: Sweden

Postby mzilikazi » 2007-11-05 18:29

kabniel wrote:I managed to work around my RTC/hwclock problem by adding the --directisa option to my /etc/init.d/hwclock* scripts.

I saw that solution but was hesitant to tell you to edit that script. Glad it's working but sorry to say I don't really know what the actual problem is.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby garrincha » 2007-11-12 19:17

Btw, if you get the annoying habit of bootsplash flashing quickly several times part way through the boot it's due to some package having the added six lines, similar to
Code: Select all
SCREEN_FONT_vc2=lat0-sun16

in the file /etc/console-tools/config. These are suppose to set the font on all the virtual terminals and they are not necessary. You can commented them out and it will stop the flashing.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."
User avatar
garrincha
 
Posts: 2340
Joined: 2006-06-02 16:38

Postby tdrusk » 2007-11-20 11:58

the latest kernel's link is down. I kind of want it soon if anyone can help.
tdrusk
 
Posts: 80
Joined: 2007-10-13 03:45

Postby mzilikazi » 2007-11-20 13:12

fuzzyhair wrote:the latest kernel's link is down. I kind of want it soon if anyone can help.

You are looking at kernel.org or did you want the pre-patched source? I did try the pre-ptached link and I see the sendspace has deleted the file. I can upload the source again but it might take a moment - gotta get out the door to work soon.
Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby mzilikazi » 2007-11-20 15:23

Debian Sid Laptops:
AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 / 1.5G
Intel(R) Pentium(R) Dual CPU T2390 @ 1.86GHz / 3G
User avatar
mzilikazi
Forum Ninja
 
Posts: 3321
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

Postby tdrusk » 2007-11-20 23:21

mzilikazi wrote:Source link has been updated.
http://www.hotlinkfiles.com/files/64610 ... .1-rt5.bz2

thanks
tdrusk
 
Posts: 80
Joined: 2007-10-13 03:45

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 0 guests

fashionable