[Solved] Raspberry Pi B+ - Camera not working with ArchARM

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[Solved] Raspberry Pi B+ - Camera not working with ArchARM

Postby hamaKan » Fri Aug 08, 2014 3:28 pm

Hallo all!

I have a strange problem and i hope you guys can help me. Recently i bought a RPi B+ incl. the camera model NoIR. I did set up Arch because it does not include that much pre-installed software and i generally prefer arch over debian based systems. I managed to get everything to work (base system, wlan, squid, ...) except the camera module..

I did find this site and tried everything (slightly modified for arch) but still can't get it to work.

Here is the output when i run raspistill:

Code: Select all
/opt/vc/bin/raspistill -v -o /tmp/test.png

raspistill Camera App v1.3.8

Width 2592, Height 1944, quality 85, filename /tmp/test.png
Time delay 5000, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly


As you can see it displays an ENOMEM error. The raspberry site tells me to check the connections - which I did (flat cable and "sunny"-connector), but it still does not work.

I also tried to upgrade the kernel to the latest version from the repos - also with no positive result.

I thought that the camera itself is broken, but when i install a fresh copy of Raspbian and follow every step from the above mentioned site, the camera and raspistill/vid are working.

Another strange detail is, that on the first run of "vcgencmd get_camera" the red camera-led flashes (on ArchARM).

I did search the internet for quite a while but did not find anything related to my problem (working camera on raspbian but not on arch). For now i can run raspbian as a work-a-round, but i would really like to have ArchARM running on my Pi. :-)

Here is some of my config:

/boo/config.txt
Code: Select all
start_file=start_x.elf
fixup_file=fixup_x.dat
gpu_mem=128

uname -a
Code: Select all
Linux raspberrypi 3.15.7-1-ARCH #1 PREEMPT Wed Jul 30 00:26:24 MDT 2014 armv6l GNU/Linux

/opt/vc/bin/vcgencmd get_camera
Code: Select all
supported=1 detected=0

lsmod
Code: Select all
Module                  Size  Used by
snd_soc_pcm512x         9126  0
snd_soc_wm8804          7848  0
regmap_spi              1941  2 snd_soc_pcm512x,snd_soc_wm8804
regmap_i2c              1681  2 snd_soc_pcm512x,snd_soc_wm8804
snd_soc_bcm2708_i2s     5677  0
regmap_mmio             2998  1 snd_soc_bcm2708_i2s
snd_soc_core          158765  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_bcm2708_i2s
leds_gpio               2186  0
led_class               4158  1 leds_gpio
snd_compress            8205  1 snd_soc_core
bcm2708_dmaengine       5296  0
snd_pcm_dmaengine       5443  1 snd_soc_core
spi_bcm2708             5502  0
i2c_bcm2708             5492  0
virt_dma                2333  1 bcm2708_dmaengine
snd_bcm2835            19733  0
snd_pcm                85686  3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_timer              20702  1 snd_pcm
snd                    61392  5 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_compress
bcm2708_rng             1040  0
rng_core                4412  1 bcm2708_rng
ipv6                  323722  0

