WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Need help with PI Camera  (Read 2898 times)

Offline hitchdiddy

  • Newbie
  • *
  • Posts: 1
Need help with PI Camera
« on: February 03, 2019, 05:14:47 PM »
Hey all,

today I've read about tinyCore Linux in a blogpost and I had to try it out. So far I was amazed by the speed of the OS (I want to build a small Camera and therefore I need a slim Linux).

However, I couldn't get the PiCam running. There seems to be much obsolete information in the internet about how you can get it work.

Code: (bash) [Select]
tce-load -wi rpi-vc
sudo chmod 777 /dev/vchiq




I've read a few blog posts, like http://forum.tinycorelinux.net/index.php?topic=17903.0 but can't get it working.

Code: (bash) [Select]
sudo raspistill -w 100 -h 100 -o /tmp/out.jpg
produces:
Code: (bash) [Select]
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 enabled in this build. Try running "sudo raspi-config" and ensure that "camera" has been enabled

In the posts, people edited a file /boot/config.txt (append some lines there), but this file wasn't there in my Intallation of piCore. I created it and add the lines they suggested, but it seemed to have no effect.


Is there a solution? I really want to get it working, it would be so cool!


Best regards
Chris

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: Need help with PI Camera
« Reply #1 on: February 03, 2019, 08:17:49 PM »
Hi hitchdiddy
... In the posts, people edited a file /boot/config.txt (append some lines there), but this file wasn't there in my Intallation of piCore. ...
From the  README  file found here:
http://tinycorelinux.net/9.x/armv6/releases/RPi/
Quote
SD card partitioning
====================

First partition, mmcblk0p1 is VFAT type; it contains the basic piCore
system and the Raspberry Pi boot loader, firmware and other support
files. Partition is unmounted during operation, system is not using it
after boot and never writes.

Try mounting  mmcblk0p1  and check it for  /boot/config.txt.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: Need help with PI Camera
« Reply #2 on: February 04, 2019, 12:10:24 AM »

Offline hamak

  • Newbie
  • *
  • Posts: 26
Re: Need help with PI Camera
« Reply #3 on: February 07, 2019, 06:31:05 AM »
Did you edit this?
------------------------
sudo nano /mnt/mmcblk0p1/config.txt   ### At bottom of file after [ALL] add these lines like this
[ALL]
#Enable camera
start_x=1
 gpu_mem=128



Hey all,

today I've read about tinyCore Linux in a blogpost and I had to try it out. So far I was amazed by the speed of the OS (I want to build a small Camera and therefore I need a slim Linux).

However, I couldn't get the PiCam running. There seems to be much obsolete information in the internet about how you can get it work.

Code: (bash) [Select]
tce-load -wi rpi-vc
sudo chmod 777 /dev/vchiq

Did you edit this?
------------------------
sudo nano /mnt/mmcblk0p1/config.txt   ### At bottom of file after [ALL] add these lines like this
[ALL]
#Enable camera
start_x=1
 gpu_mem=128







I've read a few blog posts, like http://forum.tinycorelinux.net/index.php?topic=17903.0 but can't get it working.

Code: (bash) [Select]
sudo raspistill -w 100 -h 100 -o /tmp/out.jpg
produces:
Code: (bash) [Select]
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 enabled in this build. Try running "sudo raspi-config" and ensure that "camera" has been enabled

In the posts, people edited a file /boot/config.txt (append some lines there), but this file wasn't there in my Intallation of piCore. I created it and add the lines they suggested, but it seemed to have no effect.


Is there a solution? I really want to get it working, it would be so cool!


Best regards
Chris