AIM-Linux/BSP/Qualcomm/RISC QCS Linux 00011.1 qualcomm series
From ESS-WIKI
Introduction
This document describes how to work with the RISC and Qualcomm r00011.1 Board Support Package (BSP) release.
Ubuntu Version
Ubuntu 20.04
Kernel Version
Kernel 5.4.233
Docker Install and BSP Download
Pull docker images
$ sudo docker pull advrisc/u20.04-qcslbv1:latest
Run docker example
$ mkdir -p ~/qualcomm-bsp $ sudo docker run -it --name adv-qcs6490-ubun-1-0 -v ~/qualcomm-bsp:/home/adv/adv-release-bsp:rw --privileged advrisc/u20.04-qcslbv1:latest /bin/bash
Download BSP
You need to get the ADV_GIT_TOKEN by contacting the PM or AE of ROM-2860.
$ cd adv-release-bsp $ git config --global credential.helper 'store --file ~/.my-credentials' $ echo "${ADV_GIT_TOKEN}" > ~/.my-credentials $ repo init -u https://dev.azure.com/AIM-Linux/risc_qcs_linux_00011.1/_git/manifests -b main -m adv_3.5.1.r1-06500-QCS6490.0.xml --repo-url=https://git.codelinaro.org/clo/tools/repo.git --repo-branch=qc-stable $ repo sync -c -j12
Copy HLOS of Chipcode
$ cp -r amss/apps_proc/* .
Build Instructions
Source env
$ source scripts/env.sh
Build All Images
$ scripts/build_release.sh -all
Output images: out/emmc and out/ufs
Build yocto images
$ cd poky $ export MACHINE=qcs6490-odk DISTRO=qti-distro-ubuntu-fullstack-debug $ export PREBUILT_SRC_DIR="<APPS_ROOT>/prebuilt_HY11" $ source qti-conf/set_bb_env.sh $ bitbake qti-ubuntu-robotics-image
Build boot and dtb images
$ cd poky $ export MACHINE=qcs6490-odk DISTRO=qti-distro-ubuntu-fullstack-debug $ export PREBUILT_SRC_DIR="<APPS_ROOT>/prebuilt_HY11" $ source qti-conf/set_bb_env.sh $ bitbake -fc cleanall linux-msm && bitbake linux-msm && bitbake qti-ubuntu-robotics-image -fc do_make_bootimg && bitbake qti-ubuntu-robotics-image -fc do_makedtbo
Fastboot
- Micro USB: ROM-ED92 USB0
Connect the ROM-ED92 USB0 to host computer and set the Micro USB to peripheral mode.
# echo "peripheral" > /sys/devices/platform/soc/a600000.ssusb/mode
Enter the fastboot mode
adv@adv-desktop:~$ adb devices List of devices attached 2e8c656e device adv@adv-desktop:~$ adb root restarting adbd as root adv@adv-desktop:~$ adb reboot bootloader adv@adv-desktop:~$ fastboot devices 2e8c656e fastboot
Use the fastboot to flash the kernel boot image
adv@adv-desktop:~$ fastboot flash boot_a qti-ubuntu-robotics-image-qcs6490-odk-boot.img target reported max download size of 805306368 bytes sending 'boot_a' (24420 KB)... OKAY [ 0.790s] writing 'boot_a'... OKAY [ 0.144s] finished. total time: 0.935s adv@adv-desktop:~$ fastboot flash boot_b qti-ubuntu-robotics-image-qcs6490-odk-boot.img target reported max download size of 805306368 bytes sending 'boot_b' (24420 KB)... OKAY [ 0.827s] writing 'boot_b'... OKAY [ 0.133s] finished. total time: 0.960s
Use the fastboot to flash the kernel dtbo image
adv@adv-desktop4:~$ fastboot flash dtbo_a dtbo.img target reported max download size of 805306368 bytes sending 'dtbo_a' (12330 KB)... OKAY [ 0.427s] writing 'dtbo_a'... OKAY [ 0.070s] finished. total time: 0.497s adv@adv-desktop4:~$ fastboot flash dtbo_b dtbo.img target reported max download size of 805306368 bytes sending 'dtbo_b' (12330 KB)... OKAY [ 0.422s] writing 'dtbo_b'... OKAY [ 0.061s] finished. total time: 0.483s