当前位置:网站首页>Onie supports pice hard disk
Onie supports pice hard disk
2022-07-06 07:41:00 【Caicai azhuang】
List of articles
introduction
We know ,SATA Hard disk and pcie The hard disk dev The device name is different :
SATA The device name is generally sd*, for example sda sdb, The device name after partition is sda1,sda2 etc. ;
and pcie The interface hard disk device name is generally nvme0n*, The device name after partition is nvme0n1p1 nvme0n1p2 etc. .
onie How to support will onie Installed on the designated hard disk ?
onie Support pice Type of hard disk
stay installer/grub-arch/install-arch Medium install_image Interface , take $onie_dev Variable as onie Installation position , from echo "Installing ONIE on: $onie_dev" You can also see this .onie_dev A variable is in init_onie_install Interface , adopt [ -b "$onie_dev" ] || onie_dev="$(install_device_platform)" Defined .
therefore , You need to support the specified hard disk , Just need to be in your own vendor_modules Lower heavy load install_device_platform Interface , And return the corresponding hard disk device name . For example, support nvme Hard disk :
install_device_platform()
{
mass_bus="nvme0"
for i in 1 2 3 4 ; do
if $(ls -l /sys/block/nvme0n$i/device 2>/dev/null | grep -q "$mass_bus") ; then
echo "/dev/nvme0n$i"
return 0
fi
done
echo "storage-not-found"
return 1
}
Interface as long as it returns /dev/nvme0n1 that will do .
Similarly, if necessary onie The installation to SATA Hard disk or U disc , Interface to return /dev/sda /dev/sdb Just wait .
边栏推荐
- After the hot update of uniapp, "mismatched versions may cause application exceptions" causes and Solutions
- word中把带有某个符号的行全部选中,更改为标题
- Related operations of Excel
- Jerry's ad series MIDI function description [chapter]
- word删除括号里内容
- [1. Delphi foundation] 1 Introduction to Delphi Programming
- Get/post/put/patch/delete meaning
- QT color is converted to string and uint
- Description of octomap averagenodecolor function
- opencv学习笔记九--背景建模+光流估计
猜你喜欢
![[1. Delphi foundation] 1 Introduction to Delphi Programming](/img/14/272f7b537eedb0267a795dba78020d.jpg)
[1. Delphi foundation] 1 Introduction to Delphi Programming

链表面试题(图文详解)
![When the Jericho development board is powered on, you can open the NRF app with your mobile phone [article]](/img/3e/3d5bff87995b4a9fac093a6d9f9473.png)
When the Jericho development board is powered on, you can open the NRF app with your mobile phone [article]
![Ble of Jerry [chapter]](/img/d8/d080ccaa4ee530ed21d62755808724.png)
Ble of Jerry [chapter]

Excel的相关操作
![If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]](/img/d6/92ad1c6f84415de6ab0dfd16cd6073.png)
If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]
Comparison of usage scenarios and implementations of extensions, equal, and like in TS type Gymnastics
![Ble of Jerry [chapter]](/img/00/27486ad68bf491997d10e387c32dd4.png)
Ble of Jerry [chapter]

Basics of reptile - Scratch reptile

word中如何删除某符号前面或后面所有的文字
随机推荐
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
OpenJudge NOI 2.1 1661:Bomb Game
HTTP cache, forced cache, negotiated cache
[MySQL learning notes 32] mvcc
CF1036C Classy Numbers 题解
Sharing of source code anti disclosure scheme under burning scenario
opencv学习笔记九--背景建模+光流估计
上线APS系统,破除物料采购计划与生产实际脱钩的难题
Ble of Jerry [chapter]
Jerry's general penetration test - do data transmission with app Communication [article]
The difference between TS Gymnastics (cross operation) and interface inheritance
Is the super browser a fingerprint browser? How to choose a good super browser?
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
继电反馈PID控制器参数自整定
洛谷P1836 数页码 题解
Methods for JS object to obtain attributes (. And [] methods)
MEX有关的学习
TypeScript void 基础类型
超级浏览器是指纹浏览器吗?怎样选择一款好的超级浏览器?
Document 2 Feb 12 16:54