@leaveye
2014-11-13T05:17:30.000000Z
字数 34375
阅读 1437
USB
ARM
Kernel
Driver
FS
发现之前串口输出停滞的状态下,串口并未被关闭,仍然能够看到 NFS 服务掉线、上线的提示。
编写了 SEED 的编译环境配置文件 env.seed
,并用其编译 SEED Kernel 。无论是否开启 USB Verbose 选项,均可以 a)正常启动;b) 发现U盘的插拔行为。
尝试使用 SEED 的交叉编译器,编译自己的 Kernel 。遇到限制,必须关闭 EABI 选项。结果与之前一致,启动到一定程度后挂起,后台可访问,一时无法确定 USB 是否可使用。但 U 盘状态灯是亮的,可以判断电压应已给入。
找到了 SEED 提供的 SDK、toolchain 相关内容。
从一点点变动以定位问题的角度考虑,使用来自 w0901 的交叉编译器(我们之前编译 Kernel 所用的编译器)编译 SEED 提供的 Kernel 。结果是无法编译,报错:
error: read-only variable '__r2' used as 'asm' output
经过搜索,得到结论是需要降低编译器版本。回头查询比较我们和 SEED 提供的交叉编译器的区别。
我们:
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3
SEED:
arm_v5t_le-gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)
考虑等明天使用 SEED 提供的编译器来编译 Kernel 吧。不过更换编译器就需要考虑,是否其上运行的应用程序都用这个编译器来编译比较好呢?
现在 55 上的平台配置管理方案(思路)是通过单一的环境配置脚本文件,修改一系列所需的环境变量(CC、LD、...)和相应的命令别名(configure、make)来实现在不同的平台使用相同的命令来进行编译、安装、打包。如果区分编译器的话,那就要为内核编译单独搞一套。Kernel 特殊地不是使用 autotools 的,无法使用任何与其他代码库相同的配置,所以这是需要特殊考虑的了。
当然这是在验证了更换编译器能够使 USB 可用之后的事情了。
经过比较发现,昨天使用的 55 SEED NFS 的文件系统,居然和以前用的 54 SEED NFS 运行结果不一样。
SEED Kernel + SEED NFS 54
可以启动进入命令行,从串口正常发现新插入U盘。
SEED Kernel + SEED NFS 55
如昨天提到的,Kernel Panic 。
自制 Kernel + SEED NFS 54
启动到一定程度串口挂起,远程可以登录,还不知道怎么挂载或嗅探U盘。
自制 Kernel + SEED NFS 55 及其它
待测
编译 uImage
。
在为 ARM make menuconfig
过程中启用了 USB Storage 之后,make uImage
生成了 uImage 文件。
准备文件系统。
nfs.tar.gz
中展开得到。/opt/dm6467t/filesys
得到。下载编译好的 uImage
。
setenv bootfile uImage-w1302-testing
setenv serverip 192.168.2.55
setenv ipaddr 192.168.2.137
setenv macaddr 6c:52:12:12:12:12
tftp
写入 NAND Flash 。
nand erase 160000 203000
nand write 80700000 160000 203000
nfs 引导至自制文件系统。
setenv bootargs 'mem=120M console=ttyS0,115200n8 root=/dev/nfs nfsroot=192.168.2.55:/srv/rootfs/w1302-testing,nolock ip=192.168.2.137'
setenv bootcmd 'nand read 81100000 560000 500000; nboot 80700000 0 160000; bootm'
saveenv
boot
使用 nfs 文件系统引导。
Kernel 启动看到了已经启用 USB 了。
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pcf857x: probe of 1-0038 failed with error -121
vpif vpif: vpif probe success
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
NET: Registered protocol family 2
......
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
使用 SEED 文件系统不可引导(Kernel panic)。
Root-NFS: Server returned error -13 while mounting /srv/rootfs/w1302-testing
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
0300 30932992 hda driver: ide-gd
1f00 128 mtdblock0 (driver?)
1f01 1280 mtdblock1 (driver?)
1f02 4096 mtdblock2 (driver?)
1f03 125568 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c002cd30>] (unwind_backtrace+0x0/0x150) from [<c02d2a58>] (panic+0x48/0x118)
[<c02d2a58>] (panic+0x48/0x118) from [<c0008eac>] (mount_block_root+0x1d0/0x210)
[<c0008eac>] (mount_block_root+0x1d0/0x210) from [<c0009144>] (prepare_namespace+0x164/0x1bc)
[<c0009144>] (prepare_namespace+0x164/0x1bc) from [<c0008440>] (kernel_init+0xdc/0x110)
[<c0008440>] (kernel_init+0xdc/0x110) from [<c0027e3c>] (kernel_thread_exit+0x0/0x8)
使用自制文件系统可以进入命令行(虽然有N多文件系统错误)。
Loading from NAND 128MiB 3,3V 8-bit, offset 0x160000
Image Name: Linux-2.6.32-rc2-davinci1-avs
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1839912 Bytes = 1.8 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.32-rc2-davinci1-avs
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1839912 Bytes = 1.8 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux........................................................................................................................ done, booting the kernel.
Linux version 2.6.32-rc2-davinci1-avs (yxguo@compile2) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Thu Nov 13 12:31:20 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM646x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm6467_rev3.x variant 0x1
MUX: initialized UART0
MUX: Setting register UART0
PINMUX1 (0x00000004) = 0x00000000 -> 0x00000001
MUX: initialized UART1
MUX: Setting register UART1
PINMUX1 (0x00000004) = 0x00000001 -> 0x00000005
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30480
Kernel command line: mem=120M console=ttyS0,115200n8 root=/dev/nfs nfsroot=192.168.2.54:/opt/dm6467t/evm-restore,nolock ip=192.168.2.137
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: 120MB = 120MB total
Memory: 117660KB available (3468K code, 314K data, 124K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Calibrating delay loop... 246.57 BogoMIPS (lpj=1232896)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 43 gpio irqs
NET: Registered protocol family 16
MUX: Setting register STSOMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register STSIMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSOMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSIMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: initialized ATAEN
MUX: Setting register ATAEN
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000001
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pcf857x: probe of 1-0038 failed with error -121
vpif vpif: vpif probe success
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 230
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16654
serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ42): -22
brd: module loaded
loop: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: bc:12:5e:02:81:98
Read Board Type from EEPROM: ENC-HDMI
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide0: MMIO-DMA
hda: Kingspeed, ATA DISK drive
hda: UDMA/66 mode selected
ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22
hda: max request size: 512KiB
hda: 61865984 sectors (31675 MB) w/1KiB Cache, CHS=16383/255/63
hda: cache flushes not supported
hda: unknown partition table
NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 867 at 0x000006c60000
Creating 4 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000020000 : "params"
0x000000020000-0x000000160000 : "bootloader"
0x000000160000-0x000000560000 : "kernel"
0x000000560000-0x000008000000 : "filesystem"
davinci_nand davinci_nand.0: controller rev. 2.2
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
i2c /dev entries driver
Linux video capture interface: v2.00
adv7343 1-002a: chip found @ 0x54 (DaVinci I2C adapter)
tvp514x 1-005c: tvp514x 1-005c decoder driver registered !!
vpif_capture vpif_capture: registered sub device tvp514x
vpif_capture vpif_capture: DM646x VPIF Capture driver initialized
watchdog watchdog: heartbeat 60 sec
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
McASP0 TX IRQ registered
McASP0 RX IRQ registered
asoc: tlv320aic3x <-> davinci-i2s mapping ok
asoc: DIT <-> davinci-dit mapping ok
ALSA device list:
#0: DaVinci DM6467 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused uart2
Clocks: disable unused emac
Clocks: disable unused timer1
emac-mii: probed
ET1011C LED [0xf4f0] ->
eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f014)
ET1011C LED [0xf4f0] -> IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.2.137, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.2.137, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.2.54, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.54
PHY: 1:01 - Link is Up - 100/Full
Looking up port of RPC 100005/1 on 192.168.2.54
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 124K
INIT: version 2.85 booting
0
Mounting a tmpfs over /dev...done.
Creating initial device nodes...done.
0
Mounting local filesystems: mount nothing was mounted
Cleaning: /tmp BusyBox v1.00-rc3 (2005.07.23-08:39+0000) multi-call binary
Usage: find [PATH...] [EXPRESSION]
Search for files in a directory hierarchy. The default PATH is
the current directory; default EXPRESSION is '-print'
EXPRESSION may consist of:
-follow Dereference symbolic links.
-name PATTERN File name (leading directories removed) matches PATTERN.
-print Print (default and assumed).
-type X Filetype matches X (where X is one of: f,d,l,b,c,...)
-perm PERMS Permissions match any of (+NNN); all of (-NNN);
or exactly (NNN)
-mtime TIME Modified time is greater than (+N); less than (-N);
or exactly (N) days
/var/lock /etc/init.d/rcS: line 65: cd: /var/lock: No such file or directory
/var/run BusyBox v1.00-rc3 (2005.07.23-08:39+0000) multi-call binary
Usage: find [PATH...] [EXPRESSION]
Search for files in a directory hierarchy. The default PATH is
the current directory; default EXPRESSION is '-print'
EXPRESSION may consist of:
-follow Dereference symbolic links.
-name PATTERN File name (leading directories removed) matches PATTERN.
-print Print (default and assumed).
-type X Filetype matches X (where X is one of: f,d,l,b,c,...)
-perm PERMS Permissions match any of (+NNN); all of (-NNN);
or exactly (NNN)
-mtime TIME Modified time is greater than (+N); less than (-N);
or exactly (N) days
done.
Setting up networking (ifupdown) ..
Cleaning: /etc/network/run/ifstate done.
Starting network interfaces: done.
Starting hotplug subsystem:
pci
pci [success]
usb
usb [success]
isapnp
isapnp [success]
ide
ide [success]
input
input [success]
scsi
scsi [success]
done.
Starting portmap daemon: portmapportmap: fork: Successpidof: invalid option -- x
BusyBox v1.00-rc3 (2005.07.23-08:39+0000) multi-call binary
Usage: pidof process-name [OPTION] [process-name ...]
Lists the PIDs of all processes with names that match the
names on the command line.
Options:
-s display only a single PID.
.
done.
Updating /etc/motd...done. <<<<启动到此为止就挂起,后台可登录。后面是拔插网线会出的内容>>>>
PHY: 1:01 - Link is Down
PHY: 1:01 - Link is Up - 100/Full
DM6467 EVM > printenv
bootdelay=3
baudrate=115200
addclk=setenv bootargs ${bootargs} clkref=${clkref}
ethact=DaVinci EMAC
addrip=192.168.2.142
ethaddr=bc:12:5e:06:00:00
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.08 (Jan 20 2010 - 15:27:59)
bootfile=uImage-w1302-testing
macaddr=6c:52:12:12:12:12
filesize=202F58
fileaddr=80700000
ipaddr=192.168.2.137
serverip=192.168.2.55
bootargs=mem=120M console=ttyS0,115200n8 root=/dev/nfs nfsroot=192.168.2.55:/srv/rootfs/w1302-testing,nolock ip=192.168.2.137
bootcmd=nand read 81100000 560000 500000; nboot 80700000 0 160000; bootm
Environment size: 564/16380 bytes
DM6467 EVM > boot
NAND read: device 0 offset 0x560000, size 0x500000
5242880 bytes read: OK
Loading from NAND 128MiB 3,3V 8-bit, offset 0x160000
Image Name: Linux-2.6.32-rc2-davinci1-avs
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2109208 Bytes = 2 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.32-rc2-davinci1-avs
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2109208 Bytes = 2 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux..................................................................................................................................... done, booting the kernel.
Linux version 2.6.32-rc2-davinci1-avs (yxguo@compile2) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #62 PREEMPT Tue Nov 11 13:52:14 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM646x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm6467_rev3.x variant 0x1
MUX: initialized UART0
MUX: Setting register UART0
PINMUX1 (0x00000004) = 0x00000000 -> 0x00000001
MUX: initialized UART1
MUX: Setting register UART1
PINMUX1 (0x00000004) = 0x00000001 -> 0x00000005
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30480
Kernel command line: mem=120M console=ttyS0,115200n8 root=/dev/nfs nfsroot=192.168.2.55:/srv/rootfs/w1302-testing,nolock ip=192.168.2.137
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: 120MB = 120MB total
Memory: 117248KB available (3792K code, 311K data, 120K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Calibrating delay loop... 246.57 BogoMIPS (lpj=1232896)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 43 gpio irqs
NET: Registered protocol family 16
MUX: Setting register STSOMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register STSIMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSOMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSIMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: initialized ATAEN
MUX: Setting register ATAEN
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000001
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pcf857x: probe of 1-0038 failed with error -121
vpif vpif: vpif probe success
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Slow work thread pool: Starting up
Slow work thread pool: Ready
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 229
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16654
serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ42): -22
brd: module loaded
loop: module loaded
nbd: registered device at major 43
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: bc:12:5e:06:00:00
Read Board Type from EEPROM: ENC-VGA6U
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide0: MMIO-DMA
hda: Kingspeed, ATA DISK drive
hda: UDMA/66 mode selected
ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22
hda: max request size: 512KiB
hda: 61865984 sectors (31675 MB) w/1KiB Cache, CHS=16383/255/63
hda: cache flushes not supported
hda: unknown partition table
NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000020000 : "params"
0x000000020000-0x000000160000 : "bootloader"
0x000000160000-0x000000560000 : "kernel"
0x000000560000-0x000008000000 : "filesystem"
davinci_nand davinci_nand.0: controller rev. 2.2
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
Linux video capture interface: v2.00
adv7343 1-002a: chip found @ 0x54 (DaVinci I2C adapter)
tvp514x 1-005c: tvp514x 1-005c decoder driver registered !!
vpif_capture vpif_capture: registered sub device tvp514x
vpif_capture vpif_capture: DM646x VPIF Capture driver initialized
watchdog watchdog: heartbeat 60 sec
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
McASP0 TX IRQ registered
McASP0 RX IRQ registered
asoc: tlv320aic3x <-> davinci-i2s mapping ok
asoc: DIT <-> davinci-dit mapping ok
ALSA device list:
#0: DaVinci DM6467 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused uart2
Clocks: disable unused emac
Clocks: disable unused timer1
emac-mii: probed
ET1011C LED [0xf4f0] ->
eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f014)
ET1011C LED [0xf4f0] -> IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.2.137, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.2.137, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.2.55, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.55
PHY: 1:01 - Link is Up - 100/Full
Looking up port of RPC 100005/1 on 192.168.2.55
Root-NFS: Server returned error -13 while mounting /srv/rootfs/w1302-testing
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
0300 30932992 hda driver: ide-gd
1f00 128 mtdblock0 (driver?)
1f01 1280 mtdblock1 (driver?)
1f02 4096 mtdblock2 (driver?)
1f03 125568 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c002cd30>] (unwind_backtrace+0x0/0x150) from [<c02d2a58>] (panic+0x48/0x118)
[<c02d2a58>] (panic+0x48/0x118) from [<c0008eac>] (mount_block_root+0x1d0/0x210)
[<c0008eac>] (mount_block_root+0x1d0/0x210) from [<c0009144>] (prepare_namespace+0x164/0x1bc)
[<c0009144>] (prepare_namespace+0x164/0x1bc) from [<c0008440>] (kernel_init+0xdc/0x110)
[<c0008440>] (kernel_init+0xdc/0x110) from [<c0027e3c>] (kernel_thread_exit+0x0/0x8)
DM6467 EVM > printenv
bootdelay=3
baudrate=115200
addclk=setenv bootargs ${bootargs} clkref=${clkref}
ethact=DaVinci EMAC
addrip=192.168.2.142
ethaddr=bc:12:5e:06:00:00
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.08 (Jan 20 2010 - 15:27:59)
bootfile=uImage-w1302-testing
macaddr=6c:52:12:12:12:12
filesize=202F58
fileaddr=80700000
ipaddr=192.168.2.137
serverip=192.168.2.55
bootargs=mem=120M console=ttyS0,115200n8 root=/dev/nfs nfsroot=192.168.2.55:/srv/rootfs/w1302-testing,nolock ip=192.168.2.137
bootcmd=nand read 81100000 560000 500000; nboot 80700000 0 160000; bootm
Environment size: 564/16380 bytes
DM6467 EVM > boot
NAND read: device 0 offset 0x560000, size 0x500000
5242880 bytes read: OK
Loading from NAND 128MiB 3,3V 8-bit, offset 0x160000
Image Name: Linux-2.6.32-rc2-davinci1-avs
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2109208 Bytes = 2 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.32-rc2-davinci1-avs
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2109208 Bytes = 2 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux..................................................................................................................................... done, booting the kernel.
Linux version 2.6.32-rc2-davinci1-avs (yxguo@compile2) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #62 PREEMPT Tue Nov 11 13:52:14 CST 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM646x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm6467_rev3.x variant 0x1
MUX: initialized UART0
MUX: Setting register UART0
PINMUX1 (0x00000004) = 0x00000000 -> 0x00000001
MUX: initialized UART1
MUX: Setting register UART1
PINMUX1 (0x00000004) = 0x00000001 -> 0x00000005
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30480
Kernel command line: mem=120M console=ttyS0,115200n8 root=/dev/nfs nfsroot=192.168.2.55:/srv/rootfs/w1302-testing,nolock ip=192.168.2.137
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: 120MB = 120MB total
Memory: 117248KB available (3792K code, 311K data, 120K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Calibrating delay loop... 246.57 BogoMIPS (lpj=1232896)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 43 gpio irqs
NET: Registered protocol family 16
MUX: Setting register STSOMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register STSIMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSOMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: Setting register PTSIMUX_DISABLE
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000000
MUX: initialized ATAEN
MUX: Setting register ATAEN
PINMUX0 (0x00000000) = 0x00000000 -> 0x00000001
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pcf857x: probe of 1-0038 failed with error -121
vpif vpif: vpif probe success
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Slow work thread pool: Starting up
Slow work thread pool: Ready
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 229
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16654
serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ42): -22
brd: module loaded
loop: module loaded
nbd: registered device at major 43
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: bc:12:5e:06:00:00
Read Board Type from EEPROM: ENC-VGA6U
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide0: MMIO-DMA
hda: Kingspeed, ATA DISK drive
hda: UDMA/66 mode selected
ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22
hda: max request size: 512KiB
hda: 61865984 sectors (31675 MB) w/1KiB Cache, CHS=16383/255/63
hda: cache flushes not supported
hda: unknown partition table
NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000020000 : "params"
0x000000020000-0x000000160000 : "bootloader"
0x000000160000-0x000000560000 : "kernel"
0x000000560000-0x000008000000 : "filesystem"
davinci_nand davinci_nand.0: controller rev. 2.2
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
Linux video capture interface: v2.00
adv7343 1-002a: chip found @ 0x54 (DaVinci I2C adapter)
tvp514x 1-005c: tvp514x 1-005c decoder driver registered !!
vpif_capture vpif_capture: registered sub device tvp514x
vpif_capture vpif_capture: DM646x VPIF Capture driver initialized
watchdog watchdog: heartbeat 60 sec
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
McASP0 TX IRQ registered
McASP0 RX IRQ registered
asoc: tlv320aic3x <-> davinci-i2s mapping ok
asoc: DIT <-> davinci-dit mapping ok
ALSA device list:
#0: DaVinci DM6467 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused uart2
Clocks: disable unused emac
Clocks: disable unused timer1
emac-mii: probed
ET1011C LED [0xf4f0] ->
eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f014)
ET1011C LED [0xf4f0] -> IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.2.137, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.2.137, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.2.55, rootpath=
Looking up port of RPC 100003/2 on 192.168.2.55
PHY: 1:01 - Link is Up - 100/Full
Looking up port of RPC 100005/1 on 192.168.2.55
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 120K
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
INIT: version 2.86 booting
Please wait: booting...
Starting udev
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file onbd3: Attempted send on closed socket
r directory
modprobe: FATAL:end_request: I/O error, dev nbd3, sector 0
Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
FAT: unable to read boot sector
nbd3: Attempted send on closed socket
end_request: I/O error, dev nbd3, sector 2
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
EXT2-fs: unable to read superblock
nbd3: Attempted send on closed socket
end_request: I/O error, dev nbd3, sector 2
EXT3-fs: unable to read superblock
nbd3: Attempted send on closed socket
end_request: I/O error, dev nbd3, sector 2
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
EXT3-fs: unable to read superblock
nbd6: Attempted send on closed socket
end_request: I/O error, dev nbd6, sector 0
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
FAT: unable to read boot sector
nbd3: Attempted send on closed socket
end_request: I/O error, dev nbd3, sector 2
EXT2-fs: unable to read superblock
nbd6: Attempted send on closed socket
end_request: I/O error, dev nbd6, sector 2
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
nbd0: Attempted send on closed socket
modprobe: FATAL: Could not load end_request: I/O error, dev nbd0, sector 0
/lib/modules/2.6.32-rc2-davinci1nbd13: Attempted send on closed socket
-avs/modules.dep: No such file oend_request: I/O error, dev nbd13, sector 0
r directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.depFAT: unable to read boot sector
: No such file or directory
FAT: unable to read boot sector
modprobe: FATAL: Could not load EXT2-fs: unable to read superblock
/lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file onbd3: Attempted send on closed socket
r directory
modprobe: FATAL:end_request: I/O error, dev nbd3, sector 0
Could not load /lib/modules/2.6nbd0: Attempted send on closed socket
.32-rc2-davinci1-avs/modules.depend_request: I/O error, dev nbd0, sector 2
: No such file or directory
nbd6: Attempted send on closed socket
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
FAT: unable to read boot sector
EXT2-fs: unable to read superblock
end_request: I/O error, dev nbd6, sector 2
EXT3-fs: unable to read superblock
nbd3: Attempted send on closed socket
end_request: I/O error, dev nbd3, sector 0
nbd13: Attempted send on closed socket
end_request: I/O error, dev nbd13, sector 2
EXT2-fs: unable to read superblock
nbd0: Attempted send on closed socket
end_request: I/O error, dev nbd0, sector 2
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load nbd5: Attempted send on closed socket
/lib/modules/2.6.32-rc2-davinci1end_request: I/O error, dev nbd5, sector 0
-avs/modules.dep: No such file onbd12: Attempted send on closed socket
r directory
modprobe: FATAL:end_request: I/O error, dev nbd12, sector 0
Could not load /lib/modules/2.6nbd11: Attempted send on closed socket
.32-rc2-davinci1-avs/modules.depend_request: I/O error, dev nbd11, sector 0
: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file oFAT: unable to read boot sector
r directory
modprobe: FATAL:FAT: unable to read boot sector
Could not load /lib/modules/2.6FAT: unable to read boot sector
.32-rc2-davinci1-avs/modules.depEXT3-fs: unable to read superblock
: No such file or directory
nbd5: Attempted send on closed socket
end_request: I/O error, dev nbd5, sector 2
nbd13: Attempted send on closed socket
nbd6: Attempted send on closed socket
end_request: I/O error, dev nbd6, sector 2
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.depnbd15: Attempted send on closed socket
: No such file or directory
end_request: I/O error, dev nbd15, sector 0
modprobe: FATAL: Could not load nbd1: Attempted send on closed socket
/lib/modules/2.6.32-rc2-davinci1end_request: I/O error, dev nbd1, sector 0
-avs/modules.dep: No such file onbd8: Attempted send on closed socket
r directory
end_request: I/O error, dev nbd8, sector 0
EXT2-fs: unable to read superblock
FAT: unable to read boot sector
......
end_request: I/O error, dev nbd5, sector 2
nbd0: Attempted send on closed socket
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
nbd14: Attempted send on closed socket
end_request: I/O error, dev nbd14, sector 0
......
EXT3-fs: unable to read superblock
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6end_request: I/O error, dev nbd1, sector 2
.32-rc2-davinci1-avs/modules.depEXT3-fs: unable to read superblock
: No such file or directory
nbd2: Attempted send on closed socket
end_request: I/O error, dev nbd2, sector 0
......
nbd7: Attempted send on closed socket
end_request: I/O error, dev nbd7, sector 0
FAT: unable to read boot sector
modprobe: FATAL: Could not load EXT2-fs: unable to read superblock
/lib/modules/2.6.32-rc2-davinci1nbd4: Attempted send on closed socket
-avs/modules.dep: No such file oend_request: I/O error, dev nbd4, sector 0
r directory
FAT: unable to read boot sector
nbd5: Attempted send on closed socket
end_request: I/O error, dev nbd5, sector 0
nbd11: Attempted send on closed socket
nbd7: Attempted send on closed socket
end_request: I/O error, dev nbd7, sector 2
EXT2-fs: unable to read superblock
nbd12: Attempted send on closed socket
end_request: I/O error, dev nbd12, sector 0
EXT2-fs: unable to read superblock
end_request: I/O error, dev nbd1, sector 2
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file onbd15: Attempted send on closed socket
r directory
end_request: I/O error, dev nbd15, sector 2
......
EXT3-fs: unable to read superblock
nbd1: Attempted send on closed socket
end_request: I/O error, dev nbd1, sector 2
EXT2-fs: unable to read superblock
modprobe: FATAL: Could not load nbd9: Attempted send on closed socket
/lib/modules/2.6.32-rc2-davinci1end_request: I/O error, dev nbd9, sector 0
-avs/modules.dep: No such file oFAT: unable to read boot sector
r directory
EXT2-fs: unable to read superblock
end_request: I/O error, dev nbd14, sector 2
FAT: unable to read boot sector
EXT3-fs: unable to read superblock
nbd11: Attempted send on closed socket
......
end_request: I/O error, dev nbd9, sector 0
FAT: unable to read boot sector
nbd9: Attempted send on closed socket
end_request: I/O error, dev nbd9, sector 0
nbd10: Attempted send on closed socket
end_request: I/O error, dev nbd10, sector 0
FAT: unable to read boot sector
FAT: unable to read boot sector
Populating dev cache
Remounting root file system...
mount: mounting /dev/root on / failed: Invalid argument
mount: mounting /dev/root on / failed: Invalid argument
WARNING: Couldn't open directory /lib/modules/2.6.32-rc2-davinci1-avs: No such file or directory
FATAL: Could not open /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep.temp for writing: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
root: mount: mounting rootfs on / failed: No such file or directory
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... done.
Thu Jul 22 08:17:00 UTC 2010
INIT: Entering runlevel: 5
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
mount: mounting /dev/hda1 on /media/hda1 failed: No such file or directory
Starting telnet daemon.
modprobe: FATAL: Could not load /lib/modules/2.6.32-rc2-davinci1-avs/modules.dep: No such file or directory
Starting LED....
/etc/rc5.d/S20leds: line 5: can't create /sys/class/leds/DS1/trigger: nonexistent directory
/etc/rc5.d/S20leds: line 6: can't create /sys/class/leds/DS4/trigger: nonexistent directory
Starting REG....
Starting ALSA....
Simple mixer control 'Left DAC Mux',0
Capabilities: enum
Items: 'DAC_L1' 'DAC_L3' 'DAC_L2'
Item0: 'DAC_L2'
Simple mixer control 'Right DAC Mux',0
Capabilities: enum
Items: 'DAC_R1' 'DAC_R3' 'DAC_R2'
Item0: 'DAC_R2'
Starting ISL SHM...
Starting syslogd/klogd: done
Starting thttpd.
BusyBox v1.13.2 (2010-01-11 20:34:49 EST) multi-call binary
Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR
Create a special file (block, character, or pipe)
Options:
-m Create the special file using the specified mode (default a=rw)
TYPEs include:
b: Make a block device
c or u: Make a character device
p: Make a named pipe (MAJOR and MINOR are ignored)
ERROR: Module cmemk does not exist in /proc/modules
ERROR: Module dsplinkk does not exist in /proc/modules
no kernel module: 2.6.32-rc2-davinci1-avs
found kernel module: 2.6.32-rc2-davinci1-svn65
CMEMK module: built on Jul 12 2012 at 15:51:10
Reference Linux version 2.6.32
File /home/software/dvsdk/dvsdk/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
CMEMK Error: CMEM phys_start (0x87000000) overlaps kernel (0x80000000 -> 0x87800000)
insmod: error inserting '/lib/modules/2.6.32-rc2-davinci1-svn65/kernel/drivers/char/cmemk.ko': -1 Invalid parameters
DSPLINK Module (1.64) created on Date: Jul 13 2012 Time: 10:33:32
/etc/init.d/rc: /etc/rc5.d/S30loadmodules.sh: line 29: mapdmaq-hd: not found
Starting Codec Server daemon.
gotta load /usr/libexec/cagentd/avssd.lua
Starting CLI daemon..
starting SIP user agent
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm6467t-evm ttyS0
Arago 2009.11 dm6467t-evm ttyS0
dm6467t-evm login: