[U-Boot] [PATCH v4 20/21] board: Add Qualcomm Dragonboard 410C support
Andreas Färber
afaerber at suse.de
Tue Apr 5 01:13:38 CEST 2016
Am 31.03.2016 um 23:12 schrieb Mateusz Kulikowski:
> diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard410c.h
> new file mode 100644
> index 0000000..a63440f
> --- /dev/null
> +++ b/include/configs/dragonboard410c.h
[...]
> +#include <config_distro_defaults.h>
> +
> +/* BOOTP options */
> +#define CONFIG_BOOTP_BOOTFILESIZE
> +
> +/* Environment - Boot*/
> +#define CONFIG_BOOTARGS "console=ttyMSM0,115200n8"
> +
> +#define BOOT_TARGET_DEVICES(func) \
> + func(USB, usb, 0) \
> + func(MMC, mmc, 0) \
> + func(MMC, mmc, 1) \
> + func(DHCP, dhcp, na)
> +
> +#include <config_distro_bootcmd.h>
> +
> +/* Does what recovery does */
> +#define REFLASH(file, part) \
> +"part start mmc 0 "#part" start && "\
> +"part size mmc 0 "#part" size && "\
> +"tftp $loadaddr "#file" && " \
> +"mmc write $loadaddr $start $size && "
> +
> +
> +#define CONFIG_ENV_REFLASH \
> +"mmc dev 0 && "\
> +"usb start && "\
> +"dhcp && "\
> +"tftp $loadaddr dragonboard/rescue/gpt_both0.bin && "\
> +"mmc write $loadaddr 0 43 && " \
> +"mmc rescan && "\
> +REFLASH(dragonboard/rescue/NON-HLOS.bin, 1)\
> +REFLASH(dragonboard/rescue/sbl1.mbn, 2)\
> +REFLASH(dragonboard/rescue/rpm.mbn, 3)\
> +REFLASH(dragonboard/rescue/tz.mbn, 4)\
> +REFLASH(dragonboard/rescue/hyp.mbn, 5)\
> +REFLASH(dragonboard/rescue/sec.dat, 6)\
> +REFLASH(dragonboard/rescue/emmc_appsboot.mbn, 7)\
> +REFLASH(dragonboard/u-boot.img, 8)\
> +"usb stop &&"\
> +"echo Reflash completed"
> +
> +/* Environment */
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> + "reflash="CONFIG_ENV_REFLASH"\0"\
> + "loadaddr=0x81000000\0" \
> + "fdt_high=0xffffffffffffffff\0" \
> + "initrd_high=0xffffffffffffffff\0" \
> + "linux_image=Image\0" \
> + "linux_addr=0x81000000\0"\
kernel_addr_r
> + "fdt_image=apq8016-sbc.dtb\0" \
> + "fdt_addr=0x83000000\0"\
fdt_addr_r
> + "ramdisk_addr=0x84000000\0"\
ramdisk_addr_r
These variables that the distro boot depends upon are missing/misnamed.
Regards,
Andreas
> + BOOTENV
> +
> +#define CONFIG_ENV_IS_NOWHERE
> +#define CONFIG_ENV_SIZE 0x1000
> +#define CONFIG_ENV_VARS_UBOOT_CONFIG
> +#define CONFIG_SYS_NO_FLASH
> +
> +/* Size of malloc() pool */
> +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
> +
> +/* Monitor Command Prompt */
> +#define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
> +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
> + sizeof(CONFIG_SYS_PROMPT) + 16)
> +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
> +#define CONFIG_SYS_MAXARGS 64 /* max command args */
> +
> +#endif
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
More information about the U-Boot
mailing list