Skip to content

Commit

Permalink
feat: add u-boot compilation method in custom logo
Browse files Browse the repository at this point in the history
Signed-off-by: Nascs Fang <[email protected]>
  • Loading branch information
nascs committed Oct 17, 2024
1 parent 19fa8fc commit 03d0c8a
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 6 deletions.
31 changes: 30 additions & 1 deletion docs/common/dev/_custom_logo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/rock3/rock3a/low-level-dev/custom-logo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';

# 定制开机 Logo

<LOGO />
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3A" product_dir="rock-3a" />
2 changes: 1 addition & 1 deletion docs/rock3/rock3b/low-level-dev/custom-logo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';

# 定制开机 Logo

<LOGO />
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3B" product_dir="rock-3b" />
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';

# Customized Boot Logo

<LOGO />
<LOGO uboot_develop="../u-boot" product="Radxa ROCK 3A" product_dir="rock-3a" />
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import LOGO from '../../../common/dev/\_custom_logo.mdx';

# Customized Boot Logo

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

0 comments on commit 03d0c8a

Please sign in to comment.