1149379753 发表于 2022-6-15 15:06:37

求好心大神帮忙编译一个可以驱动BCM5719网卡的920 42218引导

萌新小白一枚,因为考虑性价比问题购买了HP331FLR网卡,四口千兆,搭配板载螃蟹8111H网卡实现5口物理黑群晖

但是在引导方面被卡住了,本来是用了https://www.bilibili.com/read/cv14699204这个大佬的引导,但是他是针对虚拟机编译的,目前看市面上还没有其他引导支持驱动这网卡,加上我又需要特定系统,自己在隔壁网研究了一周多的引导编译依然是一脸茫然,只能来请教各位大神帮忙了。

小萌新电脑配置如下,主板是映泰J4125,板载M2硬盘接口1个,sata接口2个(M2只能用PCIE通道NVME协议的固态做存储盘,否则会占用sata口1个,而我需要1个M2存储硬盘,和2个sata机械硬盘,所以不设置缓存,把m2做存储盘)。板载显卡是螃蟹卡8111H,扩展的4口网卡是HP的331FLR,是BCM5719的4口网卡,一共装在3硬盘,需要求各位大佬帮忙编译一个7.01的DS920+的42218系统(能驱动博通BCM5719和螃蟹8111h网卡)


小飞侠 发表于 2022-6-16 11:02:02

干嘛不自己编译呢?自己编译好直接驱动就打上去了。

gebi1-redpill-load 优化版 零门槛,学了就会,5月2日更新
http://www.gebi1.com/thread-301414-1-1.html

1149379753 发表于 2022-6-16 11:25:15

小飞侠 发表于 2022-6-16 11:02
干嘛不自己编译呢?自己编译好直接驱动就打上去了。

gebi1-redpill-load 优化版 零门槛,学了就会,5月2日 ...

这个文章我也看过,我就是为了解决编译问题,特意赞助注册进来,研究了一周都没弄懂你发这个文章的教程,所以被迫无奈才求助啊,完全无电脑linux基础

1149379753 发表于 2022-6-16 16:13:03

1149379753 发表于 2022-6-16 11:25
这个文章我也看过,我就是为了解决编译问题,特意赞助注册进来,研究了一周都没弄懂你发这个文章的教程, ...

我今天再次试了下您推送这个链接的2个子链接,但是测试后依然不行,编译完后在文章说的那个文件地址永远没有那个img文件啊

momo 发表于 2022-6-16 20:18:30

1149379753 发表于 2022-6-16 16:13
我今天再次试了下您推送这个链接的2个子链接,但是测试后依然不行,编译完后在文章说的那个文件地址永远 ...

tinycore-redpill.v0.8.0.0 引导编译u盘镜像下载
http://www.gebi1.com/thread-301698-1-1.html

neopeek 发表于 2022-6-16 21:52:02

你找2021年10月份,douxu大大发的贴子中,10月17日编译的引导,集成HPSA,ixgbe,ixgbevf,mptsas,mpt2sas,mpt3sas, vmxnet3,tg3 这些驱动的可以驱动你的网卡

1149379753 发表于 2022-6-16 22:06:04

momo 发表于 2022-6-16 20:18
tinycore-redpill.v0.8.0.0 引导编译u盘镜像下载
http://www.gebi1.com/thread-301698-1-1.html



是的,我就是按照这个教程。和镜像,按照步骤编译完但是在指定位置没有出现固件,然后我试了好多个链接的教程都是这样

1149379753 发表于 2022-6-17 13:27:40

本帖最后由 1149379753 于 2022-6-17 13:29 编辑

小飞侠 发表于 2022-6-16 11:02
干嘛不自己编译呢?自己编译好直接驱动就打上去了。

