Commit graph

177 commits

Author SHA1 Message Date
Kyle Harding
fdfce1de2d balena-allwinner: Rename resin image types to balena
Rename resin image types to balena and replace RESIN_ env vars

Changelog-entry: Rename resin image types to balena
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-03-11 13:57:45 +01:00
Kyle Harding
72ef4b9400 layers/meta-balena: Update to v2.72.0
Update meta-balena from 2.60.1 to 2.72.0

Changelog-entry: Update meta-balena from v2.60.1 to v2.72.0
Signed-off-by: Kyle Harding <kyle@balena.io>
2021-03-11 13:57:45 +01:00
Alexandru Costache
7ffeb6a800 layers/meta-balena: Update to v2.60.1
Update meta-balena from 2.53.9 to 2.60.1

Changelog-entry: Update meta-balena from v2.53.9 to v2.60.1
Signed-off-by: Alexandru Costache <alexandru@balena.io>
2020-11-03 17:02:24 +01:00
Vicentiu Galanopulo
1c5ba05985 layers/meta-balena: Update to v2.53.9
Update meta-balena from 2.51.2 to 2.53.9

Changelog-entry: Update meta-balena from v2.51.2 to v2.53.9
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-08-05 11:44:48 +02:00
Vicentiu Galanopulo
5d969ba3f3 u-boot_%.bbappend: Increase CONFIG_SYS_BOOTM_LEN to 64M
When booting the Nano PI Neo Air we got
Loading Kernel Image ... Image too large: increase CONFIG_SYS_BOOTM_LEN
Must RESET board to recover

Increased CONFIG_SYS_BOOTM_LEN to 64M to fix the error

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-08-05 11:44:48 +02:00
Florin Sarbu
be800d28bf layers/meta-balena: Update to v2.51.2
Update the meta-balena submodule from 2.48.0 to 2.51.2

Changelog-entry: Update meta-balena from v2.48.0 to v2.51.2
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-06-09 09:58:40 +02:00
Florin Sarbu
f207233615 resin-image.inc: Do not use armbianEnv.txt
For now we remove references to armbianEnv.txt since we do not add this
file anymore through the armbian patches. Users wanting to make use of
dtb overlays can do it from their container through the configfs interface.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-06 20:48:47 +02:00
Florin Sarbu
818a1cfa2e xradio.bbappend: Update to latest master HEAD
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-06 20:09:07 +02:00
Florin Sarbu
85a8d2cc60 rtl8189.bb: Update to latest master HEAD
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-06 19:05:28 +02:00
Florin Sarbu
e5ce0b5ddb linux-mainline_%.bbappend: Re-allow to build dtb overlays
The upstream kernel reworked how dtbs are generated:
https://github.com/torvalds/linux/commit/
37c8a5fafa3bb7dcdd51774be353be6cb2912b86

This broke how we built the dtb overlays from yocto so let's do a
partial revert of the above upstream kernel commit so we can still build
the overlays in the same way.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-06 17:20:51 +02:00
Florin Sarbu
0f92a73cd0 linux-mainline_%.bbappend: Add back patches for configfs of, bt
Since we dropped the big chunk of armbian patches let's add back the
patches that enabled configfs of uart3 for bluetooth on NanoPi Neo Air.
The patches are taken from
https://github.com/armbian/build/tree/sunxi-5.5/patch/kernel/sunxi-current

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-06 11:42:30 +02:00
Florin Sarbu
bb8a811d94 linux-mainline_%.bbappend: Rework faulty eMMC patch
This patch needs to be redone for the newer kernel the BSP layer now
has. We'll just make sure we remove the BSP version and add the reworked
one.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 20:50:31 +02:00
Florin Sarbu
f6f47fd2aa u-boot: Remove the heap of patches from armbian
We updated the BSP to master and that currently uses u-boot 2019.01
which is a fairly recent version so let's drop the ones we got from
armbian. In case we'll need patches from armbian in the future we will
just port here the ones we strictly need.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 13:05:43 +02:00
Florin Sarbu
67d9f732e3 meta-balena-allwinner:layer.conf: Remove reference to old kernel
Let's get the NanoPi Neo Air use the same kernel from the BSP as the
rest of the boards.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 12:58:52 +02:00
Florin Sarbu
21e8c3a749 linux-mainline: Remove the heap of patches from armbian
These patches were too many to actually be easy to follow when we
needed to update the kernel. So let's remove them altogether and just
rely on the kernel recipe from the BSP. In case we'll need patches from
armbian in the future we will just port here the ones we strictly need.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 12:58:51 +02:00
Florin Sarbu
e116311e0d u-boot: Rename bbappend so that it works with all versions
The bsp now uses upstream u-boot so let's make our append be version
independent.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 12:58:51 +02:00
Florin Sarbu
8de1b6c0bd layer.conf: Override zeus compatiblity for meta-sunxi
Until we have official zeus support in meta-balena, let's set
compatibility with warrior to meta-sunxi so we can build the master
branch of the BSP.

Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 12:58:29 +02:00
Florin Sarbu
f10a986eea layers/meta-sunxi: Switch to master branch
We switch to this branch so that we have kernel version 5.4.18

