Level: 35
Erfahrungspunkte: 775.526
Nächstes Level: 824.290
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
su apt-get update apt-get install libc6-dev gcc binutils modutils kernel-package libncurses5-dev debianutils make bzip2 cd /.. cd /usr/src/ wget [url]www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2[/url] tar xfvj linux-2.6.18.tar.bz2 wget [url]www.tglx.de/projects/hrtimers/2.6.18/patch-2.6.18-hrt-dyntick2.patches.tar.bz2[/url] mv linux-2.6.18 linux-2.6.18-hrt-dyntick2 cd linux-2.6.18-hrt-dyntick2 bzcat /usr/src/patch-2.6.18-hrt-dyntick2.patches.tar.bz2 | patch -p1 cd /.. cd /usr/src/ ln -s linux-2.6.18-hrt-dyntick2 linux |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
----------------------------------------- ls /boot/ cp /boot/config-2.6.15 linux/.config cd linux ----------------------------------------- ODER cp /boot/config-`uname -r` linux/.config cd linux ----------------------------------------- |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
vi include/asm-i386/param.h param.h: #ifndef _ASMi386_PARAM_H #define _ASMi386_PARAM_H #ifdef __KERNEL__ # define HZ 1500 /* Internal kernel timer frequency */ # define USER_HZ 1500 /* .. some user interfaces are in "ticks" */ # define CLOCKS_PER_SEC (USER_HZ) /* like times() */ #endif #ifndef HZ #define HZ 100 #endif #define EXEC_PAGESIZE 4096 #ifndef NOGROUP #define NOGROUP (-1) #endif #define MAXHOSTNAMELEN 64 /* max length of hostname */ #endif |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
vi include/linux/jiffies.h jiffies.h: /* * The following defines establish the engineering parameters of the PLL * model. The HZ variable establishes the timer interrupt frequency, 100 Hz * for the SunOS kernel, 256 Hz for the Ultrix kernel and 1024 Hz for the * OSF/1 kernel. The SHIFT_HZ define expresses the same value as the * nearest power of two in order to avoid hardware multiply operations. */ #if HZ >= 12 && HZ < 24 # define SHIFT_HZ 4 #elif HZ >= 24 && HZ < 48 # define SHIFT_HZ 5 #elif HZ >= 48 && HZ < 96 # define SHIFT_HZ 6 #elif HZ >= 96 && HZ < 192 # define SHIFT_HZ 7 #elif HZ >= 192 && HZ < 384 # define SHIFT_HZ 8 #elif HZ >= 384 && HZ < 768 # define SHIFT_HZ 9 #elif HZ >= 768 && HZ < 1536 # define SHIFT_HZ 10 #elif HZ >= 1536 && HZ < 3072 # define SHIFT_HZ 11 #else # error You lose. #endif |
|
|
Quellcode |
1 |
make menuconfig |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
Device Drivers ---> Block devices ---> <*> RAM disk support (16) Default number of RAM disks (8192) Default RAM disk size (kbytes)[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support File systems ---> Miscellaneous filesystems ---> <*> Compressed ROM file system support (cramfs) Processor type and features ---> [ ] Tickless System (Dynamic Ticks) (NEW) [*] High Resolution Timer Support Preemption Model (Preemptible Kernel (Low-Latency Desktop)) [*] Preempt The Big Kernel Lock Timer frequency (1000 HZ) Block Layer ---> I0 Schedulers ---> <*> Anticipatory I/o scheduler Power management options (ACPI, APM) ---> [*]Power Management support ACPI (Advanced Configuration and Power Interface) Support ---> [*]ACPI Support General Setup ---> [*] Kernel .config support [*] Enable acess to .config through /proc/config.gz |
|
|
Quellcode |
1 2 3 4 5 |
make-kpkg clean make-kpkg --initrd --revision=Kernel.01 kernel_image ls /usr/src/ cd /.. cd /usr/src/ |
|
|
Quellcode |
1 |
dpkg -i linux-image-2.6.18_Kernel.01_i386.deb |
|
|
Quellcode |
1 2 3 |
ls /boot/ su dpkg --purge --force-remove-essential linux-image-2.6.18 |
Level: 35
Erfahrungspunkte: 775.526
Nächstes Level: 824.290
User
Level: 1
Erfahrungspunkte: 0
Nächstes Level: 10
Level: 35
Erfahrungspunkte: 775.526
Nächstes Level: 824.290
Zitat
Wer versucht hat, den aktuellen 2.6.33 Kernel von Kernel.org als .deb File zu bauen, hat möglicherweise unter Debian und Ubuntu folgende Fehlermeldung erhalten:
This is kernel package version 12.031.
| echo “The UTS Release version in include/linux/version.h”; echo ” \”\” “; echo “does not match current version:”; echo ” \”2.6.33-trinec\” “; echo “Please correct this.”; exit 2
| The UTS Release version in include/linux/version.h
Dies liegt daran, dass das kernel_package in /usr/share/kernel-package/ruleset/misc/version_vars.mk nach UTS_RELEASE sucht, jedoch die UTS_RELEASE Definition in include/linux/utsrelease.h nicht enthalten ist. Um diesen Fehler zu umgehen gibt es anbei ein entsprechendes Patchfile von Jean-Luc
Forensoftware: Burning Board® Lite, entwickelt von WoltLab® GmbH