blfs , about the network
sorry for my poor english
:( I just finished my lfs and start to bulid with blfs I want to set my network first so i just install therp-pppoe (because i use ADSL) but the problem is that my kernel can't detect my "network-card" my motherboard is "ASUS P4P800", it says the LAN : 3COM Gigabit Lan PCI Controller supporting 10/100/1000 BASE-T Ethernet however , i choose all 3com card is useless :( (no matter what i choose to "build-in" or "module" the step i install is 0. check /lib/modules rename the files 1. unpack the linux-2.6.11.12.tar.bz2 2. go into the dictory , and--> mak mrproper 3. make menuconfig to choose all 3com card 4. make 5. make modules_install 678steps , cp those 3 files to /boot ,as the lfs saying above all , any steps is wrong ?! ) so I search some information on google, then i go asus web site to download the driver that's useless too :( the message says : ================================= gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /us r/src/linux/include -D__SMP__ -c -o skge.o skge.c In file included from /usr/src/linux/include/asm/processor.h:18, from /usr/src/linux/include/asm/thread_info.h:17, from /usr/src/linux/include/linux/thread_info.h:21, from /usr/src/linux/include/linux/spinlock.h:12, from /usr/src/linux/include/linux/capability.h:45, from /usr/src/linux/include/linux/sched.h:7, from /usr/src/linux/include/linux/module.h:10, from skge.c:344: /usr/src/linux/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned poin ter will break strict-aliasing rules /usr/src/linux/include/asm/system.h:193: warning: dereferencing type-punned poin ter will break strict-aliasing rules In file included from /usr/src/linux/include/asm/smp.h:18, from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from skge.c:344: /usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directo ry In file included from /usr/src/linux/include/asm/smp.h:18, from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from skge.c:344: /usr/src/linux/include/asm/mpspec.h: At top level: /usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (n ot in a function) /usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) In file included from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from skge.c:344: /usr/src/linux/include/asm/smp.h:73:26: mach_apicdef.h: No such file or director y In file included from /usr/src/linux/include/linux/smp.h:19, from /usr/src/linux/include/linux/sched.h:25, from /usr/src/linux/include/linux/module.h:10, from skge.c:344: /usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id': /usr/src/linux/include/asm/smp.h:77: warning: implicit declaration of function ` GET_APIC_ID' In file included from /usr/src/linux/include/linux/irq.h:21, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:11, from h/skdrv1st.h:161, from skge.c:347: /usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:11, from h/skdrv1st.h:161, from skge.c:347: /usr/src/linux/include/linux/irq.h: At top level: /usr/src/linux/include/linux/irq.h:72: error: `NR_IRQS' undeclared here (not in a function) In file included from /usr/src/linux/include/linux/irq.h:74, from /usr/src/linux/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:11, from h/skdrv1st.h:161, from skge.c:347: /usr/src/linux/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) skge.c: In function `skge_probe': skge.c:504: warning: implicit declaration of function `pci_present' skge.c:507: warning: implicit declaration of function `pci_find_class' skge.c:507: warning: assignment makes pointer from integer without a cast skge.c:525: warning: integer constant is too large for "long" type skge.c:530: warning: implicit declaration of function `init_etherdev' skge.c:530: warning: assignment makes pointer from integer without a cast skge.c:679: warning: assignment makes pointer from integer without a cast skge.c: In function `SkGeBoardInit': skge.c:1085: warning: passing arg 2 of `request_irq' from incompatible pointer t ype skge.c:1088: warning: passing arg 2 of `request_irq' from incompatible pointer t ype skge.c: In function `SkGeOpen': skge.c:1793: error: `MOD_INC_USE_COUNT' undeclared (first use in this function) skge.c:1793: error: (Each undeclared identifier is reported only once skge.c:1793: error: for each function it appears in.) skge.c: In function `SkGeClose': skge.c:1893: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function) skge.c: In function `ReceiveIrq': skge.c:2645: warning: implicit declaration of function `pci_dma_sync_single' make: *** [skge.o] Error 1 ==================================================== does any one can help me ?! or do I have to present the Makefile of the asus 3com driver ? help me, please :'( |
Install pci-utils http://www.linuxfromscratch.org/blfs.../pciutils.html then as root run update-pciids then (again, as root) run lspci
That will tell you what chipset the kernel sees. If you can't figure out what kernel option you need to enable, post the output of lspci here |
Strange that the kernel cant compile the drivers though. You shouldnt be getting any compile errors no matter what options you enable...
|
All times are GMT -5. The time now is 04:10 PM. |