Complete SD Card Boot Image Preparation and Boot Procedure
Hello Kneron Team,
I am using a KL730 EVM board with SDK v2.0.0.
Currently, my KL730 EVM is booting from SPI-NAND, and I want to:
- Prepare a complete bootable SD card image using SDK v2.0.0
- Configure the KL730 EVM to boot completely from the SD card without on board NAND in picture.
I have gone through the KL730 documentation, including the SD Boot section, but I need clarification regarding the exact files, filenames, locations, partition layout, and complete procedure for SDK v2.0.0.
uboot.env - how to get this file as there is no inpt_env.txt file exists.
Could someone please provide the complete procedure specifically for KL730 EVM + SDK v2.0.0.
Tagged:
Comments
Hello,
About the corresponding image binaries, you can find them in the following directory of the SDK
/KL730_SDK_v2.0.0/04_Firmware/
And you can find the list of specific binaries in chapter 4.1 Firmware Update in KL730_EVM_Board_User_Manual.pdf which is in HDK_v2.0.0.
Note that you should follow the steps in "8.5 SD boot" to rename the files to bl2.bin, bl31.bin, bl32.bin, and bl33.bin respectively before you run the SD boot flow.
About the U-Boot Environment File uboot.env, you need to create a txt file with content as below:
baudrate=115200
bootdelay=3
bootcmd=fatload mmc 0:0 0x800000 Image; fatload mmc 0:0 0x2A00000 leipzig.dtb; booti 0x800000 - 0x2A00000
bootargs=console=ttyS0,115200 root=/dev/mmcblk0 earlycon
Then convert the txt file into uboot.env following the instructions in document. Or you can use the u-boot-tools in any linux PC to convert with following command:
sudo apt update
sudo apt install u-boot-tools
mkenvimage -s 0x10000 -o u-boot.env env_sd_boot.txt
And here is the uboot.env I created for EVM, hope it is useful for you to test in your environment.