Giter VIP home page Giter VIP logo

balena-raspberrypi's Introduction

Clone / Initialize this repository

There are two ways of initializing this repository:

  • Clone this repository with "git clone --recursive".

or

  • Run "git clone" and then "git submodule update --init --recursive". This will bring in all the needed dependencies.

Build information

balenaOS currently only builds with cgroups v1. If your distribution defaults to using cgroups v2, please boot with the following kernel command line argument: systemd.unified_cgroup_hierarchy=0

Containerized build

  • If you have a working docker installation, you can build in a containerized environment as follows: ./balena-yocto-scripts/build/balena-build.sh -d <device type> -s <shared directory>

    Where:

    • Device type is one of the supported devices with a valid <device type name>.coffee description file.
    • Shared directory is the absolute path to the build folder

Native build

To build all supported device types natively, please make sure your Linux distribution is supported by Yocto Project.

Additional host tools need to be installed for native builds to work.

  • Run the barys build script: ./balena-yocto-scripts/build/barys

  • You can also run barys with the -h switch to inspect the available options

Custom build using this repository

  • Run the barys build script in dry run mode to setup an empty build directory ./balena-yocto-scripts/build/barys --remove-build --dry-run

  • Edit the local.conf in the build/conf directory

  • Prepare build's shell environment source layers/poky/oe-init-build-env

  • Run bitbake (see message outputted when you sourced above for examples)

Build flags

  • Consult layers/meta-balena/README.md for info on various build flags (setting up serial console support for example) and build prerequisites. Build flags can be set by using the build scripts (barys or balena-build) or by manually modifying local.conf.

Contributing

Issues

See Issues section

Pull requests

To contribute send github pull requests targeting this repository.

Please refer to: Yocto Contribution Guidelines and try to use the commit log format as stated there. Example:


<component>: Short description

I'm going to explain here what my commit does in a way that history
would be useful.

Changelog-entry: User facing description of the issue
Signed-off-by: Joe Developer <[email protected]>

The header and the subject of each commit must be separated by an empty line.

The subject and the footer of each commit must be separated by an empty line.

Every pull request must contain at least one commit annotated with the Changelog-entry footer. The messages contained in these footers will be used to automatically fill the changelog on every new version.

If your PR fixes an open issue, make sure you mention the issue addressed by the PR. See:

balena-raspberrypi's People

Contributors

acostach avatar adolfogc avatar agherzan avatar alexgg avatar awk34 avatar balena-ci avatar balena-renovate[bot] avatar emirotin avatar floion avatar flowzone-app[bot] avatar frankleeeda avatar garethtdavies avatar imrehg avatar jakogut avatar klutchell avatar majorz avatar markcorbinuk avatar michal-mazurek avatar minusplusminus avatar mtoman avatar page- avatar pcarranzav avatar rahul-thakoor avatar renovate-bot avatar renovate[bot] avatar spanceac avatar telphan avatar vicgal avatar willnewton avatar zubairlk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

balena-raspberrypi's Issues

ERROR: balena-native - gcc: error: unrecognized command line option "-no-pie"

I get the following error when trying to build the latest version (2.13.1+rev1) of resin-raspberrypi:

ERROR: balena-native-17.06.0-dev+git73136d1985f28a34705f537e90636cf208734048-r0 do_compile: Function failed: do_compile (log file is located at /home/bruno/dev/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.06.0-dev+git73136d1985f28a34705f537e90636cf208734048-r0/temp/log.do_compile.25317)
ERROR: Logfile of failure stored in: /home/bruno/dev/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.06.0-dev+git73136d1985f28a34705f537e90636cf208734048-r0/temp/log.do_compile.25317
Log data follows:
| DEBUG: Executing shell function do_compile
| # WARNING! I don't seem to be running in a Docker container.
| # The result of this command might be an incorrect build, and will not be
| # officially supported.
| #
| # Try this instead: make all
| #
| 
| bundles/17.06.0-dev already exists. Removing.
| 
| ---> Making bundle: dynbinary-balena (in bundles/17.06.0-dev/dynbinary-balena)
| Building: bundles/17.06.0-dev/dynbinary-balena/balena-17.06.0-dev
| Created binary: bundles/17.06.0-dev/dynbinary-balena/balena-17.06.0-dev
| 
| # github.com/docker/docker/cmd/mobynit
| /home/bruno/dev/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.06.0-dev+git73136d1985f28a34705f537e90636cf208734048-r0/recipe-sysroot-native/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
| gcc: error: unrecognized command line option ‘-no-pie’
| 
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/bruno/dev/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.06.0-dev+git73136d1985f28a34705f537e90636cf208734048-r0/temp/log.do_compile.25317)
ERROR: Task (virtual:native:/home/bruno/dev/resin-raspberrypi/build/../layers/meta-resin/meta-resin-common/recipes-containers/balena/balena_git.bb:do_compile) failed with exit code '1'

