-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add u-boot compilation method in custom logo
Signed-off-by: Nascs Fang <[email protected]>
- Loading branch information
Showing
6 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,41 @@ | |
U-Boot SPL latest-2023.07.02-6-4257d241-g4257d241 (Oct 12 2023 - 07:58:46 +0000) | ||
``` | ||
|
||
<Tabs queryString="version"> | ||
<TabItem value="U-boot 是 2024 年 10 月份之前的"> | ||
</TabItem> | ||
<TabItem value="U-boot 是 2024 年 10 月份之后的"> | ||
- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot | ||
|
||
``` | ||
./bsp u-boot rknext -r 99 | ||
``` | ||
|
||
- 将 {props.product} 的 U-boot 拷贝到板子上 | ||
|
||
<pre style={{ margin: 0 }}> | ||
scp -r .root/.root/usr/lib/u-boot/{props.product_dir}/ [email protected]:~/ | ||
</pre> | ||
|
||
- 在 {props.product} 上执行以下命令以替换最新的 U-boot | ||
|
||
<pre style={{ margin: 0 }}> | ||
cd {props.product_dir} | ||
sudo bash setup.sh update_bootloader /dev/mmcblk0 | ||
</pre> | ||
|
||
:::tip | ||
|
||
该篇文章是以 "U-boot 已经是 2024 年 10 月份之后的 rknext" 为前提条件的 | ||
/dev/mmcblk0 这里是 eMMC, 如果系统安装在 SD 卡上, 那就是 /dev/mmcblk1 | ||
如果系统安装在 nvme 等设备上,那就需要更新 SPI Flash 上的 U-boot | ||
|
||
::: | ||
|
||
- 重启系统,确认 U-boot 更新到了最新的 rknext | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
### 准备一张或者两张图片 | ||
|
||
:::tip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,43 @@ For example: | |
U-Boot SPL latest-2023.07.02-6-4257d241-g4257d241 (Oct 12 2023 - 07:58:46 +0000) | ||
``` | ||
|
||
<Tabs queryString="version"> | ||
<TabItem value="U-boot 是 2024 年 10 月份之前的"> | ||
</TabItem> | ||
<TabItem value="U-boot 是 2024 年 10 月份之后的"> | ||
- Refer to <a href={props.uboot_develop}> U-boot development</a> to compile rknext's U-boot. | ||
|
||
``` | ||
./bsp u-boot rknext -r 99 | ||
``` | ||
|
||
- Copy the U-boot of {props.product} to the board | ||
|
||
<pre style={{ margin: 0 }}> | ||
scp -r .root/.root/usr/lib/u-boot/{props.product_dir}/ [email protected]:~/ | ||
</pre> | ||
|
||
- Execute the following command on {props.product} to replace the latest U-boot | ||
|
||
<pre style={{ margin: 0 }}> | ||
cd {props.product_dir} | ||
sudo bash setup.sh update_bootloader /dev/mmcblk0 | ||
</pre> | ||
|
||
sh setup.sh update_bootloader /dev/mmcblk0{" "} | ||
|
||
:::tip | ||
|
||
The article is predicated on the premise that "U-boot is already rknext after October 2024" | ||
/dev/mmcblk0 is eMMC, or /dev/mmcblk1 if the system is installed on an SD card. | ||
If the system is installed on a device such as nvme, then you need to update the U-boot on the SPI Flash | ||
|
||
::: | ||
|
||
- Reboot the system and make sure the U-boot is updated to the latest rknext. | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
### Prepare one or two images | ||
|
||
:::tip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters