Hi experts:
Now I want to move the kernel and filesys from "APPRO IPNC DM368 with IMX122(RDK version 2.6) "to our own products .
I just compiled the kernel & filesys and i got uImage and cramfs files. I erase the "APPRO IPNC" and write those .It works. I do those upon is to make sure that the kernel and filesys I compiled are OK .
I edit the uboot "bootcmd" and "bootargs" as APPRO ipnc. write the kernel and filesys .Boot print below:
Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000
Image Name: Linux-2.6.18_pro500-davinci_IPNC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1818432 Bytes = 1.7 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: 1818432 Bytes = 1.7 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.18_pro500-davinci_IPNC_DM368_2.6.0 (root@hanwu-desktop) (gcc 鐗堟湰 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Thu Aug 22 09:45:28 CST 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DM368 IPNC
Memory policy: ECC disabled, Data cache writeback
DaVinci DM0365 variant 0x8
PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 97142857
PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists. Total pages: 12288
Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=192.168.1.134:192.168.1.1::::: root=/dev/mtdblock3 rw rootfstype=cramfs mem=48M eth=00:00:1b:00:01:a1
PID hash table entries: 256 (order: 8, 1024 bytes)
Clock event device timer0_0 configured with caps set: 07
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 48MB = 48MB total
Memory: 44672KB available (3117K code, 647K data, 176K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
MUX: initialized MCBSP_BDR
MUX: initialized MCBSP_BDX
MUX: initialized MCBSP_R
MUX: initialized MCBSP_X
DaVinci: 104 gpio irqs
MUX: initialized GPIO20
MUX: initialized I2C_SCL
Generic PHY: Registered new driver
ch0 default output "COMPOSITE", mode "NTSC"
VPBE Encoder Initialized
SCSI subsystem initialized
NET: Registered protocol family 2
IP 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 registered
***davinci_spi_board_init()!<6>
***davinci_spi_board_init_End(0)!<5>VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.1 (2006/08/19) Phillip Lougher
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Aug 22 2013 09:43:26 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Linux video capture interface: v2.00
Trying to register davinci display video device.
layer=c064ba00,layer->video_dev=c064bb60
Trying to register davinci display video device.
layer=c064b800,layer->video_dev=c064b960
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
i2c /dev entries driver
nand_davinci nand_davinci.0: Using 4-bit hardware ECC
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)
Creating 7 MTD partitions on "nand_davinci.0":
0x00000000-0x00300000 : "bootloader"
0x00300000-0x00500000 : "params"
0x00500000-0x00700000 : "kernel"
0x00700000-0x02700000 : "filesystem"
0x02700000-0x02900000 : "data1"
0x02900000-0x02d00000 : "Calibration"
0x02d00000-0x08000000 : "data2"
nand_davinci nand_davinci.0: hardware revision: 2.3
MUX: initialized SPI0_SCLK
MUX: initialized SPI0_SDO)
MUX: initialized SPI0_SDENA0
dm_spi.0: davinci SPI Controller driver at 0xc3866000 (irq = 42) use_dma=0
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
rtc_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 rtc0
rtc wait time out !!!!!
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
CQ0093 Voice Codec 0.1
asoc: cq93vc <-> davinci-vcif mapping ok
ALSA device list:
#0: On-chip voice codec (cq93vc)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc wait time out !!!!!
rtc wait time out !!!!!
rtc wait time out !!!!!
rtc wait time out !!!!!
rtc wait time out !!!!!
Time: timer0_1 clocksource has been installed.
Clock event device timer0_0 configured with caps set: 08
Switched to high resolution mode on CPU 0
rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-09-14 01:01:01 (968893261)
IP-Config: No network devices available.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 176K
INIT: version 2.86 booting
0
mkdir: Cannot create directory `/dev/.test': Read-only file system
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
0
CSL: Module install successful, device major num = 253
CSL: Module version 0.10.00, built on Aug 22 2013 09:32:17
I2C: Module install successful, device major num = 252
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Aug 22 2013 09:32:20
DRV: EDMACC.QUEPRI = 00000777
DRV: SYSTEM.MSTPRI0 = 00440022
DRV: SYSTEM.MSTPRI1 = 00000244
DRV: ISP.BCR = 00000002
DRV: SYSTEM.MISC = 00000319
CMEMK module: built on Apr 24 2012 at 17:42:18
Reference Linux version 2.6.18
File /home/user/workdir/dvsdk_2_10_01_18_Mega/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
EDMAK module: built on Apr 24 2012 at 17:42:21
Reference Linux version 2.6.18
File /home/user/workdir/dvsdk_2_10_01_18_Mega/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Apr 24 2012 at 17:42:22
Reference Linux version 2.6.18
File /home/user/workdir/dvsdk_2_10_01_18_Mega/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x1773 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x4676 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x317d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0xe712 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0xa215 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x084a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0xc80b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x3001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x10a0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x081e instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x0001f298
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x8194 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x6020 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0x301e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xa810 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x0f21 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x6d2c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x5366 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x0046 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x4084 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x60d8 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000368bc
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x1750 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x000448a4
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00060000: 0x02e5 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00080000: 0x3273 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x00089b2c
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0000: 0xa0c2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000a0004: 0x470e instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0000: 0xb780 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0004: 0x41be instead
...
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c001c: 0x2103 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0020: 0x64e6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c0024: 0x04cf instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0000: 0x8736 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0004: 0x02fe instead
......
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000e0024: 0x2440 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100000: 0x2434 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100004: 0x26d8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00100008: 0x216f instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x001007fc
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120000: 0x8731 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120004: 0x65be instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00120008: 0x1006 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x001360fc
You cannot use older JFFS2 filesystems with newer kernels
Old JFFS2 bitmask found at 0x00137f78
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140000: 0x3000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00140004: 0x2046 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x001526fc
You cannot use older JFFS2 filesystems with newer kernels
Old JFFS2 bitmask found at 0x00157ad8
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160000: 0x16ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160004: 0x470e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00160008: 0x3105 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180000: 0x3696 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180004: 0x00f6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180008: 0x110e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0018000c: 0xd610 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180010: 0x3db1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180014: 0x317e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180018: 0xda2a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0018001c: 0x0043 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180020: 0x28c1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00180024: 0x245d instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0000: 0xb19e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0004: 0x05fe instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a0008: 0x1145 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001a000c: 0x3652 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x001a5a28
You cannot use older JFFS2 filesystems with newer kernels
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 16
mount: /dev/mtdblock4: can't read superblock
Creat queue id:0
queue id:0
FileMngThread created
Creat queue id:32769
queue id:32769
AlramThread created
Share memory init success
queue id:32769
FileMng: Error Can't create system file
FileMng: Error Initialize fail (FileMgnInit)
Kill queue id:32769
Error CleanupFileEnv is called
IPNC_DM368_2.6.0 (root@hanwu-desktop) (gcc 鐗堟湰 4.2.0 (MontaV
queue id:65538
FileMsgDrv: Error
Data read error
Creat queue id:65538
queue id:65538
Creat queue id:98305
queue id:98305
FileMsgDrv: Error
Data read error
Can't get system info!!
FileMsgDrv: Error
Data read error
Starting mounting local filesystems: mount none on /dev/shm type tmpfs (rw,size=5M)
none on /var/run type tmpfs (rw)
none on /tmp type tmpfs (rw,sync)
Setting up networking ...rm: unable to remove `/etc/network/run': Read-only file system
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: portmap.
Starting internet superserver: inetd.
io scheduler deadline registered
io scheduler cfq registered
TI DaVinci EMAC: kernel boot params Ethernet address: 00:00:1b:00:01:a1
sbulla: unknown partition table
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
loop: loaded (max 8 devices)
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CSLIP: code copyright 1989 Regents of the University of California
netconsole: not configured, aborting
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
Davinci EMAC MII Bus: probed
MAC address is 00:00:1b:00:01:a1
TI DaVinci EMAC Linux version updated 4.0
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
usbcore: registered new driver usbfs
usbcore: registered new driver hub
musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0
it finally stops here.
I set "rootfstype=cramfs" in uboot. Why it prints those error about JFFS2? It bored me for few days.Help!
Regards,
Jerry.