mx6sabresd: Rename target to mx6sabresd_defconfig
PATCH 1/3 mx6sabresd: Rename target to mx6sabresd_defconfig
From: Fabio Estevam <[email protected]>
As mx6sabresd only supports SPL target now, there is no need to keep the 'spl' in the name of the target, so simply rename it to mx6sabresd_defconfig.
Signed-off-by Fabio Estevam <[email protected]>
---
configs/{mx6sabresd_spl_defconfig => mx6sabresd_defconfig} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename configs/{mx6sabresd_spl_defconfig => mx6sabresd_defconfig} (100%)configs/mx6sabresd_defconfig renamed from configs/mx6sabresd_spl_defconfig +0 -0
Signature · 1 line
2.7.4
PATCH 2/3 mx6sabresd: Update the config file
From: Fabio Estevam <[email protected]>
Only configs/mx6sabresd_defconfig is supported now, so update the MAINTAINERS file accordingly.
Signed-off-by Fabio Estevam <[email protected]>
--- board/freescale/mx6sabresd/MAINTAINERS | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
board/freescale/mx6sabresd/MAINTAINERS +1 -3
@@ -3,6 +3,4 @@ M: Fabio Estevam <[email protected]> S: Maintained F: board/freescale/mx6sabresd/ F: include/configs/mx6sabresd.h -F: configs/mx6dlsabresd_defconfig -F: configs/mx6qsabresd_defconfig -F: configs/mx6sabresd_spl_defconfig +F: configs/mx6sabresd_defconfig
Signature · 1 line
2.7.4
PATCH 3/3 mx6sabresd: Update to SPL only mode
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
mx6sabresd only supports SPL mode now, so update the README file accordingly.
Signed-off-by Fabio Estevam <[email protected]>
--- board/freescale/mx6sabresd/README | 84 +++++++++++++-------------------------- 1 file changed, 28 insertions(+), 56 deletions(-)
board/freescale/mx6sabresd/README +28 -56
@@ -1,56 +1,47 @@ -How to use and build U-Boot on mx6sabresd: ----------------------------------- - -Currently there are four methods for booting mx6sabresd boards: +How to use and build U-Boot on mx6sabresd +----------------------------------------- -1. Booting from SD card via normal U-Boot (u-boot.imx) +The following methods can be used for booting mx6sabresd boards: -2. Booting from eMMC via normal U-Boot +1. Booting from SD card -3. Booting via SPL (SPL and u-boot.img) +2. Booting from eMMC -4. Booting via Falcon mode (SPL launches the kernel directly) +3. Booting via Falcon mode (SPL launches the kernel directly) -1. Booting from SD card via normal U-Boot ------------------------------------------ +1. Booting from SD card via SPL +------------------------------- -$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd) +mx6sabresd_defconfig target supports mx6q/mx6dl/mx6qp sabresd variants. -or +In order to build it: -$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd) +$ make mx6sabresd_defconfig $ make -This will generate the image called u-boot.imx. +This will generate the SPL and u-boot.img binaries. -- Flash the u-boot.imx binary into the SD card: +- Flash the SPL binary into the SD card: -$ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync +$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync +- Flash the u-boot.img binary into the SD card: -2. Booting from eMMC via normal U-Boot --------------------------------------- +$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync -$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd) -or +2. Booting from eMMC +-------------------- -$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd) +$ make mx6sabresd_defconfig $ make -This will generate the image called u-boot.imx. - -- Flash the u-boot.imx binary into the eMMC: - -Set SW6 to download mode: 00001100 +This will generate the SPL and u-boot.img binaries. -Plug a usb cable to USB-OTG and load the u-boot image using the imx_usb_loader -tool (https://github.com/boundarydevices/imx_usb_loader): - -$ sudo ./imx_usb u-boot.imx +- Boot first from SD card as shown in the previous section In U-boot change the eMMC partition config:
@@ -60,48 +51,29 @@ Mount the eMMC in the host PC: => ums 0 mmc 2 -Flash the u-boot.imx binary +- Flash SPL and u-boot.img binaries into the eMMC: -$ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 && sync +$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync +$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync Set SW6 to eMMC 8-bit boot: 11010110 -3. Booting via SPL ------------------- - -Other method for building U-Boot on mx6qsabresd and mx6qpsabresd is -through SPL. In order to do so: - -$ make mx6sabresd_spl_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the SD card: - -$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync - -- Flash the u-boot.img image into the SD card: - -$ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 && sync - - -4. Booting via Falcon mode +3. Booting via Falcon mode -------------------------- -$ make mx6sabresd_spl_defconfig +$ make mx6sabresd_defconfig $ make This will generate the SPL image called SPL and the u-boot.img. - Flash the SPL image into the SD card: -$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync +$ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 oflag=sync status=none && sync - Flash the u-boot.img image into the SD card: -$ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 oflag=sync status=none && sync +$ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 oflag=sync status=none && sync Create a partition for root file system and extract it there:
Signature · 1 line
2.7.4