This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368 MT5 IPNC 3.0 SDK的问题?



之前使用的是Appro 2.6 SDK,烧录SDK里自带ubl,u-boot,kernel,file system,软件都可以正常跑起来,也可以通过VLC和在IE里看到视频图像。现将SDK版本升级到Version 3.0,参照IPNC文档,烧录了SDK里的ubl,u-boot,uImage_ipnc_dm368_3.0.0和ipnc_dm368_3.0.0.squashfs,并且在u-boot下设置了参数,如下:

tftpboot 0x80700000 uImage_ipnc_dm368_3.0.0;tftpboot 0x82000000 ipnc_dm368_3.0.0.squashfs
nand erase 0x500000 0x400000;nand write 0x80700000 0x500000 0x400000
nand erase 0x900000 0x1000000;nand write 0x82000000 0x900000 0x1000000
setenv bootcmd 'nboot 0x80700000 0 0x500000;bootm 0x80700000'
setenv bootargs 'mem=48M console=ttyS0,115200n8 root=/dev/mtdblock3 rootfstype=squashfs ip=192.168.1.168:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:02:37:A6 lpj=1077248 cmemk.phys_start="0x83000000" cmemk.phys_end="0x88000000"  cmemk.phys_start_1="0x00001000" cmemk.phys_end_1="0x00008000" cmemk.pools_1="1x28672"  cmemk.allowOverlap="1" quiet';setenv verify no;saveenv;reset

系统无法启动,超级终端下的提示信息如下:

Loading from NAND 32MiB 3,3V 8-bit, offset 0x500000
   Image Name:   Linux-2.6.18_pro500-davinci_IPNC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2658244 Bytes =  2.5 MB
   Load Address: 80008000
   Entry Point:  80008000
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.18_pro500-davinci_IPNC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2658244 Bytes =  2.5 MB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.250000] SQUASHFS error: Unknown inode type 0 in squashfs_iget!
[    0.260000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    0.270000] 

