白牌包问题

目的:更换logo背景图等一些信息
1,根据上次AI解答https://discuss.openubmc.cn/t/topic/6549,我做了以下步骤:
a,新建代码仓,添加以下内容

2,修改/home/zhao/zhx/Openubmc/manifest/build/product/BMC/openUBMC/manifest.yml

wbd_up_files:

files:

- file: ${board_path}/wbd_up_file/favicon.ico

dst: wbd_up_file/favicon.ico

- file: ${board_path}/wbd_up_file/filelist.conf

dst: wbd_up_file/filelist.conf

- file: ${board_path}/wbd_up_file/web_custom.xml

dst: wbd_up_file/web_custom.xml
将原有的wbd_up_files:替换为

wbd_up_files:

  • repo: <您的定制文件仓库URL> # 例如: https://xxxxx/my_brand.git
    tag: <分支或tag名> # 例如: main
    files:
    • file: favicon.ico
      dst: wbd_up_file/favicon.ico
    • file: header_logo.png
      dst: wbd_up_file/header_logo.png
    • file: login_logo.png
      dst: wbd_up_file/login_logo.png
    • file: login.png
      dst: wbd_up_file/login.png
    • file: img_01.png
      dst: wbd_up_file/img_01.png
    • file: filelist.conf
      dst: wbd_up_file/filelist.conf
    • file: style_config.json
      dst: wbd_up_file/style_config.json
    • file: web_custom.xml
      dst: wbd_up_file/web_custom.xml

接着使用bingo publish -z WBD -b openUBMC -bt release 编译,会有以下报错

2,后面还是老实的按照教程根据社区定制化白牌包流程出包流程实操分享

/home/zhao/zhx/Openubmc/manifest/build/product/BMC/openUBMC/manifest.yml

在manufacture下新增WBD,如下

3,使用bingo publish -z WBD -b openUBMC -bt release编译后有以下报错

4,后面问了AI,回答是说格式不对,但换来换去还是这样的报错

最近陆陆续续尝试了很多次,结果都是不行

各位大神,manifest/build/product/BMC/openUBMC/manifest.yml到底应该怎样写?是否能提供一下这个文件?或者是否可以帮忙提供一个完整的白牌包制作教程

此文本将被隐藏

答案内容由AI生成,仅供参考:
根据您在社区帖子中描述的问题,以及提供的上下文信息,我将为您整理出正确的白牌包制作流程manifest.yml 的标准写法。您遇到的报错很可能是因为配置格式有误或使用了错误的编译命令。


一、白牌包制作完整流程(基于社区官方指南)

1. 准备定制文件代码仓

新建一个代码仓库(如 my_brand),存放以下定制文件(必需项):

  • favicon.ico – 浏览器图标
  • header_logo.png – 页面头部logo
  • login_logo.png – 登录页logo
  • login.png – 登录页背景图
  • img_01.png – 主界面展示图片(可选)
  • filelist.conf必须,定义文件安装路径
  • style_config.json – 风格配置(可选)
  • web_custom.xml必须,定义品牌信息

注意:filelist.confweb_custom.xml 是核心文件,缺少会导致升级失败或证书导入问题。

2. 修改 manifest.yml

文件路径:manifest/build/product/BMC/openUBMC/manifest.yml

正确的配置位置:在文件末尾添加 manufacture: 区块,不要直接修改原有的 wbd_up_files(那是错误写法)。参考社区成功案例,标准格式如下:

manufacture:
  WBD:
    package_name: wbd/wbd_output.zip   # 注意:不要有多余下划线
    build_type: release
    wbd_hpms:
      - repo: https://xxxxx/my_brand.git   # 替换为您的仓库URL
        tag: main                           # 或具体分支/tag
        files:
          - file: favicon.ico
            dst: wbd_up_file/favicon.ico
          - file: header_logo.png
            dst: wbd_up_file/header_logo.png
          - file: login_logo.png
            dst: wbd_up_file/login_logo.png
          - file: login.png
            dst: wbd_up_file/login.png
          - file: img_01.png
            dst: wbd_up_file/img_01.png
          - file: filelist.conf
            dst: wbd_up_file/filelist.conf
          - file: style_config.json
            dst: wbd_up_file/style_config.json
          - file: web_custom.xml
            dst: wbd_up_file/web_custom.xml

关键点

  • 缩进必须严格使用空格(YAML语法),不能使用Tab。
  • package_name 中不要添加多余字符(如 _output 中的下划线已去掉)。
  • 如果不需要从远端仓库拉取,也可以配置本地路径(参见[搜索3]),但通常推荐使用git仓库。

3. 执行编译命令

使用 bmcgo publish(部分旧版叫 bingo),命令如下:

bmcgo publish -bt release -z WBD -b openUBMC -r openubmc_dev
  • -bt release:编译release版本
  • -z WBD:指定白牌包类型
  • -b openUBMC:目标板名称
  • -r openubmc_dev:Conan远程仓库(如需要)

4. 获取生成的白牌包

编译成功后,生成的文件在 manifest/output/packet/wbd/ 目录下,名为 wbd_output.zip(或 wbd-crypt-image-signed.hpm)。取包路径:当前文件夹下 wbd-crypt-image-signed.hpm(参见《白牌包定制指南》[文档8])。

5. 升级白牌包

登录 openUBMC WebUI → 固件升级固件更新,选择生成的 .hpm 文件进行升级。若白牌包中配置了 Customer 字段,升级完成后会自动重启生效。


二、您之前遇到报错的可能原因

错误表现 常见原因 解决方法
bingo: 未找到命令: wbd_build 使用了错误命令(旧版) 改用 bmcgo publish -z WBD ...
编译后没有生成 wbd_output.zip manifest.yml配置被跳过,或 package_name 写错 检查 manufacture 缩进和名称
升级卡在5%或15% 环境中有未完成的升级任务 重启BMC或删除缓存文件再升级
证书导入失败 filelist.conf 中路径不匹配 确保路径与适配文档一致(通常 /data/opt/bmc/conf

三、参考文档来源

  • 【官方】 白牌包定制指南:白牌包介绍 | 文档中心 | openUBMC
  • 【社区实践】 根据社区定制化白牌包流程出包流程实操分享([搜索结果6])
  • 【常见问题】 白牌包适配与制作常见问题([搜索结果1])
  • 【编译跳过问题】 编译白牌包被跳过([搜索结果7])

四、建议

  1. 备份原有 manifest.yml,然后只添加上述 manufacture 区块,不要修改其他地方。
  2. 确保代码仓中所有文件(尤其是 filelist.confweb_custom.xml)格式正确,可参考社区示例。
  3. 如果编译依然报错,请贴出完整日志(特别是显示 YAML 解析错误的部分),以便进一步定位。

按照以上步骤操作,应该能成功生成白牌包并实现 logo 替换。如有其他问题,欢迎继续讨论。

目前看这里有点问题

文档已上传,审核中

您好,请问这里应该填写wbd_hpms是吗?
另外该文件的base:下边是需要填写WBD是吗

参考这个

基于openUBMC的白牌包制作方法.docx (501.5 KB)

好的,我试一下,感谢

如果有用的话,可以给该回答点一个解决呢