XM Camera Modules with Angstrom

Dear Group,

Finally my Beagleboard XM and two Leopard camera boards (VGA and 3M)
arrived.
I'm now trying to get the setup working. First thing I tried was
booting the provided
validation image that came with the board. There, the VGA camera shows
up as
/dev/video0. So far so good. For some more testing I decided to switch
to a
non-ramdisk system based on a new Angstrom image built with narcissus.
The image
boots fine but no camera device is showing up. When checking the
verification image
I noticed that there is an additional kernel parameter called
"camera". I included this
parameter ("camera=lbcm3m1") in the mmcargs variable of my system.
Upon boot,
the kernel now prints "[ 0.000000] Beagle cameraboard: lbcm3m1" and
the driver
(mt9t112) is loaded but no /dev/videoX is showing up. The full dmesg
of the boot
process is attached below.
Some other stuff that seems noteworthy in the dmesg output: I twice
get a message
stating "Division by zero in kernel." which looks suspicious to me.
Not sure where it
comes from. Another message is "i2c_omap i2c_omap.2: Arbitration
lost". Might there
be some problem with the I2C bus used to configure the camera? And
finally, CMEM
complains about overlapping memory regions. But I guess this is an
error in the
memory configuration that is done as part of the kernel command line?

If somebody (Koen?) has some hints for me how to get the cameras
working I'd
be very thankful.

Thanks,
Thomas

--- dmesg output ---