Changelog-entry: Switch the BSP layer to master branch so we have kernel 5.4.18
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-03 12:56:58 +02:00
Florin Sarbu
1d671edd48 layers/meta-sunxi: Update to latest warrior branch
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-02 11:41:06 +02:00
Florin Sarbu
929cd23236 layers/meta-openembedded: Update to latest warrior branch
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-02 11:40:43 +02:00
Florin Sarbu
35f9c31fae layers/poky: Update to warrior-21.0.3
Amongst other things this fixes slow shutdown/reboot due to
misconfiguration of the rngd systemd service.

Changelog-entry: Update to warrior-21.0.3
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-02 11:38:21 +02:00
Florin Sarbu
7be1daa647 linux-mainline: Add missing kernel module bluetooth dependency
Changelog-entry: Add missing kernel module bluetooth dependency for NanoPi Neo Air
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-01 17:41:41 +02:00
Florin Sarbu
bcc449e60e nanopi-air-bt: Fix bluetooth initialization
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-01 13:21:22 +02:00
Florin Sarbu
82b17bc6bf linux-mainline: Enable bluetooth on NanoPi Neo Air
Also we delete since the changes there are already added by
board-nanopiair-h3-camera-wifi-bluetooth-otg.patch

Changelog-entry: Enable bluetooth on NanoPi Neo Air
Signed-off-by: Florin Sarbu <florin@balena.io>
2020-04-01 13:21:04 +02:00
Alexandru Costache
d445a0e8fd layers/meta-balena: Update to v2.48.0
Update the meta-balena submodule from 2.46.1 to 2.48.0

Changelog-entry: Update meta-balena from v2.46.1 to v2.48.0
Signed-off-by: Alexandru Costache <alexandru@balena.io>
2020-03-27 16:20:00 +01:00
Zubair Lutfullah Kakakhel
2a951de105 resin-image-initramfs: Remove unnecessary IMAGE_ROOTFS_MAXSIZE override
This is unnecessary since 2.47+

See https://github.com/balena-os/meta-balena/pull/1813 for more detail

Changelog-entry: Remove unnecessary override of IMAGE_ROOTFS_MAXSIZE
Signed-off-by: Zubair Lutfullah Kakakhel <zubair@balena.io>
2020-03-27 15:58:53 +01:00
Zubair Lutfullah Kakakhel
afb93d116d meta-rust: Update meta-rust to include 1.36
Changelog-entry: Update meta-rust to include 1.36
Signed-off-by: Zubair Lutfullah Kakakhel <zubair@balena.io>
2020-02-10 16:55:42 +00:00
Vicentiu Galanopulo
2ee20e6053 linux-mainline_4.19.76.bbappend: Remove xradio patches
Fix for error
ERROR linux-mainline-4.19.76+gitAUTOINC+555161ee1b-r0 do_packagedata
The recipe linux-mainline is trying to install files into a shared area
when those files already exist. Those files and their manifest location are
/yocto/resin-board/build/tmp/pkgdata/orange-pi-zero/runtime/
.../kernel-module-xradio-wlan-4.19.76
    (matched in manifest-orange_pi_zero-xradio.packagedata)
/yocto/resin-board/build/tmp/pkgdata/orange-pi-zero/runtime/
.../kernel-module-xradio-wlan-4.19.76.packaged
    (matched in manifest-orange_pi_zero-xradio.packagedata)

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-01-13 10:49:33 +01:00
Vicentiu Galanopulo
b6ecb84796 xradio/xradio-firmware: Delete recipes
The xradio and xradio-firmware recipes are already
inside the meta-sunxi submodule, so keep the ones
from the BSP layer

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-01-13 10:47:46 +01:00
Vicentiu Galanopulo
9dd20d1c02 linux-mainline: Add wifi kernel configs
Add the wifi kernel config values to
have the wlan0 interface created

Changelog-entry: Add wifi kernel configs in linux-mainline_%bbappend
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-01-10 15:23:01 +01:00
Vicentiu Galanopulo
8c494f8aee layers/meta-balena: Update to 2.46.1
Update the meta-balena submodule from
v2.45.1 to v2.46.1

Changelog-entry: Update meta-balena from 2.45.1 to 2.46.1
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-01-09 22:50:18 +01:00
Vicentiu Galanopulo
73f0a8828e linux-mainline_%.bbappend: Add NFLX-2019-001 patches
Add remaining patches for multiple TCP-based remote denial
of service vulnerabilities identified by Netflix.
Patch source:
https://github.com/Netflix/security-bulletins/blob/master/advisories/third-party/2019-001.md

Change-type: patch
Changelog-entry: Add remaining Netflix patches
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2020-01-08 11:19:09 +01:00
Alexandru Costache
d7f2ceb484 layers/meta-balena: Update to v2.45.1
Update meta-balena from 2.44.0 to 2.45.1

Changelog-entry: Update meta-balena from v2.44.0 to v2.45.1
Signed-off-by: Alexandru Costache <alexandru@balena.io>
2019-12-17 09:27:06 +01:00
Vicentiu Galanopulo
e32f34f65b u-boot_2019.04.bbappend: Fix applying of patches
The eMMC patch has been removed because it applies
from meta-sunxi.
The resin-kconfig-integration patch has been removed
and a re-worked version of it has been applied.

Changelog-entry: U-boot patches fixup
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-31 13:23:52 +01:00
Vicentiu Galanopulo
7954383391 linux-mainline_%.bbappend: Add kernel config for configfs
Customer requested i2c and UART enabled on the orange pi
zero. The directory /sys/kernel/config/device-tree
which is used to add overlays at runtime is not present
in the file system.
This patch enables configfs and generation of the needed
directory.

Changelog-entry: Add configs in the kernel to enable configfs
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-30 15:56:48 +01:00
Vicentiu Galanopulo
bd839185ed u-boot_2018.09.bbappend: Rename SRC_URI_remove patch
A patch removed with SRC_URI_remove and re-worked was not
applying (no output error, the behavior is as it doesn't
exist), because the re-worked patch had the same name
as the removed one.

Remove 0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch.
This patch exists in meta-sunxi and it applies over
versions of u-boot.2018.09

Changelog-entry: Rename re-worked patch to have it applied
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-29 15:32:28 +01:00
Vicentiu Galanopulo
585566fa26 layers/meta-balena: Update to v2.44.0
Update meta-balena from 2.41.1 to 2.44.0

Changelog-entry: Update meta-balena from v2.41.1 to v2.44.0
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-24 20:58:12 +02:00
Vicentiu Galanopulo
e8b524b74d orange-pi-zero: Add overlay files to RESIN_BOOT_PARTITION_FILES and KERNEL_DEVICETREE
Update the RESIN_BOOT_PARTITION_FILES of resin-image.inc and KERNEL_DEVICETREE
of linux-mainline_%.bbappend for the orange-pi-zero machine.

Changelog-entry: Add overlays for orange-pi-zero
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-24 20:00:16 +02:00
Vicentiu Galanopulo
43735734e1 layers/poky: Checkout to warrior-21.0.1 tag
The poky submodule was on the warrior branch
but not on the latest warrior tag

