pi-builder icon indicating copy to clipboard operation
pi-builder copied to clipboard

Image sequencer, infragram, and RPi Cam for Raspberry Pi camera

Open jywarren opened this issue 5 years ago • 3 comments

(copy of https://github.com/publiclab/pi-builder/pull/53 but against main branch instead of master)

Thanks for opening a pull request! In this repository, opening a PR will initiate the generation of a new Raspberry Pi image, and create an image file you can download and use in your Raspberry Pi.

The changes you add to the pull request, such as adding software to install, will be run on the generated image.

For an example, see the software installed and configured in this pull request: https://github.com/publiclab/image-builder-rpi/pull/15/files

Recipe

Use this space to describe what your "recipe" is intended to install and configure on a Raspberry Pi:


Download instructions

Generating the image will take a few minutes. Once the image is prepared, and if it succeeded, you'll see a green checkmark at the bottom of the pull request. To download the image:

  1. click the green checkmark; you'll go to a page at a URL like https://gitlab.com/publiclab/image-builder-rpi/pipelines/########/builds
  2. On this page, click the Jobs tab, next to Pipeline
  3. Click the green Passed button
  4. Click Download in the right-hand sidebar
  5. Unzip the artifacts.zip file, and also the hypriotos-rpi-camera_web.img.zip within it
  6. Use a program like https://etcher.io/ to flash it to an SD card

You'll also be able to read the output of the image generation in this window.

We hope to create a bot to report back the completed image URL in each pull request. If you can help create such a bot, please contact us at:

https://github.com/publiclab/image-builder-rpi/issues/16

Thanks!

jywarren avatar Aug 01 '19 11:08 jywarren

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

ok, and when we had used just python, not python2.7, we had:

+ cp /etc/rpicam_config.txt config.txt
+ bash ./install.sh q
Unknown host QEMU_IFLA type: 50
...
...
...
Unknown host QEMU_IFLA type: 43
sudo: unable to resolve host a872b2f58b43
Pulling docker image gitlab/gitlab-runner-helper:x86_64-de7731dd ...
ERROR: Job failed: execution took longer than 1h0m0s seconds

Hm. Actually it looks like that had worked -- ran past all the npm/javascript installs and just timed out on installing RPi_Cam_Web_Interface. Looking at the silvanmelchior to see if we got that wrong or reverted something...

jywarren avatar Aug 01 '19 14:08 jywarren

I'll try reverting it back to regular python and seeing if we can get it to not time out on that install script. For record, the script that was running when it timed out was:

https://github.com/silvanmelchior/RPi_Cam_Web_Interface/blob/master/install.sh

And, GitLab can only run jobs for an hour, i think.

jywarren avatar Aug 01 '19 14:08 jywarren

I tried it a couple of times - the issue I think is that it takes a lot of time to compile image-sequencer dependencies on emulated arm - it takes past the 1H allowed maximum at Gitlab. It's annoying - we would have to save some time by precompiling - but I don't know how to upload precompiled binaries to npm.

icarito avatar Aug 01 '19 14:08 icarito