i.MX53 QSB U-BOOT

This forum is for supported devices using an ARMv7 Freescale SoC.

i.MX53 QSB U-BOOT

Postby ckhmer1 » Fri Dec 02, 2016 8:05 pm

Hi,
I've booted succesfully my i.MX53 Quick Start Board using Archlinux arm distribution build for USB Armory.

The only changes to do in order to boot are:

- compile the u-boot for mx53loco
- change the boot.txt in the boot folder and execute mkscr

It is needed to path the u-boot source tree before to build it using following patch file

Code: Select all
diff -Naur u-boot-2016.11/include/configs/mx53loco.h u-boot-2016.11-imx53loco/include/configs/mx53loco.h
--- u-boot-2016.11/include/configs/mx53loco.h   2016-11-14 17:27:11.000000000 +0100
+++ u-boot-2016.11-imx53loco/include/configs/mx53loco.h 2016-12-02 20:10:40.771563734 +0100
@@ -29,6 +29,7 @@
 #define CONFIG_BOARD_LATE_INIT
 #define CONFIG_MXC_GPIO
 #define CONFIG_REVISION_TAG
+#define CONFIG_DISPLAY_CPUINFO

 #define CONFIG_MXC_UART
 #define CONFIG_MXC_UART_BASE   UART1_BASE
@@ -91,21 +92,22 @@
 #define CONFIG_SYS_TEXT_BASE    0x77800000

 #define CONFIG_EXTRA_ENV_SETTINGS \
-       "script=boot.scr\0" \
-       "image=zImage\0" \
+       "script=/boot/boot.scr\0" \
+       "image=/boot/zImage\0" \
        "fdt_addr=0x71000000\0" \
+       "scriptaddr=0x70800000\0" \
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \
        "mmcdev=0\0" \
        "mmcpart=1\0" \
-       "mmcroot=/dev/mmcblk0p2 rw rootwait\0" \
+       "mmcroot=/dev/mmcblk0p1 rw rootwait\0" \
        "mmcargs=setenv bootargs console=ttymxc0,${baudrate} root=${mmcroot}\0" \
        "loadbootscript=" \
                "load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
        "bootscript=echo Running bootscript from mmc ...; " \
                "source\0" \
        "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
-       "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
+       "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} /boot/dtbs/${fdt_file}\0" \
        "mmcboot=echo Booting from mmc ...; " \
                "run mmcargs; " \
                "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
@@ -133,7 +135,7 @@
                "fi; " \
                "${get_cmd} ${image}; " \
                "if test ${boot_fdt} = yes ||  test ${boot_fdt} = try; then " \
-                       "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
+                       "if ${get_cmd} ${fdt_addr} /boot/dtbs/${fdt_file}; then " \
                                "bootz ${loadaddr} - ${fdt_addr}; " \
                        "else " \
                                "if test ${boot_fdt} = try; then " \
@@ -201,6 +203,9 @@
 #define CONFIG_ENV_IS_IN_MMC
 #define CONFIG_SYS_MMC_ENV_DEV 0

+#define CONFIG_CMD_PART
+#define CONFIG_PARTITION_UUIDS
+
 #define CONFIG_CMD_SATA
 #ifdef CONFIG_CMD_SATA
        #define CONFIG_DWC_AHSATA


The boot.txt I've used is:

Code: Select all
setenv bootargs console=ttyGS0,115200 root=PARTUUID=${uuid} rw rootwait video=mxcdi1fb:RGB24,VGA-SXGA vga di1_primary

#printenv
if run loadimage; then
  run mmcboot;
fi


Best Regards
Claudio
ckhmer1
 
Posts: 12
Joined: Tue Jan 05, 2016 11:07 pm

Re: i.MX53 QSB U-BOOT

Postby ckhmer1 » Fri Dec 23, 2016 10:37 am

Hi,
I've just uploaded a new package in the AUR repository at url https://aur.archlinux.org/packages/uboot-imx53qsb/

Best Regards
Claudio
ckhmer1
 
Posts: 12
Joined: Tue Jan 05, 2016 11:07 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 1 guest