是我的操作哪里出了问题吗?

  • mount不了根文件系统,把bootargs后面quiet去掉,把log贴出来看看

  • Loading from NAND 32MiB 3,3V 8-bit, offset 0x500000

      Image Name:   Linux-2.6.18_pro500-davinci_IPNC

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    2658244 Bytes =  2.5 MB

      Load Address: 80008000

      Entry Point:  80008000

    ## Booting kernel from Legacy Image at 80700000 ...

      Image Name:   Linux-2.6.18_pro500-davinci_IPNC

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    2658244 Bytes =  2.5 MB

      Load Address: 80008000

      Entry Point:  80008000

      Loading Kernel Image ... OK

    OK

    Starting kernel ...

    [    0.000000] Linux version 2.6.18_pro500-davinci_IPNC_DM368_3.0.0 (a0875405@bangvideoapps01) (gcc version 4.2.0 20070126 (prerelease) (MontaVista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Tue Feb 28 15:37:29 IST 2012

    [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

    [    0.000000] Machine: DaVinci DM368 IPNC

    [    0.000000] Memory policy: ECC disabled, Data cache writeback

    [    0.000000] DaVinci DM0365 variant 0x8

    [    0.000000] PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000

    [    0.000000] PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428

    [    0.000000] PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000

    [    0.000000] CPU0: D VIVT write-back cache

    [    0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets

    [    0.000000] CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets

    [    0.000000] Built 1 zonelists.  Total pages: 12288

    [    0.000000] Kernel command line: mem=48M console=ttyS0,115200n8 root=/dev/mtdblock3 rootfstype=squashfs ip=192.168.1.168:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:02:37:A6 lpj=1077248 cmemk.phys_start="0x83000000" cmemk.phys_end="0x88000000" cmemk.phys_start_1="0x00001000" cmemk.phys_end_1="0x00008000" cmemk.pools_1="1x28672" cmemk.allowOverlap="1"

    [    0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:02:37:A6

    [    0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)

    [    0.000000] Clock event device timer0_0 configured with caps set: 07

    [    0.000000] Console: colour dummy device 80x30

    [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

    [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

    [    0.000000] Memory: 48MB = 48MB total

    [    0.000000] Memory: 45860KB available (2289K code, 276K data, 176K init)

    [    0.000000] Calibrating delay loop (skipped)... 215.44 BogoMIPS preset

    [    0.000000] Security Framework v1.0.0 initialized

    [    0.000000] Capability LSM initialized

    [    0.000000] Mount-cache hash table entries: 512

    [    0.000000] CPU: Testing write buffer coherency: ok

    [    0.010000] NET: Registered protocol family 16

    [    0.010000] DaVinci: 104 gpio irqs

    [    0.010000] MUX: initialized GPIO20

    [    0.010000] MUX: initialized I2C_SCL

    [    0.010000] Generic PHY: Registered new driver

    [    0.010000] ch0 default output "COMPOSITE", mode "NTSC"

    [    0.020000] VPBE Encoder Initialized

    [    0.020000] SCSI subsystem initialized

    [    0.020000] NET: Registered protocol family 2

    [    0.110000] IP route cache hash table entries: 512 (order: -1, 2048 bytes)

    [    0.110000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)

    [    0.110000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

    [    0.110000] TCP: Hash tables configured (established 2048 bind 1024)

    [    0.110000] TCP reno registered

    [    0.120000] VFS: Disk quotas dquot_6.5.1

    [    0.120000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

    [    0.120000] squashfs: version 3.1 (2006/08/19) Phillip Lougher

    [    0.120000] JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.

    [    0.130000] Initializing Cryptographic API

    [    0.130000] io scheduler noop registered

    [    0.130000] io scheduler anticipatory registered (default)

    [    0.130000] io scheduler deadline registered

    [    0.130000] io scheduler cfq registered

    [    0.160000] CSL: Module install successful, device major num = 253

    [    0.160000] CSL: Module version 0.10.00, built on Feb 28 2012 15:29:46

    [    0.160000] I2C: Module install successful, device major num = 252

    [    0.160000] DMA: Module install successful, device major num = 251

    [    0.160000] DRV: Module install successful

    [    0.160000] DRV: Module built on Feb 28 2012 15:29:48

    [    0.160000] DRV: EDMACC.QUEPRI  = 00002777

    [    0.160000] DRV: SYSTEM.MSTPRI0 = 00440011

    [    0.160000] DRV: SYSTEM.MSTPRI1 = 00000444

    [    0.160000] DRV: ISP.BCR        = 00000002

    [    0.160000] DRV: SYSTEM.MISC    = 00000399

    [    0.160000] EDMAK module: built on Feb 28 2012 at 15:29:34

    [    0.160000]   Reference Linux version 2.6.18

    [    0.160000]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

    [    0.160000] IRQK module: built on Feb 28 2012 at 15:29:35

    [    0.160000]   Reference Linux version 2.6.18

    [    0.160000]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c

    [    0.160000] irqk initialized

    [    0.160000] CMEMK module: built on Feb 28 2012 at 15:29:33

    [    0.160000]   Reference Linux version 2.6.18

    [    0.170000]   File /data/datalocal_videoapps01/user/kudva/DM36x/IPNetCam/dvsdk_ipnctools/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

    [    0.170000] allocated heap buffer 0xc4000000 of size 0x5000000

    [    0.170000] CMEM Range Overlaps Kernel Physical - allowing overlap

    [    0.170000] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)

    [    0.170000] cmemk initialized

    [    0.170000] Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled

    [    0.170000] serial8250.0: ttyS0 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A

    [    0.180000] RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize

    [    0.190000] Davinci EMAC MII Bus: probed

    [    0.200000] MAC address is 00:0C:0C:02:37:A6

    [    0.200000] TI DaVinci EMAC Linux version updated 4.0

    [    0.210000] Linux video capture interface: v2.00

    [    0.210000] Trying to register davinci display video device.

    [    0.220000] layer=c04cb200,layer->video_dev=c04cb360

    [    0.220000] Trying to register davinci display video device.

    [    0.230000] layer=c04cb000,layer->video_dev=c04cb160

    [    0.230000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded

    [    0.240000] i2c /dev entries driver

    [    0.250000] nand_davinci nand_davinci.0: Using 4-bit hardware ECC

    [    0.250000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)

    [    0.260000] Creating 6 MTD partitions on "nand_davinci.0":

    [    0.270000] 0x00000000-0x00300000 : "bootloader"

    [    0.270000] 0x00300000-0x00500000 : "params"

    [    0.280000] 0x00500000-0x00900000 : "kernel"

    [    0.290000] 0x00900000-0x02100000 : "filesystem"

    [    0.290000] mtd: partition "filesystem" extends beyond the end of device "nand_davinci.0" -- size truncated to 0x1700000

    [    0.300000] 0x02100000-0x02300000 : "data1"

    [    0.310000] mtd: partition "data1" is out of reach -- disabled

    [    0.320000] 0x02300000-0x02000000 : "data2"

    [    0.320000] mtd: partition "data2" is out of reach -- disabled

    [    0.330000] nand_davinci nand_davinci.0: hardware revision: 2.3

    [    0.340000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc

    [    0.340000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)

    [    0.350000] rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0

    [    0.360000] Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

    [    0.370000] ASoC version 0.13.1

    [    0.370000] CQ0093 Voice Codec 0.1

    [    0.380000] asoc: cq93vc <-> davinci-vcif mapping ok

    [    0.390000] ALSA device list:

    [    0.390000]   #0: On-chip voice codec (cq93vc)

    [    0.390000] IPv4 over IPv4 tunneling driver

    [    0.400000] TCP bic registered

    [    0.400000] NET: Registered protocol family 1

    [    0.410000] NET: Registered protocol family 17

    [    0.410000] rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:00:00 (946684800)

    [    0.420000] Time: timer0_1 clocksource has been installed.

    [    0.430000] Clock event device timer0_0 configured with caps set: 08

    [    0.430000] Switched to high resolution mode on CPU 0

    [    0.470000] IP-Config: Complete:

    [    0.470000]       device=eth0, addr=192.168.1.168, mask=255.255.255.0, gw=192.168.1.1,

    [    0.480000]      host=192.168.1.168, domain=, nis-domain=(none),

    [    0.480000]      bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=

    [    0.500000] SQUASHFS error: Unknown inode type 0 in squashfs_iget!

    [    0.500000] No filesystem could mount root, tried:  squashfs

    [    0.510000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)

    [    0.520000]  

    这是bootargs后面quiet去掉后,在超级终端里显示的启动信息。

    照着IPNC 3.0 SDK里的文档都整出来有问题,真是晕死呀! 不会是Appro 这个版本的SDK本身还有Bugs就 Release出来了吧?!

  • 遇到问题不要慌! 搞清楚问题先! 心浮气躁怎么搞技术!!!

    你这个flash是32M的吧,DM368缺省的配置是128MB,这样MTD表超过了大小限制了

    [    0.250000] nand_davinci nand_davinci.0: Using 4-bit hardware ECC

    [    0.250000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)

    [    0.260000] Creating 6 MTD partitions on "nand_davinci.0":

    [    0.270000] 0x00000000-0x00300000 : "bootloader"

    [    0.270000] 0x00300000-0x00500000 : "params"

    [    0.280000] 0x00500000-0x00900000 : "kernel"

    [    0.290000] 0x00900000-0x02100000 : "filesystem"

    [    0.290000] mtd: partition "filesystem" extends beyond the end of device "nand_davinci.0" -- size truncated to 0x1700000

    [    0.300000] 0x02100000-0x02300000 : "data1"

    [    0.310000] mtd: partition "data1" is out of reach -- disabled

    [    0.320000] 0x02300000-0x02000000 : "data2"

    [    0.320000] mtd: partition "data2" is out of reach -- disabled

    [    0.330000] nand_davinci nand_davinci.0: hardware revision: 2.3

    修改内核MTD表,你可以用DM365 IPNC的MTD表做参考!

  • 嗯,谢谢专家啊!

    我之前看错误提示信息,也怀疑过是flash太小了的原因,但一直无法确认这个问题。所以,我不是还发了另外一个帖子,咨询有关DM368上支持三星K9F1G08U0C-PCB0 128MB nand flash的事情吗?目前还在做 SD Boot 呢,还没搞定。。。哎!老板每天都盯得紧,没办法呀!问题不搞定,国庆都还得加班呢。。

    因为我们现在还是用的K9F5608U0C 32MB nand flash,之前是跑的Appro 2.6 SDK,软件都可以正常运行,看得到视频;没想到升级到 3.0 SDK后,系统都跑不起来了,所以一开始确实也没往这个 flash 大小的问题去想。。

  • 请问ipnc 3.0 如何获取???

  • 请联系TI的代理商