dmesg
Code: Select all
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.15.7-1-ARCH (nobody@root-armv6-copy) (gcc version 4.8.2 20131219 (prerelease) (GCC) ) #1 PREEMPT Wed Jul 30 00:26:24 MDT 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 8 MiB at 17800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 98304
[    0.000000] free_area_init_node: node 0, pgdat c0a2e8e0, node_mem_map d74f4000
[    0.000000]   Normal zone: 768 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 98304 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 97536
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x10 bcm2708.serial=0x326285d5 smsc95xx.macaddr=B8:27:EB:62:85:D5 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  ipv6.disable=1 avoid_safe_mode=1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p5 rootfstype=ext4 elevator=noop rootwait
[    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: 370128K/393216K available (7397K kernel code, 397K rwdata, 2368K rodata, 274K init, 879K bss, 23088K reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xd8800000 - 0xff000000   ( 616 MB)
    lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc09917a4   (9766 kB)
      .init : 0xc0992000 - 0xc09d6b6c   ( 275 kB)
      .data : 0xc09d8000 - 0xc0a3b4cc   ( 398 kB)
       .bss : 0xc0a3b4cc - 0xc0b17488   ( 880 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:394
[    0.000020] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000057] Switching to timer-based delay loop
[    0.000302] Console: colour dummy device 80x30
[    0.000502] console [tty1] enabled
[    0.000525] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000547] pid_max: default: 32768 minimum: 301
[    0.000893] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000921] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001835] Initializing cgroup subsys memory
[    0.001888] Initializing cgroup subsys devices
[    0.001906] Initializing cgroup subsys freezer
[    0.001922] Initializing cgroup subsys net_cls
[    0.001935] Initializing cgroup subsys blkio
[    0.001947] Initializing cgroup subsys bfqio
[    0.001961] Initializing cgroup subsys perf_event
[    0.001976] Initializing cgroup subsys net_prio
[    0.002079] CPU: Testing write buffer coherency: ok
[    0.002535] Setting up static identity map for 0x70beb0 - 0x70bf0c
[    0.004953] devtmpfs: initialized
[    0.023072] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.025687] xor: measuring software checksum speed
[    0.120405]    arm4regs  :   973.600 MB/sec
[    0.220460]    8regs     :   470.800 MB/sec
[    0.320571]    32regs    :   470.800 MB/sec
[    0.320590] xor: using function: arm4regs (973.600 MB/sec)
[    0.321858] NET: Registered protocol family 16
[    0.327538] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.328425] cpuidle: using governor ladder
[    0.328450] cpuidle: using governor menu
[    0.329215] bcm2708.uart_clock = 3000000
[    0.331891] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.331915] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.331931] mailbox: Broadcom VideoCore Mailbox driver
[    0.332028] bcm2708_vcio: mailbox at f200b880
[    0.332133] bcm_power: Broadcom power driver
[    0.332153] bcm_power_open() -> 0
[    0.332164] bcm_power_request(0, 8)
[    0.832883] bcm_mailbox_read -> 00000080, 0
[    0.832903] bcm_power_request -> 0
[    0.833026] Serial: AMBA PL011 UART driver
[    0.833180] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.833575] console [ttyAMA0] enabled
[    1.042903] raid6: int32x1     46 MB/s
[    1.212677] raid6: int32x2     71 MB/s
[    1.382707] raid6: int32x4     91 MB/s
[    1.553019] raid6: int32x8     99 MB/s
[    1.553038] raid6: using algorithm int32x8 (99 MB/s)
[    1.553049] raid6: using intx1 recovery algorithm
[    1.553765] SCSI subsystem initialized
[    1.554274] usbcore: registered new interface driver usbfs
[    1.554402] usbcore: registered new interface driver hub
[    1.554718] usbcore: registered new device driver usb
[    1.557727] Switched to clocksource stc
[    1.616422] FS-Cache: Loaded
[    1.616747] CacheFiles: Loaded
[    1.633451] NET: Registered protocol family 2
[    1.634633] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.634741] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    1.634843] TCP: Hash tables configured (established 4096 bind 4096)
[    1.634932] TCP: reno registered
[    1.634960] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.634995] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.635328] NET: Registered protocol family 1
[    1.635949] RPC: Registered named UNIX socket transport module.
[    1.635977] RPC: Registered udp transport module.
[    1.635989] RPC: Registered tcp transport module.
[    1.636000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.638104] bcm2708_dma: DMA manager at f2007000
[    1.638267] bcm2708_gpio: bcm2708_gpio_probe c09e66e0
[    1.638806] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.640148] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.888513] VFS: Disk quotas dquot_6.5.2
[    1.888964] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.892093] FS-Cache: Netfs 'nfs' registered for caching
[    1.893579] NFS: Registering the id_resolver key type
[    1.893680] Key type id_resolver registered
[    1.893698] Key type id_legacy registered
[    1.893733] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.894711] JFS: nTxBlock = 2955, nTxLock = 23645
[    1.896450] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[    1.902737] aufs 3.15-20140728
[    1.902798] msgmni has been set to 738
[    1.905293] async_tx: api initialized (async)
[    1.905483] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.905799] io scheduler noop registered (default)
[    1.905823] io scheduler deadline registered
[    1.905948] io scheduler cfq registered
[    1.906026] io scheduler bfq registered
[    1.906041] BFQ I/O-scheduler version: v7r5
[    1.907471] BCM2708FB: allocated DMA memory 57c00000
[    1.907541] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.922766] Console: switching to colour frame buffer device 82x26
[    1.925339] uart-pl011 dev:f1: no DMA platform data
[    1.925407] kgdb: Registered I/O driver kgdboc.
[    1.926063] vc-cma: Videocore CMA driver
[    1.926083] vc-cma: vc_cma_base      = 0x00000000
[    1.926096] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.926107] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.939160] brd: module loaded
[    1.945958] loop: module loaded
[    1.946330] vchiq: vchiq_init_state: slot_zero = 0xd7800000, is_master = 0
[    1.947202] Loading iSCSI transport class v2.0-870.
[    1.950592] usbcore: registered new interface driver ax88179_178a
[    1.950761] usbcore: registered new interface driver smsc95xx
[    1.950985] usbcore: registered new interface driver cdc_ncm
[    1.951011] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.151238] Core Release: 2.80a
[    2.151274] Setting default values for core params
[    2.151320] Finished setting default values for core params
[    2.351492] Using Buffer DMA mode
[    2.351518] Periodic Transfer Interrupt Enhancement - disabled
[    2.351531] Multiprocessor Interrupt Enhancement - disabled
[    2.351544] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.351561] Dedicated Tx FIFOs mode
[    2.352013] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xd7c14000 dma = 0x57c14000 len=9024
[    2.352052] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
[    2.352081] dwc_otg: Microframe scheduler enabled
[    2.352145] WARN::hcd_init:473: FIQ at 0xc056b86c
[    2.352165] WARN::hcd_init:474: FIQ ASM at 0xc056bb20 length 36
[    2.352197] WARN::hcd_init:500: MPHI regs_base at 0xd89b8000
[    2.352228] dwc_otg bcm2708_usb: DWC OTG Controller
[    2.352291] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    2.352354] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    2.352394] Init: Port Power? op_state=1
[    2.352405] Init: Power Port (0)
[    2.352802] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.352830] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.352847] usb usb1: Product: DWC OTG Controller
[    2.352862] usb usb1: Manufacturer: Linux 3.15.7-1-ARCH dwc_otg_hcd
[    2.352878] usb usb1: SerialNumber: bcm2708_usb
[    2.353896] hub 1-0:1.0: USB hub found
[    2.353991] hub 1-0:1.0: 1 port detected
[    2.354601] dwc_otg: FIQ enabled
[    2.354621] dwc_otg: NAK holdoff enabled
[    2.354633] dwc_otg: FIQ split-transaction FSM enabled
[    2.354660] Module dwc_common_port init
[    2.355146] usbcore: registered new interface driver usb-storage
[    2.355554] mousedev: PS/2 mouse device common for all mice
[    2.356074] md: linear personality registered for level -1
[    2.356095] md: raid0 personality registered for level 0
[    2.356107] md: raid1 personality registered for level 1
[    2.356118] md: raid10 personality registered for level 10
[    2.356514] md: raid6 personality registered for level 6
[    2.356534] md: raid5 personality registered for level 5
[    2.356547] md: raid4 personality registered for level 4
[    2.356560] md: multipath personality registered for level -4
[    2.356571] md: faulty personality registered for level -5
[    2.357313] device-mapper: uevent: version 1.0.3
[    2.358194] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[    2.359596] device-mapper: multipath: version 1.7.0 loaded
[    2.359628] device-mapper: multipath round-robin: version 1.0.0 loaded
[    2.359643] device-mapper: multipath queue-length: version 0.1.0 loaded
[    2.359656] device-mapper: multipath service-time: version 0.2.0 loaded
[    2.359674] device-mapper: raid: Loading target version 1.5.2
[    2.360013] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    2.360221] bcm2835-cpufreq: switching to governor ondemand
[    2.360243] bcm2835-cpufreq: switching to governor ondemand
[    2.360465] sdhci: Secure Digital Host Controller Interface driver
[    2.360481] sdhci: Copyright(c) Pierre Ossman
[    2.360603] sdhci: Enable low-latency mode
[    2.360793] mmc0: no vqmmc regulator found
[    2.360813] mmc0: no vmmc regulator found
[    2.397789] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.398065] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.398180] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.398204] ledtrig-cpu: registered to indicate activity on CPUs
[    2.398407] hidraw: raw HID events driver (C) Jiri Kosina
[    2.399021] usbcore: registered new interface driver usbhid
[    2.399041] usbhid: USB HID core driver
[    2.399321] TCP: cubic registered
[    2.399343] Initializing XFRM netlink socket
[    2.399381] NET: Registered protocol family 17
[    2.399589] Key type dns_resolver registered
[    2.410971] registered taskstats version 1
[    2.430192] Btrfs loaded
[    2.431615] md: Waiting for all devices to be available before autodetect
[    2.431641] md: If you don't use raid, use raid=noautodetect
[    2.433028] md: Autodetecting RAID arrays.
[    2.433055] md: Scanned 0 and added 0 devices.
[    2.433065] md: autorun ...
[    2.433074] md: ... autorun DONE.
[    2.433356] Waiting for root device /dev/mmcblk0p5...
[    2.460757] mmc0: read SD Status register (SSR) after 2 attempts
[    2.467372] mmc0: new high speed SDHC card at address aaaa
[    2.468217] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    2.471914]  mmcblk0: p1 p2 < p5 > p3
[    2.548013] Indeed it is in host mode hprt0 = 00021501
[    2.737928] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.738132] Indeed it is in host mode hprt0 = 00001101
[    2.938197] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.938228] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.939377] hub 1-1:1.0: USB hub found
[    2.939565] hub 1-1:1.0: 5 ports detected
[    3.017709] EXT4-fs (mmcblk0p5): recovery complete
[    3.019807] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    3.019924] VFS: Mounted root (ext4 filesystem) on device 179:5.
[    3.021255] devtmpfs: mounted
[    3.022194] Freeing unused kernel memory: 272K (c0992000 - c09d6000)
[    3.217969] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.318261] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.318296] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.321476] smsc95xx v1.0.4
[    3.384198] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:62:85:d5
[    3.416653] random: systemd urandom read with 100 bits of entropy available
[    3.429423] systemd[1]: systemd 215 running in system mode. (+PAM -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ +SECCOMP -APPARMOR)
[    3.430093] systemd[1]: Detected architecture 'arm'.
[    3.553535] IPv6: Loaded, but administratively disabled, reboot required to enable
[    3.553753] systemd[1]: Inserted module 'ipv6'
[    3.556857] systemd[1]: Set hostname to <raspberrypi>.
[    4.034528] random: nonblocking pool is initialized
[    4.138169] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    4.143766] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    4.144627] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    4.144854] systemd[1]: Expecting device dev-ttyAMA0.device...
[    4.145670] systemd[1]: Expecting device sys-subsystem-net-devices-eth0.device...
[    4.146435] systemd[1]: Starting Remote File Systems.
[    4.147200] systemd[1]: Reached target Remote File Systems.
[    4.147440] systemd[1]: Expecting device sys-subsystem-net-devices-wlan0.device...
[    4.148518] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[    4.149106] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    4.149314] systemd[1]: Starting Paths.
[    4.150081] systemd[1]: Reached target Paths.
[    4.150300] systemd[1]: Starting Encrypted Volumes.
[    4.151055] systemd[1]: Reached target Encrypted Volumes.
[    4.151461] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    4.153150] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    4.153444] systemd[1]: Expecting device dev-mmcblk0p3.device...
[    4.154202] systemd[1]: Expecting device dev-disk-by\x2duuid-98816856\x2d2cb5\x2d4529\x2da833\x2d3727c492d655.device...
[    4.154995] systemd[1]: Starting Root Slice.
[    4.237125] systemd[1]: Created slice Root Slice.
[    4.237374] systemd[1]: Starting User and Session Slice.
[    4.240587] systemd[1]: Created slice User and Session Slice.
[    4.240825] systemd[1]: Starting Device-mapper event daemon FIFOs.
[    4.241943] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[    4.242167] systemd[1]: Starting Delayed Shutdown Socket.
[    4.243203] systemd[1]: Listening on Delayed Shutdown Socket.
[    4.243432] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    4.244610] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    4.244842] systemd[1]: Starting Journal Socket (/dev/log).
[    4.246015] systemd[1]: Listening on Journal Socket (/dev/log).
[    4.246314] systemd[1]: Starting udev Control Socket.
[    4.247385] systemd[1]: Listening on udev Control Socket.
[    4.247691] systemd[1]: Starting udev Kernel Socket.
[    4.248922] systemd[1]: Listening on udev Kernel Socket.
[    4.249160] systemd[1]: Starting LVM2 metadata daemon socket.
[    4.251502] systemd[1]: Listening on LVM2 metadata daemon socket.
[    4.251778] systemd[1]: Starting Journal Socket.
[    4.254203] systemd[1]: Listening on Journal Socket.
[    4.254606] systemd[1]: Starting System Slice.
[    4.259270] systemd[1]: Created slice System Slice.
[    4.259574] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    4.264027] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    4.264426] systemd[1]: Mounting Temporary Directory...
[    4.272540] systemd[1]: Starting system-netctl\x2dauto.slice.
[    4.285551] systemd[1]: Created slice system-netctl\x2dauto.slice.
[    4.285953] systemd[1]: Starting system-netctl.slice.
[    4.292091] systemd[1]: Created slice system-netctl.slice.
[    4.292741] systemd[1]: Starting system-netctl\x2difplugd.slice.
[    4.300382] systemd[1]: Created slice system-netctl\x2difplugd.slice.
[    4.300651] systemd[1]: Starting system-getty.slice.
[    4.309632] systemd[1]: Created slice system-getty.slice.
[    4.309944] systemd[1]: Starting system-serial\x2dgetty.slice.
[    4.314433] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    4.323334] systemd[1]: Started Set Up Additional Binary Formats.
[    4.323625] systemd[1]: Starting udev Coldplug all Devices...
[    4.354658] systemd[1]: Starting Load Kernel Modules...
[    4.367423] systemd[1]: Mounted Huge Pages File System.
[    4.378264] systemd[1]: Starting Setup Virtual Console...
[    4.401258] systemd[1]: Mounting Debug File System...
[    4.441782] systemd[1]: Mounting POSIX Message Queue File System...
[    4.478287] bcm2708_rng_init=d89fe000
[    4.549643] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    4.583225] systemd[1]: Starting Journal Service...
[    4.688697] systemd[1]: Started Journal Service.
[    5.931405] systemd-udevd[95]: starting version 215
[    6.448644] bcm2708_i2c_init_pinmode(0,0)
[    6.448677] bcm2708_i2c_init_pinmode(0,1)
[    6.448971] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100000)
[    6.476308] bcm2708_i2c_init_pinmode(1,2)
[    6.476341] bcm2708_i2c_init_pinmode(1,3)
[    6.476903] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[    6.493109] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    6.493152] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    6.805568] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    6.986661] Adding 1833468k swap on /dev/mmcblk0p3.  Priority:-1 extents:1 across:1833468k SSFS
[    7.110395] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    7.414853] systemd-journald[81]: Received request to flush runtime journal from PID 1
[    7.499321] systemd-journald[81]: File /var/log/journal/2970dfe1881f4006bcc9ac14f165e286/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    8.889245] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    9.396374] pcm512x 1-004c: Failed to reset device: -5
[    9.512332] pcm512x: probe of 1-004c failed with error -5
Last edited by hamaKan on Tue Aug 19, 2014 8:00 pm, edited 1 time in total.
hamaKan
 
