• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글

이젠 DS920+ 에 HBA 카드를 붙일 차례네요.

화정큐삼 화정큐삼 752

0

19

핫포사이님,

 

DS920+ 에도 HBA(H200, H310 등) 카드를 사용하려면 DTC 룰을 따라야 한다고 포코피코님이 그러시는것 같습니다.

 

일단, 내장 Sata는 혹시나 간섭있을까봐 죽여 버리고

 

HBA 9211-4i  4포트에 SSD 4개만 물리고 아래처럼 시험을 해봤습니다.

 

TC가 나름 internal_slot 에 들어갈 pcie_root /   ata_port 를 찾아주긴 하는데 저렇게 들어가면 안되나 봅니다.

 

HBA 는 보여지는 정보가 조금 달라서 맨 아래 포코피코님 답변 주신것처럼 port-1:3  를 적절한곳에 매핑을 해야 하는것 같은데요.

포코피코님 늘 그렇듯이 상세한 설명은 안해주시네요.

 

케바케라고 도저히 이것까지는 자동매핑을 해줄 자신이 없으신 모양입니다.

 

Jumkey님 사이트가서 공부하고 오란 의미 같은데요.

 

혹시 어제 알려주신 0x00, 0x0 이슈 같은 정보를 확인할 수 있는 링크좀 알 수 있을까요?

 

/etc/model.dtb 파일을 어떻게 바라봐야 한다는 정보일듯 한데요.

 

jumkey님 깃헙의 어딘가 일까요?

 

 

 

Found 4 disks and 0 nvme

Collecting disk paths

Found local disk sdb with path 00:01.1,00.0, adding into internal_slot 1 with portnumber 1

Found local disk sdc with path 00:01.1,00.0, adding into internal_slot 2 with portnumber 1

Found local disk sdd with path 00:01.1,00.0, adding into internal_slot 3 with portnumber 1

Found local disk sde with path 00:01.1,00.0, adding into internal_slot 4 with portnumber 1

NO NVME disks found, returning

Patching USB to include your loader. Loader found in 3-3 port

Converting dts file : ds920p.dts to dtb file : >ds920p.dtb

Copying patched dtb file ds920p.dtb to /home/tc/redpill-load/custom/extensions/redpill-dtb/ds920p_42661/model_ds920p.dtb -> OK ! File copied and verified !

 

 

lrwxrwxrwx 1 root root 0 Apr 19 15:33 sda -> ../devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0/host0/target0:0:0/0:0:0:0/block/sda

lrwxrwxrwx 1 root root 0 Apr 19 15:35 sdb -> ../devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:0/end_device-1:0/target1:0:0/1:0:0:0/block/sdb

lrwxrwxrwx 1 root root 0 Apr 19 15:35 sdc -> ../devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:1/end_device-1:1/target1:0:1/1:0:1:0/block/sdc

lrwxrwxrwx 1 root root 0 Apr 19 15:35 sdd -> ../devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:2/end_device-1:2/target1:0:2/1:0:2:0/block/sdd

lrwxrwxrwx 1 root root 0 Apr 19 15:35 sde -> ../devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:3/end_device-1:3/target1:0:3/1:0:3:0/block/sde

lrwxrwxrwx 1 root root 0 Apr 19 15:33 zram0 -> ../devices/virtual/block/zram0

 

 

 

tc@box:~$ udevadm info --query path --name sdb

/devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:0/end_device-1:0/target1:0:0/1:0:0:0/block/sdb

tc@box:~$ udevadm info --query path --name sdc

/devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:1/end_device-1:1/target1:0:1/1:0:1:0/block/sdc

tc@box:~$ udevadm info --query path --name sdd

/devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:2/end_device-1:2/target1:0:2/1:0:2:0/block/sdd

tc@box:~$ udevadm info --query path --name sde

/devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:3/end_device-1:3/target1:0:3/1:0:3:0/block/sde

 

 

tc@box:~$ lspci -tvnnq