[ 0.000000] Linux version 2.6.32 (koen@dominion) (gcc version 4.3.3
(GCC) ) #3 PREEMPT Fri Sep 10 09:37:46 CEST 2010
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0667270,
node_mem_map c06cc000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130048 pages, LIFO batch:31
[ 0.000000] OMAP3630/DM3730 ES1.0 (l2cache iva sgx neon isp
192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x100000
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[ 0.000000] Kernel command line: camera=lbcm3m1
console=ttyS2,115200n8 mpurate=1000 buddy=unknown vram=12M
omapfb.mode=dvi:640x480MR-16@60 omapdss.def_disp=dvi root=/dev/
mmcblk0p2 rw rootfstype=ext3 rootwait
[ 0.000000] Beagle cameraboard: lbcm3m1
[ 0.000000] Beagle expansionboard: unknown
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6,
262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072
bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 500352KB available (5880K code, 671K data, 204K
init, 0K highmem)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:402
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96
interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Calibrating delay loop... 493.67 BogoMIPS (lpj=1929216)
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] tmpfs: No value for mount option 'mode'
[ 0.000000] devtmpfs: initialized
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] Beagle cameraboard: registering i2c2 bus for lbcm3m1
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 0.000000] Unable to get DVI reset GPIO
[ 0.000000] omap_init_mbox: platform not supported
[ 0.000000] Target VDD1 OPP = 4, VDD2 OPP = 2
[ 961.748657] OMAP DMA hardware revision 5.0
[ 961.754943] bio: create slab <bio-0> at 0
[ 961.756164] SCSI subsystem initialized
[ 961.757537] usbcore: registered new interface driver usbfs
[ 961.757690] usbcore: registered new interface driver hub
[ 961.757843] usbcore: registered new device driver usb
[ 961.758209] i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
[ 961.760864] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 961.760894] twl4030: power (irq 373) chaining IRQs 376..383
[ 961.761199] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 961.762878] regulator: VUSB1V5: 1500 mV normal standby
[ 961.763122] regulator: VUSB1V8: 1800 mV normal standby
[ 961.763336] regulator: VUSB3V1: 3100 mV normal standby
[ 961.764587] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 961.764984] regulator: VMMC1: 1850 <--> 3150 mV normal standby
[ 961.765228] regulator: VDAC: 1800 mV normal standby
[ 961.765472] regulator: VPLL2: 1800 mV normal standby
[ 961.765716] regulator: VSIM: 1800 <--> 3000 mV normal standby
[ 961.766052] regulator: VAUX3: 1800 mV normal standby
[ 961.766418] regulator: VAUX4: 1800 mV normal standby
[ 961.776672] i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz
[ 961.789520] i2c_omap i2c_omap.3: bus 3 rev4.0 at 100 kHz
[ 961.790710] Switching to clocksource 32k_counter
[ 961.799743] musb_hdrc: version 6.0, musb-dma, otg (peripheral
+host), debug=0
[ 961.803283] musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk
combine (X), bulk split (X), HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 961.803314] musb_hdrc: MHDRC RTL version 1.800
[ 961.803314] musb_hdrc: setup fifo_mode 4
[ 961.803344] musb_hdrc: 28/31 max ep, 16384/16384 memory
[ 961.803375] musb_hdrc: USB OTG mode controller at fa0ab000 using
DMA, IRQ 92
[ 961.803405] musb_hdrc musb_hdrc: MUSB HDRC host driver
[ 961.803527] musb_hdrc musb_hdrc: new USB bus registered, assigned
bus number 1
[ 961.803649] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 961.803680] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 961.803680] usb usb1: Product: MUSB HDRC host driver
[ 961.803710] usb usb1: Manufacturer: Linux 2.6.32 musb-hcd
[ 961.803710] usb usb1: SerialNumber: musb_hdrc
[ 961.804351] hub 1-0:1.0: USB hub found
[ 961.804382] hub 1-0:1.0: 1 port detected
[ 961.805419] NET: Registered protocol family 2
[ 961.805633] IP route cache hash table entries: 4096 (order: 2,
16384 bytes)
[ 961.806182] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 961.806640] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 961.806854] TCP: Hash tables configured (established 16384 bind
16384)
[ 961.806884] TCP reno registered
[ 961.806884] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 961.806915] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 961.807159] NET: Registered protocol family 1
[ 961.807586] RPC: Registered udp transport module.
[ 961.807617] RPC: Registered tcp transport module.
[ 961.807617] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 961.808502] omap-iommu omap-iommu.0: isp registered
[ 961.810241] VFS: Disk quotas dquot_6.5.2
[ 961.810333] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 961.811401] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 961.812194] JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red
Hat, Inc.
[ 961.813018] msgmni has been set to 977
[ 961.816802] alg: No test for stdrng (krng)
[ 961.817108] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 254)
[ 961.817108] io scheduler noop registered
[ 961.817138] io scheduler deadline registered
[ 961.817291] io scheduler cfq registered (default)
[ 961.876892] OMAP DSS rev 2.0
[ 961.876953] OMAP DISPC rev 3.0
[ 961.877014] OMAP VENC rev 0
[ 961.877258] OMAP DSI rev 1.0
[ 962.213745] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 962.231445] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a
ST16654
[ 962.248504] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a
ST16654
[ 962.265502] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a
ST16654
[ 962.832733] console [ttyS2] enabled
[ 962.843048] brd: module loaded
[ 962.849426] loop: module loaded
[ 962.853912] omap2-nand driver initializing
[ 962.858306] NAND device: Manufacturer ID: 0x20, Chip ID: 0xba (ST
Micro NAND 256MiB 1,8V 16-bit)
[ 962.867614] cmdlinepart partition parsing not available
[ 962.872924] Creating 5 MTD partitions on "omap2-nand":
[ 962.878143] 0x000000000000-0x000000080000 : "X-Loader"
[ 962.884490] 0x000000080000-0x000000260000 : "U-Boot"
[ 962.890899] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 962.897003] 0x000000280000-0x000000680000 : "Kernel"
[ 962.904113] 0x000000680000-0x000010000000 : "File System"
[ 962.997894] usbcore: registered new interface driver catc
[ 963.003387] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[ 963.009429] usbcore: registered new interface driver kaweth
[ 963.015075] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB
Ethernet driver
[ 963.022674] usbcore: registered new interface driver pegasus
[ 963.028411] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet
driver
[ 963.035430] usbcore: registered new interface driver rtl8150
[ 963.041198] usbcore: registered new interface driver asix
[ 963.046722] usbcore: registered new interface driver cdc_ether
[ 963.052673] usbcore: registered new interface driver dm9601
[ 963.058410] usbcore: registered new interface driver smsc95xx
[ 963.064270] usbcore: registered new interface driver gl620a
[ 963.069946] usbcore: registered new interface driver net1080
[ 963.075744] usbcore: registered new interface driver plusb
[ 963.081359] usbcore: registered new interface driver rndis_host
[ 963.087402] usbcore: registered new interface driver cdc_subset
[ 963.093444] usbcore: registered new interface driver zaurus
[ 963.099151] usbcore: registered new interface driver MOSCHIP usb-
ethernet driver
[ 963.107238] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 963.114105] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 963.120117] ehci-omap ehci-omap.0: new USB bus registered, assigned
bus number 2
[ 963.127716] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 963.142425] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 963.148315] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0002
[ 963.155181] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 963.162475] usb usb2: Product: OMAP-EHCI Host Controller
[ 963.167846] usb usb2: Manufacturer: Linux 2.6.32 ehci_hcd
[ 963.173278] usb usb2: SerialNumber: ehci-omap.0
[ 963.178527] hub 2-0:1.0: USB hub found
[ 963.182403] hub 2-0:1.0: 3 ports detected
[ 963.212829] Initializing USB Mass Storage driver...
[ 963.217895] usbcore: registered new interface driver usb-storage
[ 963.223968] USB Mass Storage support registered.
[ 963.229003] mice: PS/2 mouse device common for all mice
[ 963.234619] input: gpio-keys as /devices/platform/gpio-keys/input/
input0
[ 963.242431] input: twl4030_pwrbutton as /devices/platform/i2c_omap.
1/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[ 963.253143] i2c /dev entries driver
[ 963.257232] Linux video capture interface: v2.00
[ 963.262176] omap-iommu omap-iommu.0: isp: version 1.1
[ 963.267364] Saving csi2 context
[ 963.267517] Restoring csi2 context
[ 963.267578] Saving csi2 context
[ 963.268585] vpfe_init
[ 963.271423] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 963.385101] mmci-omap-hs mmci-omap-hs.1: err -16 configuring card
detect
[ 963.392120] Registered led device: beagleboard::usr0
[ 963.397277] Registered led device: beagleboard::usr1
[ 963.403778] Registered led device: beagleboard::pmu_stat
[ 963.410797] usbcore: registered new interface driver usbhid
[ 963.416442] usbhid: USB HID core driver
[ 963.420471] Advanced Linux Sound Architecture Driver Version
1.0.21.
[ 963.427398] usbcore: registered new interface driver snd-usb-audio
[ 963.510009] usb 2-2: new high speed USB device using ehci-omap and
address 2
[ 963.521423] No device for DAI omap-mcbsp-dai-0
[ 963.525939] No device for DAI omap-mcbsp-dai-1
[ 963.530395] No device for DAI omap-mcbsp-dai-2
[ 963.534912] No device for DAI omap-mcbsp-dai-3
[ 963.539398] No device for DAI omap-mcbsp-dai-4
[ 963.543884] OMAP3 Beagle SoC init
[ 963.548065] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 963.559661] ALSA device list:
[ 963.562652] #0: omap3beagle (twl4030)
[ 963.566650] oprofile: using arm/armv7
[ 963.570556] TCP cubic registered
[ 963.573852] NET: Registered protocol family 17
[ 963.578369] NET: Registered protocol family 15
[ 963.582977] lib80211: common routines for IEEE802.11 drivers
[ 963.588714] lib80211_crypt: registered algorithm 'NULL'
[ 963.588714] ThumbEE CPU extension supported.
[ 963.593017] Power Management for TI OMAP3.
[ 963.597869] Division by zero in kernel.
[ 963.601776] [<c0040c40>] (unwind_backtrace+0x0/0xdc) from
[<c02542dc>] (Ldiv0+0x8/0x10)
[ 963.609893] [<c02542dc>] (Ldiv0+0x8/0x10) from [<df825f88>]
(0xdf825f88)
[ 963.616638] Division by zero in kernel.
[ 963.620544] [<c0040c40>] (unwind_backtrace+0x0/0xdc) from
[<c02542dc>] (Ldiv0+0x8/0x10)
[ 963.628631] [<c02542dc>] (Ldiv0+0x8/0x10) from [<df825f88>]
(0xdf825f88)
[ 963.635955] Unable to set L3 frequency (400000000)
[ 963.640838] Switched to new clocking rate (Crystal/Core/MPU):
26.0/332/1000 MHz
[ 963.648223] IVA2 clocking rate: 800 MHz
[ 963.822082] SmartReflex driver initialized
[ 963.826324] omap3beaglelmb: Driver registration complete
[ 963.835754] Disabling unused clock "sr2_fck"
[ 963.835754] Disabling unused clock "sr1_fck"
[ 963.835784] Disabling unused clock "mcbsp_fck"
[ 963.835784] Disabling unused clock "mcbsp_fck"
[ 963.835815] Disabling unused clock "mcbsp_fck"
[ 963.835815] Disabling unused clock "mcbsp_ick"
[ 963.835815] Disabling unused clock "mcbsp_ick"
[ 963.835845] Disabling unused clock "mcbsp_ick"
[ 963.835845] Disabling unused clock "gpt2_ick"
[ 963.835876] Disabling unused clock "gpt3_ick"
[ 963.835876] Disabling unused clock "gpt4_ick"
[ 963.835876] Disabling unused clock "gpt5_ick"
[ 963.835906] Disabling unused clock "gpt6_ick"
[ 963.835906] Disabling unused clock "gpt7_ick"
[ 963.835937] Disabling unused clock "gpt8_ick"
[ 963.835937] Disabling unused clock "gpt9_ick"
[ 963.835937] Disabling unused clock "wdt3_ick"
[ 963.835968] Disabling unused clock "wdt3_fck"
[ 963.835968] Disabling unused clock "gpio2_dbck"
[ 963.835998] Disabling unused clock "gpio3_dbck"
[ 963.835998] Disabling unused clock "gpio4_dbck"
[ 963.835998] Disabling unused clock "gpio5_dbck"
[ 963.836029] Disabling unused clock "gpio6_dbck"
[ 963.836029] Disabling unused clock "gpt9_fck"
[ 963.836059] Disabling unused clock "gpt8_fck"
[ 963.836059] Disabling unused clock "gpt7_fck"
[ 963.836059] Disabling unused clock "gpt6_fck"
[ 963.836090] Disabling unused clock "gpt5_fck"
[ 963.836090] Disabling unused clock "gpt4_fck"
[ 963.836120] Disabling unused clock "gpt3_fck"
[ 963.836120] Disabling unused clock "gpt2_fck"
[ 963.836120] Disabling unused clock "gpt1_ick"
[ 963.836151] Disabling unused clock "wdt1_ick"
[ 963.836151] Disabling unused clock "gpio1_dbck"
[ 963.836181] Disabling unused clock "gpt1_fck"
[ 963.836181] Disabling unused clock "cam_mclk"
[ 963.836242] Disabling unused clock "des1_ick"
[ 963.836242] Disabling unused clock "sha11_ick"
[ 963.836242] Disabling unused clock "rng_ick"
[ 963.836273] Disabling unused clock "aes1_ick"
[ 963.836273] Disabling unused clock "ssi_ick"
[ 963.836273] Disabling unused clock "mailboxes_ick"
[ 963.836303] Disabling unused clock "mcbsp_ick"
[ 963.836303] Disabling unused clock "mcbsp_ick"
[ 963.836334] Disabling unused clock "gpt10_ick"
[ 963.836334] Disabling unused clock "gpt11_ick"
[ 963.836364] Disabling unused clock "hdq_ick"
[ 963.836364] Disabling unused clock "mspro_ick"
[ 963.836364] Disabling unused clock "des2_ick"
[ 963.836395] Disabling unused clock "sha12_ick"
[ 963.836395] Disabling unused clock "aes2_ick"
[ 963.836425] Disabling unused clock "icr_ick"
[ 963.836425] Disabling unused clock "pka_ick"
[ 963.836425] Disabling unused clock "ssi_ssr_fck"
[ 963.836456] Disabling unused clock "hdq_fck"
[ 963.836456] Disabling unused clock "mcbsp_fck"
[ 963.836456] Disabling unused clock "mcbsp_fck"
[ 963.836486] Disabling unused clock "mspro_fck"
[ 963.836486] Disabling unused clock "gpt11_fck"
[ 963.836517] Disabling unused clock "gpt10_fck"
[ 963.836517] Disabling unused clock "sad2d_ick"
[ 963.836547] Disabling unused clock "dpll4_m6x2_ck"
[ 963.836547] Disabling unused clock "dpll3_m3x2_ck"
[ 963.836578] Disabling unused clock "sys_clkout1"
[ 963.837097] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 3
[ 963.845397] registered taskstats version 1
[ 963.850250] fbcvt: 640x480@60: CVT Name - .307M3-R
[ 963.864166] Console: switching to colour frame buffer device 80x30
[ 963.876159] regulator_init_complete: incomplete constraints,
leaving VAUX4 on
[ 963.884460] regulator_init_complete: incomplete constraints,
leaving VAUX3 on
[ 963.894104] usb 2-2: New USB device found, idVendor=0424,
idProduct=9514
[ 963.900909] usb 2-2: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[ 963.908111] regulator_init_complete: incomplete constraints,
leaving VDAC on
[ 963.916015] hub 2-2:1.0: USB hub found
[ 963.919952] hub 2-2:1.0: 5 ports detected
[ 963.924194] omap_vout omap_vout: probed for an unknown device
[ 963.934722] Waiting for root device /dev/mmcblk0p2...
[ 964.072174] mmc0: new high speed SDHC card at address 5747
[ 964.078002] mmcblk0: mmc0:5747 SD08G 7.42 GiB
[ 964.082763] mmcblk0: p1 p2
[ 964.161804] kjournald starting. Commit interval 5 seconds
[ 964.220794] usb 2-2.1: new high speed USB device using ehci-omap
and address 3
[ 964.345916] usb 2-2.1: New USB device found, idVendor=0424,
idProduct=ec00
[ 964.352844] usb 2-2.1: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[ 964.362976] smsc95xx v1.0.4
[ 964.417022] usb0: register 'smsc95xx' at usb-ehci-omap.0-2.1,
smsc95xx USB 2.0 Ethernet, a2:2c:87:ec:36:88
[ 964.428436] EXT3-fs (mmcblk0p2): using internal journal
[ 964.433746] EXT3-fs (mmcblk0p2): mounted filesystem with writeback
data mode
[ 964.440948] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 964.449127] devtmpfs: mounted
[ 964.452178] Freeing init memory: 204K
[ 971.044128] Restoring csi2 context
[ 971.981719] i2c_omap i2c_omap.2: Arbitration lost
[ 972.009704] Saving csi2 context
[ 972.166656] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 978.065704] Bluetooth: Core ver 2.15
[ 978.070190] NET: Registered protocol family 31
[ 978.074737] Bluetooth: HCI device and connection manager
initialized
[ 978.081329] Bluetooth: HCI socket layer initialized
[ 978.101043] Bluetooth: L2CAP ver 2.14
[ 978.104797] Bluetooth: L2CAP socket layer initialized
[ 978.124176] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 978.238098] NET: Registered protocol family 10
[ 978.300262] irda_init()
[ 978.300323] NET: Registered protocol family 23
[ 978.320068] IrCOMM protocol (Dag Brattli)
[ 978.419525] Bluetooth: RFCOMM TTY layer initialized
[ 978.424591] Bluetooth: RFCOMM socket layer initialized
[ 978.429748] Bluetooth: RFCOMM ver 1.11
[ 991.962707] usb0: no IPv6 routers present
[ 1015.963012] CMEMK module: built on Sep 9 2010 at 11:54:02
[ 1015.968536] Reference Linux version 2.6.32
[ 1015.973205] File /OE/angstrom-dev/work/beagleboard-angstrom-linux-
gnueabi/ti-linuxutils-1_2_25_01_06-r88d/linuxutils_2_25_01_06/packages/
ti/sdo/linuxutils/cmem/src/module/cmemk.c
[ 1015.992828] CMEM Range Overlaps Kernel Physical - allowing overlap
[ 1015.999359] CMEM phys_start (0x86300000) overlaps kernel
(0x80000000 -> 0xa0000000)
[ 1016.007263] CMEMK Error: Failed to request_mem_region(0x86300000,
16777216)
[ 1016.045623] DSPLINK Module (1.64) created on Date: Sep 9 2010
Time: 11:55:46
[ 1016.102020] SDMAK module: built on Sep 9 2010 at 11:54:08
[ 1016.107879] Reference Linux version 2.6.32
[ 1016.112365] File /OE/angstrom-dev/work/beagleboard-angstrom-linux-
gnueabi/ti-linuxutils-1_2_25_01_06-r88d/linuxutils_2_25_01_06/packages/
ti/sdo/linuxutils/sdma/src/module/sdmak.c

