File tree Expand file tree Collapse file tree
board/batocera/amlogic/odroidn2
package/batocera/boot/uboot-odroid-n2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ cp "${BINARIES_DIR}/batocera-boot.conf" "${BINARIES_DIR}/boot/bat
2828cp " ${BINARIES_DIR} /uImage" " ${BINARIES_DIR} /boot/boot/linux" || exit 1
2929cp " ${BINARIES_DIR} /meson-g12b-odroid-n2.dtb" " ${BINARIES_DIR} /boot/boot/meson-g12b-odroid-n2.dtb" || exit 1
3030cp " ${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
3232cp " ${BINARIES_DIR} /rootfs.squashfs" " ${BINARIES_DIR} /boot/boot/batocera.update" || exit 1
3333cp " ${BOARD_DIR} /boot/extlinux.conf" " ${BINARIES_DIR} /boot/extlinux" || exit 1
3434cp " ${BINARIES_DIR} /u-boot.bin" " ${BINARIES_DIR} /boot/u-boot.bin" || exit 1
3535cp " ${BOARD_DIR} /boot/extlinux.conf" " ${BINARIES_DIR} /boot/boot/extlinux.conf" || exit 1
3636cp " ${BOARD_DIR} /boot/boot.ini" " ${BINARIES_DIR} /boot/boot.ini" || exit 1
3737cp " ${BOARD_DIR} /boot/config.ini" " ${BINARIES_DIR} /boot/config.ini" || exit 1
3838cp -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
4242echo " creating boot.tar.xz"
Original file line number Diff line number Diff line change @@ -72,12 +72,13 @@ BR2_PACKAGE_MALI_G52=y
7272BR2_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
8384BR2_PACKAGE_HOST_DOSFSTOOLS=y
Original file line number Diff line number Diff line change 1+ config BR2_PACKAGE_UBOOT_ODROID_N2
2+ bool "uboot files for odroid n2"
3+ help
4+ uboot files for odroid n2
Original file line number Diff line number Diff line change 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))
You can’t perform that action at this time.
0 commit comments