Source: u-boot Version: 2016.05+dfsg1-1 Severity: wishlist u-boot 2016.05 already includes support for Dragonboard410c (96boards CE compatible), just missing packaging support. Please see the attached patch for the required changes to make it supported.
The patch also includes a packaging patch that fixes the distro bootcmd support, and also some minor fixes for extlinux and pxeboot support (which I'm also forwarding upstream). Thanks, -- Ricardo Salveti de Araujo
From 09d3518d957d8479c821f14ad3b4cfdfa87a43de Mon Sep 17 00:00:00 2001 From: Ricardo Salveti <rsalv...@rsalveti.net> Date: Thu, 19 May 2016 18:55:42 -0300 Subject: [PATCH] Enable support for dragonboard410c Signed-off-by: Ricardo Salveti <rsalv...@rsalveti.net> --- debian/control | 2 +- ...oard410c-make-a-functional-distro-bootcmd.patch | 47 ++++++++++++++++++++++ debian/patches/series | 2 + debian/targets | 3 ++ debian/u-boot.lintian-overrides | 2 + 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 debian/patches/dragonboard410c-make-a-functional-distro-bootcmd.patch diff --git a/debian/control b/debian/control index 6da1a69..68b4d3b 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Vcs-Git: https://anonscm.debian.org/git/collab-maint/u-boot.git Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/u-boot.git/ Package: u-boot -Architecture: armel armhf avr32 mips sh4 +Architecture: armel armhf arm64 avr32 mips sh4 Multi-Arch: same Depends: ${misc:Depends}, u-boot-imx [armhf], u-boot-omap [armhf], u-boot-sunxi [armhf], u-boot-exynos [armhf] diff --git a/debian/patches/dragonboard410c-make-a-functional-distro-bootcmd.patch b/debian/patches/dragonboard410c-make-a-functional-distro-bootcmd.patch new file mode 100644 index 0000000..fd6ae1e --- /dev/null +++ b/debian/patches/dragonboard410c-make-a-functional-distro-bootcmd.patch @@ -0,0 +1,47 @@ +From: Ricardo Salveti <rsalv...@rsalveti.net> +Date: Thu, 19 May 2016 23:32:44 -0300 +Subject: [PATCH] dragonboard410c: make a functional distro bootcmd + +- Increase default env size (too big) +- Increase SDCard boot priority (over eMMC) +- Fixing eMMC rootfs partition id (fixed partition table) +- Adding missing default addr for script and pxe boot + +Signed-off-by: Ricardo Salveti <rsalv...@rsalveti.net> +--- + include/configs/dragonboard410c.h | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h +index d32889d..d584c3d 100644 +--- a/include/configs/dragonboard410c.h ++++ b/include/configs/dragonboard410c.h +@@ -84,8 +84,8 @@ + + #define BOOT_TARGET_DEVICES(func) \ + func(USB, usb, 0) \ +- func(MMC, mmc, 0) \ + func(MMC, mmc, 1) \ ++ func(MMC, mmc, 0) \ + func(DHCP, dhcp, na) + + #include <config_distro_bootcmd.h> +@@ -126,10 +126,13 @@ REFLASH(dragonboard/u-boot.img, 8)\ + "fdtfile=apq8016-sbc.dtb\0" \ + "fdt_addr_r=0x83000000\0"\ + "ramdisk_addr_r=0x84000000\0"\ +- BOOTENV ++ "scriptaddr=0x90000000\0"\ ++ "pxefile_addr_r=0x91000000\0"\ ++ BOOTENV \ ++ "bootcmd_mmc0=setenv devnum 0; setenv distro_bootpart a; run mmc_boot\0" + + #define CONFIG_ENV_IS_NOWHERE +-#define CONFIG_ENV_SIZE 0x1000 ++#define CONFIG_ENV_SIZE 0x2000 + #define CONFIG_ENV_VARS_UBOOT_CONFIG + #define CONFIG_SYS_NO_FLASH + +-- +2.7.4 + diff --git a/debian/patches/series b/debian/patches/series index 28f3f85..23ea2fa 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -27,3 +27,5 @@ mx6cuboxi/serial_console_speed.patch am57xx/omap5_distro_bootcmd imx_private_libgcc + +dragonboard410c-make-a-functional-distro-bootcmd.patch diff --git a/debian/targets b/debian/targets index a76c205..4256ba4 100644 --- a/debian/targets +++ b/debian/targets @@ -154,3 +154,6 @@ mips - qemu_mips u-boot.bin sh4 - r2dplus u-boot.bin sh4 - sh7785lcr_32bit u-boot.bin + +# Ricardo Salveti <rsalv...@rsalveti.net> +arm64 - dragonboard410c u-boot.bin diff --git a/debian/u-boot.lintian-overrides b/debian/u-boot.lintian-overrides index f8612e0..a0c4990 100644 --- a/debian/u-boot.lintian-overrides +++ b/debian/u-boot.lintian-overrides @@ -10,6 +10,7 @@ u-boot [armel]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boo u-boot [armel]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/openrd_client/uboot.elf u-boot [armel]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/openrd_ultimate/uboot.elf u-boot [armel]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/sheevaplug/uboot.elf +u-boot [arm64]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/dragonboard410c/uboot.elf u-boot [avr32]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/hammerhead/uboot.elf u-boot [mips]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/qemu_mips/uboot.elf u-boot [sh4]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/r2dplus/uboot.elf @@ -23,6 +24,7 @@ u-boot [armel]: statically-linked-binary usr/lib/u-boot/openrd_base/uboot.elf u-boot [armel]: statically-linked-binary usr/lib/u-boot/openrd_client/uboot.elf u-boot [armel]: statically-linked-binary usr/lib/u-boot/openrd_ultimate/uboot.elf u-boot [armel]: statically-linked-binary usr/lib/u-boot/sheevaplug/uboot.elf +u-boot [arm64]: statically-linked-binary usr/lib/u-boot/dragonboard410c/uboot.elf u-boot [avr32]: statically-linked-binary usr/lib/u-boot/hammerhead/uboot.elf u-boot [mips]: statically-linked-binary usr/lib/u-boot/qemu_mips/uboot.elf u-boot [sh4]: statically-linked-binary usr/lib/u-boot/r2dplus/uboot.elf -- 2.7.4