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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
After the BSP update to warrior, some boot partition files
generated at build time were named differently.
The rename done in this patch was to match the
new names of the generated files.
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
This patch fixes the error
ERROR linux-4.14.14+gitAUTOINC+9c0bf98471-r0 do_package
Files/directories were installed but not shipped
in any package - /boot/sun8i-h3-fixup.scr
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
Use the meta-sunxi u-boot version.
This will apply for boards which do
not set a PREFERRED_VERSION for u-boot.
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
When libfdt-devel is installed system-wide, the build of U-Boot host
programs currently fails with lots of:
In file included from tools/../include/../lib/libfdt/libfdt.h:10:0,
from tools/../include/libfdt.h:1,
from tools/fdt_host.h:11,
from tools/imagetool.h:24,
from tools/aisimage.c:8:
/usr/include/libfdt_env.h:70:30: error: conflicting types for ‘fdt64_t’
typedef uint64_t FDT_BITWISE fdt64_t;
^~~~~~~
In file included from <command-line>:0:0:
././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here
typedef __be64 fdt64_t;
^~~~~~~
In file included from ././include/libfdt_env.h:12:0,
from <command-line>:0:
/usr/include/libfdt_env.h:90:24: error: expected ‘)’ before ‘x’
static inline uint32_t fdt32_to_cpu(fdt32_t x)
^
This commit adds a fixup in the U-Boot code to fix this problem
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
Add the latest linux available
from https://github.com/armbian/build
commit de58ac1faac92724c6449db12c22affaeb003875,
tag: sunxi-5.3, alongside all the patches
that it comes with.
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
Add the newest u-boot available in
https://github.com/armbian/build alongside
all the patches that it comes with.
Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>