Skip to content
Closed
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,31 @@ Linux kernel.
cd linux/
make revyos_defconfig
# This can take several hours.
make -j
make -j4
sudo make modules_install
cd ..
```
5. Build OpenSBI.
```bash
cd opensbi/
make PLATFORM=generic -j
make PLATFORM=generic -j4
cd ..
```
6. Build and install the FIT image.
```bash
cd em-rv1/fit/

# Fix path to board device tree
ls -lF ../../linux/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a-16g.dts
vi em-rv1-c4m16s128-a.dts

#include "th1520-lichee-pi-4a-16g.dts"

# Build the device tree
cpp \
-nostdinc \
-I ../linux/arch/riscv/boot/dts/thead/ \
-I ../linux/include/ \
-I ../../linux/arch/riscv/boot/dts/thead/ \
-I ../../linux/include/ \
-undef \
-x assembler-with-cpp \
em-rv1-c4m16s128-a.dts \
Expand All @@ -100,7 +106,7 @@ Linux kernel.
sudo mv /boot/boot.itb /boot/boot.itb.bak
sudo mkimage -f em-rv1-c4m16s128-a-boot.its /boot/boot.itb

cd -
cd ../..
```
7. Reboot the server to load the new kernel.

Expand Down
Loading