Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom logo #496

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Custom logo #496

wants to merge 12 commits into from

Conversation

nascs
Copy link
Contributor

@nascs nascs commented Oct 14, 2024

Description of changes

@nascs nascs requested a review from peterwang2050 October 14, 2024 10:15
@nascs nascs requested a review from a team as a code owner October 14, 2024 10:15
@@ -0,0 +1,88 @@
## 定制 Logo

### 确认 U-boot 是否是 rknext
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rknext是什么,需要解释,比如
当前该功能只在rknext分支集成,请切换到rknext

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在应该是rk2410版本才有支持,rknext是没有的


### 确认 U-boot 是否是 rknext

### 准备一张或者两张图片
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

什么图片,什么格式的,什么尺寸,什么分辨率的,规格说一下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jpg/jpeg/png 格式都行, 为了减少用户麻烦,所以我才写了 convert.py 这个脚本去把用户的图片转成规定的样式

```

### 将以上两张 bmp 图片保存到 config 分区

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有直接在编译的时候打包的方法吗

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有,不过目前 rsdk 这部分功能还没有集成,另外,要在 rsdk 中替换图片,也是要转成规定样式的。

@@ -0,0 +1,88 @@
## 定制 Logo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

定制什么logo? 讲清楚点

</TabItem>
<TabItem value="U-boot 是 2024 年 10 月份之后的">
- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RadxaYuntian 看看这里怎么做区分?集成的产品和未做集成的产品需要怎么看,以及这个时间节点有没必要写?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个功能发布了么?发布了是不是每个产品还要单独做支持?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要作单独支持吧

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hdmi也是?

@@ -0,0 +1,88 @@
## 定制 Logo

### 确认 U-boot 是否是 rknext
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在应该是rk2410版本才有支持,rknext是没有的

docs/common/dev/_custom_logo.mdx Outdated Show resolved Hide resolved
</TabItem>
<TabItem value="U-boot 是 2024 年 10 月份之后的">
- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个功能发布了么?发布了是不是每个产品还要单独做支持?

- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot

```
./bsp u-boot rknext -r 99
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

命令不对

./bsp u-boot rknext -r 99
```

- 将 {props.product} 的 U-boot 拷贝到板子上
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接装生成的deb包

scp -r .root/.root/usr/lib/u-boot/{props.product_dir}/ [email protected]:~/
</pre>

- 在 {props.product} 上执行以下命令以替换最新的 U-boot
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rsetup安装

docs/common/dev/_custom_logo.mdx Outdated Show resolved Hide resolved
docs/common/dev/_custom_logo.mdx Outdated Show resolved Hide resolved

:::

### 将图片转为 .bmp 格式
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接告诉用户需要使用bmp文件。我设计给我出一个Photoshop的psd文件你也能转换么?

Copy link
Contributor Author

@nascs nascs Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没测试过, 不过 PIL 库应该可以实现的

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的意思是,这个不需要写到文档里面。你现在写了pip是不是还要教怎么安装pip,但这些都不需要说明。用户有显示logo这个需求那他肯定是有个图片了,那他自己爱怎么转换怎么转换,我们只需要bmp就好

</TabItem>
</Tabs>

### 准备一张或者两张图片
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接说明两个图片的用途,这样用户自己知道要用一个还是两个图片
另外如果logo_kernel没有的话会清除之前显示的logo么?

@nascs nascs requested a review from RadxaYuntian January 27, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants