add uConsole R01 kernel patch code

This commit is contained in:
cuu 2023-08-31 22:32:47 +12:00
parent 02db71b2fa
commit 2eb8e41f17
2 changed files with 9207 additions and 0 deletions

View File

@ -0,0 +1,38 @@
## Get Kernel
Get kernel source from https://open.allwinnertech.com/
based on allwinner tina_d1_h_v2.1/lichee/linux-5.4
git commit hash: 2c3a14af7536e7a4be9f2b0550f04457ae585be6
after git apply the patch code
run
```
export PATH=/data/tina_d1_h_v2.1/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/:$PATH
cp arch/riscv/boot/dts/sunxi/uc_board.dts arch/riscv/boot/dts/sunxi/board.dts
make CROSS_COMPILE=riscv64-unknown-linux-gnu- ARCH=riscv sun20iw1p1_d1_r01_defconfig
make CROSS_COMPILE=riscv64-unknown-linux-gnu- ARCH=riscv -j2
make CROSS_COMPILE=riscv64-unknown-linux-gnu- ARCH=riscv INSTALL_MOD_PATH=test/rootfs/ modules_install
make CROSS_COMPILE=riscv64-unknown-linux-gnu- ARCH=riscv INSTALL_PATH=test/boot/ zinstall
```
to compile , you need to change the riscv64-glibc-gcc-thead_20200702 toolchain path to your real local path
after compiling you will get something like
```
├── boot
│   ├── dt_board.dtb
│   ├── uc_board.dtb
│   └── vmlinuz-5.4.61+
└── rootfs
└── lib
└── modules
└── 5.4.61+
```

File diff suppressed because it is too large Load Diff