LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-27-2005, 10:10 AM   #1
samu3l
LQ Newbie
 
Registered: May 2005
Posts: 8
Blog Entries: 1

Rep: Reputation: 0
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 :'(
 
Old 09-27-2005, 10:19 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 09-30-2005, 12:03 PM   #3
Whitesocks
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
Strange that the kernel cant compile the drivers though. You shouldnt be getting any compile errors no matter what options you enable...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BLFS packages dsider Linux From Scratch 2 10-15-2005 02:18 PM
Continue BLFS 6.1 satimis Linux From Scratch 4 08-17-2005 03:18 AM
On to BLFS itsjustme Linux From Scratch 7 09-01-2003 04:20 AM
BLFS question crippler909 Linux From Scratch 1 06-08-2003 11:52 AM
openssh on BLFS crippler909 Linux From Scratch 1 02-11-2003 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration