ลง CentOS ติดตรง NIC

อยากทำ FTP HTTP Server ไว้เก็บ Data สำหรับ Access จากข้างนอก เอา CentOS 5.2 64-bit มาลงกับ Intel BOXD945GCLF + HDD 160GB + RAM 2G

ตอนลง ลงไม่ผ่าน เลย disable LAN ลงผ่านตลอด บูตขึ้นใช้งานได้ทุกอย่างยกเว้น Internet เพราะ disable ไว้อยู่

เลย reboot แล้ว enable คราวนี้บูตไม่ขึ้น ติด kernel panic ตลอด พอ disable ก็บูตเข้า CentOS เล่นได้ปกติ (แต่ก็ขาด Internet)

ไปเอา Bios ตัวใหม่จาก
http://downloadcenter.intel.com/filter_results.aspx?strTypes=all&ProductID=2916&OSFullName=Linux*&lang=eng&strOSs=39&submit=Go!

มา update Bios อัพเดทผ่าน แต่ก็ยังเข้า CentOS ไม่ได้ ถ้า enable LAN

เลยเอา Linux* LAN Driver for Intel® Desktop Boards (ตัวข้างล่าง) มาลงเพิ่ม เอาใส่ Flash Drive แต่ลงไม่เป็น

อ่าน readme แล้วไม่ค่อยเข้าใจ ใครพอจะทราบวิธีลง driver ให้ใช้ LAN port ได้ รบกวนด้วยครับ

ปล. ลอง Google “D945GCLF” + error keyword มาเกือบ 10 ชม แล้ว ยังหาวิธีแก้ไม่ได้เลย ขอความช่วยเหลือหน่อยครับ

ซื้อ NIC อันละ 200-300 บ. มาใส่เพิ่มก็ได้ครับ เสียบปุ๊บใช้งานได้เลย ไม่ต้องติดตั้ง driver ให้ยุ่งยาก

คิดอยู่ครับ ว่าถ้ายังไงก็แก้ไม่ได้ ว่าจะเอา D-Link NIC มาเสียบแทน

…เสียดาย อยากให้มันเวิร์ค

ยกมาให้ที่ office ผม เดี๋ยวลงให้ฟรีครับ :smiley:
รามอินทรา 109
มีประสบการณ์กับบอร์ดตัวนี้แล้วครับ มีปัญหากับ Centos 5.2 ต้องใช้วิธีลง driver nic อย่างเดียวครับ

ติดขั้นตอนไหนครับ สามารถ mount flash drive ได้หรือยังครับ

ส่วนขั้นตอนลง driver มีใน ไฟล์ readme ครับทำตามแล้วสามารถใช้งานได้เลย

ทำ text mode ไม่ค่อยเป็น เลยใช้ GUI ลงทั้งแบบ Desktop แล้วก็ Server GUI ครับ

เปิด flash drive ได้ครับ เสียบแล้ว มัน auto detect เลย ลากมาใส่ desktop แล้ว แต่ลงต่อไม่เป็น อ่าน readme ไม่ค่อยเข้าใจ

เดี๋ยวจะลองมั่วๆ ดูครับ แค่รู้ว่าทำได้ มีกำลังใจขึ้นอีกเยอะ

เดี๋ยวลองอีกที แล้วจะมาอัพเดทให้ฟังครับ

เดี๋ยวเอา readme มาให้ช่วยดูหน่อยนะครับ

Folder: r8101-1.006.00

[quote][size=10pt]<Linux device driver for Realtek Ethernet controllers>

This is the Linux device driver released for RealTek RTL8101E and RTL8102E(L), the Fast Ethernet controller with PCI-Express interface.

<Requirements>

- kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
- For linux kernel 2.4.x, this driver supports linux kernel 2.4.20 and latter.
- compiler/binutils for kernel compilation

<Quick install with proper kernel settings>
Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
# lsmod | grep r8169

If it is installed, please remove it.
	# rmmod r8169
note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remmove it again or reboot your computer.

Unpack the tarball :
	# tar vjxf r8101-8.aaa.bb.tar.bz2

Change to the directory:
	# cd r8101-8.aaa.bb

If you are running the target kernel, then you should be able to do :

	# make clean modules	(as root or with sudo)
	# make install
	# depmod -a
	# insmod ./src/r8101.ko	(or r8101.o for kernel 2.4.x)

You can check whether the driver is loaded by using following commands.

	# lsmod | grep r8101
	# ifconfig -a

If there is a device name, ethX, shown on the monitor, the linux 
driver is loaded. Then, you can use the following command to activate 
the ethX.

	# ifconfig ethX

	,where X=0,1,2,...

ผิดๆ lsmod ไม่ขึ้นอะไร แต่ error ตรง make install

error ว่าอะไรครับ

เดี๋ยวเอา flash drive ไปก็อบมาก่อน เครื่องนั้นไม่มีเน็ต รอแป๊บนะครับ

ขึ้นแบบนี้ครับ

[quote][size=10pt]

[root@localhost Desktop]# cd r8101-1.006.00
[root@localhost r8101-1.006.00]# make clean modules
make -C src/ clean
make[1]: Entering directory /root/Desktop/r8101-1.006.00/src' rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset make[1]: Leaving directory/root/Desktop/r8101-1.006.00/src’
make -C src/ modules
make[1]: Entering directory `/root/Desktop/r8101-1.006.00/src’
make -C /lib/modules/2.6.18-92.el5/build SUBDIRS=/root/Desktop/r8101-1.006.00/src modules
make: Entering an unknown directory
make: *** /lib/modules/2.6.18-92.el5/build: No such file or directory.

yum install kernel kernel-devel

reboot เครื่องทีนึง
แล้ว compile ใหม่คัรบ

แนะนำเป็น Centos แผ่น DVD แล้วลงแบบที่ คุณ icez บอกครับ แล้วมันจะคอมพายได้ครับ

Download Lan Driver ของ ​LAN CARD มาลงจะมีวิธีติดตั้งในไฟล์ readme ครับ
ง่ายๆไม่มีอะไรหรอก แค่ search หา lan driver ให้ตรงกับ Llinux ก็จบแล้วครับ

ลอง yum install kernel kernel-devel แล้วขึ้น error แบบนี้ครับ

[size=10pt]

[root@localhost ~]# yum install kernel kernel-devel
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was
[Errno 4] IOError: <urlopen error (-3, ‘Temporary failure in name resolution’)>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

[/size]

ไม่ค่อยมีความรู้ แต่อยากค่อยๆ ทำดู รบกวนคุณ icez หรือพี่ๆ ใน THT ช่วยดูให้หน่อยนะครับ

ปล. ที่โหลดมาเป็น CentOS 5.2 แผ่น DVD ครับ

ปล2. ลองโหลดมาแล้ว ตามด้านบนครับ แต่ติดจริงๆ ครับ พยายามทำตาม readme แล้ว แต่ขึ้น error ตลอด จะพยายามลองหลายๆ วิธีดูครับ

ลง os ใหม่เลยครับ ตอนลงเลือกพวก kernel dev dev tool อะไรไปให้หมดครับ แล้วจะคอมพาย Driver ผ่านครับ

ลงใหม่เลยครับ
ตอนลง เลือก Development Tools กับ Devolopment Library ด้วยครับ (ประมาณนี้นะครับ ไม่แน่ใจว่าชื่ออื่นหรือเปล่า)

yay ตอนนี้ใช้เน็ตได้แล้วครับ

ระวังเรื่องนึงคืออย่าไป yum update แล้วเจอ update kernel นะครับ ถ้างั้น driver มันจะหายเพราะมันไป boot kernel ใหม่ต้อง ไป compile driver ใหม่อีก

ระวังเรื่องหนึ่ง…อยู่ๆไป reset switch reboot เครื่อง… driver lan จะหลุดต้องวิ่งเข้ามา add driver ใหม่ที่หน้าเครื่องครับ

หา!!! :blink: :blink: :blink:

ถ้าจะทำให้ driver ไม่หลุด ต้องลงใหม่รึเปล่าครับ