← Back to team overview

sslug-teknik team mailing list archive

Re: kompilere kerne magen til en anden

 


1 kopier config filen fra knoppix, den ligger under /boot

[SNIP]

tak for opskriften, kernen bootede fint. Men systemet opfører sig alligevel ikke som knoppix'en mht. netværk.

Jeg har været ad mange omveje efterhånden for at løse dette

1) Knoppix bruger e100 driveren. Jeg har prøvet at installere dette modul, både under 2.4.18 og 2.6.7, under 2.6.7 får jeg nogle fejl under kompileringen, men kan godt loade modulet. Og ifconfig eth0 siger ikke noget om probs, udover linien for TX packets (som jeg ikke aner en sk. om )

eth0   Link encap:Ethernet  HWaddr 00:02:B3:E7:0A:4E
       inet addr:192.168.1.22  Bcast:192.168.1.255  Mask:255.255.255.0
       inet6 addr: fe80::202:b3ff:fee7:a4e/64 Scope:Link
       UP BROADCAST MULTICAST  MTU:1500  Metric:1
       RX packets:0 errors:0 dropped:0 overruns:0 frame:0
       TX packets:46 errors:46 dropped:0 overruns:0 carrier:46
       collisions:0 txqueuelen:1000
       RX bytes:0 (0.0 b)  TX bytes:2268 (2.2 KiB)

2) Måske er problemet et helt andet sted, for kerne 2.2.20-idepci fungerer fint inklusive netværk

-  Så hvad gør knoppix anderledes ?

--
Kristian (debian stable)


Herunder outputtet fra min kompilering af e100

Makefile:132: ***
Makefile:133: *** Warning: kernel source version (2.6.7)
Makefile:134: *** does not match running kernel  (2.2.20-idepci)
Makefile:135: *** Continuing with build,
Makefile:136: *** resulting driver may not be what you want
Makefile:137: ***
Makefile:161: ***
Makefile:163: *** Warning: kernel source configuration (SMP)
Makefile:164: *** does not match running kernel (UP)
Makefile:169: *** Continuing with build,
Makefile:170: *** resulting driver may not be what you want
Makefile:171: ***
gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -D__NO_VERSION__ -O2 -pipe -I/usr/src/linux/include -I. -D__SMP__ -DIANS -DIANS_BASE_ADAPTER_TEAMING -DIANS_BASE_VLAN_TAGGING -DIANS_BASE_VLAN_ID -c -o e100_main.o e100_main.c
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from e100.h:42,
                 from e100_main.c:78:
/usr/src/linux/include/asm/mpspec.h:6: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from e100.h:42,
                 from e100_main.c:78:
/usr/src/linux/include/asm/smp.h:71: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/irq.h:20,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:14,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/netdevice.h:151,
                 from e100.h:51,
                 from e100_main.c:78:
/usr/src/linux/include/asm/irq.h:16: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from e100.h:42,
                 from e100_main.c:78:
/usr/src/linux/include/asm/mpspec.h:8: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:9: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:10: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:12: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:19: `MAX_APICS' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:20: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:20: conflicting types for `mp_bus_id_to_type' /usr/src/linux/include/asm/mpspec.h:8: previous declaration of `mp_bus_id_to_type' /usr/src/linux/include/asm/mpspec.h:22: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:24: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:24: conflicting types for `mp_bus_id_to_pci_bus' /usr/src/linux/include/asm/mpspec.h:12: previous declaration of `mp_bus_id_to_pci_bus' /usr/src/linux/include/asm/mpspec.h:43: `MAX_APICS' undeclared here (not in a function) /usr/src/linux/include/asm/mpspec.h:43: size of array `mask' has non-integer type
In file included from /usr/src/linux/include/asm/smp.h:20,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from e100.h:42,
                 from e100_main.c:78:
/usr/src/linux/include/asm/io_apic.h:160: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from e100.h:42,
                 from e100_main.c:78:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:75: warning: implicit declaration of function `GET_APIC_ID'
In file included from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:14,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/netdevice.h:151,
                 from e100.h:51,
                 from e100_main.c:78:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:72,
                 from /usr/src/linux/include/asm/hardirq.h:6,
                 from /usr/src/linux/include/linux/interrupt.h:11,
                 from /usr/src/linux/include/asm/highmem.h:24,
                 from /usr/src/linux/include/linux/highmem.h:14,
                 from /usr/src/linux/include/linux/skbuff.h:27,
                 from /usr/src/linux/include/linux/netdevice.h:151,
                 from e100.h:51,
                 from e100_main.c:78:
/usr/src/linux/include/asm/hw_irq.h:28: `NR_IRQ_VECTORS' undeclared here (not in a function) /usr/src/linux/include/asm/hw_irq.h:32: `NR_IRQS' undeclared here (not in a function)
e100_main.c: In function `e100_found1':
e100_main.c:722: warning: implicit declaration of function `init_etherdev'
e100_main.c:722: warning: assignment makes pointer from integer without a cast
e100_main.c:765: structure has no member named `driver_data'
e100_main.c: In function `e100_remove1':
e100_main.c:1054: structure has no member named `driver_data'
e100_main.c: In function `e100_open':
e100_main.c:1338: warning: passing arg 2 of `request_irq' from incompatible pointer type
make: *** [e100_main.o] Error 1


Follow ups

References