天嵌 ARM开发社区

 找回密码
 注册
查看: 3292|回复: 1

请教 nfs启动文件系统不成功

[复制链接]
Berton 发表于 2009-10-29 15:05:17 | 显示全部楼层 |阅读模式
我按照开发板的教程通过NFS启动文件系统,发现没有找到eth0
配置的参数如下:
##### Parameter Menu #####
[1] Set NFS boot parameter
[2] Set Yaffs boot parameter
[3] Set parameter
[4] View the parameters
[d] Delete parameter
Save the parameters to Nand Flash
[q] Return main Menu
Enter your selection: 4
Name(enter to view all paramters):
bootcmd=nboot 0x32000000 kernel; bootm 0x32000000
bootdelay=0
baudrate=115200
ethaddr=0a:1b:2c:3d:4e:5f
netmask=255.255.255.0
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),48k(params),144k(eboot),1536k(logo),2m(kernel),-(root)
filesize=1c01e8
filesize+1=1c4000
fileaddr=30000000
ipaddr=192.168.10.6
serverip=192.168.10.210
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.10.210:/opt/EmbedSky/root_nfs ip=192.168.10.6:192.168.10.210:192.168.10.6:255.255.255.0:SKY2440.embedsky.net:eth0:off
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=bios
启动的信息如下:
Environment size: 603/49148 bytes

Console: switching to colour frame buffer device 40x30
fb0: s3c2410fb frame buffer device
TQ2440/SKY2440 LEDS, (c) 2008,2009 www.embedsky.net
EmbedSky-leds initialized
TQ2440/SKY2440 Beep, (c) 2008,2009 www.embedsky.net
EmbedSky-Beep initialized
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
eth0: dm9000 at c480e000,c4810004 IRQ 51 MAC: 00:00:00:00:00:00
Linux video capture interface: v2.00
usbcore: registered new interface driver gspca
drivers/media/video/gspcavl/gspca_core.c: gspca driver 01.00.20 registered
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "TQ2440_uboot"
0x001f0000-0x003f0000 : "TQ2440_kernel"
0x003f0000-0x03ff8000 : "TQ2440_yaffs2"
usbmon: debugfs is not available
Initial EmbedSky TWO USB HOST Driver!
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
s3c2410_udc: debugfs dir creation failed -19
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
mice: PS/2 mouse device common for all mice
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: starting watchdog timer
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq enabled
s3c2440-sdi s3c2410-sdi: unable to get DMA channel.
s3c2440-sdi s3c2410-sdi: powered down.
s3c2440-sdi s3c2410-sdi: initialisation done.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
s3c2440-sdi s3c2410-sdi: powered down.
UDA1341 audio driver initialized
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-12-28 12:02:51 UTC (1230465771)
IP-Config: Failed to open eth0
IP-Config: Device `eth0' not found.
Looking up port of RPC 100003/2 on 192.168.10.210

很疑惑,为什么会:
IP-Config: Failed to open eth0
IP-Config: Device `eth0' not found.
网线已经连接,并且如果采取yaffs启动,也完全OK,能用开发板mountPC.
试了很多次了。
亚瑟王 发表于 2009-11-12 16:10:01 | 显示全部楼层
修改内核的dm9000的驱动,添加上mac值,
如果是2.6.25.8的内核,大概在dm9000.c的大概614行添加如下内容:#if defined(CONFIG_ARCH_S3C2410)
        printk("Now use the default MAC address: 10:23:45:67:89:ab\n");
        mac_src = "EmbedSky";
        ndev->dev_addr[0] = 0x10;
        ndev->dev_addr[1] = 0x23;
        ndev->dev_addr[2] = 0x45;
        ndev->dev_addr[3] = 0x67;
        ndev->dev_addr[4] = 0x89;
        ndev->dev_addr[5] = 0xab;
#endif
如果是2.6.30.4的内核,在dm9000.c文件的大概1278行添加如下内容:
#if defined(CONFIG_ARCH_S3C2410)
        printk("Now use the default MAC address: 10:23:45:67:89:ab\n");
        mac_src = "EmbedSky";
        ndev->dev_addr[0] = 0x10;
        ndev->dev_addr[1] = 0x23;
        ndev->dev_addr[2] = 0x45;
        ndev->dev_addr[3] = 0x67;
        ndev->dev_addr[4] = 0x89;
        ndev->dev_addr[5] = 0xab;
#else,
老版本的2.6.25.8的内核是没有添加mac值的,mac值是在文件系统启动后手动配置的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-5-1 08:01 , Processed in 2.043821 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表