-
Notifications
You must be signed in to change notification settings - Fork 49
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
base: main
Are you sure you want to change the base?
Custom logo #496
Conversation
@@ -0,0 +1,88 @@ | |||
## 定制 Logo | |||
|
|||
### 确认 U-boot 是否是 rknext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rknext是什么,需要解释,比如
当前该功能只在rknext分支集成,请切换到rknext
There was a problem hiding this comment.
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 | ||
|
||
### 准备一张或者两张图片 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
什么图片,什么格式的,什么尺寸,什么分辨率的,规格说一下
There was a problem hiding this comment.
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 分区 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有直接在编译的时候打包的方法吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有,不过目前 rsdk 这部分功能还没有集成,另外,要在 rsdk 中替换图片,也是要转成规定样式的。
docs/common/dev/_custom_logo.mdx
Outdated
@@ -0,0 +1,88 @@ | |||
## 定制 Logo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
定制什么logo? 讲清楚点
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
Signed-off-by: Nascs Fang <[email protected]>
</TabItem> | ||
<TabItem value="U-boot 是 2024 年 10 月份之后的"> | ||
- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RadxaYuntian 看看这里怎么做区分?集成的产品和未做集成的产品需要怎么看,以及这个时间节点有没必要写?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个功能发布了么?发布了是不是每个产品还要单独做支持?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要作单独支持吧
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在应该是rk2410版本才有支持,rknext是没有的
</TabItem> | ||
<TabItem value="U-boot 是 2024 年 10 月份之后的"> | ||
- 参考 <a href={props.uboot_develop}> U-boot 开发</a>, 编译 rknext 的 U-boot | ||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 拷贝到板子上 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rsetup安装
|
||
::: | ||
|
||
### 将图片转为 .bmp 格式 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接告诉用户需要使用bmp文件。我设计给我出一个Photoshop的psd文件你也能转换么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没测试过, 不过 PIL 库应该可以实现的
There was a problem hiding this comment.
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> | ||
|
||
### 准备一张或者两张图片 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接说明两个图片的用途,这样用户自己知道要用一个还是两个图片
另外如果logo_kernel没有的话会清除之前显示的logo么?
Co-authored-by: ZHANG Yuntian <[email protected]>
Description of changes