mx6sx: Add initial support for UDOO Neo Board
PATCH 1/1 mx6sx: Add initial support for UDOO Neo Board
UDOO Neo Board is a development board from Seco that has three models:
- UDOO Neo Basic
- UDOO Neo Basic Kick Starter
- UDOO Neo Extended
- UDOO Neo Full
All versions are based on the i.MX6 SoloX processor.
For more details about the UDOO Neo board, please refer to:
http://www.udoo.org/udoo-neo/
This work is based on a previous commit of Francesco Montefoschi <[email protected]>:
https://github.com/fmntf/u-boot/commit/877b71184a5105e708024f232d36aed574961844
Only tested on the UDOO Neo Full board.
--- arch/arm/cpu/armv7/mx6/Kconfig | 5 + board/udoo/neo/Kconfig | 12 ++ board/udoo/neo/MAINTAINERS | 7 + board/udoo/neo/Makefile | 6 + board/udoo/neo/neo.c | 441 +++++++++++++++++++++++++++++++++++++++++ configs/udoo_neo_defconfig | 30 +++ include/configs/udoo_neo.h | 94 +++++++++ 7 files changed, 595 insertions(+) create mode 100644 board/udoo/neo/Kconfig create mode 100644 board/udoo/neo/MAINTAINERS create mode 100644 board/udoo/neo/Makefile create mode 100644 board/udoo/neo/neo.c create mode 100644 configs/udoo_neo_defconfig create mode 100644 include/configs/udoo_neo.h
arch/arm/cpu/armv7/mx6/Kconfig +5 -0
@@ -192,6 +192,10 @@ config TARGET_UDOO bool "udoo" select SUPPORT_SPL +config TARGET_UDOO_NEO + bool "UDOO Neo" + select SUPPORT_SPL + config TARGET_WANDBOARD bool "wandboard" select SUPPORT_SPL
@@ -253,6 +257,7 @@ source "board/technexion/pico-imx6ul/Kconfig" source "board/tbs/tbs2910/Kconfig" source "board/tqc/tqma6/Kconfig" source "board/udoo/Kconfig" +source "board/udoo/neo/Kconfig" source "board/wandboard/Kconfig" source "board/warp/Kconfig"
board/udoo/neo/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_UDOO_NEO + +config SYS_VENDOR + default "udoo" + +config SYS_BOARD + default "neo" + +config SYS_CONFIG_NAME + default "udoo_neo" + +endif
board/udoo/neo/MAINTAINERS new file +7 -0
@@ -0,0 +1,7 @@ +UDOO NEO BOARD +M: Breno Lima <[email protected]> +M: Francesco Montefoschi <[email protected]> +S: Maintained +F: board/udoo/neo/ +F: include/configs/udoo_neo.h +F: configs/udoo_neo_defconfig
board/udoo/neo/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# (C) Copyright 2015 UDOO Team +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := neo.o
board/udoo/neo/neo.c new file +441 -0
441 lines not on this page · raw message
configs/udoo_neo_defconfig new file +30 -0
@@ -0,0 +1,30 @@ +CONFIG_ARM=y +CONFIG_ARCH_MX6=y +CONFIG_SPL_GPIO_SUPPORT=y +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_TARGET_UDOO_NEO=y +CONFIG_SPL_EXT_SUPPORT=y +CONFIG_SPL_LIBDISK_SUPPORT=y +CONFIG_SPL_MMC_SUPPORT=y +CONFIG_SPL_SERIAL_SUPPORT=y +CONFIG_SPL_ENV_SUPPORT=y +CONFIG_SPL_WATCHDOG_SUPPORT=y +CONFIG_SPL=y +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6SX" +CONFIG_HUSH_PARSER=y +CONFIG_CMD_BOOTZ=y +# CONFIG_CMD_IMLS is not set +# CONFIG_CMD_FLASH is not set +CONFIG_CMD_MMC=y +CONFIG_CMD_GPIO=y +# CONFIG_CMD_SETEXPR is not set +# CONFIG_CMD_DHCP=y +CONFIG_CMD_CACHE=y +CONFIG_CMD_TIME=y +CONFIG_CMD_EXT2=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_EXT4_WRITE=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +CONFIG_OF_LIBFDT=y
include/configs/udoo_neo.h new file +94 -0
94 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 1/1 mx6sx: Add initial support for UDOO Neo Board
Quoted 11 lines · Breno Lima
UDOO Neo Board is a development board from Seco that has three models:
- UDOO Neo Basic
- UDOO Neo Basic Kick Starter
- UDOO Neo Extended
- UDOO Neo FullAll versions are based on the i.MX6 SoloX processor.
For more details about the UDOO Neo board, please refer to:
http://www.udoo.org/udoo-neo/
Quoted 7 lines
This work is based on a previous commit of Francesco Montefoschi <[email protected]>:
https://github.com/fmntf/u-boot/commit/877b71184a5105e708024f232d36aed574961844Only tested on the UDOO Neo Full board.
Signed-off-by Breno Lima <[email protected]>
Looks good:
PATCH 1/1 mx6sx: Add initial support for UDOO Neo Board
In reply to Breno LimaQuoted 11 lines · Breno Lima
UDOO Neo Board is a development board from Seco that has three models:
- UDOO Neo Basic
- UDOO Neo Basic Kick Starter
- UDOO Neo Extended
- UDOO Neo FullAll versions are based on the i.MX6 SoloX processor.
For more details about the UDOO Neo board, please refer to:
http://www.udoo.org/udoo-neo/
Quoted 8 lines
This work is based on a previous commit of Francesco Montefoschi <[email protected]>:
https://github.com/fmntf/u-boot/commit/877b71184a5105e708024f232d36aed574961844Only tested on the UDOO Neo Full board.
Signed-off-by Breno Lima <[email protected]>---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 1/1 mx6sx: Add initial support for UDOO Neo Board
In reply to Breno LimaHi,
Am 25.11.2016 um 19:56 schrieb Breno Lima:
Quoted 5 lines
include/configs/udoo_neo.h new file +0
-0
[...]
include/configs/udoo_neo.h line 40
Quoted 6 lines
include/configs/udoo_neo.h new file +6
-0+#define CONFIG_EXTRA_ENV_SETTINGS \ + "console=ttymxc0,115200\0" \ + "fdt_high=0xffffffff\0" \ + "initrd_high=0xffffffff\0" \ + "fdt_file=undefined\0" \ + "fdt_addr=0x83000000\0" \
This needs to be fdt_addr_r.
=> boot
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
load - load binary file from a filesystem
Usage:
load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]]
- Load binary file 'filename' from partition 'part' on device type 'interface' instance 'dev' to address 'addr' in memory. 'bytes' gives the size to load in bytes.
If 'bytes' is 0 or omitted, the file is read until the end. 'pos' gives the file byte position to start reading from. If 'pos' is 0 or omitted, the file is read from the start.
BOOTP broadcast 1
...
Quoted 5 lines
include/configs/udoo_neo.h new file +5
-0+"ip_dyn=yes\0" \ +"mmcdev=0\0" \ +"mmcrootfstype=ext4\0" \ +"mmcautodetect=no\0" \ +"findfdt=" \
include/configs/udoo_neo.h line 55
Quoted 10 lines
include/configs/udoo_neo.h new file +10
-0+"if test $board_name = BASIC; then " \ +"setenv fdt_file imx6sx-udoo-neo-basic.dtb; fi; " \ +"if test $board_name = BASICKS; then " \ +"setenv fdt_file imx6sx-udoo-neo-basic.dtb; fi; " \ +"if test $board_name = FULL; then " \ +"setenv fdt_file imx6sx-udoo-neo-full.dtb; fi; " \ +"if test $board_name = EXTENDED; then " \ +"setenv fdt_file imx6sx-udoo-neo-extended.dtb; fi; " \ +"if test $fdt_file = UNDEFINED; then " \ +"echo WARNING: Could not determine dtb to use; fi; \0" \
Nit: Trailing semicolon and space could be dropped.
include/configs/udoo_neo.h line 59
Quoted 4 lines
include/configs/udoo_neo.h new file +4
-0+ "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ + "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ +"ramdisk_addr_r=0x83000000\0" \ +"ramdiskaddr=0x83000000\0" \
Why have a duplicate $ramdiskaddr for a new board?
Regards,
Andreas
Quoted 11 lines
include/configs/udoo_neo.h new file +11
-0+ "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \ + BOOTENV + +#define BOOT_TARGET_DEVICES (func) \ + func(MMC, mmc, 0) + +#define CONFIG_BOOTCOMMAND \ + "run findfdt; " \ + "run distro_bootcmd" + +#include <config_distro_bootcmd.h>
[...]
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
PATCH 1/1 mx6sx: Add initial support for UDOO Neo Board
Hi Andreas,
Thanks for letting me know, I'm going to send a patch to fix it.
2017-01-09 17:30 GMT-02:00 Andreas F?rber <[email protected]>:
Quoted 25 lines
Hi,
Am 25.11.2016 um 19:56 schrieb Breno Lima:
Quoted 5 lines
include/configs/udoo_neo.h new file +0
-0[...]
include/configs/udoo_neo.h line 40
Quoted 6 lines
include/configs/udoo_neo.h new file +6
-0+#define CONFIG_EXTRA_ENV_SETTINGS \ + "console=ttymxc0,115200\0" \ + "fdt_high=0xffffffff\0" \ + "initrd_high=0xffffffff\0" \ + "fdt_file=undefined\0" \ + "fdt_addr=0x83000000\0" \This needs to be
fdt_addr_r.=> boot
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
load - load binary file from a filesystem
Quoted 18 lines
Usage:
load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]]
- Load binary file 'filename' from partition 'part' on device type 'interface' instance 'dev' to address 'addr' in memory. 'bytes' gives the size to load in bytes.
If 'bytes' is 0 or omitted, the file is read until the end. 'pos' gives the file byte position to start reading from. If 'pos' is 0 or omitted, the file is read from the start.
BOOTP broadcast 1
...Quoted 7 lines
include/configs/udoo_neo.h new file +7
-0+"ip_dyn=yes\0" \ +"mmcdev=0\0" \ +"mmcrootfstype=ext4\0" \ +"mmcautodetect=no\0" \ +"findfdt=" \ +"if test $board_name = BASIC; then " \ +"setenv fdt_file imx6sx-udoo-neo-basic.dtb; fi; "
\
Quoted 2 lines
include/configs/udoo_neo.h
Quoted 2 lines
include/configs/udoo_neo.h new file +2
-0+"if test $board_name = BASICKS; then " \ +"setenv fdt_file imx6sx-udoo-neo-basic.dtb; fi; "
\
Quoted 4 lines
include/configs/udoo_neo.h
Quoted 4 lines
include/configs/udoo_neo.h new file +4
-0+"if test $board_name = FULL; then " \ +"setenv fdt_file imx6sx-udoo-neo-full.dtb; fi; " \ +"if test $board_name = EXTENDED; then " \ + "setenv fdt_file imx6sx-udoo-neo-extended.dtb;
fi; " \
Quoted 2 lines
include/configs/udoo_neo.h
Quoted 2 lines
include/configs/udoo_neo.h new file +2
-0+"if test $fdt_file = UNDEFINED; then " \ + "echo WARNING: Could not determine dtb to use;
fi; \0" \
Quoted 26 lines
Nit: Trailing semicolon and space could be dropped.
include/configs/udoo_neo.h line 59
Quoted 4 lines
include/configs/udoo_neo.h new file +4
-0+ "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ + "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ +"ramdisk_addr_r=0x83000000\0" \ +"ramdiskaddr=0x83000000\0" \Why have a duplicate $ramdiskaddr for a new board?
Regards,
AndreasQuoted 11 lines
include/configs/udoo_neo.h new file +11
-0+ "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \ + BOOTENV + +#define BOOT_TARGET_DEVICES (func) \ + func(MMC, mmc, 0) + +#define CONFIG_BOOTCOMMAND \ + "run findfdt; " \ + "run distro_bootcmd" + +#include <config_distro_bootcmd.h> [...]
Quoted 4 lines
--
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Regards,
--
Breno Matheus Lima