Skip to content

Commit 03d0c8a

Browse files
committed
feat: add u-boot compilation method in custom logo
Signed-off-by: Nascs Fang <[email protected]>
1 parent 19fa8fc commit 03d0c8a

File tree

6 files changed

+66
-6
lines changed

6 files changed

+66
-6
lines changed

docs/common/dev/_custom_logo.mdx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,41 @@
1010
U-Boot SPL latest-2023.07.02-6-4257d241-g4257d241 (Oct 12 2023 - 07:58:46 +0000)
1111
```
1212

13+
<Tabs queryString="version">
14+
<TabItem value="U-boot 是 2024 年 10 月份之前的">
15+
</TabItem>
16+
<TabItem value="U-boot 是 2024 年 10 月份之后的">
17+
- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot
18+
19+
```
20+
./bsp u-boot rknext -r 99
21+
```
22+
23+
-{props.product} 的 U-boot 拷贝到板子上
24+
25+
<pre style={{ margin: 0 }}>
26+
scp -r .root/.root/usr/lib/u-boot/{props.product_dir}/ [email protected]:~/
27+
</pre>
28+
29+
-{props.product} 上执行以下命令以替换最新的 U-boot
30+
31+
<pre style={{ margin: 0 }}>
32+
cd {props.product_dir}
33+
sudo bash setup.sh update_bootloader /dev/mmcblk0
34+
</pre>
35+
1336
:::tip
1437

15-
该篇文章是以 "U-boot 已经是 2024 年 10 月份之后的 rknext" 为前提条件的
38+
/dev/mmcblk0 这里是 eMMC, 如果系统安装在 SD 卡上, 那就是 /dev/mmcblk1
39+
如果系统安装在 nvme 等设备上,那就需要更新 SPI Flash 上的 U-boot
1640

1741
:::
1842

43+
- 重启系统,确认 U-boot 更新到了最新的 rknext
44+
45+
</TabItem>
46+
</Tabs>
47+
1948
### 准备一张或者两张图片
2049

2150
:::tip

docs/rock3/rock3a/low-level-dev/custom-logo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';
66

77
# 定制开机 Logo
88

9-
<LOGO />
9+
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3A" product_dir="rock-3a" />

docs/rock3/rock3b/low-level-dev/custom-logo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';
66

77
# 定制开机 Logo
88

9-
<LOGO />
9+
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3B" product_dir="rock-3b" />

i18n/en/docusaurus-plugin-content-docs/current/common/dev/_custom_logo.mdx

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,43 @@ For example:
1010
U-Boot SPL latest-2023.07.02-6-4257d241-g4257d241 (Oct 12 2023 - 07:58:46 +0000)
1111
```
1212

13+
<Tabs queryString="version">
14+
<TabItem value="U-boot 是 2024 年 10 月份之前的">
15+
</TabItem>
16+
<TabItem value="U-boot 是 2024 年 10 月份之后的">
17+
- Refer to <a href={props.uboot_develop}> U-boot development</a> to compile rknext's U-boot.
18+
19+
```
20+
./bsp u-boot rknext -r 99
21+
```
22+
23+
- Copy the U-boot of {props.product} to the board
24+
25+
<pre style={{ margin: 0 }}>
26+
scp -r .root/.root/usr/lib/u-boot/{props.product_dir}/ [email protected]:~/
27+
</pre>
28+
29+
- Execute the following command on {props.product} to replace the latest U-boot
30+
31+
<pre style={{ margin: 0 }}>
32+
cd {props.product_dir}
33+
sudo bash setup.sh update_bootloader /dev/mmcblk0
34+
</pre>
35+
36+
sh setup.sh update_bootloader /dev/mmcblk0{" "}
37+
1338
:::tip
1439

15-
The article is predicated on the premise that "U-boot is already rknext after October 2024"
40+
/dev/mmcblk0 is eMMC, or /dev/mmcblk1 if the system is installed on an SD card.
41+
If the system is installed on a device such as nvme, then you need to update the U-boot on the SPI Flash
1642

1743
:::
1844

45+
- Reboot the system and make sure the U-boot is updated to the latest rknext.
46+
47+
</TabItem>
48+
</Tabs>
49+
1950
### Prepare one or two images
2051

2152
:::tip

i18n/en/docusaurus-plugin-content-docs/current/rock3/rock3a/low-level-dev/custom-logo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';
66

77
# Customized Boot Logo
88

9-
<LOGO />
9+
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3A" product_dir="rock-3a" />

i18n/en/docusaurus-plugin-content-docs/current/rock3/rock3b/low-level-dev/custom-logo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';
66

77
# Customized Boot Logo
88

9-
<LOGO />
9+
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3B" product_dir="rock-3b" />

0 commit comments

Comments
 (0)