mirror of
https://github.com/clockworkpi/uConsole.git
synced 2025-12-12 10:08:50 +01:00
add uConsole R01 kernel patch code
This commit is contained in:
parent
02db71b2fa
commit
2eb8e41f17
38
Code/patch/r01/20230614/README.md
Normal file
38
Code/patch/r01/20230614/README.md
Normal 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+
|
||||
```
|
||||
|
||||
|
||||
9169
Code/patch/r01/20230614/r01_v1.01_230614.patch
Executable file
9169
Code/patch/r01/20230614/r01_v1.01_230614.patch
Executable file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user