-
3.7 2.4.27 kernel regeneration fails -- what am I missing
Folks;
I am trying to learn about generating a custom kernel. But starting
slow, I tried to regenerate the kernel that came with Knoppix
3.7. without sucess. Long - but more data is better than not enuf.
uname -a = "Linux lt47 2.4.27 #2 SMP Mo Aug 9 00:39:37 CEST 2004 i686 GNU/Linux"
I fetched the best looking package with apt-get
lt47:apt-get source kernel-source-2.4.27
giving me:
kernel-source-2.4.27_2.4.27.orig.tar.gz
kernel-source-2.4.27_2.4.27-6.diff
I opened the tar.gz in /usr/src.
I realigned the 'linux->' link to point to the new source directory
"linux -> kernel-source-2.4.27-2.4.27/"
I did the patch -p1 of the .diff from within the linux directory. Which
did not report any errors. All looked good.
Added Knoppix specific patch.
"cat knoppix-kernel.patch | patch -p0"
I have not been able to connect to www.xfs.org to obtain that patch
I copied the '.config' from the old /usr/src/linux-2.4.27 to my new "linux->" directory
Did a 'make oldconfig" to get the setting. New .config matched old .config
Did "make dep" -- OK
Then "make bzImage" resulting in this set of final lines:
Code:
objcopy -O binary -R .note -R .comment -S compressed/bvmlinux compressed/bvmlinux.out
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (22, 1)
Boot sector 512 bytes.
Setup is 4869 bytes.
System is 989 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/kernel-source-2.4.27-2.4.27/arch/i386/boot'
root@lt47:/usr/src/linux#
Next "make modules" and this fails
Code:
...
gcc-2.95 -D__KERNEL__ -I/usr/src/kernel-source-2.4.27-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=dgrs -c -o dgrs.o dgrs.c
dgrs.c:137: dgrs_firmware.c: No such file or directory
dgrs.c: In function `dgrs_download':
dgrs.c:1040: `dgrs_ncode' undeclared (first use in this function)
dgrs.c:1040: (Each undeclared identifier is reported only once
dgrs.c:1040: for each function it appears in.)
dgrs.c:1040: `dgrs_code' undeclared (first use in this function)
dgrs.c: In function `dgrs_init_module':
dgrs.c:1501: `dgrs_firmnum' undeclared (first use in this function)
dgrs.c:1501: `dgrs_firmdate' undeclared (first use in this function)
dgrs.c:1501: `dgrs_firmver' undeclared (first use in this function)
make[2]: *** [dgrs.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.27-2.4.27/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.27-2.4.27/drivers'
make: *** [_mod_drivers] Error 2
root@lt47:/usr/src/linux#
The code that causes the failure is:
Code:
/*
* Firmware. Compiled separately for local compilation,
* but #included for Linux distribution.
*/
#ifndef NOFW
#include "dgrs_firmware.c"
#else
extern int dgrs_firmnum;
extern char dgrs_firmver[];
extern char dgrs_firmdate[];
extern uchar dgrs_code[];
extern int dgrs_ncode;
#endif
But unfortunately, NOFW appears nowhere else in this source tree.
Code:
root@lt47:/usr/src/linux# grep -r NOFW *
drivers/net/dgrs.c:#ifndef NOFW
root@lt47:/usr/src/linux#
Checking my current system, there is no such module:
Code:
root@lt47:/lib/modules# ls
2.4.27 2.6.9 airo-mpi extra
root@lt47:/lib/modules# find . -name "dsg*" -print
root@lt47:/lib/modules#
What now? what am I missing? Did this config file really make my
kernel? Is there another package needed?
Similar Threads
-
By riscbroker in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-25-2005, 08:49 PM
-
By toltech in forum Customising & Remastering
Replies: 0
Last Post: 03-16-2004, 09:43 AM
-
By Hayabusa in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 11-19-2003, 11:10 PM
-
By katsushiro in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 11-17-2003, 05:29 AM
-
By srowe in forum General Support
Replies: 0
Last Post: 05-28-2003, 10:43 AM
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

Intel Core i7-3770K 3.5 GHz Processor
$39.00

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR
$23.00

(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT)
$700.00

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99

AMD Ryzen 5 5500 Processor ( read Description)
$59.00

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor
$67.99

Intel Core i7-4770 3.40GHz Quad Core SR149 LGA 1150 CPU Processor tested
$35.00

Intel Core i7-10700 8-Core 16-Thread 2.9GHz Desktop CPU LGA1200 SRH6Y Z490 Z590
$129.00