本人用CPU是DM365,采用的是368的方案
之前文件系统是通过nfs挂在服务器上启动,可正常启动。现在我把文件系统ubifs烧到flash上启动,同时修改了启动环境变量:
setenv bootargs 'mem=48M console=ttyS1,115200n8 noinitrd ip=dhcp rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1×28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248 eth=$(ethaddr) quiet'
启动错误:
Starting kernel …
[ 0.690743] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 8:0, read 64 bytes
[ 0.700857] UBI error: validate_ec_hdr: bad VID header offset 512, expected 2048
[ 0.708281] UBI error: validate_ec_hdr: bad EC header
[ 0.713485] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 8
[ 0.720595] UBI error: ubi_init: cannot attach mtd3
[ 0.804881] Error: Driver 'davinci-mcbsp' is already registered, aborting…
[ 5.892645] Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
ubifs文件系统我是在ipnc_rdkZ直接make ubifs生成镜像,是否因为配置不对,或者那些地方需要修改的?
Rules.make修改如下:
# Select Hardware Platform: EVM or IPNC
#SYSTEM_PLATFORM := EVM
SYSTEM_PLATFORM := IPNC
# IPNC Platform Device needs to selected
#IPNC_DEVICE := DM365
IPNC_DEVICE := DM368
#IPNC_DEVICE := DMVA1
#IPNC_DEVICE := DMVA2
# Filesystem mode to selected: NAND or NFS
#FILESYS_MODE := NFS
FILESYS_MODE := UBIFS
# Build configuration : debug or release
#APP_BUILD_CFG := debug
APP_BUILD_CFG := release
# UBIFS mtd-utils mode
#MTD_UTILS_MODE := 64bit
MTD_UTILS_MODE := 32bit
# Sensor Selected for the build
#IMGS_ID := IMGS_MICRON_MT9P031_5MP
#IMGS_ID := IMGS_MICRON_MT9D131_2MP
#IMGS_ID := IMGS_OV10630_1MP
#IMGS_ID := IMGS_MICRON_MT9M031_1.2MP
#IMGS_ID := IMGS_MICRON_MT9M034_1.2MP
#IMGS_ID := IMGS_OV2715_2MP
#IMGS_ID := IMGS_SONY_IMX035_1_3MP
#IMGS_ID := IMGS_SONY_IMX036_3MP
#IMGS_ID := IMGS_SONY_IMX104_1_3MP
#IMGS_ID := IMGS_SONY_IMX136_2_3MP
#IMGS_ID := IMGS_SONY_IMX122_2_3MP
#IMGS_ID := IMGS_AR0130_1.2MP
#IMGS_ID := IMGS_AR0330_3.1MP
#IMGS_ID := IMGS_AR0331_3.1MP
#IMGS_ID := IMGS_AR0331_3.1MP_WDR
#IMGS_ID := IMGS_PANASONIC_MN34041_2.1MP
IMGS_ID :=IMGS_OV9712_1MP
ifeq ($(SYSTEM_PLATFORM), EVM)
IMGS_ID := IMGS_TVP514X
endif
# This flag will determine whether any 2A modules is required in build or not
#AEWB_BUILD_MODE := no
AEWB_BUILD_MODE := yes
# Build warnings will be treated as errors for av_capture folder
TREAT_WARNINGS_AS_ERROR := no
#TREAT_WARNINGS_AS_ERROR := yes
# WiFi hardware mode flag: ON or OFF
# ON:if WiFi Hardware module is present else this needs to be set to OFF
#WIFI_MODULE_MODE := ON
WIFI_MODULE_MODE := OFF
# AES Encyrption mode flag: ON or OFF
# ON:if AES Encyprtion module is present else this needs to be set to OFF
#AES_MODULE_MODE := ON
AES_MODULE_MODE := OFF
求大神指点,万分感谢!
Eason Wang:
1. 确认你的Kernel和文件系统来自于同一套RDK
2. 以前是否有过能够用的ubifs?回溯一下看看,确定bootargs之类配置没有问题。
3. 重新烧写整个nand,先用nand scrub指令清除nand上的数据。
4. 请问试了几个硬件,是否每个硬件上一样的问题?
wenbin zheng:
回复 Eason Wang:
你好:
感谢您的回复!
1、kernel和文件系统是用同一套RDK
2、之前是用NFS的方式挂服务器上启动,现在想烧到nand flash上用ubifs启动,bootargs参数配置是根据UserGuide_IPNC_RDK_DM36x.pdf手册,应该是没错。
setenv bootargs 'mem=48M console=ttyS1,115200n8 noinitrd ip=dhcp rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1×28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248 eth=$(ethaddr) quiet'
3、已经试过把整个flash擦除掉,可是还是一样的问题。
4、我手上只有一个硬件,我想nfs能够启动,硬件方面应该没有问题吧。
编译成ubsfs镜像是不是只需要修改Rules.make??
现在我如果插着网线,还能启动到文件系统,可是报一大堆错误:
Starting kernel …
[ 1.054547] Error: Driver 'davinci-mcbsp' is already registered, aborting…INIT: version 2.86 bootingUBI device number 1, total 64 LEBs (8126464 bytes, 7.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)Starting mounting local filesystems: mount Creat queue id:0queue id:0FileMngThread createdCreat queue id:32769queue id:32769queue id:32769AlramThread createdShare memory init successCreat queue id:65538queue id:65538Creat queue id:98307queue id:98307IPNC_DM368_5.0.0 (uu@ubuntu) (gcc version 4.3.3 (GCC) ) #4 PREEMPT Thu Apr 24 queue id:65538mount: mounting /dev/root on / failed: No such file or directorymount: mounting none on /dev/shm failed: No such file or directory