gebi1-redpill-load 优化版 零门槛,学了就会,5月2日 ...
有几个疑问请教下,跟进教程http://www.gebi1.com/thread-301414-1-1.html进行编译,第三步的时候,因为我是想要编译DS920+的42218版本,教程原来的命令行是 ./rploader.sh build bromolow-7.0.1-42218,跟进下面提示改为 ./rploader.sh build geminilake-7.0.1-42218,我刚才这样操作了下,完成了1.2.3,没有执行4.5(因为我不需要42261只需要42218),但是我发现和其他教程比对的时候好像少了一部导入驱动的步骤?是第三步的时候就已经自动识别导入了吗?最后提示命令行固件校验失败tc@box:~$ rm -f rploader.sh&&wget https://gitee.com/gebi1/gebi1-redpill/raw/mast
er/rploader.sh&&sudo chmod 700 rploader.sh
Connecting to gitee.com (212.64.63.190:443)
saving to 'rploader.sh'
rploader.sh          100% |********************************| 785210:00:00 ETA
'rploader.sh' saved
tc@box:~$ ./rploader.sh fullupgrade now
Performing a full TCRP upgrade
Warning some of your local files will be moved to /home/tc/old/xxxx.2022-Jun-17-13-15
Updating custom_config.json
mv: cannot stat 'custom_config.json': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
100 34102    0 34102    0   068754      0 --:--:-- --:--:-- --:--:-- 68754
Updating global_config.json
mv: cannot stat 'global_config.json': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
1005672    05672    0   014109      0 --:--:-- --:--:-- --:--:-- 14109
Updating modules.alias.3.json.gz
mv: cannot stat 'modules.alias.3.json.gz': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
1005591    05591    0   013603      0 --:--:-- --:--:-- --:--:-- 13603
Updating modules.alias.4.json.gz
mv: cannot stat 'modules.alias.4.json.gz': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
100 89007    0 89007    0   0   127k      0 --:--:-- --:--:-- --:--:--127k
Updating rpext-index.json
mv: cannot stat 'rpext-index.json': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
100199k    0199k    0   0   197k      0 --:--:--0:00:01 --:--:--340k
Updating user_config.json
mv: cannot stat 'user_config.json': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
100   431100   431    0   0   1187      0 --:--:-- --:--:-- --:--:--1187
Updating dtc
mv: cannot stat 'dtc': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
100146k    0146k    0   0   177k      0 --:--:-- --:--:-- --:--:--177k
Updating rploader.sh
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
100 78521    0 78521    0   0   116k      0 --:--:-- --:--:-- --:--:--116k
Updating ds1621p.dts
mv: cannot stat 'ds1621p.dts': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
1003026    03026    0   0   7221      0 --:--:-- --:--:-- --:--:--7221
Updating ds920p.dts
mv: cannot stat 'ds920p.dts': No such file or directory
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
0   0    0   0    0   0      0      0 --:--:-- --:--:-- --:--:--   0
1002423    02423    0   0   6787      0 --:--:-- --:--:-- --:--:--6787
Please make sure you are using the latest 1GB img before using backup option
Current /home/tc size is 2.8M , try to keep it less than 1GB as it might not fit into your image
Should i update the sdc with your current files
y
Backing up home files to sdc : Backing up files to /mnt/sdc3//mydata.tgz touch: cannot touch '/tmp/backup_done': Permission denied

Done.

