Other Parts Discussed in Thread: ASH, TVP7002
I am using a DM365 on a custom board. I am using a 2.6.37 kernel from arago.org. I am trying to convert an older application to use the new media framework. I am getting 0 entities enumerated and I suspect it is my filesystem (maybe missing /dev nodes). Where is the best place I can find and example of a root file system?
Here is the bootup and some ouput from a sample app called mt9p031_ccdc_prv_rsz_file:
U-Boot 2009.08 (May 15 2012 - 10:49:54)
I2C: ready
DRAM: 128 MB
Using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.37-ntouch_rcu
Created: 2012-05-29 22:58:07 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 8077424 Bytes = 7.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.37-ntouch_rcu (jlarsen@salmon) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #38 PREEMPT Tue May 29 16:58:01 MDT 2012
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM365 NTOUCH RCU
Memory policy: ECC disabled, Data cache writeback
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS0,115200n8 rw mem=64M vpfe-capture.interface=1 vpfe-capture.bufsize=4147200
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 44928k/44928k available, 20608k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xc4800000 - 0xfea00000 ( 930 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0025000 ( 116 kB)
.text : 0xc0025000 - 0xc036e930 (3367 kB)
.data : 0xc0370000 - 0xc039c0a0 ( 177 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
DM365 IPIPE initialized in Continuous mode
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource timer0_1
musb-hdrc: version 6.0, peripheral, debug=0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 87
io scheduler noop registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
brd: module loaded
davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
davinci_mdio davinci_mdio.0: detected phy mask fffffffc
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
console [netcon0] enabled
netconsole: network logging started
i2c /dev entries driver
Linux media interface: v0.10
lirc_dev: IR Remote Control driver registered, major 253
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
dm365_isif is registered with vpfe.
imp serializer initialized
AEW Driver initialized
AF Driver initialized
vpfe-capture vpfe-capture: v4l2 device registered
mt9p031 1-0048: Detected a MT9P031 chip ID 1801
mt9p031: mt9p031 sensor driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device mt9p031 registered
DM365 IPIPEIF probed
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
davinci_emac_probe: using random MAC addr: 62:21:d2:e3:67:cc
Freeing init memory: 116K
Enabling hot-plug : [SUCCESS]
[SUCCESS]
mach: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
Built May 15 2012 at 10:52:34
*** ntouch_rcu_release.sh script ***
CMEMK module: built on May 15 2012 at 10:52:14
Reference Linux version 2.6.37
File /home/jlarsen/bsp_rcu_new_kernel/davinci1/open/linuxutils_2_26_03_06/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc5000000 of size 0x30f8000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84000000)
cmemk initialized
IRQK module: built on May 15 2012 at 10:52:15
Reference Linux version 2.6.37
File /home/jlarsen/bsp_rcu_new_kernel/davinci1/open/linuxutils_2_26_03_06/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
EDMAK module: built on May 15 2012 at 10:52:14
Reference Linux version 2.6.37
File /home/jlarsen/bsp_rcu_new_kernel/davinci1/open/linuxutils_2_26_03_06/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
cat9532: Using cat9532 16-bit LED driver at slave address 0x60
NET: Registered protocol family 10
modprobe: 'ext/rcu2r.ko': No such device
*** STARTING APP ****
app exited..rebooting RCU
login[995]: root login on 'ttyS0'
BusyBox v1.15.3 (2012-05-15 09:58:41 MDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
******* .profile script *******
# ./mt9p031_ccdc_prv_rsz_file
calling cmem utilities for allocating frame buffIRQK Error: ioctl(): bad command type 0x4d (should be 0xfc)
ers
Allocating capture buffers :buf size = 692224
Got 0x403b4000 from CMEM, phy = 0x87eae000
Got 0x404f4000 IRQK Error: ioctl(): bad command type 0x4d (should be 0xfc)
from CMEM, phy =IRQK Error: Unknown ioctl received: -1070314236.
0x87e05000
Got 0x40690000 from CMEM, phy = 0x87d5c000
**********************************************
4.enumerating media entities
total number of entities: 0
**********************************************
5.enumerating links/pads for entities
**********************************************
6. ENABLEing link [tvp7002]----------->[ccdc]
failed to enable link between tvp7002 and ccdc
closing all the file descriptors. . .
closed media device
Segmentation fault
#
#