728x90
반응형
2 Building the ISP module
ISP 모듈을 빌드하려면, 로컬 머신으로 툴체인, Linux Kernel, "yocto imx-isp" 그리고 "yocto vvcam"의 올바른 버전을 가져온다.
2.1 Creating the i.MX Yocto SDK and installing the toolchain
- 저장소(repository)를 다운로드(필요한 경우):
$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ export PATH=~/bin:$PATH
- Git 설정(필요한 경우):
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ git config –list
- Yocto 빌드 환경 생성:
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.32-2.2.0.xml
$ repo sync
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build
$ bitbake imx-image-full -c populate_sdk
- "build" 폴더에서, "./tmp/deploy/sdk/fsl-imx-xwayland-glibc-x86_64-imx-image-full-armv8a-imx8mp-lpddr4-evk-toolchain-5.15-kirkstone.sh" 파일을 실행한다.
- 툴체인 경로는 "/opt/my-tool-chain-path" 이다.
2.2 Building the NXP kernel
- https://source.codeaurora.org/external/imx/linux-imx에서 올바른 버전의 NXP 커널을 다운로드한다.
- 아래 커맨드를 사용하여 커널을 빌드한다:
$ source [/opt/my-tool-chain-path]/environment-setup-[depend_on_the_toolchain]
$ make mrproper
$ make ARCH=arm64 imx_v8_defconfig O=./build_v8
$ cd build_v8/
$ make ARCH=arm64 -j8
참고
Linux 커널의 빌드 경로는 "build_v8" 폴더의 경로여야 한다.
728x90
반응형