Comments (10)
这里需要一点点linux命令的知识,主要是sed
命令的使用
这里的指令没截全,在你截取的这段之上还有一段
这里可以看出
${{matrix.platform}}_user_config.json
是复制的sample_user_config.json
文件,
之后的命令就是对${{matrix.platform}}_user_config.json
文件里面的字符串的匹配和修改了,简单举例两个
- 这里就是把
PID
和VID
都改为了0x88AA
,在sample_user_config.json
文件中你能看到0x0001
和0x46f4
分别对应的是啥
sed -i -e 's/0x0001/0x88AA/g' -e 's/0x46f4/0x88AA/g' ${{matrix.platform}}_user_config.json
- 同样的在
sample_user_config.json
文件中能看到sn
和mac
被分别固定为了1234XXX123
和XXYYXXYYXXYY
,那就查找并修改他。其中使用到了环境的变量sn
,不熟悉可以像改mac
那样改为直接写死。
sed -i -e "s/1234XXX123/${sn:="1130LWN123456"}/g" -e 's/XXYYXXYYXXYY/0011323D47F7/g' ${{matrix.platform}}_user_config.json
from redpill-tool-chain.
from redpill-tool-chain.
还有个问题忘记问了,我想在添加"DiskIdxMap","SataPortMap","SasIdxMap"是怎么添加呢?不想在sample_user_config.json修改的话
from redpill-tool-chain.
redpill-tool-chain/.github/workflows/test.yml
Lines 61 to 62 in 40a7fde
from redpill-tool-chain.
${{ secrets.DS918_MAC }}这个是什么意思呢?我编译3622的,那样是不是918这里改成3622?
from redpill-tool-chain.
这是actions secrets
变量,避免我洗白码泄露的
from redpill-tool-chain.
明白了
from redpill-tool-chain.
include/json.sh: line 16: 2: unbound variable
make: *** [Makefile:34: build_redpill_load] Error 1
Error: Process completed with exit code 2.
这个错误我搞不懂。。
我按照你的方法,修改如下
# 添加第二张网卡mac并设置网卡数量
sed -i -e 's/00113240D4FC"/&,\n\t"netif_num": 4/' ${{matrix.platform}}_user_config.json
# 调整直通 PCI 的 SATA 顺序
sed -i -e 's/4/&,\n\t"DiskIdxMap": "00",\n\t"SataPortMap": "64",\n\t"SasIdxMap": "00"/' ${{matrix.platform}}_user_config.json
from redpill-tool-chain.
你修改后的文件json语法错误
from redpill-tool-chain.
from redpill-tool-chain.
Related Issues (20)
- 安装界面找不到硬盘 HOT 1
- 新版本出来不更新了吗? HOT 8
- 编译ds918p_25556镜像时生成的是MBR分区镜像 HOT 3
- 添加编译7.1.1-42962这个版本只需要在global_config.json添加相应的参数就可以正常编译了是吗? HOT 7
- 编译好了ds920无限循环重复安装 HOT 16
- 编译失败,报错executor failed running HOT 2
- 关于 7.1.1-42962 版本配置 HOT 3
- The error "git clone" occurred HOT 1
- 构建出来的引导文件 在初始化时提示无法安装DSM 文件可能已经损毁 DS918+ 7.1.0-42661 HOT 6
- 每次auto的时候都报错 HOT 1
- 在线编译出错,云编译也是一样 HOT 1
- Checksum mismatch
- Checksum mismatch sha error
- spacemouse HOT 1
- 大哥帮忙看看这个构建报错
- Executor failed running apt-get update HOT 2
- 编译
- URL error - redpill-boot-wait/recipes/universal.json - 404 Not Found
- checksum mismatch里的expected在哪里改
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redpill-tool-chain.