1 .. SPDX-License-Identifier: GPL-2.0+
6 How to use and build U-Boot on mx6sabreauto
7 -------------------------------------------
9 mx6sabreauto_defconfig target supports mx6q/mx6dl/mx6qp sabreauto variants.
15 $ make mx6sabreauto_defconfig
18 This will generate the SPL and u-boot-dtb.img binaries.
20 - Flash the SPL binary into the SD card:
24 $ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 conv=notrunc && sync
26 - Flash the u-boot-dtb.img binary into the SD card:
30 $ sudo dd if=u-boot-dtb.img of=/dev/sdX bs=1K seek=69 conv=notrunc && sync
32 Booting via Falcon mode
33 -----------------------
35 Write in mx6sabreauto_defconfig the following define below:
43 $ make mx6sabreauto_defconfig
46 This will generate the SPL image called SPL and the u-boot-dtb.img.
48 - Flash the SPL image into the SD card:
52 $ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 conv=notrunc && sync
54 - Flash the u-boot-dtb.img image into the SD card:
58 $ sudo dd if=u-boot-dtb.img of=/dev/sdb bs=1K seek=69 conv=notrunc && sync
60 Create a FAT16 boot partition to store uImage and the dtb file, then copy the files there:
64 $ sudo cp uImage /media/boot
65 $ sudo cp imx6dl-sabreauto.dtb /media/boot
67 Create a partition for root file system and extract it there:
71 $ sudo tar xvf rootfs.tar.gz -C /media/root
73 The SD card must have enough space for raw "args" and "kernel".
74 To configure Falcon mode for the first time, on U-Boot do the following commands:
76 - Load dtb file from boot partition::
78 # load mmc 0:1 ${fdt_addr} imx6dl-sabreauto.dtb
80 - Load kernel image from boot partition::
82 # load mmc 0:1 ${loadaddr} uImage
84 - Write kernel at 2MB offset::
86 # mmc write ${loadaddr} 0x1000 0x4000
88 - Setup kernel bootargs::
90 # setenv bootargs "console=ttymxc3,115200 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait quiet rw"
94 # spl export fdt ${loadaddr} - ${fdt_addr}
96 - Write args 1MB data (0x800 sectors) to 1MB offset (0x800 sectors)::
98 # mmc write 18000000 0x800 0x800
100 - Restart the board and then SPL binary will launch the kernel directly.