你好,
我根据PDF上的资料只烧写了uImage_ipnc_dm368和ipnc_dm368_ubifs 两个文件。但是kernel就是进不了。(附:之前flash里有程序并且能跑起来)。
下面是我烧写的命令:
———————————————————————————————————
setenv serverip 192.168.1.124
setenv ipaddr 192.168.1.123
setenv ethaddr 00:28:c9:0d:36:4e
setenv gatewayip 192.168.1.1
setenv netmask 255.255.255.0
setenv dnsip 192.168.1.1;saveenv
tftpboot 0x80700000 uImage_ipnc_dm368
tftpboot 0x82000000 ipnc_dm368_ubifs
nand erase 0x500000 0x400000
nand write 0x80700000 0x500000 0x400000
nand erase 0x900000 0x2800000
nand write 0x82000000 0x900000 0x2800000
setenv bootcmd 'nboot 0x80700000 0 0x500000;bootm 0x80700000'
setenv bootargs 'mem=55M console=ttyS0,115200n8 ip=off rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs eth=$(ethaddr) quiet'setenv bootargs '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 eth=$(ethaddr) quiet'
———————————————————————————————————
重启后的程序:
———————————————————————————————————
DM36x initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = NAND V1.3 NAND TIMEOUT 102400
DDR2 Check
DDR2 Check complete
Starting NAND Copy…
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
DONE
Jumping to entry point at 0x81080000.
Reset RTC Fail..
DM368_IPNC_UBL_1.0.1
U-Boot 1.3.4 (Jun 19 2012 – 17:02:28) DM368-IPNC-1.0.1
I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,
3V 8-bit)
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
128 MiB
In: serial
Out: serial
Err: serial
ARM Clock :- 486MHz
DDR Clock :- 360MHz
Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000
Image Name: Linux-2.6.37_IPNC_DM368_5.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3711968 Bytes = 3.5 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 …
Image Name: Linux-2.6.37_IPNC_DM368_5.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3711968 Bytes = 3.5 MB
Load Address: 80008000
Entry Point: 80008000
Loading Kernel Image … OK
OK
Starting kernel …
———————————————————————————————————
连kernel都进不去是什么原因?是不是配置的问题??
Eason Wang:
加一条 set verify no试试
ben chen1:
回复 Eason Wang:
你好,
我在前面加了一条 set verify no命令还是跟之前的一样内核都进不去
我后面只给了一条命令:setenv bootargs 'mem=55M console=ttyS0,115200n8 ip=off rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs eth=$(ethaddr) quiet'
后面这条没有写进去(setenv bootargs '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 eth=$(ethaddr) quiet')
它有出现了如下错误。请问是什么原因呢。
——————————————————————————————
Starting kernel …
[ 1.240414] Error: Driver 'davinci-mcbsp' is already registered, aborting…[ 1.295679] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 3:4096, read 126976 bytes[ 1.332373] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 4:4096, read 126976 bytes[ 1.370887] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 5:4096, read 126976 bytes[ 1.424065] UBI error: ubi_io_read: error -74 (ECC error) while reading 79872 bytes from PEB 257:51200, read 79872 bytes[ 1.463173] UBI error: ubi_io_read: error -74 (ECC error) while reading 2048bytes from PEB 184:129024, read 2048 bytes[ 1.533126] UBI error: ubi_io_read: error -74 (ECC error) while reading 2048bytes from PEB 211:129024, read 2048 bytes[ 1.603073] UBI error: ubi_io_read: error -74 (ECC error) while reading 2048bytes from PEB 210:129024, read 2048 bytesINIT: version 2.86 booting[ 2.242385] UBI error: ubi_scan_get_free_peb: no free eraseblocksubiattach: error!: cannot attach mtd4 error 28 (No space left on device)libubi: error!: cannot get information about "/dev/ubi1" error 2 (No such file or directory)ubimkvol: error!: error while probing "/dev/ubi1" error 2 (No such file or directory)mount: mounting ubi1:ubifs_volume on /mnt/nand failed: No such deviceubidetach: error!: cannot remove ubi1 error 22 (Invalid argument)ubiformat: mtd4 (nand), size 8388608 bytes (8.0 MiB), 64 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 byteslibscan: scanning eraseblock 63 — 100 % completeubiformat: error!: all 64 eraseblocks are bad[ 4.960196] UBI error: ubi_scan_get_free_peb: no free eraseblocksubiattach: error!: cannot attach mtd4 error 28 (No space left on device)libubi: error!: cannot get information about "/dev/ubi1" error 2 (No such file or directory)ubimkvol: error!: error while probing "/dev/ubi1" error 2 (No such file or directory)mount: mounting ubi1:ubifs_volume on /mnt/nand failed: No such deviceubidetach: error!: cannot remove ubi1 error 22 (Invalid argument)ubiformat: mtd4 (nand), size 8388608 bytes (8.0 MiB), 64 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 byteslibscan: scanning eraseblock 63 — 100 % completeubiformat: error!: all 64 eraseblocks are bad[ 7.640395] UBI error: ubi_scan_get_free_peb: no free eraseblocksubiattach: error!: cannot attach mtd4 error 28 (No space left on device)libubi: error!: cannot get information about "/dev/ubi1" error 2 (No such file or directory)ubimkvol: error!: error while probing "/dev/ubi1" error 2 (No such file or directory)mount: mounting ubi1:ubifs_volume on /mnt/nand failed: No such deviceubidetach: error!: cannot remove ubi1 error 22 (Invalid argument)ubiformat: mtd4 (nand), size 8388608 bytes (8.0 MiB), 64 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 byteslibscan: scanning eraseblock 63 — 100 % completeubiformat: error!: all 64 eraseblocks are bad[ 10.320359] UBI error: ubi_scan_get_free_peb: no free eraseblocksubiattach: error!: cannot attach mtd4 error 28 (No space left on device)libubi: error!: cannot get information about "/dev/ubi1" error 2 (No such file or directory)ubimkvol: error!: error while probing "/dev/ubi1" error 2 (No such file or directory)mount: mounting ubi1:ubifs_volume on /mnt/nand failed: No such devicemknod: /dev/spidev0.0: File existsStarting mounting local filesystems: mount Creat queue id:0queue id:0FileMngThread createdCreat queue id:32769queue id:32769queue id:32769AlramThread createdShare memory init successIPNC_DM368_5.1.0 (x0066085@bangvideoapps01) (gcc version 4.3.3 (GCC) ) #1 PREEmount: mounting /dev/root on / failed: No such file or directoryCreat queue id:65538queue id:65538Creat queue id:98307queue id:98307mount: mounting none on /dev/shm failed: No such file or directory failed (2: ).queue id:65538net_search_gateway:eth0, 1A8C0, 0, 1Check_device_version : DEVICE VER = 0 !!
CPU is DM368
*****************************************************************
IPNC BUILD VERSION: DM368 IPNC RDK V5.10.00.04
*****************************************************************
Error: SemWait: Invalid Semaphore handlerError: SemRelease: Invalid Semaphore handler./av_server.out DM368E NTSC TI2A AEWB 720P H264 4000000 VBR AUTO MENUOFF &Starting internet superserver: inetdApproDrvInit: 7Creat queue id:131076queue id:131076.insmod: can't read '/opt/ipnc/modules/deflate.ko': No such file or directory
DM365MM Init SuccessfulAVSERVER UI: Initializing.ApproDrvInit: 8ApproDrvInit: 2ApproDrvInit: 10ApproDrvInit: 6ApproDrvInit: 9queue id:131076queue id:131076queue id:131076queue id:131076queue id:131076insmod: can't read '/opt/ipnc/modules/mmc_core.ko': No such file or directory
CLK Hz, ARM Hz = 486000000 DDR Hz = 360000000 VPSS Hz = 360000000 IMCOP Hz = 360000000
[ 13.101560] CMEMK Error: ioctl: no heap available in block 0CMEM Error: allocHeap: ioctl CMEM_IOCALLOCHEAP failed: -1[ 13.197550] mmc0: error -22 whilst initialising SDIO card[ 13.277528] mmc0: error -22 whilst initialising SDIO card[ 13.303901] CMEMK Error: Failed to find a pool which fits 28672[ 13.315075] Powering on wifiCMEM Error: getP[ 13.339338] CMEMK Error: get_phys: Unable to find phys addr for 0x00000000ool: Failed to g[ 13.347437] CMEMK Error: get_phys: get_user_pages() failed: -14et a pool fitting a size 28672[ 13.379095] CMEMK Error: GETPHYS: Failed to convert virtual 0x0 to physical.CMEM Error: getPhys: Failed to get physical address of 0[ 13.409328] CMEMK Error: get_phys: Unable to find phys addr for 0x00000000[ 13.416256] CMEMK Error: get_phys: get_user_pages() failed: -14[ 13.439087] CMEMK Error: FREE: Failed to convert virtual 0x0 to physicalCMEM Error: free: failed to free 0 ERROR (alg.c|ALG_sysInit|86): VICP Protocol regn failed ERROR (avServerApi.c|AVSERVER_init|640): ALG_sysInit() ERROR (avServerUi.c|UI_start|85): AVSERVER_init()[ 13.603603] Powering off wifi[ 13.606677] mmc1: error -22 whilst initialising SDIO card[ 13.630949] Powering on wifi[ 13.843666] Powering off wifi[ 13.846740] mmc1: error -22 whilst initialising SDIO card[ 14.357503] mmc0: error -22 whilst initialising SDIO card[ 14.427498] mmc0: error -22 whilst initialising SDIO card[ 15.497412] mmc0: error -22 whilst initialising SDIO cardmkdosfs 2.11 (12 Mar 2005)[ 15.557455] mmc0: error -22 whilst initialising SDIO cardunable to get drive geometry, using default 255/63/dev/ram0 has 255 heads and 63 sectors per track,logical sector size is 512,using 0xf8 media descriptor, with 8192 sectors;file system has 2 12-bit FATs and 4 sectors per cluster.FAT size is 6 sectors, and provides 2036 clusters.Root directory contains 512 slots.Volume ID is 0000000f, no volume label.queue id:0[ 16.627399] mmc0: error -22 whilst initialising SDIO card[ 16.687389] mmc0: error -22 whilst initialising SDIO card[ 17.737450] mmc0: error -22 whilst initialising SDIO card[ 17.797409] mmc0: error -22 whilst initialising SDIO card[ 18.847377] mmc0: error -22 whilst initialising SDIO card[ 18.907365] mmc0: error -22 whilst initialising SDIO card[ 19.957441] mmc0: error -22 whilst initialising SDIO card[ 20.017417] mmc0: error -22 whilst initialising SDIO card[ 21.067372] mmc0: error -22 whilst initialising SDIO card[ 21.127940] mmc0: error -22 whilst initialising SDIO card[ 22.177896] mmc0: error -22 whilst initialising SDIO card[ 22.237436] mmc0: error -22 whilst initialising SDIO card[ 23.287372] mmc0: error -22 whilst initialising SDIO card[ 23.347372] mmc0: error -22 whilst initialising SDIO card[ 24.397403] mmc0: error -22 whilst initialising SDIO card[ 24.457370] mmc0: error -22 whilst initialising SDIO card[ 25.507402] mmc0: error -22 whilst initialising SDIO card[ 25.567370] mmc0: error -22 whilst initialising SDIO cardTimeOut occure in boot_proc.Program exit.ApproDrvInit: 3queue id:131076INIT: Entering runlevel: 5/dev/pts failed: No such file or direcStarting telnet daemon.Starting syslogd/klogd: donegetty: ioctl() TIOCSPGR[ 26.617437] mmc0: error -22 whilst initialising SDIO card[ 26.677425] mmc0: error -22 whilst initialising SDIO card
_____ _____ _ _| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_| | _| .'| . | . | | __| _| . | | | -_| _| _||__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___|
Arago Project http://arago-project.org DM368_IPNC console
Arago 2009.11 DM368_IPNC console
DM368_IPNC login: [ 27.727915] mmc0: error -22 whilst initialising SDIO card[ 27.788556] mmc0: error -22 whilst initialising SDIO card[ 28.847378] mmc0: error -22 whilst initialising SDIO card[ 28.907399] mmc0: error -22 whilst initialising SDIO card[ 29.957398] mmc0: error -22 whilst initialising SDIO card[ 30.017375] mmc0: error -22 whilst initialising SDIO card[ 31.067417] mmc0: error -22 whilst initialising SDIO card[ 31.127504] mmc0: error -22 whilst initialising SDIO card………
——————————————————————————————