Clone the code:
git clone https://github.com/xkou/milk-v-duo-docker
Generate the Docker image:
sh build.sh prepare
Obtain the code:
sh build.sh get
The code will be placed in the ./duo directory with the following structure:
Compile the image:
sh build.sh image
The generated img directory is located at duo/install/soc_cv1800b_sophpi_duo_sd.
Next, compile Lua:
curl -R -O http://www.lua.org/ftp/lua-5.4.6.tar.gz
tar zxf lua-5.4.6.tar.gz
sh build.sh make lua-5.4.6
Copy Lua to the development board:
scp lua-5.4.6/src/lua mk:
Copy the runtime to the development board:
scp duo/host-tools/gcc/riscv64-linux-musl-x86_64/sysroot/lib/ld-musl-riscv64xthead.so.1 mk:/lib/
Run: