最近在学习嵌入式系统的移植,用的飞凌的6410的开发板。
最先依照飞凌的资料完成了一遍,可以通过nfs挂载系统。
接着自己着手移植3.6.6的系统,以及busybox,但是在nfs挂载的时候出现了问题。
具体情况如下:
服务端系统是Fedora18,关闭了firewalld,启动rpcbind和nfs-server(飞凌的2.6.28kernel可以挂载飞凌的系统文件)。
NFS-server:
-
[ZhShiH@localhost ~]$ cat /etc/exports
-
/zhangsh *(rw,sync,no_root_squash)
-
[ZhShiH@localhost ~]$
Uboot参数:
-
SMDK6410 # printenv
-
bootdelay=3
-
baudrate=115200
-
ethaddr=00:40:5c:26:0a:5b
-
bootm=
-
filesize=207bb0
-
fileaddr=C0008000
-
gatewayip=192.168.1.1
-
netmask=255.255.255.0
-
serverip=192.168.1.108
-
bootcmd=nand read 0xc0008000 0x100000 0x300000;bootm 0xc0008000
-
ipaddr=192.168.1.109
-
bootargs=root=/dev/nfs nfsroot=192.168.1.108:/zhangsh/rootfs,nolock ip=192.168.1.109:192.168.1.108:192.168.1.1:255.255.255.0::eth0:off console=ttySAC0,115200 init=/linuxrc
-
stdin=serial
-
stdout=serial
-
stderr=serial
-
-
Environment size: 460/16380 bytes
-
SMDK6410 #
内核配置:
-
[ZhShiH@localhost linux-3.6.6]$ cat .config| grep PNP
-
CONFIG_IP_PNP=y
-
CONFIG_IP_PNP_DHCP=y
-
CONFIG_IP_PNP_BOOTP=y
-
CONFIG_IP_PNP_RARP=y
-
-
[ZhShiH@localhost linux-3.6.6]$ cat .config| grep NFS
-
CONFIG_NFS_FS=y
-
CONFIG_NFS_V2=y
-
CONFIG_NFS_V3=y
-
CONFIG_NFS_V3_ACL=y
-
CONFIG_NFS_V4=y
-
CONFIG_NFS_SWAP=y
-
# CONFIG_NFS_V4_1 is not set
-
CONFIG_ROOT_NFS=y
-
# CONFIG_NFS_USE_LEGACY_DNS is not set
-
CONFIG_NFS_USE_KERNEL_DNS=y
-
# CONFIG_NFSD is not set
-
CONFIG_NFS_ACL_SUPPORT=y
-
CONFIG_NFS_COMMON=y
-
[ZhShiH@localhost linux-3.6.6]$
内核打印:
-
U-Boot 1.1.6 (Jul 8 2013 - 15:41:56) for SMDK6410
-
-
****************************************
-
** u-boot 1.1.6 **
-
** Updated for TE6410 Board **
-
** Version 1.0 (10-01-15) **
-
** OEM: Forlinx Embedded **
-
** Web: **
-
****************************************
-
-
CPU: S3C6410 @532MHz
-
Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode)
-
Board: SMDK6410
-
DRAM: 128 MB
-
Flash: 0 kB
-
NAND: 256 MB
-
In: serial
-
Out: serial
-
Err: serial
-
Hit any key to stop autoboot: 0
-
-
NAND read: device 0 offset 0x100000, size 0x300000
-
3145728 bytes read: OK
-
Boot with zImage
-
-
Starting kernel ...
-
-
Uncompressing Linux... done, booting the kernel.
-
Booting Linux on physical CPU 0
-
Linux version 3.6.6 (ZhShiH@localhost.localdomain) (gcc version 4.4.3 (ctng-1.6.1) ) #4 Mon Jul 15 15:09:07 CST 2013
-
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387d
-
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
-
Machine: SMDK6410
-
Memory policy: ECC disabled, Data cache writeback
-
CPU S3C6410 (id 0x36410101)
-
S3C24XX Clocks, Copyright 2004 Simtec Electronics
-
camera: no parent clock specified
-
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
-
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
-
mout_apll: source is fout_apll (1), rate is 532000000
-
mout_epll: source is epll (1), rate is 24000000
-
mout_mpll: source is mpll (1), rate is 532000000
-
usb-bus-host: source is clk_48m (0), rate is 48000000
-
audio-bus: source is mout_epll (0), rate is 24000000
-
audio-bus: source is mout_epll (0), rate is 24000000
-
audio-bus: source is mout_epll (0), rate is 24000000
-
irda-bus: source is mout_epll (0), rate is 24000000
-
camera: no parent clock specified
-
CPU: found DTCM0 8k @ 00000000, not enabled
-
CPU: moved DTCM0 8k to fffe8000, enabled
-
CPU: found DTCM1 8k @ 00000000, not enabled
-
CPU: moved DTCM1 8k to fffea000, enabled
-
CPU: found ITCM0 8k @ 00000000, not enabled
-
CPU: moved ITCM0 8k to fffe0000, enabled
-
CPU: found ITCM1 8k @ 00000000, not enabled
-
CPU: moved ITCM1 8k to fffe2000, enabled
-
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
-
Kernel command line: root=/dev/nfs nfsroot=192.168.1.108:/zhangsh/rootfs ip=192.168.1.109:192.168.1.108:192.168.1.1:255.255.2c
-
PID hash table entries: 512 (order: -1, 2048 bytes)
-
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
-
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
-
Memory: 128MB = 128MB total
-
Memory: 125504k/125504k available, 5568k reserved, 0K highmem
-
Virtual kernel memory layout:
-
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
-
DTCM : 0xfffe8000 - 0xfffec000 ( 16 kB)
-
ITCM : 0xfffe0000 - 0xfffe4000 ( 16 kB)
-
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
-
vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
-
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
-
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
-
.text : 0xc0008000 - 0xc03b9c18 (3784 kB)
-
.init : 0xc03ba000 - 0xc03dbcec ( 136 kB)
-
.data : 0xc03dc000 - 0xc0411100 ( 213 kB)
-
.bss : 0xc0412024 - 0xc04479ec ( 215 kB)
-
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
-
NR_IRQS:246
-
VIC @f6000000: id 0x00041192, vendor 0x41
-
VIC @f6010000: id 0x00041192, vendor 0x41
-
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
-
Console: colour dummy device 80x30
-
Calibrating delay loop... 353.89 BogoMIPS (lpj=1769472)
-
pid_max: default: 32768 minimum: 301
-
Mount-cache hash table entries: 512
-
CPU: Testing write buffer coherency: ok
-
Setting up static identity map for 0x502d4698 - 0x502d46f4
-
NET: Registered protocol family 16
-
DMA: preallocated 256 KiB pool for atomic coherent allocations
-
s3c64xx_dma_init: Registering DMA channels
-
PL080: IRQ 73, at c8846000, channels 0..8
-
PL080: IRQ 74, at c8848000, channels 8..16
-
S3C6410: Initialising architecture
-
bio: create slab at 0
-
usbcore: registered new interface driver usbfs
-
usbcore: registered new interface driver hub
-
usbcore: registered new device driver usb
-
s3c-i2c s3c2440-i2c.0: slave address 0x10
-
s3c-i2c s3c2440-i2c.0: bus frequency set to c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
-
s3c-i2c s3c2440-i2c.1: slave address 0x10
-
s3c-i2c s3c2440-i2c.1: bus frequency set to 64 KHz
-
s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
-
NET: Registered protocol family 2
-
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
-
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
-
TCP: Hash tables configured (established 4096 bind 4096)
-
TCP: reno registered
-
UDP hash table entries: 256 (order: 1, 12288 bytes)
-
UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
-
RPC: Registered named UNIX socket transport module.
-
RPC: Registered udp transport module.
-
RPC: Registered tcp transport module.
-
RPC: Registered tcp NFSv4.1 backchannel transport module.
-
NFS: Registering the id_resolver key type
-
Key type id_resolver registered
-
Key type id_legacy registered
-
ROMFS MTD (C) 2007 Red Hat, Inc.
-
io scheduler noop registered
-
io scheduler deadline registered
-
io scheduler cfq registered (default)
-
start plist test
-
end plist test
-
s3c-fb s3c-fb: window 0: fb
-
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
-
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69) is a S3C6400/10
-
console [ttySAC0] enabled
-
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 70) is a S3C6400/10
-
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 71) is a S3C6400/10
-
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 72) is a S3C6400/10
-
brd: module loaded
-
loop: module loaded
-
at24 0-0050: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
-
at24 1-0057: 16384 byte 24c128 EEPROM, writable, 1 bytes/write
-
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
-
dm9000 Ethernet Driver, V1.31
-
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
-
mousedev: PS/2 mouse device common for all mice
-
s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
-
s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0
-
i2c /dev entries driver
-
sdhci: Secure Digital Host Controller Interface driver
-
sdhci: Copyright(c) Pierre Ossman
-
s3c-sdhci s3c-sdhci.0: clock source 0: mmc_busclk.0 (133000000 Hz)
-
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_busclk.2 (24000000 Hz)
-
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
-
mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
-
Synopsys Designware Multimedia Card Interface Driver
-
VUB300 Driver rom wait states = 1C irqpoll timeout = 0400usbcore: registered new interface driver vub300
-
usbcore: registered new interface driver ushc
-
usbcore: registered new interface driver usbhid
-
usbhid: USB HID core driver
-
TCP: cubic registered
-
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
-
s3c-rtc s3c64xx-rtc: setting system clock to 2000-01-01 01:39:20 UTC (946690760)
-
mmc0: new SD card at address 8974
-
mmcblk0: mmc0:8974 SD02G 1.84 GiB
-
mmcblk0: p1
-
VFS: Unable to mount root fs via NFS, trying floppy.
-
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
-
Please append a correct "root=" boot option; here are the available partitions:
-
b300 1931264 mmcblk0 driver: mmcblk
-
b301 1930240 mmcblk0p1 00000000-0000-0000-0000-000000000000
-
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
-
[] (unwind_backtrace+0x0/0xf4) from [] (panic+0x8c/0x1dc)
-
[] (panic+0x8c/0x1dc) from [] (mount_block_root+0x174/0x228)
-
[] (mount_block_root+0x174/0x228) from [] (mount_root+0xd4/0xf8)
-
[] (mount_root+0xd4/0xf8) from [] (prepare_namespace+0x160/0x1b8)
-
[] (prepare_namespace+0x160/0x1b8) from [] (kernel_init+0x164/0x1ac)
-
[] (kernel_init+0x164/0x1ac) from [] (kernel_thread_exit+0x0/0x8)
问题如上,查遍了google、baidu、bing,没遇见过类似的情况,先记下来,接着研究。
另外不知道有没有同学遇到过类似的情况而解决的,望赐教,谢谢!
这个问题今天解决了!
原因是kernel的dm9000网卡驱动未移植。
移植操作可见:http://blog.csdn.net/acanoe/article/details/7516341。
在这里,也转载一下这位同学的操作部分。
s3c6410的dm9000移植。
1. 添加头文件支持:
2. 添加宏定义和结构体:
-
//add by acanoe dm9000
-
/* Ethernet */
-
#define S3C64XX_PA_DM9000 (0x18000000)
-
#define S3C64XX_SZ_DM9000 SZ_1M
-
#define S3C64XX_VA_DM9000 S3C_ADDR(0x03b00300)
-
-
-
static struct resource dm9000_resources[] = {
-
[0] = {
-
.start = S3C64XX_PA_DM9000,
-
.end = S3C64XX_PA_DM9000 + 3,
-
.flags = IORESOURCE_MEM,
-
},
-
[1] = {
-
.start = S3C64XX_PA_DM9000 + 4,
-
.end = S3C64XX_PA_DM9000 + S3C64XX_SZ_DM9000 - 1,
-
.flags = IORESOURCE_MEM,
-
},
-
[2] = {
-
.start = IRQ_EINT(7),
-
.end = IRQ_EINT(7),
-
.flags = IORESOURCE_IRQ | IRQF_TRIGGER_HIGH,
-
},
-
};
-
-
-
static struct dm9000_plat_data dm9000_setup = {
-
.flags = DM9000_PLATF_16BITONLY,
-
.dev_addr = { 0x08, 0x90, 0x00, 0xa0, 0x90, 0x90 },
-
};
-
-
-
static struct platform_device s3c_device_dm9000 = {
-
.name = "dm9000",
-
.id = 0,
-
.num_resources = ARRAY_SIZE(dm9000_resources),
-
.resource = dm9000_resources,
-
.dev = {
-
.platform_data = &dm9000_setup,
-
}
-
};
-
//#ifdef CONFIG_DM9000
-
//add by acanoe dm9000
3. 修改smdk6410_devices结构体:
-
static struct platform_device *smdk6410_devices[] __initdata = {
-
...
-
...
-
#ifdef CONFIG_DM9000
-
&s3c_device_dm9000, // dm9000 driver add by acanoe
-
#endif
-
// add by acanoe 2
-
-
// &smdk6410_smsc911x,// Canceled by acanoe 对于OK6410 的网卡实验来说,这一项一定要注释掉。
-
...
-
...
-
};
OK,编译成功。启动如下:
-
U-Boot 1.1.6 (Jul 8 2013 - 15:41:56) for SMDK6410
-
-
****************************************
-
** u-boot 1.1.6 **
-
** Updated for TE6410 Board **
-
** Version 1.0 (10-01-15) **
-
** OEM: Forlinx Embedded **
-
** Web: **
-
****************************************
-
-
CPU: S3C6410 @532MHz
-
Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode)
-
Board: SMDK6410
-
DRAM: 128 MB
-
Flash: 0 kB
-
NAND: 256 MB
-
In: serial
-
Out: serial
-
Err: serial
-
Hit any key to stop autoboot: 0
-
-
NAND read: device 0 offset 0x100000, size 0x300000
-
3145728 bytes read: OK
-
Boot with zImage
-
-
Starting kernel ...
-
-
Uncompressing Linux... done, booting the kernel.
-
Booting Linux on physical CPU 0
-
Linux version 3.6.6 (ZhShiH@localhost.localdomain) (gcc version 4.4.3 (ctng-1.6.1) ) #10 Fri Jul 19 16:21:29 CST 2013
-
S3C24XX Clocks, Copyright 2004 Simtec Electronics
-
camera: no parent clock specified
-
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
-
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
-
mout_apll: source is fout_apll (1), rate is 532000000
-
mout_epll: source is epll (1), rate is 24000000
-
mout_mpll: source is mpll (1), rate is 532000000
-
usb-bus-host: source is clk_48m (0), rate is 48000000
-
audio-bus: source is mout_epll (0), rate is 24000000
-
audio-bus: source is mout_epll (0), rate is 24000000
-
audio-bus: source is mout_epll (0), rate is 24000000
-
irda-bus: source is mout_epll (0), rate is 24000000
-
camera: no parent clock specified
-
CPU: found DTCM0 8k @ 00000000, not enabled
-
CPU: moved DTCM0 8k to fffe8000, enabled
-
CPU: found DTCM1 8k @ 00000000, not enabled
-
CPU: moved DTCM1 8k to fffea000, enabled
-
CPU: found ITCM0 8k @ 00000000, not enabled
-
CPU: moved ITCM0 8k to fffe0000, enabled
-
CPU: found ITCM1 8k @ 00000000, not enabled
-
CPU: moved ITCM1 8k to fffe2000, enabled
-
Kernel command line: root=/dev/nfs nfsroot=192.168.1.108:/zhangsh/rootfs,nolock ip=192.168.1.109:192.168.1.108:192.168.1.1:25c
-
PID hash table entries: 512 (order: -1, 2048 bytes)
-
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
-
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
-
Memory: 128MB = 128MB total
-
Memory: 125332k/125332k available, 5740k reserved, 0K highmem
-
Virtual kernel memory layout:
-
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
-
DTCM : 0xfffe8000 - 0xfffec000 ( 16 kB)
-
ITCM : 0xfffe0000 - 0xfffe4000 ( 16 kB)
-
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
-
vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
-
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
-
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
-
.text : 0xc0008000 - 0xc03e17e0 (3942 kB)
-
.init : 0xc03e2000 - 0xc0404bc4 ( 139 kB)
-
.data : 0xc0406000 - 0xc043ce40 ( 220 kB)
-
.bss : 0xc043d024 - 0xc0472f94 ( 216 kB)
-
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
-
NR_IRQS:246
-
VIC @f6000000: id 0x00041192, vendor 0x41
-
VIC @f6010000: id 0x00041192, vendor 0x41
-
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
-
Console: colour dummy device 80x30
-
Calibrating delay loop... 353.89 BogoMIPS (lpj=1769472)
-
pid_max: default: 32768 minimum: 301
-
Mount-cache hash table entries: 512
-
CPU: Testing write buffer coherency: ok
-
Setting up static identity map for 0x502f65e0 - 0x502f663c
-
NET: Registered protocol family 16
-
DMA: preallocated 256 KiB pool for atomic coherent allocations
-
s3c64xx_dma_init: Registering DMA channels
-
PL080: IRQ 73, at c8846000, channels 0..8
-
PL080: IRQ 74, at c8848000, channels 8..16
-
bio: create slab at 0
-
usbcore: registered new interface driver usbfs
-
usbcore: registered new interface driver hub
-
usbcore: registered new device driver usb
-
s3c-i2c s3c2440-i2c.0: slave address 0x10
-
s3c-i2c s3c2440-i2c.0: bus frequency set to 64 KHz
-
s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
-
s3c-i2c s3c2440-i2c.1: slave address 0x10
-
s3c-i2c s3c2440-i2c.1: bus frequency set to 64 KHz
-
s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
-
NET: Registered protocol family 2
-
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
-
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
-
TCP: Hash tables configured (established 4096 bind 4096)
-
TCP: reno registered
-
UDP hash table entries: 256 (order: 1, 12288 bytes)
-
UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
-
RPC: Registered named UNIX socket transport module.
-
RPC: Registered udp transport module.
-
RPC: Registered tcp transport module.
-
RPC: Registered tcp NFSv4.1 backchannel transport module.
-
NFS: Registering the id_resolver key type
-
Key type id_resolver registered
-
Key type id_legacy registered
-
ROMFS MTD (C) 2007 Red Hat, Inc.
-
io scheduler noop registered
-
io scheduler deadline registered
-
io scheduler cfq registered (default)
-
start plist test
-
end plist test
-
s3c-fb s3c-fb: window 0: fb
-
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
-
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 69) is a S3C6400/10
-
console [ttySAC0] enabled
-
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 70) is a S3C6400/10
-
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 71) is a S3C6400/10
-
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 72) is a S3C6400/10
-
brd: module loaded
-
loop: module loaded
-
at24 0-0050: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
-
at24 1-0057: 16384 byte 24c128 EEPROM, writable, 1 bytes/write
-
dm9000 Ethernet Driver, V1.31
-
eth0: dm9000b at c885a000,c8c00004 IRQ 108 MAC: 08:90:00:a0:90:90 (platform data)
-
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
-
mousedev: PS/2 mouse device common for all mice
-
s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
-
s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0
-
i2c /dev entries driver
-
sdhci: Secure Digital Host Controller Interface driver
-
sdhci: Copyright(c) Pierre Ossman
-
s3c-sdhci s3c-sdhci.0: clock source 0: mmc_busclk.0 (133000000 Hz)
-
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_busclk.2 (24000000 Hz)
-
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
-
mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
-
mmc0: mmc_rescan_try_freq: trying to init card at 300000 Hz
-
Synopsys Designware Multimedia Card Interface Driver
-
VUB300 Driver rom wait states = 1C irqpoll timeout = 0400usbcore: registered new interface driver vub300
-
usbcore: registered new interface driver ushc
-
usbcore: registered new interface driver usbhid
-
usbhid: USB HID core driver
-
TCP: cubic registered
-
NET: Registered protocol family 10
-
sit: IPv6 over IPv4 tunneling driver
-
Key type dns_resolver registered
-
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
-
mmc0: mmc_rescan_try_freq: trying to init card at 200000 Hz
-
s3c-rtc s3c64xx-rtc: setting system clock to 2000-01-01 02:19:34 UTC (946693174)
-
mmc0: mmc_rescan_try_freq: trying to init card at 100000 Hz
-
dm9000 dm9000.0: eth0: link down
-
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
-
dm9000 dm9000.0: eth0: link up, 100Mbps, full-duplex, no LPA
-
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
-
IP-Config: Complete:
-
device=eth0, addr=192.168.1.109, mask=255.255.255.0, gw=192.168.1.1
-
host=192.168.1.109, domain=, nis-domain=(none)
-
bootserver=192.168.1.108, rootserver=192.168.1.108, rootpath=
-
VFS: Mounted root (nfs filesystem) on device 0:9.
-
Freeing init memory: 136K
-
-
Please press Enter to activate this console.
终于看到了久违的console!!!
感谢同学。
后续使用过程的问题:
某一次,不小心弄坏了服务端的rootfs,一时手贱就把rootfs删掉。不过幸好有个不完全版的备份。
再次解压出rootfs之后,启动出现如下错误:
-
Failed to execute /linuxrc. Attempting defaults...
-
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
检查rootfs文件系统:
1,存在linuxrc,链接到/bin/busybox;
2,linuxrc有可执行权限。
找了很久的原因,后来发现,需要将交叉编译器目录下的lib文件拷贝到nfs系统中。
如:
-
yes | cp /opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/lib/* /zhangsh/rootfs/lib/ -avf
注意,是/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi/lib而不是/opt/FriendlyARM/toolschain/4.4.3/lib/
阅读(3799) | 评论(0) | 转发(0) |