Skip to contentSkip to conversation

imx: 8qxp_mek: fix fdt_file and console

PATCH In review Peng Fan 4 participants 5 messages Apr 15, 2019 – Apr 27, 2019 Arm i.MX and Layerscape

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 imx: 8qxp_mek: fix fdt_file and console

Fix fdt_file and console to boot upstream Linux Kernel.

Upstream linux use imx8qxp-mek.dtb, and pass lpuart32 to earlycon will not work for i.MX8QXP, only need to pass earlycon, check drivers/tty/serial/earlycon.c,
" /* Just 'earlycon' is a valid param for devicetree and ACPI SPCR. */ "

---
 include/configs/imx8qxp_mek.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/imx8qxp_mek.h +2 -2
index 1cff18e05e..5c83505ff0 100644
@@ -65,11 +65,11 @@
 	"script=boot.scr\0" \
 	"image=Image\0" \
 	"panel=NULL\0" \
-	"console=ttyLP0,${baudrate} earlycon=lpuart32,0x5a060000,${baudrate}\0" \
+	"console=ttyLP0,${baudrate} earlycon\0" \
 	"fdt_addr=0x83000000\0"			\
 	"fdt_high=0xffffffffffffffff\0"		\
 	"boot_fdt=try\0" \
-	"fdt_file=fsl-imx8qxp-mek.dtb\0" \
+	"fdt_file=imx8qxp-mek.dtb\0" \
 	"initrd_addr=0x83800000\0"		\
 	"initrd_high=0xffffffffffffffff\0" \
 	"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
Signature · 1 line
2.16.4
reviewer
#1 lore raw

PATCH 1/1 imx: 8qxp_mek: fix fdt_file and console

Quoted 9 lines · Peng Fan

Fix fdt_file and console to boot upstream Linux Kernel.

Upstream linux use imx8qxp-mek.dtb, and pass lpuart32 to earlycon will not work for i.MX8QXP, only need to pass earlycon, check drivers/tty/serial/earlycon.c,
" /* Just 'earlycon' is a valid param for devicetree and ACPI SPCR. */ "

#2 lore raw
In reply to Peng Fan
Quoted 7 lines

Fix fdt_file and console to boot upstream Linux Kernel. Upstream linux use imx8qxp-mek.dtb, and pass lpuart32 to earlycon will not work for i.MX8QXP, only need to pass earlycon, check drivers/tty/serial/earlycon.c,
" /* Just 'earlycon' is a valid param for devicetree and ACPI SPCR. */ "

Applied to u-boot-imx, master, 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
=====================================================================
#3 lore raw

PATCH 1/1 imx: 8qxp_mek: fix fdt_file and console

In reply to Peng Fan

Hi Peng and Stefano

Quoted 19 lines · Peng Fan

Fix fdt_file and console to boot upstream Linux Kernel.

Upstream linux use imx8qxp-mek.dtb, and pass lpuart32 to earlycon will not work for i.MX8QXP, only need to pass earlycon, check drivers/tty/serial/earlycon.c,
" /* Just 'earlycon' is a valid param for devicetree and ACPI SPCR. */ "

---
 include/configs/imx8qxp_mek.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/imx8qxp_mek.h +0 -0
index 1cff18e05e..5c83505ff0 100644

include/configs/imx8qxp_mek.h line 69

Quoted 6 lines
include/configs/imx8qxp_mek.h +1 -1
@@ -65,11 +65,11 @@
 	"script=boot.scr\0" \
 	"image=Image\0" \
 	"panel=NULL\0" \
-	"console=ttyLP0,${baudrate}
 earlycon=lpuart32,0x5a060000,${baudrate}\0" \
+	"console=ttyLP0,${baudrate} earlycon\0" \

I don't think using ${baudrate} in console= like that actually works. At least for me this lead to the following:

root at colibri-imx8qxp:~# cat /proc/cmdline console=ttyLP3,${baudrate} earlycon,115200 root=PARTUUID=5e6e3605-02 rootwait mmcautodetect=yes

E.g. ${baudrate} is never actually evaluated unless one does an explicit assignment aka setenv something something.

Quoted 7 lines
include/configs/imx8qxp_mek.h +1 -1
 	"fdt_addr=0x83000000\0"			\
 	"fdt_high=0xffffffffffffffff\0"		\
 	"boot_fdt=try\0" \
-	"fdt_file=fsl-imx8qxp-mek.dtb\0" \
+	"fdt_file=imx8qxp-mek.dtb\0" \
 	"initrd_addr=0x83800000\0"		\
 	"initrd_high=0xffffffffffffffff\0" \
Quoted 8 lines

"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \

Signature · 6 lines
2.16.4

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Cheers

Marcel

author
#4 lore raw

PATCH 1/1 imx: 8qxp_mek: fix fdt_file and console

Quoted 20 lines

Subject: [REGRESSION] [PATCH] imx: 8qxp_mek: fix fdt_file and console

Hi Peng and Stefano

Quoted 13 lines · Peng Fan

Fix fdt_file and console to boot upstream Linux Kernel.

Upstream linux use imx8qxp-mek.dtb, and pass lpuart32 to earlycon will not work for i.MX8QXP, only need to pass earlycon, check drivers/tty/serial/earlycon.c, " /* Just 'earlycon' is a valid param for devicetree and ACPI SPCR.
*/ "

---
 include/configs/imx8qxp_mek.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 14 lines

include/configs/imx8qxp_mek.h line 69

Quoted 11 lines
(quoted diff) +0 -0

b/include/configs/imx8qxp_mek.h index 1cff18e05e..5c83505ff0 100644

include/configs/imx8qxp_mek.h +1 -1
@@ -65,11 +65,11 @@
 	"script=boot.scr\0" \
 	"image=Image\0" \
 	"panel=NULL\0" \
-	"console=ttyLP0,${baudrate}
 earlycon=lpuart32,0x5a060000,${baudrate}\0" \
+	"console=ttyLP0,${baudrate} earlycon\0" \

I don't think using ${baudrate} in console= like that actually works. At least for me this lead to the following:

You mean include/env_default.h this not work?

Regards,
Peng.

Quoted 37 lines

root at colibri-imx8qxp:~# cat /proc/cmdline console=ttyLP3,${baudrate} earlycon,115200 root=PARTUUID=5e6e3605-02 rootwait mmcautodetect=yes

E.g. ${baudrate} is never actually evaluated unless one does an explicit assignment aka setenv something something.

Quoted 11 lines
include/configs/imx8qxp_mek.h +1 -1
 	"fdt_addr=0x83000000\0"			\
 	"fdt_high=0xffffffffffffffff\0"		\
 	"boot_fdt=try\0" \
-	"fdt_file=fsl-imx8qxp-mek.dtb\0" \
+	"fdt_file=imx8qxp-mek.dtb\0" \
 	"initrd_addr=0x83800000\0"		\
 	"initrd_high=0xffffffffffffffff\0" \

"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
--
2.16.4

Quoted 5 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist

s.denx.de%2Flistinfo%2Fu-boot&data=02%7C01%7Cpeng.fan%40nxp.co m%7C

Quoted 1 line

0e6a5db6025549efd94708d6ca76ec09%7C686ea1d3bc2b4c6fa92cd99c5c30 1635%7C

Quoted 1 line

0%7C0%7C636919009450074747&sdata=g8pl8UzcwoFAlfZAHDOeBb1s4 zcH%2BzJ

Quoted 1 line

qFkGukoHAfnQ%3D&reserved=0

Cheers

Marcel