Restart service
$ sudo service docker restart
• Logout from current terminal session, then login again to ensure user can run
docker ps -a
.
• The user's network environment must have access to the remote Ubuntu official server.
• Run flex-builder command for docker as given in the next section.
3.1.3 Download and assemble LS1028A BSP images
In this BSP Quick Start Guide, the build framework Flexbuild is used. Flexbuild contains three scripts: flex-builder, flex-installer,
and flex-mkdistrorfs. In this section, “Download and assemble LS1028A BSP images” flex-builder is used to generate an Ubuntu
userland.
In the next section, “Deploy LS1028A BSP images on board,” the script flex-installer is used to deploy Ubuntu userland to a storage
device (SD, USB, or SATA). In addition, flex-installer is used to deploy a boot partition and firmware images to the same storage
device.
The boot partition contains a Linux kernel image and device tree blob. Firmware images include RCW (Reset Configuration Word),
U-Boot and a FIT image. For a complete list of the boot partition components and the firmware components see
LS1028A BSP
Memory Layout
on page 34.
See
Build tools
on page 35 for more information on flexbuild.
To download and assemble LS1028A BSP images, perform the steps below:
1. Download the flexbuild source tarball and set up flexbuild environment.
• Go to
www.nxp.com
and click the “Download” button to download flexbuild source tarball named
“flexbuild_<version>.tgz”. It is required to login and sign a license agreement before downloading the tarball.
• Set up flexbuild environment.
$ tar xvzf flexbuild_<version>.tgz
$ cd flexbuild
$ source setup.env
Run the following two commands in addition to the above three commands only when building BSP in Docker
container.
$ flex-builder docker (This command emulates Ubuntu 18.04 environment on the host machine.)
$ source setup.env (Again, setup the flexbuild environment after entering Docker container.)
2. Download prebuilt images for boot partition and NXP-specific components tarball.
• Download prebuilt app components (e.g., tsntool, weston, openssl).
wget https://www.nxp.com/lgfiles/sdk/ls1028a_bsp_03/app_components_LS_arm64.tgz
• Download prebuilt images for boot partition and arm modules.
wget https://www.nxp.com/lgfiles/sdk/ls1028a_bsp_03/bootpartition_LS_arm64_lts_4.14.tgz
wget https://www.nxp.com/lgfiles/sdk/ls1028a_bsp_03/lib_modules_LS_arm64_4.14.47.tgz
3. Generate LS1028A BSP Ubuntu userland, untar the prebuilt components tarball, and merge them into target userland.
• Generate Ubuntu arm64 userland.
$ flex-builder -i mkrfs -a arm64
LS1028A BSP Quick Start
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
13
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......