First add ‘mem=99M@0x80000000 mem=128M@0x88000000’ to bootargs and see what happens

2010/9/13 tom <tom.winkler@gmail.com>

Hello,

First add 'mem=99M@0x80000000 mem=128M@0x88000000' to bootargs and see what
happens

I did that but nothing changed. The "division by zero", "I2C
Arbitration lost" and CMEM errors are still in my dmesg.
The full dmesg with the updated mem parameters can be found at:
http://dl.dropbox.com/u/7461174/beagle/xm_dmesg_001.txt

Anything else I could try?

Thank you,
Thoams

Another followup to the problem report with the camera and current
Angstrom versions:

The previous reports are based on tests using the 3M camera module
(LBCM3M1).
I now switched the board to the VGA module (LBCMVGA). The results are
not much better. The core problem seems to be related to I2C. The
relevant section of dmesg is this:

[ 70.969757] Restoring csi2 context
[ 71.873718] i2c_omap i2c_omap.2: Arbitration lost
[ 71.889709] mt9v113 2-003c: chip id detected 0x0
[ 71.889739] mt9v113 2-003c: chip id mismatch read 0x0, expecting
0x2280
[ 71.896392] mt9v113 2-003c: Unable to detect decoder
[ 71.936340] ------------[ cut here ]------------
[ 71.941040] WARNING: at drivers/media/video/mt9v113.c:1274
ioctl_s_power+0xac/0xf4 [mt9v113]()
[ 72.000244] Modules linked in: mt9v113(+)
[ 72.004364] [<c0040c40>] (unwind_backtrace+0x0/0xdc) from
[<c006cad8>] (warn_slowpath_common+0x4c/0x80)
[ 72.055603] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 72.077117] [<c006cad8>] (warn_slowpath_common+0x4c/0x80) from
[<bf001158>] (ioctl_s_power+0xac/0xf4 [mt9v113])
[ 72.100433] twl_rtc twl_rtc: Power up reset detected.
[ 72.108215] [<bf001158>] (ioctl_s_power+0xac/0xf4 [mt9v113]) from
[<c035daa0>] (v4l2_int_ioctl_1+0x2c/0x38)
[ 72.132110] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 72.157135] [<c035daa0>] (v4l2_int_ioctl_1+0x2c/0x38) from
[<c0375d14>] (omap34xxcam_slave_power_set+0x68/0xf0)
[ 72.209777] [<c0375d14>] (omap34xxcam_slave_power_set+0x68/0xf0)
from [<c037749c>] (omap34xxcam_device_register+0x114/0x324)
[ 72.262634] [<c037749c>] (omap34xxcam_device_register+0x114/0x324)
from [<c035dca0>] (__v4l2_int_device_try_attach_all+0x164/0x1c0)
[ 72.319152] [<c035dca0>] (__v4l2_int_device_try_attach_all
+0x164/0x1c0) from [<c035dd58>] (v4l2_int_device_register+0x5c/0x7c)
[ 72.359985] [<c035dd58>] (v4l2_int_device_register+0x5c/0x7c) from
[<bf000690>] (mt9v113_probe+0xa4/0x128 [mt9v113])
[ 72.402099] [<bf000690>] (mt9v113_probe+0xa4/0x128 [mt9v113]) from
[<c03559c4>] (i2c_device_probe+0xb8/0xdc)
[ 72.447875] [<c03559c4>] (i2c_device_probe+0xb8/0xdc) from
[<c02baa78>] (driver_probe_device+0xc4/0x1a0)
[ 72.496246] [<c02baa78>] (driver_probe_device+0xc4/0x1a0) from
[<c02babb4>] (__driver_attach+0x60/0x84)
[ 72.522369] [<c02babb4>] (__driver_attach+0x60/0x84) from
[<c02ba19c>] (bus_for_each_dev+0x4c/0x8c)
[ 72.570251] [<c02ba19c>] (bus_for_each_dev+0x4c/0x8c) from
[<c02b9a74>] (bus_add_driver+0x13c/0x2c8)
[ 72.605468] [<c02b9a74>] (bus_add_driver+0x13c/0x2c8) from
[<c02baed4>] (driver_register+0xbc/0x148)
[ 72.649963] [<c02baed4>] (driver_register+0xbc/0x148) from
[<c03566fc>] (i2c_register_driver+0x3c/0x8c)
[ 72.687591] [<c03566fc>] (i2c_register_driver+0x3c/0x8c) from
[<c003b374>] (do_one_initcall+0x5c/0x1bc)
[ 72.725250] [<c003b374>] (do_one_initcall+0x5c/0x1bc) from
[<c009f138>] (sys_init_module+0xc0/0x1f0)
[ 72.772491] [<c009f138>] (sys_init_module+0xc0/0x1f0) from
[<c003bfc0>] (ret_fast_syscall+0x0/0x2c)
[ 72.781982] ---[ end trace 6840dd3480e21dd0 ]---
[ 72.786712] Saving csi2 context
[ 72.786743] mt9v113 2-003c: Registered to v4l2 master omap34xxcam!!

