利用WSL Linux编译OpenBMC

  • WSL2安装

(1)旧版 WSL 的手动安装步骤 | Microsoft Learn

(2)https://www.cnblogs.com/37yan/p/16169564.html

(3)在win10中安装linux--使用WSL_wsl.conf-CSDN博客

  • 安装Ubuntu 18.04 on Windows

安装方法有2种,

  1. 一种是通过Microsoft Store安装,参见,如果没有安装Store或者不想通过Store,推荐第2种方式。Ubuntu 18.04 on Windows - Microsoft Store 中的官方应用
  2. 另一种可以直接下载Ubuntu_1804.2019.522.0_x64.appx,用7z解压缩后直接在Powershell下面执行ubuntu1804.exe,第一次执行会提示设定Ubuntu系统的用户名和密码。
  3. 新建并配置/etc/wsl.conf,解决访问权限的问题
bash 复制代码
# 新建/etc/wsl.conf文件,输入以下内容
[automount]
root = /
options = "metadata"
  • WSL GitHub SSH Key

进入到新安装的Ubuntu后,需要把连接GitHub所需要的SSH KEY拷贝到"/home/username/.ssh"下面,验证是否成功,通过指令

bash 复制代码
ssh -T git@github.com
  • Github连接碰到的问题及解决

(1)The TMPDIR Error

修改文件在:"openbmc\poky\meta\conf\sanity.conf"

The TMPDIR: ../build/tmp can't be located on nfs.解决_can't be located on nfs-CSDN博客

(2)UNPROTECTED PRIVATE KEY FILE

ssh WARNING: UNPROTECTED PRIVATE KEY FILE!-CSDN博客

(3)通过Hosts缓解Github访问慢的问题

通过工具(如:"github.com"A记录/cname检测结果--Dns查询|dns查询--站长工具)找到可以连接github的DNS,然后添加到"C:\Windows\System32\drivers\etc\hosts"文件,例如:

bash 复制代码
# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
 	
20.205.243.166 github.com

还有其他专门的工具,如FastGithub等。

  • OpenBMC

屏蔽掉目前不可用的Driver的方法:

  1. openbmc\meta-mytest\meta-common\recipes-mytest\packagegroups\packagegroup-mytest-apps.bb 删除指定的Driver

  2. openbmc\meta-mytest\meta-common\recipes-mytest\Driver,相应的Driver Folder拿掉.

相关推荐
likfishdn20 分钟前
Linux的文件与目录管理
linux·运维·服务器
chian-ocean40 分钟前
Linux 文件缓冲区:高效数据访问的幕后推手
linux·运维·服务器
加油=^_^=42 分钟前
【Linux】进程优先级 | 进程调度(三)
linux·运维·服务器
吃汤圆的抹香鲸1 小时前
GoLand 安装包 绿色版 Win,Mac,Linux 包含IntelliJ全家桶 专为Go语言设计的集成开发环境(IDE)
linux·windows·macos·go·intellij-idea·go1.19
追寻光1 小时前
Cannot find a valid baseurl for repo: base/7/x86_64
linux
元气满满的热码式1 小时前
Docker数据卷操作实战
linux·运维·docker·云原生·容器
陆沙2 小时前
deepseek-r1-centos-本地服务器配置方法
linux·服务器·centos
吃汤圆的抹香鲸2 小时前
Rider 安装包 绿色版 Win/Mac/Linux 适合.NET和游戏开发者使用 2025全栈开发终极指南:从零配置到企业级实战
linux·运维·windows·sql·游戏·macos·.net
sz66cm2 小时前
Linux基础 -- ARM 32 位架构动态注入代码技术文档
linux·arm开发·架构
Mr.pyZhang4 小时前
Android构建系统 - 04 编译产物
android·linux