Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Linkan on August 04, 2016, 11:24:14 AM

Title: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: Linkan on August 04, 2016, 11:24:14 AM
I've got myself a raspberry pi zero and a camera module and I wanted to do a timelapse project running on battery. I need a compact OS so I can fit more images on the sd card. I've read that I needed picore version 8 which is still in beta so I can understand why the rpi-vc.tcz package is not available yet. Is it something that will be available soon?
Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: Linkan on August 06, 2016, 03:09:41 AM
Is there a way for me to compile the videocore package myself or install the picore 7 version on picore 8?
Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: mocore on August 06, 2016, 07:24:20 AM


it is possible to try and compile your self
http://www.stuffaboutcode.com/2013/08/compile-raspberry-pi-userland-raspivid.html ( alltho this example is using debian )

Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: bmarkus on August 06, 2016, 08:49:41 AM
You can use the GitHub release w/o recompiling.
Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: Linkan on August 07, 2016, 08:30:17 AM
@bmarkus Where can I find the git repository for that?
Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: bmarkus on August 07, 2016, 03:14:32 PM
https://github.com/raspberrypi/
Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: Linkan on August 07, 2016, 04:40:26 PM
@bmarkus Thanks, so I put the bin, lib and sbin directories (downloaded from pre-compiled firmware github repository) in /opt/local by creating a squashfs file which I installed on my raspberry pi using tce-load -i vc.tcz and it put all the files under the /opt/local directory as expected. I set the permissions to 777 for all files but when I try to run raspistill (when pwd shows /opt/local/bin and ls returns that raspistill exists in that directory) gives me "-sh: raspistill: not found" (if I run ./ssh it works)

file -kz raspistill gives me:
raspistill: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.1.9, not stripped\012- data

I've tried running it on my raspberry pi model b and raspberry pi zero and both gives the same result. Sorry for my ignorance, I'm new to tiny core linux.
Title: Re: rpi-vc.tcz package for picore 8 running on rpi zero
Post by: Linkan on August 08, 2016, 08:03:24 AM
@bmarkus Well, I figured it out. The reason running /usr/local/bin/raspistill before gave me -sh: raspistill: not found is because it was dynamically linked with /lib/ld-linux.so.3 but because tiny core linux is compiled with hard floats /lib/ld-linux-armhf.so.3 is the correct linker, and "/lib/ld-linux.so.3" doesnt exist.

When I did the same thing but with the directories under /hardfp/opt/vc it runs perfectly fine on my system. Thanks alot for your help!