Changelog-entry: Checkout to warrior-21.0.1 tag
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-17 11:26:00 +02:00
Vicentiu Galanopulo
7d5f1dbda1 recipes-kernel/linux: Remove unused patches and householding
Some patches were part of other linux-mainline
kernel versions but are not anymore part of the
current 4.19.76.

Move 0001-Enable-uart3-for-NanoPi-Neo-Air-used-by-BT.patch
in linux-mainline_4.19.76.bbappend to avoid error
patching file arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
Hunk #2 FAILED at 162.
1 out of 2 hunks FAILED -- rejects in file arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts

Place all patches from Armbian in a separate directory and do all the Balena specific
operations in linux-mainline_%.bbappend only.

Changelog-entry: Remove unused patches and cleanup
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-14 09:43:01 +02:00
Vicentiu Galanopulo
72f50b158d recipes-kernel/linux: Remove linux-4.14
The linux-4.14 kernel is not built
anymore by any of the supported Balena machines.

Changelog-entry: Remove linux-4.14 recipe
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-11 11:16:06 +02:00
Vicentiu Galanopulo
73dda90587 recipes-kernel/linux: Remove linux-mainline-4.17.3
The linux-mainline-4.17.3 kernel is not built
anymore by any of the supported Balena machines.

Changelog-entry: Remove linux-mainline-4.17.3 recipe
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-11 10:49:05 +02:00
Vicentiu Galanopulo
35613eccd1 linux-mainline-4.19: Rework for Enable-uart3-for-NanoPi-Neo-Air patch
The 0001-Enable-uart3-for-NanoPi-Neo-Air-used-by-BT.patch fails to
apply over the 4.19.76 mainline kernel, so remove it and apply a
reworked version of it.
Add the correct path for the patches directory, linux-mainline-4.19
instead of linux-4.19 (removed in a previous commit and all it's
content has been placed in linux-mainline-4.19).

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:45 +02:00
Vicentiu Galanopulo
065936bc48 recipes-kernel/linux: Rename linux to linux-mainline
Since the Armbian sources refer to linux 4.19.76 as
being linux-mainline, all the patches from linux-4.19
were moved to linux-mainline_4.19 and the linux_4.19.76
recipes was named accordingly.

This patch makes 4.19.76 as default version for linux

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:45 +02:00
Vicentiu Galanopulo
7a75c752f1 orangepi-plus2.conf: Remove PREFERRED_VERSION for linux
The default version for this machine will be linux
4.19.76

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:43 +02:00
Vicentiu Galanopulo
49ac7c0c93 orange-pi-lite.conf: Remove PREFERRED_VERSION for linux/uboot
The default for this machine will be linux 4.19.76
and u-boot 2019.04

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:43 +02:00
Vicentiu Galanopulo
1544e80ad2 bananapi-m1-plus.conf: Remove PREFERRED_VERSON for linux
Default for this machine will be linux version 4.19.76

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:43 +02:00
Vicentiu Galanopulo
f72ae3a47c u-boot_2019.04.bbappend: Inherit pythonnative
Fix for Jenkins error
| scripts/dtc/pylibfdt/libfdt_wrap.c 149 21
fatal error  Python.h  No such file or directory
| compilation terminated.
| error command 'gcc' failed with exit status 1

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:43 +02:00
Vicentiu Galanopulo
169b8cf968 linux: Add dts wifi patch for orangepi-zero
The patch with the same name from meta-sunxi is
not applying anymore so we remove from SRC_URI
and add an updated version in meta-balena-allwiner.

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:43 +02:00
Vicentiu Galanopulo
b08b47b9cb u-boot_2018.09.bbapp:Add resin-specific-env-integration-kconfig.patch
This patch is a rework of the meta-resin patch with the same
function because the meta-resin patch fails to apply due to
different source context in this u-boot version.

The 0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch
from meta-sunxi was failing to apply and it needed to be
removed and replaced with the one in this
layer (warrior update).

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:43 +02:00