Package: flash-kernel Version: 3.71 Severity: wishlist The appended patch provides support for the Hardkernel Odroid-C2. It depends on a solution to Bug #845779 flash-kernel: flashkernel uses mkimage -A arm on arm64
The Hardkernel Odroid C2 is a 64bit development board based on the Amlogic S905 processor. As mainline u-boot support is still under construction boot.scr is build such that the stock u-boot can execute it. Update the u-boot environment with setenv bootcmd "ext4load mmc 0:1 0x1070000 boot.scr; autoscr 0x1070000" saveenv Separate ext4 partitions for '/boot' and '/' are assumed.
From 8483746841c140dc38784866c94a802f293cdb5b Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt <xypron.g...@gmx.de> Date: Sat, 26 Nov 2016 21:34:43 +0000 Subject: [PATCH 1/1] Add support for Hardkernel Odroid C2 The Hardkernel Odroid C2 is a 64bit development board based on the Amlogic S905 processor. As mainline u-boot support is still under construction boot.scr is build such that the stock u-boot can execute it. Update the u-boot environment with setenv bootcmd "ext4load mmc 0:1 0x1070000 boot.scr; autoscr 0x1070000" saveenv Separate ext4 partitions for '/boot' and '/' are assumed. Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> --- bootscript/arm64/bootscr.hardkernel-odroid-c2 | 17 +++++++++++++++++ db/all.db | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 bootscript/arm64/bootscr.hardkernel-odroid-c2 diff --git a/bootscript/arm64/bootscr.hardkernel-odroid-c2 b/bootscript/arm64/bootscr.hardkernel-odroid-c2 new file mode 100644 index 0000000..5cce3de --- /dev/null +++ b/bootscript/arm64/bootscr.hardkernel-odroid-c2 @@ -0,0 +1,17 @@ +setenv fdtfile meson-gxbb-odroidc2.dtb +setenv fk_kvers '@@KERNEL_VERSION@@' +setenv fdtpath dtbs/${fk_kvers}/${fdtfile} + +setenv condev "console=ttyAML0,115200n8 console=tty0" +setenv bootargs "root=/dev/mmcblk1p2 rootwait ro ${condev}" + +setenv loadaddr "0x1080000" +setenv dtb_loadaddr "0x1000000" +setenv initrd_loadaddr "0x13000000" + +ext4load mmc 0:1 ${initrd_loadaddr} uInitrd +ext4load mmc 0:1 ${loadaddr} uImage +ext4load mmc 0:1 ${dtb_loadaddr} ${fdtpath} +fdt addr ${dtb_loadaddr} + +bootm ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr} diff --git a/db/all.db b/db/all.db index a9567a9..e81cf18 100644 --- a/db/all.db +++ b/db/all.db @@ -427,6 +427,17 @@ DTB-Id: sun4i-a10-marsboard.dtb U-Boot-Script-Name: bootscr.sunxi Required-Packages: u-boot-tools +Machine: Hardkernel ODROID-C2 +U-Boot-Kernel-Address: 0x1080000 +U-Boot-Initrd-Address: 0x13000000 +U-Boot-Script-Address: 0x1000000 +U-Boot-Script-Name: bootscr.hardkernel-odroid-c2 +Boot-Kernel-Path: /boot/uImage +Boot-Initrd-Path: /boot/uInitrd +Boot-Script-Path: /boot/boot.scr +Required-Packages: u-boot-tools +DTB-Id: meson-gxbb-odroidc2.dtb + Machine: Hardkernel ODROID-U3 board based on Exynos4412 Kernel-Flavors: armmp armmp-lpae DTB-Id: exynos4412-odroidu3.dtb -- 2.10.2