-[0000:00]-+-00.0  Intel Corporation Xeon E3-1200 v3 Processor DRAM Controller [8086:0c08]

           +-01.0-[01]--

           +-01.1-[02]----00.0  LSI Logic / Symbios Logic SAS2004 PCI-Express Fusion-MPT SAS-2 [Spitfire] [1000:0070]

           +-14.0  Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31]

           +-19.0  Intel Corporation Ethernet Connection I217-LM [8086:153a]

           +-1a.0  Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d]

           +-1c.0-[03]--

           +-1c.4-[04]----00.0  Intel Corporation I210 Gigabit Network Connection [8086:1533]

           +-1c.7-[05-06]----00.0-[06]----00.0  ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000]

           +-1d.0  Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26]

           +-1f.0  Intel Corporation C222 Series Chipset Family Server Essential SKU LPC Controller [8086:8c52]

           \-1f.3  Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22]

 

 

 

        internal_slot@1 {

                protocol_type = "sata";

                power_pin_gpio = <0x14 0x0>;

                detect_pin_gpio = <0x23 0x1>;

                led_type = "lp3943";

 

                ahci {

pcie_root = "00:01.1,00.0";

ata_port = <0x1>;

                };

 

                led_green {

                        led_name = "syno_led0";

                };

 

                led_orange {

                        led_name = "syno_led1";

                };

        };

 

        internal_slot@2 {

                protocol_type = "sata";

                power_pin_gpio = <0x15 0x0>;

                detect_pin_gpio = <0x24 0x1>;

                led_type = "lp3943";

 

                ahci {

pcie_root = "00:01.1,00.0";

ata_port = <0x1>;

                };

 

                led_green {

                        led_name = "syno_led2";

                };

 

                led_orange {

                        led_name = "syno_led3";

                };

        };

 

        internal_slot@3 {

                protocol_type = "sata";

                power_pin_gpio = <0x16 0x0>;

                detect_pin_gpio = <0x25 0x1>;

                led_type = "lp3943";

 

                ahci {

pcie_root = "00:01.1,00.0";

ata_port = <0x1>;

                };

 

                led_green {

                        led_name = "syno_led4";

                };

 

                led_orange {

                        led_name = "syno_led5";

                };

        };

 

        internal_slot@4 {

                protocol_type = "sata";

                power_pin_gpio = <0x17 0x0>;

                detect_pin_gpio = <0x26 0x1>;

                led_type = "lp3943";

 

                ahci {

pcie_root = "00:01.1,00.0";

ata_port = <0x1>;

                };

 

                led_green {

                        led_name = "syno_led6";

                };

 

                led_orange {

                        led_name = "syno_led7";

                };

        };

 

 

SynologyNAS> cat /var/log/junior_reason

Exit on error [99] rp ext init exec failure...

