Skip to content

Commit 433c277

Browse files
odroidn2: back to hk uboot
Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
1 parent a4efd28 commit 433c277

6 files changed

Lines changed: 32 additions & 11 deletions

File tree

Config.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ menu "System"
1919
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-odroid-xu4/Config.in"
2020
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-odroid-goa/Config.in"
2121
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-amlogic/Config.in"
22+
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/uboot-odroid-n2/Config.in"
2223
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/rockpro64-blobs/Config.in"
2324
source "$BR2_EXTERNAL_BATOCERA_PATH/package/batocera/boot/rock960-blobs/Config.in"
2425
endmenu

board/batocera/amlogic/odroidn2/genimage.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ image boot.vfat {
33
extraargs = "-F 32 -n BATOCERA"
44
file boot/linux { image = 'boot/linux' }
55
file boot/batocera { image = 'boot/batocera' }
6-
file boot/initrd.gz { image = 'boot/initrd.gz' }
6+
file boot/uInitrd { image = 'boot/uInitrd' }
77
file boot/meson-g12b-odroid-n2.dtb { image = 'boot/meson-g12b-odroid-n2.dtb' }
88
file boot/meson-g12b-odroid-n2_plus.dtb { image = 'boot/meson-g12b-odroid-n2_plus.dtb'}
99
file boot/extlinux/extlinux.conf { image = 'boot/extlinux.conf' }
@@ -48,8 +48,8 @@ image batocera.img {
4848

4949
partition part_uboot {
5050
in-partition-table = "no"
51-
image = "u-boot.bin.sd.bin"
52-
offset = 0
51+
image = "u-boot.bin"
52+
offset = 512
5353
}
5454

5555
partition vfat {

board/batocera/amlogic/odroidn2/post-image-script-odroidn2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ cp "${BINARIES_DIR}/batocera-boot.conf" "${BINARIES_DIR}/boot/bat
2828
cp "${BINARIES_DIR}/uImage" "${BINARIES_DIR}/boot/boot/linux" || exit 1
2929
cp "${BINARIES_DIR}/meson-g12b-odroid-n2.dtb" "${BINARIES_DIR}/boot/boot/meson-g12b-odroid-n2.dtb" || exit 1
3030
cp "${BINARIES_DIR}/meson-g12b-odroid-n2-plus.dtb" "${BINARIES_DIR}/boot/boot/meson-g12b-odroid-n2_plus.dtb" || exit 1
31-
cp "${BINARIES_DIR}/initrd.gz" "${BINARIES_DIR}/boot/boot/initrd.gz" || exit 1
31+
cp "${BINARIES_DIR}/uInitrd" "${BINARIES_DIR}/boot/boot/uInitrd" || exit 1
3232
cp "${BINARIES_DIR}/rootfs.squashfs" "${BINARIES_DIR}/boot/boot/batocera.update" || exit 1
3333
cp "${BOARD_DIR}/boot/extlinux.conf" "${BINARIES_DIR}/boot/extlinux" || exit 1
3434
cp "${BINARIES_DIR}/u-boot.bin" "${BINARIES_DIR}/boot/u-boot.bin" || exit 1
3535
cp "${BOARD_DIR}/boot/extlinux.conf" "${BINARIES_DIR}/boot/boot/extlinux.conf" || exit 1
3636
cp "${BOARD_DIR}/boot/boot.ini" "${BINARIES_DIR}/boot/boot.ini" || exit 1
3737
cp "${BOARD_DIR}/boot/config.ini" "${BINARIES_DIR}/boot/config.ini" || exit 1
3838
cp -pr "${BINARIES_DIR}/tools" "${BINARIES_DIR}/boot/" || exit 1
39-
cp "${BINARIES_DIR}/u-boot.bin.sd.bin" "${BINARIES_DIR}/boot/" || exit 1
39+
cp "${BINARIES_DIR}/u-boot.bin" "${BINARIES_DIR}/boot/" || exit 1
4040

4141
# boot.tar.xz
4242
echo "creating boot.tar.xz"

configs/batocera-odroidn2_defconfig

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ BR2_PACKAGE_MALI_G52=y
7272
BR2_PACKAGE_UBOOT_AMLOGIC=y
7373

7474
# Bootloader
75-
BR2_TARGET_UBOOT=y
76-
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
77-
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
78-
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.10"
79-
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="odroid-n2"
80-
BR2_TARGET_UBOOT_NEEDS_DTC=y
75+
#BR2_TARGET_UBOOT=y
76+
#BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
77+
#BR2_TARGET_UBOOT_CUSTOM_VERSION=y
78+
#BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.10"
79+
#BR2_TARGET_UBOOT_BOARD_DEFCONFIG="odroid-n2"
80+
#BR2_TARGET_UBOOT_NEEDS_DTC=y
81+
BR2_PACKAGE_UBOOT_ODROID_N2=y
8182

8283
# Required tools to create the SD image
8384
BR2_PACKAGE_HOST_DOSFSTOOLS=y
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config BR2_PACKAGE_UBOOT_ODROID_N2
2+
bool "uboot files for odroid n2"
3+
help
4+
uboot files for odroid n2
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
################################################################################
2+
#
3+
# uboot files for odroid n2
4+
#
5+
################################################################################
6+
# Version.: Commits on Mar 28, 2020
7+
UBOOT_ODROID_N2_VERSION = 141
8+
UBOOT_ODROID_N2_SOURCE = u-boot-odroidn2-$(UBOOT_ODROID_N2_VERSION).tar.gz
9+
UBOOT_ODROID_N2_SITE = https://github.com/hardkernel/u-boot/releases/download/travis%2Fodroidn2-$(UBOOT_ODROID_N2_VERSION)
10+
11+
define UBOOT_ODROID_N2_INSTALL_TARGET_CMDS
12+
cp $(@D)/u-boot.bin $(BINARIES_DIR)/u-boot.bin
13+
endef
14+
15+
$(eval $(generic-package))

0 commit comments

Comments
 (0)