Posts: 4
Joined: Fri Aug 08, 2014 2:58 pm

Re: Raspberry Pi B+ - Camera not working with ArchARM

Postby WarheadsSE » Fri Aug 08, 2014 4:56 pm

  • Make sure you have /boot mounted
  • Update the kernel or re-install
  • Ensure that raspberrypi-firmware is installed.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Raspberry Pi B+ - Camera not working with ArchARM

Postby hamaKan » Sat Aug 09, 2014 7:04 pm

Ok, I have done some testing, and I think something gets corrupted when working on the sd-card.

I dded a fresh copy of Arch-ARM and the camera is working. Then i resized the partitions on my linux-laptop and the camera stopped working. So I copied a new fresh Arm image on the card (camera works again) and resize the partitions directly on the Pi --> camera keeps working.

Now i did pull the power-plug on accident and the camera stopped working again... I did already reinstall all packages containing "raspberry" in its name and used sync multiple times, but I can't get the camera to work again.

do you guys know any trick - other than reinstalling the system again (because I have a feeling that the cam will stop working eventually)
hamaKan
 
Posts: 4
Joined: Fri Aug 08, 2014 2:58 pm

Re: Raspberry Pi B+ - Camera not working with ArchARM

Postby kasz » Sat Aug 09, 2014 9:21 pm