gcc complains about the -no-pie option which it does not support.
Is there any minimum version of gcc required?

Raspberrypi: Add doc for `lcd_rotate`

Add lcd_rotate pre-commented and documented in the config.txt in raspberypis. The same way we have it for display_roate.

This applies to the Raspberry Pi 7" LCD screen.

2.14.3 - ERROR: os-config-0.0.14.AUTOINC+ac44cb7b3c-r0 do_unpack: Unpack failure

ERROR: os-config-0.0.14.AUTOINC+ac44cb7b3c-r0 do_unpack: Unpack failure for URL: 'https://crates.io/api/v1/crates/unicase/2.1.0/download'. Unpack command PATH="/home/fuxu/resinOS/rpi2.14.3/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/fuxu/resinOS/rpi2.14.3/layers/poky/scripts:/home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/recipe-sysroot/usr/bin/crossscripts:/home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/recipe-sysroot-native/usr/sbin:/home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/recipe-sysroot-native/usr/bin:/home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/recipe-sysroot-native/sbin:/home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/recipe-sysroot-native/bin:/home/fuxu/resinOS/rpi2.14.3/layers/poky/bitbake/bin:/home/fuxu/resinOS/rpi2.14.3/build/tmp/hosttools" tar -xz --no-same-owner -f /home/fuxu/resinOS/rpi2.14.3/build/downloads/unicase-2.1.0.crate -C /home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/cargo_home/bitbake failed with return value 2
ERROR: os-config-0.0.14.AUTOINC+ac44cb7b3c-r0 do_unpack: Function failed: base_do_unpack
ERROR: Logfile of failure stored in: /home/fuxu/resinOS/rpi2.14.3/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/os-config/0.0.14.AUTOINC+ac44cb7b3c-r0/temp/log.do_unpack.101384
ERROR: Task (/home/fuxu/resinOS/rpi2.14.3/build/../layers/meta-resin/meta-resin-common/recipes-core/os-config/os-config_0.0.14.bb:do_unpack) failed with exit code '1'

balena-native-17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0 do_compile: Function failed: do_compile

I am using the CentOS as host OS.

$ uname -r
4.18.3-1.el7.x86_64

but there is one last error to build the image as below. Can anyone give insights to solve?

