Skip to contentSkip to conversation

udoo_neo fix distro boot support

U-Boot New Peter Robinson 3 participants 6 messages Feb 14, 2017 – Feb 19, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi Breno, Francesco and Stefano,

The following three patches fix the generic distro boot support for me on the udoo Neo (Full edition tested). I think all three patches are pretty straight forward and self explanatory. Would be good to get them into 2017.03 GA.

Thanks,
Peter

#1 lore raw

PATCH 1/3 mx6sx: udoo_neo: Define the default serial console

Standard boot processes including distro boot generally expect the default console to be defined.

---
 include/configs/udoo_neo.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/udoo_neo.h +1 -0
index 23a3685..5b46272e 100644
@@ -30,6 +30,7 @@
 /* Linux only */
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"console=ttymxc0,115200\0" \
 	"fdt_high=0xffffffff\0" \
 	"initrd_high=0xffffffff\0" \
 	"fdtfile=undefined\0" \
Signature · 1 line
2.9.3

A message that is not in the archive (sent off-list or not yet received): CAOMZO5A7vUx-uGeB9Zn2mrYY0XPaFPGC=2cV9QChUNVAUgpsyQ@mail.gmail.com

#3 lore raw

PATCH 1/3 mx6sx: udoo_neo: Define the default serial console

Hi Peter,

2017-02-14 11:10 GMT-02:00 Peter Robinson <[email protected]>:

Quoted 8 lines

From: Peter Robinson <[email protected]>
Date: Tue, Feb 14, 2017 at 11:10 AM
Subject: [U-Boot] [PATCH 1/3] mx6sx: udoo_neo: Define the default serial console
To: Breno Lima <[email protected]>, Francesco Montefoschi <[email protected]>, Stefano Babic <[email protected]>, u-boot at lists.denx.de

Quoted 4 lines

Standard boot processes including distro boot generally expect the default console to be defined.

For the entire series:

Thanks
Best Regards,

Signature · 1 line
Breno Matheus Lima
#4 lore raw

PATCH 1/3 mx6sx: udoo_neo: Define the default serial console

In reply to Peter Robinson
Quoted 14 lines · Peter Robinson

Standard boot processes including distro boot generally expect the default console to be defined.

---
 include/configs/udoo_neo.h | 1 +
 1 file changed, 1 insertion(+)
include/configs/udoo_neo.h +0 -0
index 23a3685..5b46272e 100644

include/configs/udoo_neo.h line 36

Quoted 7 lines
include/configs/udoo_neo.h +1 -0
@@ -30,6 +30,7 @@
 /* Linux only */
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"console=ttymxc0,115200\0" \
 	"fdt_high=0xffffffff\0" \
 	"initrd_high=0xffffffff\0" \
 	"fdtfile=undefined\0" \

Whole set applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 8 lines
Meet DENX at the Embedded World Trade Show
14 Mar - 16 Mar 2017, Nuremberg Trade Fair Centre, Hall 4, Booth 581
--
=====================================================================
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
=====================================================================
#5 lore raw

PATCH 2/3 mx6sx: udoo_neo: use different load address for ramdisk

In reply to Peter Robinson

The fdt_addr and ramdisk_addr_r are currently both defined to 0x83000000 and that's not going to work well for anyone. Move the ramdisk_addr_r to 0x84000000.

---
 include/configs/udoo_neo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/udoo_neo.h +1 -1
index 5b46272e..1d737cc 100644
@@ -52,7 +52,7 @@
 			"echo WARNING: Could not determine dtb to use; fi\0" \
 	"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
 	"pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
-	"ramdisk_addr_r=0x83000000\0" \
+	"ramdisk_addr_r=0x84000000\0" \
 	"scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
 	BOOTENV
 
Signature · 1 line
2.9.3
#6 lore raw

PATCH 3/3 mx6sx: udoo_neo: Enable distro boot options in config

In reply to Peter Robinson

The include/configs/udoo_neo.h already includes the distro defaults include files so it seems the board was missed in the move to the config file, whether that in initial commit or conversion, so enable the option now and remove duplicated settings.

---
 configs/udoo_neo_defconfig | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
configs/udoo_neo_defconfig +1 -10
index f9b1337..aa2f59d 100644
@@ -13,22 +13,13 @@ CONFIG_SPL_WATCHDOG_SUPPORT=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg"
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL=y
-CONFIG_HUSH_PARSER=y
-CONFIG_CMD_BOOTZ=y
+CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
-CONFIG_CMD_PART=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_ISO_PARTITION=y
-CONFIG_EFI_PARTITION=y
 CONFIG_OF_LIBFDT=y
Signature · 1 line
2.9.3