SynologyNAS> cat /var/log/*rc*

START /linuxrc.syno.impl

'/etc.defaults/model.dtb' -> '/var/run/model.dtb'

Insert basic USB modules...

:: Loading module usb-common ... [  OK  ]

:: Loading module usbcore ... [  OK  ]

:: Loading module xhci-hcd ... [  OK  ]

:: Loading module xhci-pci ... [  OK  ]

:: Loading module usb-storage ... [  OK  ]

:: Loading kernel modules from extensions ...

Loading kmod #0 "e1000e.ko" for pocopico.e1000e (args: )

Loading kmod #0 "igb.ko" for pocopico.igb (args: )

Loading kmod #0 "raid_class.ko" for pocopico.mpt3sas (args: )

Loading kmod #1 "scsi_transport_sas.ko" for pocopico.mpt3sas (args: )

Loading kmod #2 "mpt3sas.ko" for pocopico.mpt3sas (args: )

Killed

ERROR: kernel extensions "mpt3sas.ko" from pocopico.mpt3sas failed to load

Exit on error [99] rp ext init exec failure...

Tue Apr 19 15:42:06 UTC 2022

none /sys/kernel/debug debugfs rw,relatime 0 0

SynologyNAS>

 

Of course, thats the reason that you need to manually edit the dts. There are so many options. Here the port is represented by :

 

lrwxrwxrwx 1 root root 0 Apr 19 15:35 sde -> ../devices/pci0000:00/0000:00:01.1/0000:02:00.0/host1/port-1:3/end_device-1:3/target1:0:3/1:0:3:0/block/sde

 

on other systems the target will change and no port will be listed. The automatic patching of the port will be different in so many systems that actually renders the process useless. 

신고공유스크랩
19

화정큐삼 화정큐삼
30Lv. 18048P
다음 레벨까지 1172P

1) Xpenology RedPill DS918+ FRIEND DSM 7.2.1-69057 Update 1, ASUS IOT H310i-IM-A R2.0 G5500 / Intel I211, I219-V / 16GB  / SilverStone ECS07 5포트 SATA M.2 NVMe PCIe 스토리지 확장 카드 / 3x4TB + 1x3TB SHR, 1x8TB 

 

2) Xpenology RedPill DS1823xs+ FRIEND DSM 7.2.1-69057 Update 1, Asus B150I PRO GAMING/AURA i3-7100T / Intel Gigabit LAN x 3 / 16GB  /  ASM1166 M.2 NVME PCIE 6 Port Sata 스토리지 확장 카드 / 6 x 3TB RAID6

1등
핫포사이 2022.04.20. 10:07

전부 ata_port = <0x1> 이렇게 되어있는데 일단 해보시고 안되면 0x0 , 0x1 , 0x2...이렇게 해보세요.

 

dtb에 좀 더 이해를 하게되면 왜 nvme와 sata0가 중복이되도 피해 갈수있는지 이해하게됩니다.

profile image
화정큐삼 글쓴이 2022.04.20. 10:45
핫포사이

오늘 일찍 퇴근하는날이라 들어가서 0,1,2,3 으로 값 중복안되게 변경해서 다시 빌드 해보겠습니다.

근데, dtc 컴파일 수행이 tc 안에서 잘 되시나요?

저는 계속 권한오류로 잘 안되던데요. 어떤 비결이 있을까요?

 

dtb 를 좀더 이해하기 위한 자료나 위치를 좀 알려주시면 안될까요?

구글 서핑으로 터득하신걸까요? ^^

저도 핫포사이님께 처음으로 dtc 를 알려드린것도 서핑으로 알게 된거긴 하네요. ㅎㅎ

핫포사이 2022.04.20. 18:27
화정큐삼

TC에서는 아래처럼해서 변환했습니다.

 

chmod +x dtc

./dtc -I dts -O dtb ds920p.dts > model_ds920p.dtb

 

dtb는 jumkey님이 저에게 몇가지 힌트를 준것이 모두인데 제가 올린 가이드에 모두 적어놓았습니다.

3등
뻐럭 2022.04.20. 16:20

화정큐삼님 혹시 사용하는 H200 펌웨어 버전과 IT 모드 업데이트 하신건지 알수있을까요??

profile image
화정큐삼 글쓴이 2022.04.20. 17:16
뻐럭

2CPU 스캔|민현기님 강좌대로 따라 했습니다.

여기 첨부된 자료로 펌업했습니다.

https://www.2cpu.co.kr/lec/3116

 

profile image
화정큐삼 글쓴이 2022.04.21. 21:04

pocopico 님께 이 로그와 같이 봐달라고 요청을 했었는데

그냥 dtc 설정을 잘못해서 그런것이라고 치부해 버리시더군요.

이 로그 봐선 pocopico.mpt3sas 드라이버가 로딩이 실패한것인데, 이게 dtc 때문이라고만 할수가 있을런지...

pocopico.mpt3sas ext 자체의 문제가 아닌가 의심을 해봅니다.

강제로 ds918+ 의 pocopico.mpt3sas 로 바꾸어서 올려봤는데,  이렇게 하면 랜카드가 안올라오는것 같구요.

이후로 걸핏하면 랜카드가 안보여서 이래저래 바꿔가며 하는 시험이 힘들어서 지쳐가고 있습니다.

pocopico님만 풀 열쇠를 쥐고 게신것 같은데, 답답합니다.

 

SynologyNAS> cat /var/log/junior_reason

Exit on error [99] rp ext init exec failure...

SynologyNAS> cat /var/log/*rc*

START /linuxrc.syno.impl

'/etc.defaults/model.dtb' -> '/var/run/model.dtb'

Insert basic USB modules...

:: Loading module usb-common ... [  OK  ]

:: Loading module usbcore ... [  OK  ]

:: Loading module xhci-hcd ... [  OK  ]

:: Loading module xhci-pci ... [  OK  ]

:: Loading module usb-storage ... [  OK  ]

:: Loading kernel modules from extensions ...

Loading kmod #0 "e1000e.ko" for pocopico.e1000e (args: )

Loading kmod #0 "igb.ko" for pocopico.igb (args: )

Loading kmod #0 "raid_class.ko" for pocopico.mpt3sas (args: )

Loading kmod #1 "scsi_transport_sas.ko" for pocopico.mpt3sas (args: )

Loading kmod #2 "mpt3sas.ko" for pocopico.mpt3sas (args: )

Killed

ERROR: kernel extensions "mpt3sas.ko" from pocopico.mpt3sas failed to load

Exit on error [99] rp ext init exec failure...

Tue Apr 19 15:42:06 UTC 2022

none /sys/kernel/debug debugfs rw,relatime 0 0

SynologyNAS>

profile image
화정큐삼 글쓴이 2022.04.21. 22:53

이젠 원래 잘 붙던 SATA 마져도 랜이 안보이게 되네요.

SSD 1개만 붙여서 TC로 자동 patchdtc 돌리게 해서 정상 매핑까지 되었는데도 랜이 안보입니다.

인텔랜카드까지 의심을 하게 만드네요.

원래 ds920 이  처음 개발되었을때가 jumkey님 리얼텍 드라이버만 사용될때 였는데, 

이후 포코피코님 인텔 랜카드가 드라이버가 TC에서 안정적인 동작을 못하는게 아닌가도 싶습니다.

헤놀포럼에선 ds920 에러 리포트가 계속 올라오고 있으니 무언가 결론이 나지 않을까도 샆네요.

핫포사이 2022.04.22. 05:48
화정큐삼

제 생각에는 시놀 DS920를 보면 확장카드를 달수 없게 되어있습니다. DTB파일을 보아도 pcie_slot이 없죠.

하지만 시놀 DS1621에 보면 확장카드를 달수있는데 헤놀 DS1621 DTB파일을 보면

 

pcie_slot@1 {

pcie_root = "00:01.2";

 

이렇게 확장카드 주소를 넣을 수 있게 되어 있습니다. DS1621에서 테스트해보면 좋겠다는 생각을 해봅니다.

핫포사이 2022.04.22. 05:56
화정큐삼

또 한가지 생각 해볼수 있는 것은 DS920 DTB 파일에 아래 항목을 추가해서 테스트 해보는것도 좋겠습니다.

 

pcie_slot@1 {

pcie_root = "00:01.2";

profile image
화정큐삼 글쓴이 2022.04.22. 12:41
핫포사이

네, 좋은 생각입니다. 이따 퇴근해서 dts에 한번 추가해 보겠습니다.

 

2CPU dateno1 님의 생각이긴한데, TC가 드라이버를 과도하게 로딩하는 경향이 있다고 하셔서 그부분을 비교분석을 좀 해보려 합니다.

이 드라이버 문제로 레드필 오리지널에선 잘되던것이 TC와서 안되는 경우를 보셨다고 합니다.

 

HBA 드라이버인 mpt3sas 가 TC에서 로딩실패가 나는것도 일단은 찜찜합니다.

그래서, 툴체인으로 동일하게 만들어서 저 드라이버 로딩이 실패나는지도 한번 봐야 겠습니다.

다 같은 레드필 기반이라 동일할꺼라 생각했는데, 다른점이 분명 존재하는가 보네요.

profile image
화정큐삼 글쓴이 2022.04.22. 22:20
핫포사이

핫포사이님, ds920+ 툴체인으로 빌드 시험하다가 확인한 사항인데요.

 

처음 가이드 주신것처럼 첫번째 auto 에서 dtb 파일이 뭉게지지 않는것 같습니다.

 

build / auto 전에

 

./dtc -q -I dts -O dtb ds920p_output.dts > ./custom/extensions/redpill-dtb/ds920p_42661/model_ds920p.dtb

 

이것 먼저 해두고

 

그 다음 build / auto 까지 해봤는데 제가 저 위해서 1차 처리한 dtb 파일이 그대로 살아 있습니다.

 

그렇다는건 2번 auto 가 필요 없이 1번만으로 바로 사용해도 된다는것 아닌가요?

profile image
화정큐삼 글쓴이 2022.04.23. 00:02
화정큐삼

그리고, 툴체인으로 다시 빌드하고 해봐도 이부분 에러는 동일하게 납니다.

 

그래서, 포코피코님께 한번더 재확인 질문 날렸습니다.

 

https://xpenology.com/forum/topic/49226-redpill-extension-drivermodules-request/?do=findComment&comment=277736

 

정말로 dtb 설정만 문제가 있는것인지, 저 ko 드라이버 자체는 문제가 없는것인지...

 

Loading kmod #2 "mpt3sas.ko" for pocopico.mpt3sas (args: )

 

Killed

 

ERROR: kernel extensions "mpt3sas.ko" from pocopico.mpt3sas failed to load

 

Exit on error [99] rp ext init exec failure...

핫포사이 2022.04.23. 05:41
화정큐삼

첫번째 auto에서 필요한 디랙토리와 파일을 받아옵니다. 그래서 필요할것 같네요.

profile image
화정큐삼 글쓴이 2022.04.23. 08:59
핫포사이

아, 제가 착각했습니다.

필요한 디렉토리와 파일이 이미 존재한 상태였기에 auto가 한번만 수행하면 되었던거네요.

이미 빌드를 한번 해봤던 툴체인을 시놀에 게속 보관하고 있었거든요.

 

툴체인도 TC 처럼 download 과정으로 redpill-load 하위 폴더와 ./custom/extensions/redpill-dtb/ds920p_42661

폴더 등이 사전준비만 된다면 한번의 auto 만으로 가능할지도 모르겠다는 생각이 드네요.

맥주소주양주 2022.04.22. 12:25

DS920+의 랜카드 e1000e, r8125,igb등은 ds918+의 것을 가져다 쓰면 인식됩니다. json 파일을 수정하면 가능하고요. 아니면 수동으로 로딩하면 됩니다.

핫포사이 2022.04.22. 12:33
맥주소주양주

안녕하세요. json파일 수정은 제가 저번에 해보니 잘되었습니다. 그러데 수동 로딩은 잘못하겠더군요. 시간 나실때 수동로딩 방법을 상세히 가르쳐 주시면 고맙겠습니다.

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
공지 정보 DSM 7.2v) Mshell로 헤놀로지 부트로더 빌드하기. 61 달소 23.05.29.01:57 24409 +23
공지 정보 DSM 7.2v) ARPL-i18n(rr)으로 헤놀로지 부트로더 빌드하기. 72 달소 23.05.23.23:58 25963 +23
잡담 헤놀로 넘어오고 가장 만족스러운 부분 (Hyper Backup) 2 N4100 1일 전22:38 262 +1
잡담 RAID5(SHR)의 저장속도가 이렇게나 빠른거였네요.. (NVMe SSD삽질) 10 estel1 5일 전23:51 533 +2
가이드 시놀로지 도커로 Wireguard VPN + qBittorrent + tsharp(It's torr) 사용하기 12 펜타네스트 24.04.12.16:13 472 +4
5075 잡담
normal
TheSTREET 53분 전23:50 37 +1
5074 질문
image
햄뽁이아빠 1일 전23:42 193 0
5073 잡담
image
N4100 1일 전22:38 262 +1
5072 질문
normal
유기농밀크 1일 전14:28 231 0
5071 질문
image
ezcamp 1일 전11:15 224 0
5070 질문
image
두데 1일 전10:31 239 0
5069 질문
normal
서브어린이 2일 전20:33 143 0
5068 후기
image
추주비 2일 전12:21 285 0
5067 질문
image
서브어린이 3일 전19:59 512 0
5066 질문
normal
현이들아빠 3일 전15:02 197 0
5065 질문
image
서브어린이 3일 전12:18 459 0
5064 질문
image
지나가는_문과생 3일 전12:14 322 0
5063 질문
image
동도리군 3일 전07:16 118 0
5062 질문
normal
서브어린이 4일 전21:48 102 0
5061 질문
image
사십동 4일 전05:49 192 0
5060 질문
image
서브어린이 5일 전23:57 133 0
5059 잡담
image
estel1 5일 전23:51 533 +2
5058 질문
image
까칠한나그네 5일 전14:20 241 0
5057 질문
normal
라라라라데이 5일 전12:29 318 0
5056 질문
image
orange0909 5일 전12:20 328 0