My impression is that there is a communication error on the I2C bus
but I'm not sure what the reasons are.
Koen - could you provide some insight how you got the camera modules
working with Angstrom?

Thank you,
Thoams

I loaded the files I got from narcissus onto and SD, plugged in the 3M and it worked. Arbitration lost usually means you have a uboot that doesn't enable the internal pullups.

regards,

Koen

Another followup to the problem report with the camera and current
Angstrom versions:

The previous reports are based on tests using the 3M camera module
(LBCM3M1).
I now switched the board to the VGA module (LBCMVGA). The results are
not much better. The core problem seems to be related to I2C. The
relevant section of dmesg is this:

[ 70.969757] Restoring csi2 context
[ 71.873718] i2c_omap i2c_omap.2: Arbitration lost
[ 71.889709] mt9v113 2-003c: chip id detected 0x0
[ 71.889739] mt9v113 2-003c: chip id mismatch read 0x0, expecting
0x2280
[ 71.896392] mt9v113 2-003c: Unable to detect decoder
[ 71.936340] ------------[ cut here ]------------
[ 71.941040] WARNING: at drivers/media/video/mt9v113.c:1274
ioctl_s_power+0xac/0xf4 [mt9v113]()
[ 72.000244] Modules linked in: mt9v113(+)
[ 72.004364] [<c0040c40>] (unwind_backtrace+0x0/0xdc) from
[<c006cad8>] (warn_slowpath_common+0x4c/0x80)
[ 72.055603] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 72.077117] [<c006cad8>] (warn_slowpath_common+0x4c/0x80) from
[<bf001158>] (ioctl_s_power+0xac/0xf4 [mt9v113])
[ 72.100433] twl_rtc twl_rtc: Power up reset detected.
[ 72.108215] [<bf001158>] (ioctl_s_power+0xac/0xf4 [mt9v113]) from
[<c035daa0>] (v4l2_int_ioctl_1+0x2c/0x38)
[ 72.132110] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 72.157135] [<c035daa0>] (v4l2_int_ioctl_1+0x2c/0x38) from
[<c0375d14>] (omap34xxcam_slave_power_set+0x68/0xf0)
[ 72.209777] [<c0375d14>] (omap34xxcam_slave_power_set+0x68/0xf0)
from [<c037749c>] (omap34xxcam_device_register+0x114/0x324)
[ 72.262634] [<c037749c>] (omap34xxcam_device_register+0x114/0x324)
from [<c035dca0>] (__v4l2_int_device_try_attach_all+0x164/0x1c0)
[ 72.319152] [<c035dca0>] (__v4l2_int_device_try_attach_all
+0x164/0x1c0) from [<c035dd58>] (v4l2_int_device_register+0x5c/0x7c)
[ 72.359985] [<c035dd58>] (v4l2_int_device_register+0x5c/0x7c) from
[<bf000690>] (mt9v113_probe+0xa4/0x128 [mt9v113])
[ 72.402099] [<bf000690>] (mt9v113_probe+0xa4/0x128 [mt9v113]) from
[<c03559c4>] (i2c_device_probe+0xb8/0xdc)
[ 72.447875] [<c03559c4>] (i2c_device_probe+0xb8/0xdc) from
[<c02baa78>] (driver_probe_device+0xc4/0x1a0)
[ 72.496246] [<c02baa78>] (driver_probe_device+0xc4/0x1a0) from
[<c02babb4>] (__driver_attach+0x60/0x84)
[ 72.522369] [<c02babb4>] (__driver_attach+0x60/0x84) from
[<c02ba19c>] (bus_for_each_dev+0x4c/0x8c)
[ 72.570251] [<c02ba19c>] (bus_for_each_dev+0x4c/0x8c) from
[<c02b9a74>] (bus_add_driver+0x13c/0x2c8)
[ 72.605468] [<c02b9a74>] (bus_add_driver+0x13c/0x2c8) from
[<c02baed4>] (driver_register+0xbc/0x148)
[ 72.649963] [<c02baed4>] (driver_register+0xbc/0x148) from
[<c03566fc>] (i2c_register_driver+0x3c/0x8c)
[ 72.687591] [<c03566fc>] (i2c_register_driver+0x3c/0x8c) from
[<c003b374>] (do_one_initcall+0x5c/0x1bc)
[ 72.725250] [<c003b374>] (do_one_initcall+0x5c/0x1bc) from
[<c009f138>] (sys_init_module+0xc0/0x1f0)
[ 72.772491] [<c009f138>] (sys_init_module+0xc0/0x1f0) from
[<c003bfc0>] (ret_fast_syscall+0x0/0x2c)
[ 72.781982] ---[ end trace 6840dd3480e21dd0 ]---
[ 72.786712] Saving csi2 context
[ 72.786743] mt9v113 2-003c: Registered to v4l2 master omap34xxcam!!

