Parthiban Nallathambi | 10e959a | 2020-07-27 16:48:41 +0200 | [diff] [blame] | 1 | How to use U-Boot on MYiR MYS-6ULX Single Board Computer |
| 2 | -------------------------------------------------------- |
| 3 | |
| 4 | - Configure and build U-Boot for MYS-6ULX iMX6ULL: |
| 5 | |
| 6 | $ make mrproper |
| 7 | $ make myir_mys_6ulx_defconfig |
| 8 | $ make |
| 9 | |
| 10 | This will generate SPL and u-boot-dtb.img images. |
| 11 | |
| 12 | Boot from MMC/SD: |
| 13 | - The SPL and u-boot-dtb.img images need to be flashed into the micro SD card: |
| 14 | |
| 15 | $ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync |
| 16 | $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync |
| 17 | |
| 18 | - Boot mode settings: |
| 19 | |
| 20 | Boot switch position: SW1 -> 0 |
| 21 | SW2 -> 1 |
| 22 | SW3 -> 0 |
| 23 | SW4 -> 1 |
| 24 | |
| 25 | Boot from NAND: |
| 26 | - Boot the board using SD/MMC or Serial download and load the SPL into memory |
| 27 | either from SD/MMC or TFTP. |
| 28 | |
| 29 | Default MTD layout is 512k(spl),1m(uboot),1m(uboot-dup),-(ubi) |
| 30 | |
| 31 | Flash SPL to NAND from SD/MMC, |
| 32 | |
| 33 | $ ext4load mmc 0:2 $loadaddr SPL |
| 34 | $ nand erase.part spl |
| 35 | $ nandbcb init $loadaddr 0x0 $filesize |
| 36 | |
| 37 | Flash u-boot proper to NAND from SD/MMC, |
| 38 | |
| 39 | $ ext4load mmc 0:2 $loadaddr u-boot-dtb.img |
| 40 | $ nand erase.part uboot |
| 41 | $ nand write $loadaddr uboot $filesize |
| 42 | |
| 43 | - Boot mode settings: |
| 44 | |
| 45 | Boot switch position: SW1 -> 1 |
| 46 | SW2 -> 0 |
| 47 | SW3 -> 0 |
| 48 | SW4 -> 1 |
| 49 | |
| 50 | - Connect the Serial cable to UART0 and the PC for the console. |
| 51 | |
| 52 | - Reset the board using and U-Boot should boot from NAND. |