• Building images
$ cd openil
$ make nxp_ls1021atwr_defconfig
$ make
# or make with a log
$ make 2>&1 | tee build.log
• Programming U-Boot in SD card
Power on the LS1021A-TWR board to the U-Boot command environment, then use the following commands:
=>tftp 81000000 u-boot-with-spl-pbl.bin
=>mmc erase 8 0x500
=>mmc write 0x81000000 8 0x500
#then reset the board
• Deploying kernel and Ramdisk from TFTP
1. Set the U-Boot environment.
=>setenv bootargs ‘root=/dev/ram0 rw ramdisk_size=50000000 console=ttyS0,115200’
=>saveenv
2. Boot up the system.
=>tftp 83000000 uImage
=>tftp 88000000 rootfs.cpio.uboot
=>tftp 8f000000 ls1021a-twr.dtb
=>bootm 83000000 88000000 8f000000
3.4 LS1021A-IoT
The LS1021A-IoT gateway reference design is a purpose-built, small footprint hardware platform equipped with a wide array of
both high-speed connectivity and low speed serial interfaces. It is engineered to support the secure delivery of IoT services to
end-users at their home, business, or other commercial locations. The LS1021A-IoT gateway reference design offers an
affordable, ready-made platform for rapidly deploying a secure, standardized, and open infrastructure gateway platform for
deployment of IoT services.
3.4.1 Switch settings
The following table lists and describes the switch configuration for LS1021A-IoT board.
OpenIL supports only the SD card boot for the LS1021A-IoT platform.
NOTE
Table 12. LS1021A-IoT SD boot software setting
Platform
Boot source
software setting
LS1021A-IoT
SD card
SW2[1] = 0b’0
3.4.2 Updating target images
Use the following commands to build the images for LS1021A-IoT platform:
NXP Semiconductors
NXP OpenIL platforms
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
27 / 199