tc@box:~$ ./rploader.sh build geminilake-7.0.1-42218
Rploader Version : 0.7.0.6
Loader source : https://gitee.com/gebi1/pocopico-redpill-load.git Loader Branch : develop
Redpill module source : https://gitee.com/gebi1/pocopico-redpill-lkm.git : Redpill module branch : master
Extensions :   redpill-dtb
Extensions URL : "https://gitee.com/gebi1/pocopico-redpill-load/raw/master/redpill-dtb/rpext-index.json"
TOOLKIT_URL : https://sourceforge.net/projects/dsgpl/files/toolkit/DSM7.0/ds.apollolake-7.0.dev.txz/download
TOOLKIT_SHA : d349fa644392d4cfab8191243ee38aaa32bd517208c144678e0c855cb5a619ea
SYNOKERNEL_URL : https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/25426branch/apollolake-source/linux-4.4.x.txz/download
SYNOKERNEL_SHA : af815ee065775d2e569fd7176e25c8ba7ee17a03361557975c8e5a4b64230c5b
COMPILE_METHOD : toolkit_dev
TARGET_PLATFORM       : geminilake
TARGET_VERSION    : 7.0.1
TARGET_REVISION : 42218
REDPILL_LKM_MAKE_TARGET : test-v7
KERNEL_MAJOR : 4
MODULE_ALIAS_FILE :modules.alias.4.json
SYNOMODEL : ds920p_42218
MODEL : DS920+
Local Cache Folder : /mnt/sdc3/auxfiles
Checking Internet Access -> OK
Checking if a newer version exists on the repo -> Version is current
Cloning into 'redpill-lkm'...
remote: Enumerating objects: 1248, done.
remote: Total 1248 (delta 0), reused 0 (delta 0), pack-reused 1248
Receiving objects: 100% (1248/1248), 476.52 KiB | 369.00 KiB/s, done.
Resolving deltas: 100% (862/862), done.
Cloning into 'redpill-load'...
remote: Enumerating objects: 1893, done.
remote: Counting objects: 100% (1893/1893), done.
remote: Compressing objects: 100% (939/939), done.
remote: Total 1893 (delta 949), reused 1679 (delta 824), pack-reused 0
Receiving objects: 100% (1893/1893), 28.47 MiB | 2.72 MiB/s, done.
Resolving deltas: 100% (949/949), done.
No extra build option specified, using default <static>
Using static compiled redpill extension
Removing any old redpill.ko modules
Looking for redpill for : ds920p_42218
Getting file https://gitee.com/gebi1/pocopico-rp-ext/raw/main/redpill/releases/redpill-4.4.180plus-geminilake.tgz
Extracting module
Got redpill-linux-v4.4.180+.ko
Testing modules.alias.4.json -> File OK
------------------------------------------------------------------------------------------------
It looks that you will need the following modules :