My impression is that there is a communication error on the I2C bus
but I'm not sure what the reasons are.
Koen - could you provide some insight how you got the camera modules
working with Angstrom?

I loaded the files I got from narcissus onto and SD, plugged in the 3M and it worked. Arbitration lost usually means you have a uboot that doesn't enable the internal pullups.

Just to follow-up that with a link to the code to turn on the internal pull-ups:
http://gitorious.org/beagleboard-validation/u-boot/commit/61e73503b793f042b7408ee2a43662ef3eddbba6

Jason Kridner <jkridner@beagleboard.org> [2010-09-20 16:43:25]:

Just to follow-up that with a link to the code to turn on the internal pull-ups:
http://gitorious.org/beagleboard-validation/u-boot/commit/61e73503b793f042b7408ee2a43662ef3eddbba6

Hi,

what's the problem behind the kernel i2c probing, mentioned in this pullup
patch? Thanks.

-- ynezz

Petr �tetiar <ynezz@true.cz> [2010-09-21 10:08:40]:

Jason Kridner <jkridner@beagleboard.org> [2010-09-20 16:43:25]:

> Just to follow-up that with a link to the code to turn on the internal pull-ups:
> http://gitorious.org/beagleboard-validation/u-boot/commit/61e73503b793f042b7408ee2a43662ef3eddbba6

Hi,

what's the problem behind the kernel i2c probing, mentioned in this pullup
patch? Thanks.

The comment is in your other patch[1], sorry.

1. http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg08839.html

-- ynezz