Skip to content

Commit

Permalink
移除sbi
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 committed Sep 26, 2024
1 parent dfd0050 commit ae1310d
Show file tree
Hide file tree
Showing 206 changed files with 0 additions and 30,872 deletions.
6 changes: 0 additions & 6 deletions bsp/k230/.ignore_format.yml

This file was deleted.

36 changes: 0 additions & 36 deletions bsp/k230/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,44 +31,8 @@ sudo ./cromfs-tool-x64 dir crom.img ./ # 将生成的cromfs_data.c放

## 编译

### 一步完成
```
export RTT_EXEC_PATH=/mnt/e/tools/riscv64gc/bin # 你自己的编译器路径
scons -j8 all=1
```

### 分步完成
* 1. 编译RT-Thread
```
export RTT_EXEC_PATH=/mnt/e/tools/riscv64gc/bin # 你自己的编译器路径
scons -j8
```

* 2. 编译opensbi & 生成烧录文件
```
./mkfm.sh /mnt/e/tools/riscv64gc/bin/riscv64-unknown-linux-musl- # 你自己的编译器
```
此处会把`rtthread.bin`编译进opensbi


## 烧录rtt_system.bin

1. 参照 https://github.com/kendryte/k230_sdk 烧入预编译镜像
2. 通过另一个核上运行的linux烧录rtt
```
ifconfig eth0 up;ifconfig eth0 192.168.2.2;cd /tmp;tftp -r rtt_system.bin -g 192.168.2.20;dd if=rtt_system.bin of=/dev/mmcblk1p1;reboot
```

## 用uboot从sd卡fat分区加载rtt_system.bin

`快起`特性关闭的情况下,从小核控制台进入uboot操作界面,输入如下命令:
```
fatload mmc 1:4 $ramdisk_addr rtt_system.bin;k230_boot mem $ramdisk_addr 0x$filesize
```

`备注`: 随后RT-Thread启动界面显示在大核控制台。
16 changes: 0 additions & 16 deletions bsp/k230/opensbi/.clang-format

This file was deleted.

11 changes: 0 additions & 11 deletions bsp/k230/opensbi/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions bsp/k230/opensbi/CONTRIBUTORS.md

This file was deleted.

25 changes: 0 additions & 25 deletions bsp/k230/opensbi/COPYING.BSD

This file was deleted.

Loading

0 comments on commit ae1310d

Please sign in to comment.