network device driver
글쓴이: yhlvyp / 작성시간: 월, 2005/05/16 - 1:50오전
linux network device driver를 공부하면서 구현하고있습니다.
페도라 core3를 사용하고 있으며 커널 버젼은 2.6.9-1.667입니다.
다름이 아니라 network device driver모듈을 작성후
적용시키려면 어떻게 해야하나요?
일반적인 모듈처럼 단순히 insmod만 해서는 안될것 같아..
lib/modules/2.6.9-1.667/kernel/drivers/net/에 있는 원래의 리눅스 모듈 파일을 다른이름으로 백업후
제 모듈파일을(.ko)같은이름으로 복사했습니다.
그리고선 이미 올라와있는 driver(8139too)를 rmmod로 제거후
insmod로 제 모듈을 올린고 service network restart했습니다.
그러니까 loopback 인터페이스까진 잡는데 eth0활성화 단계에서
"8139too 장치 eth0가 없는것 같습니다. 초기화를 연기합니다"
하면서 실패하더군요..
제 모듈이 잘못된것인지, 아님 network device driver를 적용하는
방법이 잘못된것인지.. 답변 부탁드립니다.
질문을 요약하자면,
리눅스에서 자신의 network device driver를 어떻게 적용해야되는가...
// init.d에 있는 network 스크립트는 device에 독립적인 스크립트인가요?
// 소스를 봤는데 독립적인듯.. 싶지만...
// device driver입문하면서 정말 궁금한게 많습니다.
// 아직도 갈길이 멀군요ㅠㅠ
Forums:
자신이 만든 드라이버라도 차이는 없습니다. ifconfig로 해당 int
자신이 만든 드라이버라도 차이는 없습니다. ifconfig로 해당 interface가 있는지 조사하고, ifconfig로 직접 IP 주소를 할당하거나 ifup 명령을 사용합니다.
위분 말씀처럼 ifconfig -a 로 eth0 가 인식이 되는지 살펴보
위분 말씀처럼 ifconfig -a 로 eth0 가 인식이 되는지 살펴보시구여...
전 보드에서 듀얼랜을 지원하는데 eth1 로 연결되어 있습니다.
첨부터 무작정 eth0 가지구 씨름만 했답니다. ;;;
참고로 페도라코어3이구 랜카드 칩셋은 마벨입니다.
댓글 달기