blob: 01d218a9bcbe4041469b69e1e741d5ad99b90966 [file] [log] [blame]
Navin Sankar Velliangiri3b2cc732021-05-18 09:03:20 +05301How to use U-BOOT on SeeedStudio NPI-IMX6ULL Single Board Computer
2------------------------------------------------------------------
3
4- Configure and build U-Boot for NPI-IMX6ULL:
5
6 $ export ARCH=arm
7 $ export CROSS_COMPILE=arm-none-linux-gnueabihf-
8 $ make seeed_npi_imx6ull_defconfig
9 $ make
10
11This will generate SPL and u-boot-dtb.img images.
12
13Boot from MMC/SD:
14- The SPL and u-boot-dtb.img images need to be flashed into the micro SD card:
15
16 $ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
17 $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync
18
19- Boot mode settings:
20
21 Boot switch position: SW1 -> 0
22 SW2 -> 1
23 SW3 -> 0
24 SW4 -> 0
25 SW5 -> 1
26 SW6 -> 0
27 SW7 -> 0
28 SW8 -> 1
29
30Boot from NAND:
31- Boot the board using SD/MMC or Serial download and load the SPL into memory
32either from SD/MMC or TFTP.
33
34Default MTD layout is 512k(spl),1m(uboot),1m(uboot-dup),-(ubi)
35
36Flash SPL to NAND from SD/MMC,
37
38 $ ext4load mmc 0:2 $loadaddr SPL
39 $ nand erase.part spl
40 $ nandbcb init $loadaddr 0x0 $filesize
41
42Flash u-boot image to NAND from SD/MMC,
43
44 $ ext4load mmc 0:2 $loadaddr u-boot-dtb.img
45 $ nand erase.part uboot
46 $ nand write $loadaddr uboot $filesize
47
48- Boot mode settings:
49
50 Boot switch position: SW1 -> 0
51 SW2 -> 1
52 SW3 -> 1
53 SW4 -> 0
54 SW5 -> 0
55 SW6 -> 1
56 SW7 -> 0
57 SW8 -> 0
58
59- Connect the Serial cable to UART0 and the PC for the console.
60
61- Reset the board using reset button and U-Boot should boot from NAND.