Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 30 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,45 @@ MAINTAINER sa2kng <knegge@gmail.com>
RUN apt-get -y update &&\
apt -y upgrade &&\
apt-get -y install \
wget \
build-essential \
linux-source \
bc \
kmod \
cpio \
flex \
libncurses5-dev \
libncurses-dev \
libelf-dev \
libssl-dev \
dwarves \
bison \
git \
ca-certificates \
cpio \
device-tree-compiler \
flex \
gcc \
gcc-riscv64-linux-gnu \
git \
kmod \
libncurses-dev \
libssl-dev \
ccache \
cmake \
make \
xz-utils &&\
rm -rf /var/lib/apt/lists/*
software-properties-common &&\
add-apt-repository ppa:deadsnakes/ppa &&\
apt update &&\
apt-get -y install python3.8 &&\
apt-get -y install python3-dev &&\
apt-get -y install python3-pip &&\
apt-get -y install python3-venv &&\
apt-get -y install sudo &&\
add-apt-repository ppa:ubuntu-toolchain-r/test &&\
apt update &&\
wget https://apt.llvm.org/llvm.sh &&\
chmod +x llvm.sh &&\
./llvm.sh all &&\
rm -rf /var/lib/apt/lists/*

ENV PATH="/mnt:${PATH}"
ENV CC=clang-17
ENV CXX=clang++-17
WORKDIR /mnt
CMD "bash"

2 changes: 1 addition & 1 deletion mnt/build_spl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git clone https://github.com/starfive-tech/Tools.git
cd Tools/spl_tool || exit 1
make || exit 6
./spl_tool -c -f ${UBOOT}/spl/u-boot-spl.bin || exit 2
ls -l u-boot-spl.bin.normal.out
ls -l ${UBOOT}/spl/u-boot-spl.bin.normal.out
cd ../uboot_its || exit 3
cp ${OPENSBI}/build/platform/generic/firmware/fw_payload.bin ./ || exit 4
${UBOOT}/tools/mkimage -f visionfive2-uboot-fit-image.its -A riscv -O u-boot -T firmware visionfive2_fw_payload.img || exit 5
Expand Down