版主您好!
我使用的内核和文件系统分别是:uImage_ipnc_dm368_2.6.0和cramfsImage_ipnc_dm368_2.6.0
启动中报错:
……
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 180K
Error -3 while decompressing!
c03c211f(2652)->c0669000(4096)
请问是什么原因?文件系统跟内核都用的是开发包中原始自带的
Louis:
你好,
请问你用的是什么板子?TI的开发板么?
woods silence:
回复 Louis:
是这样的,我们以前是参考TI的DVSDK设计的,
目前我们想转到IPNC的环境上来,我用的UBL跟UBOOT都是dvsdk的
内核跟文件系统用的IPNC的;启动的时候,内核都启动完了,在解压文件系统的时候就卡在那儿了
板子是我们自己的板子,用DVSDK那一套东西是跑通了的
Starting kernel …
Uncompressing Linux…………………………………………………………………………………………………………. done, booting the kernel.Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (kudva@mapplinux03.india.ti.com) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Fri Mar 4 21:43:44 IST 2011CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177Machine: DaVinci DM368 IPNCMemory policy: ECC disabled, Data cache writebackDaVinci DM0365 variant 0x8PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 97142857PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000CPU0: D VIVT write-back cacheCPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsCPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 setsBuilt 1 zonelists. Total pages: 15360Kernel command line: mem=60MB console=ttyS0,115200n8 root=/dev/mtdblock3 rootfstype=cramfs ip=10.2.11.172 eth=$(ethaddr)PID hash table entries: 256 (order: 8, 1024 bytes)Clock event device timer0_0 configured with caps set: 07Console: colour dummy device 80x30Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 60MB = 60MB totalMemory: 56844KB available (3105K code, 643K data, 180K init)Security Framework v1.0.0 initializedCapability LSM initializedMount-cache hash table entries: 512CPU: Testing write buffer coherency: okNET: Registered protocol family 16DaVinci: 104 gpio irqsMUX: initialized GPIO20MUX: initialized I2C_SCLMUX: initialized GPIO87MUX: initialized CLKOUT0Generic PHY: Registered new driverch0 default output "COMPOSITE", mode "NTSC"VPBE Encoder InitializedSCSI subsystem initializedNET: Registered protocol family 2IP route cache hash table entries: 512 (order: -1, 2048 bytes)TCP established hash table entries: 2048 (order: 1, 8192 bytes)TCP bind hash table entries: 1024 (order: 0, 4096 bytes)TCP: Hash tables configured (established 2048 bind 1024)TCP reno registeredVFS: Disk quotas dquot_6.5.1Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)squashfs: version 3.1 (2006/08/19) Phillip LougherJFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.yaffs Mar 4 2011 21:40:50 Installing. SGI XFS with no debug enabledInitializing Cryptographic APIio scheduler noop registeredio scheduler anticipatory registered (default)LTT : ltt-facilities initLTT : ltt-facility-core init in kernelDAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 secSerial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabledserial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550Aserial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550ARAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksizeLinux video capture interface: v2.00Trying to register davinci display video device.layer=c065ba00,layer->video_dev=c065bb60Trying to register davinci display video device.layer=c065b800,layer->video_dev=c065b960davinci_init:DaVinci V4L2 Display Driver V1.0 loadedi2c /dev entries drivernand_davinci nand_davinci.0: Using 4-bit hardware ECCNAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)Bad block table not found for chip 0Bad block table not found for chip 0Scanning device for bad blocksCreating 6 MTD partitions on "nand_davinci.0":0x00000000-0x00300000 : "bootloader"0x00300000-0x00500000 : "params"0x00500000-0x00700000 : "kernel"0x00700000-0x01f00000 : "filesystem"0x01f00000-0x02100000 : "data1"0x02100000-0x08000000 : "data2"nand_davinci nand_davinci.0: hardware revision: 2.3rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: procrtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).ASoC version 0.13.1CQ0093 Voice Codec 0.1asoc: cq93vc <-> davinci-vcif mapping okALSA device list: #0: On-chip voice codec (cq93vc)IPv4 over IPv4 tunneling driverTCP bic registeredNET: Registered protocol family 1NET: Registered protocol family 17rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:00:00 (946684800)Time: timer0_1 clocksource has been installed.Clock event device timer0_0 configured with caps set: 08Switched to high resolution mode on CPU 0IP-Config: No network devices available.VFS: Mounted root (cramfs filesystem) readonly.Freeing init memory: 180KError -3 while decompressing!c03c211f(2652)->c0669000(4096)
Tuff Li:
回复 woods silence:
学会看log
IP-Config: No network devices available.
说明你没有把以太网驱动编译进来,看IPNC user guide,要用NFS的kernel配置
另外一个,你的IPNC软件太老,请联系TI代理商,获取新版本IPNC v3.1或者IPNC v4.1
woods silence:
回复 Tuff Li:
内核用的是开发包中编译好的uImage
IPNC的同样提示:IP-Config: No network devices available.
另外:我认为既然内核都已经成功启动了,那证明问题跟我使用dvsd的ubl和uboot无关?是否可以这样判断?
IPNC的启动打印如下:
Starting kernel …
Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (kudva@mapplinux03.india.ti.com) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Fri Mar 4 21:43:44 IST 2011CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177Machine: DaVinci DM368 IPNCMemory policy: ECC disabled, Data cache writebackDaVinci DM0365 variant 0x8PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000CPU0: D VIVT write-back cacheCPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsCPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 setsBuilt 1 zonelists. Total pages: 12288Kernel command line: mem=48M console=ttyS1,115200n8 root=/dev/mtdblock3 rootfstype=cramfs ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:A0:07:56PID hash table entries: 256 (order: 8, 1024 bytes)Clock event device timer0_0 configured with caps set: 07Console: colour dummy device 80x30Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 48MB = 48MB totalMemory: 44684KB available (3105K code, 643K data, 180K init)Security Framework v1.0.0 initializedCapability LSM initializedMount-cache hash table entries: 512CPU: Testing write buffer coherency: okNET: Registered protocol family 16DaVinci: 104 gpio irqsMUX: initialized GPIO20MUX: initialized I2C_SCLGeneric PHY: Registered new driverch0 default output "COMPOSITE", mode "NTSC"VPBE Encoder InitializedSCSI subsystem initializedNET: Registered protocol family 2IP route cache hash table entries: 512 (order: -1, 2048 bytes)TCP established hash table entries: 2048 (order: 1, 8192 bytes)TCP bind hash table entries: 1024 (order: 0, 4096 bytes)TCP: Hash tables configured (established 2048 bind 1024)TCP reno registeredVFS: Disk quotas dquot_6.5.1Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)squashfs: version 3.1 (2006/08/19) Phillip LougherJFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.yaffs Mar 4 2011 21:40:50 Installing. SGI XFS with no debug enabledInitializing Cryptographic APIio scheduler noop registeredio scheduler anticipatory registered (default)LTT : ltt-facilities initLTT : ltt-facility-core init in kernelDAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 secSerial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabledserial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550Aserial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550ARAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksizeLinux video capture interface: v2.00Trying to register davinci display video device.layer=c04dba00,layer->video_dev=c04dbb60Trying to register davinci display video device.layer=c04db800,layer->video_dev=c04db960davinci_init:DaVinci V4L2 Display Driver V1.0 loadedi2c /dev entries drivernand_davinci nand_davinci.0: Using 4-bit hardware ECCNAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)Creating 6 MTD partitions on "nand_davinci.0":0x00000000-0x00300000 : "bootloader"0x00300000-0x00500000 : "params"0x00500000-0x00700000 : "kernel"0x00700000-0x01f00000 : "filesystem"0x01f00000-0x02100000 : "data1"0x02100000-0x08000000 : "data2"nand_davinci nand_davinci.0: hardware revision: 2.3rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: procrtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).ASoC version 0.13.1CQ0093 Voice Codec 0.1asoc: cq93vc <-> davinci-vcif mapping okALSA device list: #0: On-chip voice codec (cq93vc)IPv4 over IPv4 tunneling driverTCP bic registeredNET: Registered protocol family 1NET: Registered protocol family 17rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:00:00 (946684800)Time: timer0_1 clocksource has been installed.Clock event device timer0_0 configured with caps set: 08Switched to high resolution mode on CPU 0IP-Config: No network devices available.VFS: Mounted root (cramfs filesystem) readonly.Freeing init memory: 180KINIT: version 2.86 booting0mkdir: Cannot create directory `/dev/.test': Read-only file systemStarting the hotplug events dispatcher: udevd.Synthesizing the initial hotplug events…done.Waiting for /dev to be fully populated…done.
Tuff Li:
回复 woods silence:
另外:我认为既然内核都已经成功启动了,那证明问题跟我使用dvsd的ubl和uboot无关?是否可以这样判断?
你的理解是对的
去把以太网驱动编译进内核吧,你用的IPNC版本应该是2.6的,2.6版本的以太网驱动是放在文件系统里加载的
3.x以后的已经改过来了
woods silence:
回复 Tuff Li:
你好,请问ipnc 4.1 或 3.1 版本包含mt9034的驱动吗?
woods silence:
回复 Tuff Li:
在内核中加进网络驱动后,挂载nfs文件系统可以正常启动,但是从flash启动文件系统还是报错,打印如下:
Starting kernel …
Uncompressing Linux………………………………………………………………………………………………………….. done, booting the kernel.Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (root@localhost.localdomain) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Mon Jul 8 10:33:07 HKT 2013CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177Machine: DaVinci DM368 IPNCMemory policy: ECC disabled, Data cache writebackDaVinci DM0365 variant 0x8PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 97142857PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000CPU0: D VIVT write-back cacheCPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsCPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 setsBuilt 1 zonelists. Total pages: 12288Kernel command line: mem=48M console=ttyS0,115200n8 ip=10.2.11.172:10.2.11.171:10.2.11.1:255.255.255.0:::off root=/dev/mtdblock3 rootfstype=cramfs eth=00:11:22:33:44:55TI DaVinci EMAC: kernel boot params Ethernet address: 00:11:22:33:44:55PID hash table entries: 256 (order: 8, 1024 bytes)Clock event device timer0_0 configured with caps set: 07Console: colour dummy device 80x30Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 48MB = 48MB totalMemory: 44672KB available (3133K code, 645K data, 176K init)Security Framework v1.0.0 initializedCapability LSM initializedMount-cache hash table entries: 512CPU: Testing write buffer coherency: okNET: Registered protocol family 16DaVinci: 104 gpio irqsMUX: initialized GPIO20MUX: initialized I2C_SCLMUX: initialized GPIO87MUX: initialized CLKOUT0Generic PHY: Registered new driverch0 default output "COMPOSITE", mode "NTSC"VPBE Encoder InitializedSCSI subsystem initializedNET: Registered protocol family 2IP route cache hash table entries: 512 (order: -1, 2048 bytes)TCP established hash table entries: 2048 (order: 1, 8192 bytes)TCP bind hash table entries: 1024 (order: 0, 4096 bytes)TCP: Hash tables configured (established 2048 bind 1024)TCP reno registeredVFS: Disk quotas dquot_6.5.1Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)squashfs: version 3.1 (2006/08/19) Phillip LougherJFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.yaffs Jul 8 2013 10:38:30 Installing. SGI XFS with no debug enabledInitializing Cryptographic APIio scheduler noop registeredio scheduler anticipatory registered (default)LTT : ltt-facilities initLTT : ltt-facility-core init in kernelDAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 secSerial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabledserial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550Aserial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550ARAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksizeDavinci EMAC MII Bus: probedMAC address is 00:11:22:33:44:55TI DaVinci EMAC Linux version updated 4.0Linux video capture interface: v2.00Trying to register davinci display video device.layer=c0605800,layer->video_dev=c0605960Trying to register davinci display video device.layer=c0605600,layer->video_dev=c0605760davinci_init:DaVinci V4L2 Display Driver V1.0 loadedi2c /dev entries drivernand_davinci nand_davinci.0: Using 4-bit hardware ECCNAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)Bad block table not found for chip 0Bad block table not found for chip 0Scanning device for bad blocksCreating 6 MTD partitions on "nand_davinci.0":0x00000000-0x00300000 : "bootloader"0x00300000-0x00500000 : "params"0x00500000-0x00700000 : "kernel"0x00700000-0x01f00000 : "filesystem"0x01f00000-0x02100000 : "data1"0x02100000-0x08000000 : "data2"nand_davinci nand_davinci.0: hardware revision: 2.3rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: procrtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).ASoC version 0.13.1CQ0093 Voice Codec 0.1asoc: cq93vc <-> davinci-vcif mapping okALSA device list: #0: On-chip voice codec (cq93vc)IPv4 over IPv4 tunneling driverTCP bic registeredNET: Registered protocol family 1NET: Registered protocol family 17Time: timer0_1 clocksource has been installed.Clock event device timer0_0 configured with caps set: 08Switched to high resolution mode on CPU 0rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:00:00 (946684800)IP-Config: Complete: device=eth0, addr=10.2.11.172, mask=255.255.255.0, gw=10.2.11.1, host=10.2.11.172, domain=, nis-domain=(none), bootserver=10.2.11.171, rootserver=10.2.11.171, rootpath=VFS: Mounted root (cramfs filesystem) readonly.Freeing init memory: 176KError -3 while decompressing!c03c898f(2652)->c06a0000(4096)
woods silence:
回复 woods silence:
ps:在uboot中设置静态IP ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off 分别表示本设备IP,?,网关,子网掩码,关闭DHCP么?第二个ip表示的是什么呢?
de wang:
回复 woods silence:
兄弟,解决问题了吗?
个人认为很可能是 cramfs 镜像包 完整性问题。 可能是你 tftp 或 write to nand 时没有把镜像完全下载或写入,或者linux启动参数中指定的解压目的内存空间不够。总之,就是cramfs解压过程出错了,仔细检查下