Hi All,
I recently downloaded RDK 5.1, added the newly licensed face recognition libraries, and tried to build an image before adding my changes to the build to establish a baseline. First I verified the pre-built binaries worked (they did), and proceeded to build the source.
The first issue was the default for tftp / nand in rules.make changed to tftp. Easy change, but then the build failed, as many of the directories in filesys did not exist. I created these by hand as root, and got the make sysall to complete. Next was make ubifs, which also failed. First, the ubifs tools are not included in 5.1 as they were in 5.0. I copied them from my 5.0 build, and ran into the same error in 5.0 that I posted about here http://e2e.ti.com/support/embedded/linux/f/354/p/254889/897178.aspx
I got the uboot, kernel, and ubifs built, but when I install it in the Appro IPNC I get the following kernel panic:
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed
IPNC UBL Version: 2.2.0
Platform: DM368-432
UBL Executed Sucessfully
Jumping to entry point at 0x81080000
U-Boot 1.3.4 (Jul 30 2013 - 22:02:15) DM368-IPNC-5.1.0
I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Bad block table not found for chip 0
Bad block table not found for chip 0
loop oob 81021ad8 Bad block table written to 0x07fe0000, version 0x01
loop oob 81021ad8 Bad block table written to 0x07fc0000, version 0x01
128 MiB
In: serial
Out: serial
Err: serial
ARM Clock :- 432MHz
DDR Clock :- 340MHz
Ethernet PHY: GENERIC @ 0x01
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 ...
[ 0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (root@jc3-vgn) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Tue Jul 30 22:10:36 PDT 2013
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: DaVinci DM36x IPNC
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] DaVinci dm36x_rev1.2 variant 0x8
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12192
[ 0.000000] Kernel command line: mem=48M console=ttyS1,115200n8 noinitrd 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=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 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: 44916k/44916k available, 4236k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xff000000 - 0xffe00000 ( 14 MB)
[ 0.000000] vmalloc : 0xc3800000 - 0xfea00000 ( 946 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3000000 ( 48 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc002a000 ( 136 kB)
[ 0.000000] .text : 0xc002a000 - 0xc036b000 (3332 kB)
[ 0.000000] .data : 0xc036c000 - 0xc03923e0 ( 153 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptable hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:245
[ 0.000000] Console: colour dummy device 80x30
[ 0.000299] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[ 0.000357] pid_max: default: 32768 minimum: 301
[ 0.000580] Security Framework initialized
[ 0.000727] Mount-cache hash table entries: 512
[ 0.001575] CPU: Testing write buffer coherency: ok
[ 0.003319] devtmpfs: initialized
[ 0.006447] DaVinci: 8 gpio irqs
[ 0.007098] NET: Registered protocol family 16
[ 0.043258] dm365_rmd_cs_rdk_150_wl_init
[ 0.123555] bio: create slab <bio-0> at 0
[ 0.128475] SCSI subsystem initialized
[ 0.133229] usbcore: registered new interface driver usbfs
[ 0.134609] usbcore: registered new interface driver hub
[ 0.135542] usbcore: registered new device driver usb
[ 0.138939] vpss vpss: dm365_vpss vpss probed
[ 0.139001] vpss vpss: dm365_vpss vpss probe success
[ 0.143311] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.146968] Switching to clocksource timer0_1
[ 0.231149] NET: Registered protocol family 2
[ 0.231459] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.232232] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.232371] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.232460] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.232491] TCP reno registered
[ 0.232530] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.232589] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.233098] NET: Registered protocol family 1
[ 0.302324] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.305960] msgmni has been set to 87
[ 0.310311] io scheduler noop registered (default)
[ 0.312070] CSL: Module install successful, device major num = 254
[ 0.312115] CSL: Module version 0.10.00, built on Jul 30 2013 22:02:48
[ 0.312166] I2C: Module install successful, device major num = 253
[ 0.312205] DMA: Module install successful, device major num = 252
[ 0.312230] DRV: Module install successful
[ 0.312256] DRV: Module built on Jul 30 2013 22:02:50
[ 0.312282] DRV: EDMACC.QUEPRI = 00002777
[ 0.312305] DRV: SYSTEM.MSTPRI0 = 00440011
[ 0.312327] DRV: SYSTEM.MSTPRI1 = 00000444
[ 0.312349] DRV: ISP.BCR = 00000002
[ 0.312372] DRV: SYSTEM.MISC = 00000391
[ 0.312395] EDMAK module: built on Jul 30 2013 at 22:02:35
[ 0.312425] Reference Linux version 2.6.37
[ 0.312448] File /home/jc3/ipnc/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[ 0.314160] IRQK module: built on Jul 30 2013 at 17:34:59
[ 0.314211] Reference Linux version 2.6.37
[ 0.314237] File /home/jc3/ipnc/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[ 0.315967] irqk initialized
[ 0.317711] CMEMK module: built on Jul 30 2013 at 22:02:33
[ 0.317763] Reference Linux version 2.6.37
[ 0.317789] File /home/jc3/ipnc/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[ 0.323039] allocated heap buffer 0xc4000000 of size 0x5000000
[ 0.323083] heap fallback enabled - will try heap if pool buffer is not available
[ 0.323123] CMEM Range Overlaps Kernel Physical - allowing overlap
[ 0.323157] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[ 0.323303] cmemk initialized
[ 0.323359] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.421389] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[ 0.481276] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[ 0.994682] console [ttyS1] enabled
[ 1.032997] brd: module loaded
[ 1.045573] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung )
[ 1.054161] Bad block table not found for chip 0
[ 1.060319] Bad block table not found for chip 0
[ 1.064955] Scanning device for bad blocks
[ 1.099360] Bad eraseblock 403 at 0x000003260000
[ 1.153919] Creating 7 MTD partitions on "davinci_nand.0":
[ 1.159449] 0x000000000000-0x000000300000 : "bootloader"
[ 1.169737] 0x000000300000-0x000000500000 : "params"
[ 1.179751] 0x000000500000-0x000000900000 : "kernel"
[ 1.189961] 0x000000900000-0x000003100000 : "filesystem1"
[ 1.200953] 0x000003100000-0x000003900000 : "data1"
[ 1.210884] 0x000003900000-0x000006100000 : "filesystem2"
[ 1.221389] 0x000006100000-0x000008000000 : "data2"
[ 1.231501] davinci_nand davinci_nand.0: controller rev. 2.3
[ 1.240616] UBI: attaching mtd3 to ubi0
[ 1.244480] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.251089] UBI: logical eraseblock size: 126976 bytes
[ 1.256506] UBI: smallest flash I/O unit: 2048
[ 1.261332] UBI: sub-page size: 512
[ 1.265964] UBI: VID header offset: 2048 (aligned 2048)
[ 1.272091] UBI: data offset: 4096
[ 1.519125] UBI: max. sequence number: 7
[ 1.535483] UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 2, need 3
[ 1.548538] UBI: attached mtd3 to ubi0
[ 1.552435] UBI: MTD device name: "filesystem1"
[ 1.557938] UBI: MTD device size: 40 MiB
[ 1.562937] UBI: number of good PEBs: 320
[ 1.567565] UBI: number of bad PEBs: 0
[ 1.572074] UBI: number of corrupted PEBs: 0
[ 1.576529] UBI: max. allowed volumes: 128
[ 1.581217] UBI: wear-leveling threshold: 4096
[ 1.585928] UBI: number of internal volumes: 1
[ 1.590426] UBI: number of user volumes: 1
[ 1.594875] UBI: available PEBs: 0
[ 1.599320] UBI: total number of reserved PEBs: 320
[ 1.604251] UBI: number of PEBs reserved for bad PEB handling: 2
[ 1.610314] UBI: max/mean erase counter: 2/0
[ 1.614593] UBI: image sequence number: 1916297013
[ 1.619517] UBI: background thread "ubi_bgt0d" started, PID 419
[ 1.627706] spi_davinci spi_davinci.0: Controller at 0xfec66000
[ 1.690122] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
[ 1.696331] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[ 1.704223] davinci_mdio.0: probed
[ 1.707669] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.716571] i2c /dev entries driver
[ 1.722648] Linux media interface: v0.10
[ 1.727357] Linux video capture interface: v2.00
[ 1.734369] vpbe-osd vpbe-osd: OSD sub device probe success
[ 1.740994] vpbe-venc vpbe-venc: VENC sub device probe success
[ 1.747860] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
[ 1.753908] Setting default output to Composite
[ 1.758462] Setting default mode to ntsc
[ 1.762675] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
[ 1.769390] vpbe-v4l2 vpbe-v4l2: layer=c2944e00,layer->video_dev=c2944ee8
[ 1.777312] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
[ 1.784268] vpbe-v4l2 vpbe-v4l2: layer=c28b2600,layer->video_dev=c28b26e8
[ 1.793153] watchdog watchdog: heartbeat 60 sec
[ 1.803849] Error: Driver 'davinci-mcbsp' is already registered, aborting...
[ 1.814154] asoc: cq93vc-hifi <-> davinci-vcif mapping ok
[ 1.824069] ALSA device list:
[ 1.827068] #0: DaVinci DM365 EVM
[ 1.832039] nf_conntrack version 0.5.0 (701 buckets, 2804 max)
[ 1.840279] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.845906] TCP cubic registered
[ 1.849193] NET: Registered protocol family 17
[ 1.915233] UBIFS: recovery needed
[ 1.950461] UBIFS: recovery completed
[ 1.954160] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 1.960257] UBIFS: file system size: 38473728 bytes (37572 KiB, 36 MiB, 303 LEBs)
[ 1.967932] UBIFS: journal size: 5332992 bytes (5208 KiB, 5 MiB, 42 LEBs)
[ 1.975304] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 1.981194] UBIFS: default compressor: lzo
[ 1.985301] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 1.992749] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 1.998839] devtmpfs: error mounting -2
[ 2.002930] Freeing init memory: 136K
[ 2.008624] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 2.021171] Backtrace:
[ 2.023646] Function entered at [<c002e518>] from [<c02f4524>]
[ 2.029485] r7:00000013 r6:c00433cc r5:c0023dfc r4:c0392be0
[ 2.035265] Function entered at [<c02f450c>] from [<c02f4590>]
[ 2.041160] Function entered at [<c02f4528>] from [<c002a644>]
[ 2.047002] r3:c2af0200 r2:00000000 r1:c0402e00 r0:c0316151
[ 2.052757] Function entered at [<c002a530>] from [<c00084b8>]
[ 2.058593] r4:c03923f8
[ 2.061186] Function entered at [<c00083a4>] from [<c00433cc>]
[ 2.067025] r5:c00083a4 r4:00000000
The environment is:
DM368 IPNC :>printenv
bootdelay=4
baudrate=115200
bootfile="uImage"
bootcmd=nboot 0x80700000 0 0x500000;bootm 0x80700000
bootargs=mem=48M console=ttyS1,115200n8 noinitrd 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=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248
ipaddr=192.168.1.168
gatewayip=192.168.1.1
netmask=255.255.255.0
dnsip=192.168.1.1
dnsip1=129.250.35.250
verify=no
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Jul 30 2013 - 22:02:15) DM368-IPNC-5.1.0
Environment size: 656/131068 bytes
DM368 IPNC :>
Any assistance would be most appreciated...
Best Regards