Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Realtime kernel build quickie + bootsplash (or not)

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
jongi
Posts: 472
Joined: 2007-04-15 02:41

#16 Post by jongi »

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?

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#17 Post by mzilikazi »

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

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

#18 Post by Scoop »

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

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#19 Post by mzilikazi »

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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#20 Post by mzilikazi »

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
kabniel
Posts: 224
Joined: 2007-07-10 21:03
Location: Sweden

#21 Post by kabniel »

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
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#22 Post by mzilikazi »

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
kabniel
Posts: 224
Joined: 2007-07-10 21:03
Location: Sweden

#23 Post by kabniel »

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: 224
Joined: 2007-07-10 21:03
Location: Sweden

#24 Post by kabniel »

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
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#25 Post by mzilikazi »

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
garrincha
Posts: 2335
Joined: 2006-06-02 16:38

#26 Post by garrincha »

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."

tdrusk
Posts: 79
Joined: 2007-10-13 03:45

#27 Post by tdrusk »

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

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#28 Post by mzilikazi »

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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#29 Post by mzilikazi »

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

tdrusk
Posts: 79
Joined: 2007-10-13 03:45

#30 Post by tdrusk »

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

User avatar
b9anders
Posts: 88
Joined: 2007-06-19 18:01
Contact:

#31 Post by b9anders »

what are the advantages of having a RT kernel for the average user?
Linux user as of Jan 20007. Still getting the hang of it.

User avatar
mzilikazi
Forum Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#32 Post by mzilikazi »

b9anders wrote:what are the advantages of having a RT kernel for the average user?
Probably none really.
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 Account
Forum Account
Posts: 3282
Joined: 2004-09-16 02:14
Location: Colorado Springs, CO

#33 Post by mzilikazi »

Updated for kernel verison 2.6.24-rt1. Unfortunately Debian unionfs-source & aufs-source still refuse to build against an rt kernel. :(

Fortunately bootsplash has yet again been updated to 2.6.24. Let's hope bootsplash does not die.
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

bookie
Posts: 370
Joined: 2007-12-07 11:49

update

#34 Post by bookie »

Hi mzilikazi, just reading the How to tips and tricks you posted!!

You give a link to my thread about the disappearance of bootsplash "doesn't die"

Fortunately bootsplash has yet again been updated to 2.6.24. Let's hope bootsplash doesn't die
I have only just updated that this morning and was pleasantly surprised to hear of another source of the bootsplash

I am still trying to find the post about how the progress bar for Debian was solved?

Interesting thread :lol:


bookie

User avatar
garrincha
Posts: 2335
Joined: 2006-06-02 16:38

Re: update

#35 Post by garrincha »

bookie wrote: I am still trying to find the post about how the progress bar for Debian was solved?
I have read somewhere that you could install the sysv-rc-bootsplash package to solve the debian bootsplash progress bar. I haven't tried though to see if it actually work. Remember though that in my standard installation there is already a sysv-rc package, so not sure if it'll conflict with sysv-rc-bootsplash.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."

Post Reply