NameDateSize

..20-Sep-20224

imx6ulz_smm_m2.cH A D19-May-2024964

KconfigH A D20-Sep-2022159

MAINTAINERSH A D26-Jul-2023187

MakefileH A D20-Sep-2022142

READMEH A D20-Sep-20221.8 KiB

spl.cH A D19-May-20243.1 KiB

README

1How to Update U-Boot on imx6ulz_smm_m2 board
2--------------------------------------------
3
4Required software on the host PC:
5
6- UUU: https://github.com/NXPmicro/mfgtools
7
8Build U-Boot for m2:
9
10$ make mrproper
11$ make imx6ulz_smm_m2_defconfig
12$ make
13
14This generates the SPL and u-boot-dtb.img binaries.
15
161. Loading U-Boot via USB Serial Download Protocol
17
18Copy SPL and u-boot-dtb.img to the uuu folder.
19
20Load the U-Boot via USB:
21
22$ sudo uuu -v -b nand_script.lst u-boot-with-spl.imx
23
24where nand_script.lst contains the following:
25
26uuu_version 1.2.39
27
28# @_flash.bin            | bootloader
29# @_image   [_flash.bin] | image burn to nand, default is the same as bootloader
30
31# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
32SDP: boot -f _flash.bin
33
34# This command will be run when ROM support stream mode
35# i.MX8QXP, i.MX8QM
36SDPS: boot -f _flash.bin
37
38# These commands will be run when use SPL and will be skipped if no spl
39# SDPU will be deprecated. please use SDPV instead of SDPU
40# {
41SDPU: delay 1000
42SDPU: write -f _flash.bin -offset 0x57c00
43SDPU: jump
44# }
45
46# These commands will be run when use SPL and will be skipped if no spl
47# if (SPL support SDPV)
48# {
49SDPV: delay 1000
50SDPV: write -f _flash.bin -offset 0x11000
51SDPV: jump
52# }
53
54FB: ucmd setenv fastboot_buffer ${loadaddr}
55FB: download -f _image
56FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi
57# Burn image to nandfit partition if needed
58FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${fastboot_bytes}; else true; fi;
59FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${fastboot_bytes}
60FB: Done
61
62Then U-Boot starts and its messages appear in the console program.
63
64Use the default environment variables:
65
66=> env default -f -a
67=> saveenv
68