Same thing here.
Freshly installation of Arch on B+, even after reboot - camera works like it should. But after power off - newer working again.
When I use the same SD card in old Raspi, camera works great.
Similar problem here:
http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=84000
but in my case - cam module works with raspbian on old and new Raspi.

kasz
kasz
 
Posts: 1
Joined: Sat Aug 09, 2014 9:08 pm

Re: Raspberry Pi B+ - Camera not working with ArchARM

Postby hamaKan » Sun Aug 10, 2014 9:57 am

Thanks for the link, kasz! I read the thread and they mention, that there might be a bug in the "i2c_bcm2708" kernel module (for model B+). As you can see in my first post, this module is loaded at boot (output of lsmod). So i tried to blacklist the kernel module and after a power off and back on my camera is working again! When I enable the module and power off and back on, it stops working. So I think that is the error.

My steps to get the camera to work again:
Code: Select all
echo "blacklist i2c_bcm2708" > /etc/modprobe.d/blacklist.conf
sync
sync
sync
halt
(wait, then pull power plug and replug)
hamaKan
 
Posts: 4
Joined: Fri Aug 08, 2014 2:58 pm

Re: Raspberry Pi B+ - Camera not working with ArchARM

Postby Crazyachmed » Tue Aug 12, 2014 4:50 pm

Can confirm, blacklisting the module fixes my camera. Whats going on here, what does the module supposed to do, if it's not needed for the camera? Wasn't it using I2C?

EDIT: Also the
Code: Select all
[   10.867074] pcm512x 1-004d: Failed to reset device: -5
[   10.873691] pcm512x: probe of 1-004d failed with error -5
[   10.945399] pcm512x 1-004c: Failed to reset device: -5
[   10.994532] pcm512x: probe of 1-004c failed with error -5

messages are gone now
Crazyachmed
 
Posts: 4
Joined: Tue Aug 12, 2014 4:47 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 0 guests