Difference between revisions of "Linux BSP build User Guide (LSDK20.12)"
From ESS-WIKI
Sean.chuang (talk | contribs) |
Sean.chuang (talk | contribs) |
||
Line 54: | Line 54: | ||
<pre> $ cd adv-release-bsp/flexbuild_lsdk2012/build/images/ | <pre> $ cd adv-release-bsp/flexbuild_lsdk2012/build/images/ | ||
$ flex-installer -i pf -d /dev/sda | $ flex-installer -i pf -d /dev/sda | ||
− | $ flex-installer -f firmware_ls1046ardb_uboot_sdboot.img -b bootpartition_LS_arm64_lts_5. | + | $ flex-installer -f firmware_ls1046ardb_uboot_sdboot.img -b bootpartition_LS_arm64_lts_5.4_xxxxxxxxxxxx.tgz -r rootfs_lsdk2012_ubuntu_main_arm64.tgz -d /dev/sda |
</pre> | </pre> | ||
+ | |||
+ | |||
== How to Flash eMMC == | == How to Flash eMMC == | ||
+ | |||
+ | '''Boot Mode''' | ||
+ | |||
+ | {| border="1" cellspacing="1" cellpadding="1" style="width:500px;" | ||
+ | |- | ||
+ | | style="text-align: center;" | QSPI Mode | ||
+ | | style="text-align: center;" | MMC mode | ||
+ | |- | ||
+ | | style="text-align: center;" | <br/> | ||
+ | | <br/> | ||
+ | |} |
Revision as of 07:36, 29 March 2022
Contents
Linux BSP Version
Ubuntu 18.04
Kernel 5.4.47
Released Image
Download flex-installer
$ wget https://www.nxp.com/lgfiles/sdk/lsdk2012/flex-installer && chmod +x flex-installer && sudo mv flex-installer /usr/bin
Build Environment on Host
If you don't have docker in your system, then you can follow the below steps to install docker and run it first.
Log in to a Docker registry
$ docker login -u advcus -p iTk7Sy9OQVQCkN2FPKw=Om8mfwfZQqKi riscswacr.azurecr.io
Pull Ubuntu 18.04 from Azure Container Registry
$ docker pull riscswacr.azurecr.io/u18.04-ls1046albv1:latest
Run/Create Docker Container
$ docker run -it --name ${CONTAINER_NAME} --privileged -v ${WORK_SPACE}:/home/adv/flexbuild_lsdk2012:rw riscswacr.azurecr.io/u18.04-ls1046albv1 /bin/bash
Get BSP
Download BSP from Azure DevOps
The following example shows how to download the Advantech LSDK flexbuilder from DevOps. (Execute in Docker container)
For this example, a directory called adv-release-bsp is created for the project.
$ cd adv-release-bsp $ git clone https://AIM-Linux@dev.azure.com/AIM-Linux/flexbuild_lsdk2012/_git/flexbuild_lsdk2012
Build Images
These commands are execute in Docker environment.
$ cd flexbuild_lsdk2012 $ source setup.env $ flex-builder -i mkfw -m ls1046ardb -b sd $ flex-builder -i mkrfs -a arm64 $ flex-builder -i mkbootpartition -a arm64
Flash Images (In Local Host)
The following example is for sd card :
$ cd adv-release-bsp/flexbuild_lsdk2012/build/images/ $ flex-installer -i pf -d /dev/sda $ flex-installer -f firmware_ls1046ardb_uboot_sdboot.img -b bootpartition_LS_arm64_lts_5.4_xxxxxxxxxxxx.tgz -r rootfs_lsdk2012_ubuntu_main_arm64.tgz -d /dev/sda
How to Flash eMMC
Boot Mode
QSPI Mode | MMC mode |
|
|