ERROR: balena-native-17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0 do_compile: Function failed: do_compile (log file is located at /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0/temp/log.do_compile.17054)
ERROR: Logfile of failure stored in: /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0/temp/log.do_compile.17054
Log data follows:
| DEBUG: Executing shell function do_compile
| # WARNING! I don't seem to be running in a Docker container.
| # The result of this command might be an incorrect build, and will not be
| # officially supported.
| #
| # Try this instead: make all
| #
| 
| Package devmapper was not found in the pkg-config search path.
| Perhaps you should add the directory containing `devmapper.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'devmapper' found
| Removing bundles/
| 
| ---> Making bundle: dynbinary-balena (in bundles/dynbinary-balena)
| Building: bundles/dynbinary-balena/balena-17.12.0-dev
| Created binary: bundles/dynbinary-balena/balena-17.12.0-dev
| 
| # github.com/docker/docker/cmd/mobynit
| /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0/recipe-sysroot-native/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
| gcc: error: unrecognized command line option ‘-no-pie’
| 
| WARNING: /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0/temp/run.do_compile.17054:1 exit 2 from 'go build -ldflags '-extldflags "-static  -no-pie"' .'
| ERROR: Function failed: do_compile (log file is located at /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/x86_64-linux/balena-native/17.12.0-dev+git2fe3ad1568c1b783a9201fc3082452ad79d7f396-r0/temp/log.do_compile.17054)
ERROR: Task (virtual:native:/home/AAAA/resinOS/resin-raspberrypi/build/../layers/meta-resin/meta-resin-common/recipes-containers/balena/balena_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3771 tasks of which 3770 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/home/AAAA/resinOS/resin-raspberrypi/build/../layers/meta-resin/meta-resin-common/recipes-containers/balena/balena_git.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[000000036][LOG]Build for raspberrypi3 failed. Check failed log in build/tmp/log/cooker/raspberrypi3 .
[000000036][LOG]If build for raspberrypi3 succeeded, final image should have been generated here:
[000000036][LOG]   build/tmp/deploy/images/raspberrypi3/resin-image-raspberrypi3.resinos-img
[000000036][LOG]Done.

Kernel boot messages on HDMI

This is caused by the set of console=tty1 in the kernel cmdline.
NOTE: If no console is provided to the kernel then it will default to tty0 which will link to the first display (i.e. serial port)

Add sd8887_uapsta.bin wifi firmware to the raspberrypi OS image

Check if the current sd8887_uapsta.bin firmware in the pi3 image is the latest. If it is not, then bump the linux-firmware revision to latest available (through an append similar to https://github.com/resin-os/resin-intel/blob/master/layers/meta-resin-genericx86/recipes-kernel/linux-firmware/linux-firmware_git.bbappend where you only specify the new revision) and then add the corresponding package here https://github.com/resin-os/resin-raspberrypi/blob/master/layers/meta-resin-raspberrypi/recipes-core/packagegroups/packagegroup-resin-connectivity.bbappend to make sure this firmware makes its way into the rootfs

Pi with dev OS will not boot with Hyperpixel overlays enabled

Discussion: https://www.flowdock.com/app/rulemotion/resin-projects/threads/OQ1PVEwq2mpdX4HOvH4qI93Da0M

The hyperpixel should be supported, and does work with a prod OS for both the pi 3 & pi zero, if you add the overlays and config.txt lines from that readme. However, if you follow the same process on a dev build then the OS does not boot, and after a brief initial blinking the ACT light goes solid green.

This seems to be caused by the enable_uart=1 line in config.txt. If that is removed, dev builds then boot.

Unclear whether this is an actual bug, or simply something that needs to be better documented.

recipe jq-1.5-r0 : failed to compile

Hi all,

I tried to make an image for raspberry pi 3 target under master branch (by using ./resin-yocto-scripts/build/barys -r --shared-downloads $(pwd)/shared-downloads/ --shared-sstate $(pwd)/shared-sstate/ -m raspberrypi3 command) and I experienced the following problem:
...
NOTE: Running task 1755 of 3227 (/home/khang/Workspace/GIT/resinos/resin-raspberrypi/build/../layers/meta-openembedded/meta-oe/recipes-devtools/jq/jq_1.5.bb:do_compile)
NOTE: recipe jq-1.5-r0: task do_compile: Started
ERROR: jq-1.5-r0 do_compile: oe_runmake failed
ERROR: jq-1.5-r0 do_compile: Function failed: do_compile (log file is located at /home/khang/Workspace/GIT/resinos/resin-raspberrypi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/jq/1.5-r0/temp/log.do_compile.31306)
ERROR: Logfile of failure stored in: /home/khang/Workspace/GIT/resinos/resin-raspberrypi/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/jq/1.5-r0/temp/log.do_compile.31306
NOTE: recipe jq-1.5-r0: task do_compile: Failed
ERROR: Task (/home/khang/Workspace/GIT/resinos/resin-raspberrypi/build/../layers/meta-openembedded/meta-oe/recipes-devtools/jq/jq_1.5.bb:do_compile) failed with exit code '1'
...

Could anyone have a solution, please?

Best regards,
Pascal
20171002045420.log
console-latest.log

RPI3 bluetooth fails at start up (occasionally)

I shut the device down and the power cycled it and the Bluetooth interface never initialised correctly. These are the logs from dmesg:

root@a6cfd31:~# dmesg | grep Blue*
[   15.275877] Bluetooth: Core ver 2.22
[   15.291339] Bluetooth: HCI device and connection manager initialized
[   15.291473] Bluetooth: HCI socket layer initialized
[   15.291482] Bluetooth: L2CAP socket layer initialized
[   15.291539] Bluetooth: SCO socket layer initialized
[   15.297374] Bluetooth: HCI UART driver ver 2.3
[   15.297378] Bluetooth: HCI UART protocol H4 registered
[   15.297380] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   15.297492] Bluetooth: HCI UART protocol Broadcom registered
[   17.368161] Bluetooth: hci0 command 0x0c14 tx timeout
[   19.449713] Bluetooth: hci0 command 0x0c25 tx timeout
[   19.866079] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   19.871695] Bluetooth: BNEP filters: protocol multicast
[   19.888387] Bluetooth: BNEP socket layer initialized
[   21.528158] Bluetooth: hci0 command 0x0c38 tx timeout
[   23.608167] Bluetooth: hci0 command 0x0c39 tx timeout
[   25.688217] Bluetooth: hci0 command 0x1003 tx timeout
[   27.768211] Bluetooth: hci0 command 0x1001 tx timeout
[   29.848213] Bluetooth: hci0 command 0x1009 tx timeout
[   37.848157] Bluetooth: hci0 command 0x1003 tx timeout
[   39.928160] Bluetooth: hci0 command 0x1001 tx timeout
[   42.008162] Bluetooth: hci0 command 0x1009 tx timeout

It seems related to agherzan/meta-raspberrypi#148

I2C reads always returning 0xFF (as of 2.7.4+rev1)

Although we're still debugging this one on our end, I wanted to create this issue in case anyone else has run into this.

Starting with release 2.7.4+rev1, all of our I2C reads began returning 0xFF. In 2.7.2+rev1 and prior, this behavior is not observed.

We have tested several releases since 2.7.4 (including 2.9.7+rev1) and find the same behavior. Reverting back to 2.7.2+rev1 or earlier always resolves this issue.

Note that scanning devices (via i2cdetect) behaves as expected. Even writing to the I2C device succeeds. We are performing our tests via a Debain container with privileged mode enabled on a Raspberry Pi 3.

Plymouth does not show splash

This was introduced after we have passed console=null to our kernel.
The issue here is a missing dependency on systemd-udev-settle. i.e. the trigger on the graphic and tty subsystems are not settled.
Also plymouth was depending on the console option to determine the output interface a --tty option should be passed to the daemon.

build a development version of resinOS for the Raspberry Pi 3

follow the guidance @ https://resinos.io/docs/custombuild/ but always failed at this step:

HostOS - CentOS7 Linux 3.10.0-862.9.1.el7.x86_64

=====
ERROR: resin-image-1.0-r0 do_rootfs: /home/AAAA/resinOS/resin-raspberrypi/build/tmp/deploy/images/raspberrypi3/u-boot.bin is an invalid path referenced in RESIN_BOOT_PARTITION_FILES.
ERROR: resin-image-1.0-r0 do_rootfs: Function failed: resin_boot_dirgen_and_deploy (log file is located at /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_rootfs.99737)
ERROR: Logfile of failure stored in: /home/AAAA/resinOS/resin-raspberrypi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/resin-image/1.0-r0/temp/log.do_rootfs.99737
ERROR: Task (/home/AAAA/resinOS/resin-raspberrypi/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3135 tasks of which 3134 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/AAAA/resinOS/resin-raspberrypi/build/../layers/meta-resin/meta-resin-common/recipes-core/images/resin-image.bb:do_rootfs

Enable serial port - on UART0/ttyAMA0

Description

Test serial port when switched to ttyAMA0.

Steps to reproduce issue

Have a new Raspberrypi 3 device provisioned or use one that is already provisioned with an image for this release that has no "Device Configuration" variables configured.
Attach a serial and start a text-based modem control - ex minicom by issuing a similar command to "minicom -b 115200 -o -D /dev/tty***". Replace the tty device accordingly to your host.
Set a "Device Configuration" variable as it follows: RESIN_HOST_CONFIG_dtoverlay=pi3-miniuart-bt-overlay

Expected result

Device should reboot.
You should see booting messages on serial. As well, getty should be advertised as spawned on ttyAMA0 with a login message similar to: Resin OS X.X raspberrypi3 ttyAMA0

Actual result

No output on serial, also having set "enable_uart = 1" in config.txt in addition to this

Other information

Reported by: Florin Sarbu

Test configuration: RaspberryPi 3

Test case number: TC19

Test run: https://resinio.testlodge.com/projects/16238/runs/215816?tab=2&run_section_id=218234&executed_case_id=10147497#executed_case_10147497

can't boot correctly with the built image

I built the image following the https://resinos.io/docs/custombuild/#bake-your-own-image.

using the tagged version 2.13.6.

looks like it succeeded. then I use the Etcher in Windows to flash the built image to SD card. but when booting, the RPI stopped at the yellow logo screen and can't boot correctly.

Anyone know why?

PS: if I flash (also using the Etcher) the downloaded image from resinos.io, it can boot correctly.

PS: the built image and the downloaded image have the same size. 1.68 GB (1,807,745,024 bytes)

hwclock & fake-hwclock support

The Raspberry Pi doesn't have an RTC so if the unit fails to get the correct time, it can have trouble connecting to the OpenVPN server. I had that happen on a few networks where NTP was blocked and the unit was not able to connect.

For the Raspberry Pi units that don't have a physical hardware clock, the fake-hwclock package is very useful as it ensures that the clock moves forward after reboot and prevents the time going back to the year 2000.

An even better solution is to add this little device: https://www.ebay.co.uk/i/253056413179?chn=ps&dispItem=1&adgroupid=41920510205&rlsatarget=pla-325751485803&abcId=1128926&adtype=pla&merchantid=109797754&poi=&googleloc=9045006&device=c&campaignid=856841495&crdt=0

To set it up on the RPI, you run:

echo ds1307 0x68 | tee /sys/class/i2c-adapter/i2c-1/new_device

After that, the command hwclock starts to work:

root@resin:/# hwclock   
Sat Jan  1 23:18:01 2000  0.000000 seconds
root@resin:/# hwclock -w
root@resin:/# hwclock
Mon Aug 14 17:19:11 2017  0.000000 seconds

It would be great if support for the above was added to ResinOS out of the box.

Front logo Front conversations

Can't install PostgreSQL on Raspbian Stretch

Hi,

I am trying to build a LoraServer on a Raspberry Pi 3 with Stretch using resin.io but i cannot install postgresql and I from what I have looked this is due to the fact that this image is build on debian:stretch-slim.

To install it I simply use (I also tried to wget the repository and add the deb file):

`RUN apt-get update && apt-get install -y --no-install-recommends postgresql (also tried with postgresql-9.6) postgresql-client postgresql-contrib && rm -rf /var/lib/apt/lists/*`

On git push an error is displayed:

[main] Setting up postgresql-client-9.5 (9.5.4-3) …
[main] update-alternatives: using /usr/share/postgresql/9.5/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
[main] update-alternatives: error: error creating symbolic link ‘/usr/share/man/man7/ABORT.7.gz.dpkg-tmp’: No such file or directory
[main] dpkg: error processing package postgresql-client-9.5 (–configure):
[main] subprocess installed post-installation script returned error exit status 2
[main] dpkg: dependency problems prevent configuration of postgresql-9.5:
[main] postgresql-9.5 depends on postgresql-client-9.5; however:
[main] Package postgresql-client-9.5 is not configured yet.
[main] dpkg: error processing package postgresql-9.5 (–configure):
[main] dependency problems - leaving unconfigured

Which ends up with this message:

[main] Errors were encountered while processing:
[main] postgresql-client-9.5
[main] postgresql-9.5
[main] postgresql-contrib-9.5
[main] E: Sub-process /usr/bin/dpkg returned an error code (1)

And finishes with : [Error] Not deploying release.

Did anyone else had this problem ? How can it be fixed ?

Best regards,
becklo

Don't start brcm43438.service on resin

All the bluez related operations should be handled from the container leaving the container to device the Bluetooth device (s0 or ama0), baudrate etc.

Deactivate brcm43438.service in resin.

hostapps update fails on v2.7.4+rev1

hostapps update fails because it tries to do an atomic update (a move operation of a file to be updated in the same partition) but the free space available in the boot partition is less than the file size (kernel in our failure case) for which it tries to do the atomic update

Hyperpixel not working

Any help here would be immensely appreciated... I'm attempting to get the Hyperpixel up and running on the latest ResinOS.

I've seen others have had success, but I'm unable to sort out what to change. I've provided the overlay in the boot folder, but I'm unable to get anything to display when setting display_default_lcd=1

I've attached my custom config variables for reference.
screen shot 2018-08-07 at 11 49 08 am

Error response from daemon: No such image: certificates

ERROR: mkfs-hostapp-native-1.0-r0 do_compile: Function failed: do_compile (log file is located at /home/fuxu/resinOS/qemu/build/tmp/work/x86_64-linux/mkfs-hostapp-native/1.0-r0/temp/log.do_compile.105951)
ERROR: Logfile of failure stored in: /home/fuxu/resinOS/qemu/build/tmp/work/x86_64-linux/mkfs-hostapp-native/1.0-r0/temp/log.do_compile.105951
Log data follows:
| DEBUG: Executing shell function do_compile
| The command '/bin/sh -c apt-get update && apt-get install -y 	ca-certificates 	iptables' returned a non-zero code: 100
| Error response from daemon: No such image: certificates
| WARNING: /home/fuxu/resinOS/qemu/build/tmp/work/x86_64-linux/mkfs-hostapp-native/1.0-r0/temp/run.do_compile.105951:1 exit 1 from 'DOCKER_API_VERSION=1.22 docker save "$IMAGE_ID" > /home/fuxu/resinOS/qemu/build/tmp/work/x86_64-linux/mkfs-hostapp-native/1.0-r0/work/mkfs-hostapp-ext4-image.tar'
| ERROR: Function failed: do_compile (log file is located at /home/fuxu/resinOS/qemu/build/tmp/work/x86_64-linux/mkfs-hostapp-native/1.0-r0/temp/log.do_compile.105951)
ERROR: Task (/home/fuxu/resinOS/qemu/build/../layers/meta-resin/meta-resin-common/recipes-containers/mkfs-hostapp-native/mkfs-hostapp-native.bb:do_compile) failed with exit code '1'

Enable PCA955x IO expander in kernel config

Amber has a PCA955 IO expander module. This IC has support in linux kernel, so I think we just need to enable: GPIO_PCA953X and GPIO_PCA953X_IRQ

config GPIO_PCA953X
	tristate "PCA953x, PCA955x, TCA64xx, and MAX7310 I/O ports"
	depends on I2C
	help
	  Say yes here to provide access to several register-oriented
	  SMBus I/O expanders, made mostly by NXP or TI.  Compatible
	  models include:

	  4 bits:	pca9536, pca9537

	  8 bits:	max7310, pca9534, pca9538, pca9554, pca9557,
	  		tca6408

	  16 bits:	pca9535, pca9539, pca9555, tca6416

config GPIO_PCA953X_IRQ
	bool "Interrupt controller support for PCA953x"
	depends on GPIO_PCA953X=y
	help
	  Say yes here to enable the pca953x to be used as an interrupt
	  controller. It requires the driver to be built in the kernel.

Unable to connect to resin VPN with U-Blox modem in RNDIS mode

The board is unable to connect to resin VPN when using an U-blox Toby-L210 modem in RNDIS mode.

The error reported by the openvpn is the following: https://openvpn.net/index.php/open-source/faq/79-client/253-tls-error-tls-key-negotiation-failed-to-occur-within-60-seconds-check-your-network-connectivity.html

If the modem is switched to ECM mode, the VPN connection works OK.

This bug is present on ResinOS v2.9.6, but not on v2.3.0.

Related Front link: https://app.frontapp.com/open/cnv_gswxkp

Front logo Front conversations

Disable firmware splash on production

The raspberrypi firmware is currently producing a rainbow splash and a smaller rainbow splash to illustrate different warnings, at boot time. We should disable both of these in our production images.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.