Skip to content

Commit

Permalink
sunxi: u-boot_%.bbappend: A20-OLinuXino-MICRO
Browse files Browse the repository at this point in the history
Configure U-Boot environment location, size (CONFIG_ENV_SIZE) and
offset (CONFIG_ENV_OFFSET) on the FAT partition for Olimex
A20-OLinuXino-MICRO and after that use it in /etc/fw_env.config.

Also enable CONFIG_AXP_ALDO3_VOLT_SLOPE_08 to (particially) solve
boot issues on hardware revision E based on the recommendations
from OpenWRT forum:
https://forum.openwrt.org/t/axp209-olimex-a20-board-fails-to-boot-sometimes-after-a-kernel-panic-reboot-command-or-power-cycle-happens-randomly/145262/4

Signed-off-by: Leon Anavi <[email protected]>
  • Loading branch information
leon-anavi committed Aug 21, 2024
1 parent a3b816d commit 24a1314
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From e17b94b2b4aad92f85a96f50d87baf43d5c70487 Mon Sep 17 00:00:00 2001
From: Leon Anavi <[email protected]>
Date: Tue, 20 Aug 2024 06:52:25 +0000
Subject: [PATCH] configs/A20-OLinuXino_MICRO_defconfig: RAUC

Configure U-Boot environment location, size (CONFIG_ENV_SIZE) and
offset (CONFIG_ENV_OFFSET) on the FAT partition for Olimex
A20-OLinuXino-MICRO and after that use it in /etc/fw_env.config.

Upstream-Status: Inappropriate [RAUC specific]

Signed-off-by: Leon Anavi <[email protected]>
---
configs/A20-OLinuXino_MICRO_defconfig | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/configs/A20-OLinuXino_MICRO_defconfig b/configs/A20-OLinuXino_MICRO_defconfig
index db4270f9b2..c814256ffc 100644
--- a/configs/A20-OLinuXino_MICRO_defconfig
+++ b/configs/A20-OLinuXino_MICRO_defconfig
@@ -25,3 +25,8 @@ CONFIG_AXP_ALDO4_VOLT=2800
CONFIG_SCSI=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
+CONFIG_AXP_ALDO3_VOLT_SLOPE_08=y
+CONFIG_AXP_ALDO3_INRUSH_QUIRK=y
+CONFIG_ENV_SIZE=0x20000
+CONFIG_ENV_OFFSET=0x0000
+CONFIG_ENV_IS_IN_FAT=y
--
2.44.1

1 change: 1 addition & 0 deletions meta-rauc-sunxi/recipes-bsp/u-boot/u-boot_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SRC_URI += " \
file://0001-A10-OLinuXino-Lime_defconfig-RAUC.patch \
file://0002-orangepi_one_defconfig-RAUC.patch \
file://0003-orangepi_zero_defconfig-RAUC.patch \
file://0004-configs-A20-OLinuXino_MICRO_defconfig-RAUC.patch \
"

UBOOT_ENV_SUFFIX = "scr"
Expand Down

0 comments on commit 24a1314

Please sign in to comment.