Hi,
I notice that that there is an official L4T Base container for arm64, but x86_64.
We want to build our customized kernel & bootloader.
I know there is a step by step guide to do that in official document.
But it’s beneficial if there is an official built container to do that.
Thanks!
Hi,
No. Emulator just goto arm64 again.
What I wanted is a cross-platform compiling environment as described in L4T official document.
On the other hand, I can compile our customed kernel for xavier, without installing dependent packages(but docker) on host.
Or another hand, I need a docker container to build our customed kernel. but the paths of source & output kernel images are located on host.
Am I clear now? Thanks!
FROM ubuntu:20.04 AS toolchain
RUN apt-get update && \
apt-get install -y curl xz-utils && \
mkdir -p /opt/toolchain && \
curl -L http://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64-linux-gnu/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz | tar xJ -C /opt/toolchain
FROM ubuntu:20.04
ENV CROSS_COMPILE=/opt/toolchain/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y build-essential bc && \
apt-get install -y xxd && \
rm -rf /var/lib/apt/lists/*
COPY --from=toolchain /opt/toolchain /opt/toolchain
Please note xxd is used while compiling kernel and not installed in ubuntu official image defaultly.
After building, the size of docker image is 1.11GB (uncompressed) and 185MB (compressed by xz)