parse error: Expected another key-value pair at line 1246, column 3
Found VGA Controller : pciid 8086d00003185Required Extension : i915
Searching for matching extension for i915
Found SATA Controller : pciid 8086d000031e3Required Extension :
No matching extension
parse error: Expected another key-value pair at line 1246, column 3
Found Ethernet Interface : pciid 10ecd00008168 Required Extension : r8169
Searching for matching extension for r8169
------------------------------------------------------------------------------------------------
Starting loader creation
Found tinycore cache folder, linking to home/tc/custom-module
Checking user_config.json : Done
Entering redpill-load directory
Removing bundled exts directories
Cache directory OK
Want to use firmware files from /home/tc/custom-module/*.pat ? :
Y
cp: cannot stat '/home/tc/custom-module/*42218*.pat': No such file or directory
Processing add_extensions entries found on custom_config.json file :   redpill-dtb
Adding extension "https://gitee.com/gebi1/pocopico-redpill-load/raw/master/redpill-dtb/rpext-index.json"
[#] Checking runtime for required tools...
[#] Adding new extension from https://gitee.com/gebi1/pocopico-redpill-load/raw/master/redpill-dtb/rpext-index.json...
[#] Downloading remote file https://gitee.com/gebi1/pocopico-redpill-load/raw/master/redpill-dtb/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################### 100.0%

[#] ========================================== redpill-dtb ==========================================
[#] Extension name: Device tree binary
[#] Description: Create your own device tree binary
[#] To get help visit: https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb
[#] Extension preparer/packer: https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb
[#] Software author: https://gitee.com/gebi1/jumkey-redpill-load/redpill-load/raw/develop/redpill-dtb
[#] Update URL: https://gitee.com/gebi1/pocopico-redpill-load/raw/master/redpill-dtb/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds920p_42661 ds1621p_42661 ds2422p_42661 ds2422p_42218 ds920p_42218 ds920p_42621 ds920p_42550 ds2422p_42621 ds1621p_42621
[#] =======================================================================================

Updating extension : redpill-dtb contents for model : ds920p_42218
[#] Checking runtime for required tools...
[#] Updating ds920p_42218 platforms extensions...
[#] Downloading remote file https://gitee.com/gebi1/pocopico-redpill-load/raw/develop/redpill-dtb/recipes/universal.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################### 100.0%

[#] Filling-in newly downloaded recipe for extension redpill-dtb platform ds920p_42218
[#] Downloading remote file https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb/releases/install_rd.sh to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/install_rd.sh
######################################################################### 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/install_rd.sh file...
[#] Downloading remote file https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb/releases/install.sh to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/install.sh
######################################################################### 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/install.sh file...
[#] Downloading remote file https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb/releases/model_ds920p.dtb to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds920p.dtb
##O#- #
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds920p.dtb file...
[#] Downloading remote file https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb/releases/model_ds1621p.dtb to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds1621p.dtb
##O#- #
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds1621p.dtb file...
[#] Downloading remote file https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb/releases/model_ds2422p.dtb to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds2422p.dtb
##O#- #
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds2422p.dtb file...
[#] Downloading remote file https://gitee.com/gebi1/jumkey-redpill-load/raw/develop/redpill-dtb/releases/dtc to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/dtc
# #=O#-#
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/dtc file...
[#] Successfully processed recipe for extension redpill-dtb platform ds920p_42218
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/dtc file...
Protocol spec without prior Class and Subclass spec at line 23281
Downloading dtc binary
# #=O=#   #
dts file for ds920p not found, trying to download
######################################################################### 100.0%
Found 2 disks and 4 nvme
Collecting disk paths
Found local disk sda with path 00:12.0, adding into internal_slot 1 with portnumber 0
Found local disk sdb with path 00:12.0, adding into internal_slot 2 with portnumber 1
Collecting nvme paths
Found local nvme nvme0n1 with path 00:13.0,00.0, adding into m2_card 1
device node not found
Found local nvme |-nvme0n1p1 with path , adding into m2_card 1
device node not found
Found local nvme |-nvme0n1p2 with path , adding into m2_card 1
device node not found
Found local nvme `-nvme0n1p3 with path , adding into m2_card 1
Your loader is not in USB, i will not try to patch dtb for USB
Converting dts file : ds920p.dts to dtb file : >ds920p.dtb
Error: ds920p.dts:1.1-2 syntax error
FATAL ERROR: Unable to parse input tree
Copying patched dtb file ds920p.dtb to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42218/model_ds920p.dtb -> OK ! File copied and verified !
[#] Checking runtime for required tools...
[#] Updating extensions...

[#] Checking runtime for required tools...
[#] Adding new extension from https://gitee.com/gebi1/pocopico-rp-ext/raw/main/redpill-boot-wait/rpext-index.json...
[#] Downloading remote file https://gitee.com/gebi1/pocopico-rp-ext/raw/main/redpill-boot-wait/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
##O#- #

[#] ========================================== redpill-boot-wait ==========================================
[#] Extension name: RedPill Bootwait
[#] Description: Simple extension which stops the execution early waiting for the boot device to appear
[#] To get help visit: https://gitee.com/gebi1/redpill-boot-wait
[#] Extension preparer/packer: https://gitee.com/gebi1/pocopico-rp-ext/tree/main/redpill-boot-wait
[#] Update URL: https://gitee.com/gebi1/pocopico-rp-ext/raw/main/redpill-boot-wait/rpext-index.json
[#] Platforms supported: ds1621p_42218 ds918p_41890 dva3221_42661 ds3617xs_42621 ds3617xs_42218 ds920p_42661 ds918p_42661 ds1621p_42661 ds918p_25556 dva3221_42218 ds3615xs_42661 ds3622xsp_42661 ds2422p_42661 ds3622xsp_42218 ds2422p_42218 dva3221_42621 ds3615xs_41222 ds918p_42621 ds3617xs_42661 ds3615xs_25556 ds920p_42218 ds920p_42621 ds920p_42550 ds918p_42218 ds2422p_42621 ds1621p_42621 ds3615xs_42621 ds3615xs_42218 ds3622xsp_42621
[#] =======================================================================================

[#] Checking runtime for required tools...
[#] Updating redpill-boot-wait extension...
[#] Downloading remote file https://gitee.com/gebi1/pocopico-rp-ext/raw/main/redpill-boot-wait/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
##O#- #

[#] Extension redpill-boot-wait index is already up to date
[#] Updating redpill-dtb extension...
[#] Downloading remote file https://gitee.com/gebi1/pocopico-redpill-load/raw/master/redpill-dtb/rpext-index.json to /home/tc/redpill-load/custom/extensions/_new_ext_index.tmp_json
######################################################################### 100.0%

[#] Extension redpill-dtb index is already up to date
[#] Updating redpill-dtb extension...
[#] Checking runtime for required tools...
[#] Updating ds920p_42218 platforms extensions...
[#] Downloading remote file https://gitee.com/gebi1/redpill-boot-wait/raw/master/recipes/universal.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################### 100.0%

[#] Filling-in newly downloaded recipe for extension redpill-boot-wait platform ds920p_42218
[#] Downloading remote file https://gitee.com/gebi1/redpill-boot-wait/raw/master/src/boot-wait.sh to /home/tc/redpill-load/custom/extensions/redpill-boot-wait/ds920p_42218/boot-wait.sh
######################################################################### 100.0%
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-boot-wait/ds920p_42218/boot-wait.sh file...
[#] Successfully processed recipe for extension redpill-boot-wait platform ds920p_42218
[#] Downloading remote file https://gitee.com/gebi1/pocopico-redpill-load/raw/develop/redpill-dtb/recipes/universal.json to /home/tc/redpill-load/custom/extensions/_ext_new_rcp.tmp_json
######################################################################### 100.0%
[#] Extension redpill-dtb for ds920p_42218 platform is already up to date
[#] Verifying /home/tc/redpill-load/custom/extensions/redpill-boot-wait/ds920p_42218/boot-wait.sh file...
[#] Updating extensions...
[#] PAT file /home/tc/redpill-load/cache/ds920p_42218.pat not found - downloading from https://cndl.synology.cn/download/DSM/release/7.0.1/42218/DSM_DS920%2B_42218.pat
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
100353M100353M    0   027.3M      00:00:120:00:12 --:--:-- 27.1M
[#] Verifying /home/tc/redpill-load/cache/ds920p_42218.pat file...
[!] Checksum mismatch - expected 73053911bd118b432d5a2036dc62d518eed83b78b32c1eb23696d59725a14892 but computed fe2a4648f76adeb65c3230632503ea36bbac64ee88b459eb9bfb5f3b8c8cebb3


*** Process will exit ***
FAILED : Loader creation failed check the output for any errors


1149379753 发表于 2022-6-17 13:48:18

neopeek 发表于 2022-6-16 21:52
你找2021年10月份,douxu大大发的贴子中,10月17日编译的引导,集成HPSA,ixgbe,ixgbevf,mptsas,mpt2sas ...

主要是我想找920的引导

james9876 发表于 2022-6-21 06:19:33

本帖最后由 james9876 于 2022-6-21 06:24 编辑

dsm-ds920p-7.0.1-42218.zip
包含R8168 R8169 TG3驱动
另外还包含常用的virtio acpid boot-wait
自行修改VID与PID
自行修改MAC与SN
自行更改网口数量
自行添加DiskIdxMap= SataPortMap= SasIdxMap=
只给你编译了驱动,其他未做更改

以下为驱动内容
https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-boot-wait.json
https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-acpid.json
https://github.com/tossp/redpill-tool-chain/raw/master/extensions/redpill-virtio.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/r8168/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/r8169/rpext-index.json
https://raw.githubusercontent.com/pocopico/rp-ext/master/tg3/rpext-index.json

对于蜗牛星际,需要着重注意DiskIdxMap SataPortMap

引导仅适用于7.01-42218,其他任何版本系统均无法启动




页: [1]
查看完整版本: 求好心大神帮忙编译一个可以驱动BCM5719网卡的920 42218引导