-
Senior Member
registered user
Building custom kernel under KNOPPIX and package it ?
Hi,
I need some help for expert who has built custom kernel.
I have downloaded the kernel source and tried to build a custom kernel(under KNOPPIX). Follow the instruction from debian, I go the 'make-kpkg' route which are supposed to compile everything and build a debian package.
However, when I tried to dpkg -i this kernel package on a new debootstraped system(woody/stable) which I chrooted, the last step of the installation pumps out lots of 'depmod' unresolved symbol errors, on every kernel module installed.
Could this be because of the shared library in the woody tree is different from the KNOPPIX environment ? Or can I ignore them ?
thanks in advance.
-
Senior Member
registered user
Answer my own question, it is the share libary(may be those modutils too) that is the problem.
This linux share library scheme needs some work up or at least some documentation, some where.
KNOPPIX use a rather new setup of libc6(2.3.1). When I built the kernel under this environment, the resulting kernel and/or modules need these libraries on the target machine(haven't figured out why as what the host library shouldn't affect target). Woody has the older 2.2.5. So in order for a Woody system to be able to use any such kernel built, the following command is needed :
apt-get -t unstable install modutils
The modutils would pull it the latest libc6 package as well.
Alternatively, one must build these stuff on a linux system using the older libc6(2.2.5), woody for maximum compatibility with debian woody.
May be there is a better option which is the equivalent of cross compiling that is to tell the make-kpkg(or the kernel building process) to use a libc6 2.2.5 environment, like cross compiling on a i386 system to say PPC. Does anyone know how this can be done ?
Yet another alternative is to change the make-kpkg such that it can pack the information of pulling in the necessary libc6 packages in the resulting .deb. Does anyone know how debian handle these versioning things ?
-
You'll want to watch out for /etc/lilo.conf as well. You should make a new target for the origional knoppix installed kernel, as it uses an ramdisk (initrd=).
You'll want to manage /vmlinuz and /vmlinuz.old as 'optional' targets for lilo so it won't throw a fit.
When making your kernel, make sure that you don't use initrd (unless you have a reason to), and compile ext2 + ext3 as INTERNAL options, and not modules.
And keep using make-kpkg, after these tips you'll be on your way. The default knoppix kernel config is usualy in /usr/src/ ... poke around there.
Similar Threads
-
By kawazu in forum Customising & Remastering
Replies: 3
Last Post: 09-16-2004, 09:02 AM
-
By jrp in forum Customising & Remastering
Replies: 0
Last Post: 09-12-2004, 12:13 PM
-
By andrewtayloruk in forum Customising & Remastering
Replies: 9
Last Post: 01-29-2004, 07:05 PM
-
By garyng in forum Customising & Remastering
Replies: 1
Last Post: 04-11-2003, 03:27 PM
-
By jtally in forum Customising & Remastering
Replies: 1
Last Post: 03-28-2003, 05:15 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45 picture](/store/img/qfQAAOSw9XRklkNR/s-l225//DELL-PowerEdge-R630-8SFF-Server-2x-E5-2680v4-2-4GH.jpg)
DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45
$394.00
![Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture](/store/img/CaAAAOSwEjBmj~ML/s-l225//Dell-PowerEdge-R630-Server-2x-E5-2680-V4-28-Cores-.jpg)
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$256.99
![Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture](/store/img/ZD0AAOSwm41mOZYw/s-l225//Dell-PowerEdge-R630-Server-2x-E5-2640v3-2-60Ghz-16.jpg)
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
![Dell Poweredge R730xd 3.5 2x E5-2666 v3 2.9ghz 128gb H730 14x Trays 2x 1100w picture](/store/img/K~0AAOSwWQVkFJ7-/s-l225//Dell-Poweredge-R730xd-3-5-2x-E5-2666-v3-2-9ghz-128.jpg)
Dell Poweredge R730xd 3.5 2x E5-2666 v3 2.9ghz 128gb H730 14x Trays 2x 1100w
$519.99
![Dell PowerEdge R420 2 2.5 6C,16GB,8TB,RAID5,IDRAC7 ENT,2PSU picture](/store/img/eRUAAOSwD79mRLuR/s-l225//Dell-PowerEdge-R420-2-2-5-6C-16GB-8TB-RAID5-IDRAC7.jpg)
Dell PowerEdge R420 2 2.5 6C,16GB,8TB,RAID5,IDRAC7 ENT,2PSU
$150.00
![DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU picture](/store/img/mkkAAOSwE5ZmT1Cg/s-l225//DELL-POWEREDGE-R630-8-x-2-5-2X-E5-2680V4-32GB-RAM-.jpg)
DELL POWEREDGE R630 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$179.95
![Dell PowerEdge T430 Server w/ Intel Xeon E5-2650 V4 & 1100W PSU (2X) - NO RAM picture](/store/img/1Q8AAOSwgRNmkVI5/s-l225//Dell-PowerEdge-T430-Server-w-Intel-Xeon-E5-2650-V4.jpg)
Dell PowerEdge T430 Server w/ Intel Xeon E5-2650 V4 & 1100W PSU (2X) - NO RAM
$314.99
![DELL PowerEdge R730 Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45 picture](/store/img/O2MAAOSwRtNkh97Y/s-l225//DELL-PowerEdge-R730-Server-2x-E5-2680v3-2-5GHz-24-.jpg)
DELL PowerEdge R730 Server 2x E5-2680v3 2.5GHz =24 Cores 32GB H730 4xRJ45
$247.00
![Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture](/store/img/7XkAAOSwnhFkFNvU/s-l225//Dell-Poweredge-R630-2x-Xeon-E5-2680-v4-2-4ghz-28-C.jpg)
Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB
$334.99
![DELL PowerEdge R730 16SFF Server 2x E5-2680v4 2.4GHz =28 Cores 64GB H730 4xRJ45 picture](/store/img/HgEAAOSwQh5k1YNe/s-l225//DELL-PowerEdge-R730-16SFF-Server-2x-E5-2680v4-2-4G.jpg)
DELL PowerEdge R730 16SFF Server 2x E5-2680v4 2.4GHz =28 Cores 64GB H730 4xRJ45
$317.00