DS920+/DS1621¿ë ·¹µåÇÊ Device-Tree-Compiler DTS to DTB ÀÚµ¿ »ý¼º ½ºÅ©¸³Æ® ÀÔ´Ï´Ù. (BETA)
FOXBI님 도움 받아서
dtb 파일을 생성해주는 쉘 스크립트를 만들었습니다.
dtc 작업이 필요한 DS920+ 나 DS1621+ 에 사용됩니다.
이 압축파일 안에는
dtc 실행파일
ds920p_output.dts
ds1621p_output.dts
auto-dtb.sh
4개의 파일이 있습니다.
Tinycore 에서 1차 시험을 마치긴 했는데,
툴체인(헤놀로지 대상PC에 우분투 필요) 안에서 사용하셔도 무방할것 같습니다.
Tinycore 코어의 /home/tc 폴더에 이 4개 파일 압축해제 하시고
툴체툴은 /redpill-tool-chain-main 폴더에 4개 파일 압축해제 하시고
chmod +x 로 권한 조정하시고
./auto-dtb.sh 만 실행해 주시면
내장 SATA Controller 의 Device ID 장치 ID 값을 찾아서 알아서 최종 dtb 파일까지 만들어서
이 파일이 사용되는 /custom/extensions/jumkey.dtb/_42218 폴더까지 복사를 마쳐 줍니다.
현재의 DS920+ 나 DS1621+ 는 SATA 장비에 붙는 HDD와 리얼텍 랜만 지원합니다.
참조 하시기 바랍니다.
tc 나 툴체인에서 위 작업 선행하시고 바로 빌드 들어가시면 됩니다.
활용 해보시고 문제점 알려주시면 보완하겠습니다.
차후 모든 플랫폼에 대응되도록 확장해 보겠습니다.
º°°Å ¾Æ´Ï¿´´Âµ¥ µµ¿òÀÌµÆ´Ù´Ï ±â»Ú³×¿ä ^^;
Tinycore ¾È¿¡¼µµ µÇ´Â°Å¿´±º¿ä Âü°íÇؼ
Àúµµ Çѹø ÇغÁ¾ß°Ú½À´Ï´Ù~
±ÍÇÑÁ¤º¸ °øÀ¯ÇØÁּż °¨»çÇÕ´Ï´Ù~
ÀÌ¹Ì ¹ÞÀ¸½ÅºÐÀº ±×´ë·Î ¾²¼Åµµ ¹«¹æÇÕ´Ï´Ù.
±â´É»óÀ¸·Ð µ¿ÀÏÇÕ´Ï´Ù.^^
ÀÚ·á ¼³¸í¿¡ ½áÁֽŠ¾Æ·¡ ³»¿ëÀÌ Á¶±Ý ±Ã±ÝÇØ ¿©Âã°íÀÚ ÇÕ´Ï´Ù.
¾Æ·¡ ³»¿ëÀº docker°¡ ½ÇÇàµÇ°í ÀÖ´Â Çì³îÀÇ ³»Àå SATA ÄÁÆ®·Ñ·¯¿Í µð¹ÙÀ̽º ID°ªÀ» dtb ÆÄÀÏ¿¡ ³Ö¾îÁÖ´Â °ÍÀΰ¡¿ä?
¾Æ´Ï¸é redpill-tool-chain-master Æú´õ¿¡ ³ÖÀº ¼öÁ¤ÇÑ output.dts ÆÄÀÏÀ» dtb ÆÄÀÏ¿¡ ³Ö¾îÁÖ´Â °ÍÀÎÁö¿ä?
./auto-dtb.sh ¸¸ ½ÇÇàÇØ Áֽøé
³»Àå SATA Controller ÀÇ Device ID ÀåÄ¡ ID °ªÀ» ã¾Æ¼ ¾Ë¾Æ¼ ÃÖÁ¾ dtb ÆÄÀϱîÁö ¸¸µé¾î¼
ÀÌ ÆÄÀÏÀÌ »ç¿ëµÇ´Â /custom/extensions/jumkey.dtb/_42218 Æú´õ±îÁö º¹»ç¸¦ ¸¶ÃÄ ÁÝ´Ï´Ù.
¹» À߸øÇß´ÂÁö ¸ô¶óµµ ¸ùµ¿ÀÌ´Ô °¡À̵带 ±âÁØÀ¸·Î ÈÁ¤Å¥»ï´ÔÀÇ Çì³î docker¸¦ ÀÌ¿ëÇÑ ¹æ¹ýÀ» ÅëÇØ ºÎÆ®·Î´õ À̹ÌÁö¸¦ ¸¸µé¾î ºÎÆÃÇÏ¸é ¼³Ä¡ ȸé±îÁø ³ª¿ÀÁö¸¸ Çϵåµð½ºÅ©°¡ ¾ø´Ù°í ³ª¿Í¼¿ä.
³»Àå SATA¸¦ ãÀ»¶§ ¸¶ºíĨÀº Á¦¿ÜÇÏ¸é ¿¡·¯°¡ ¾øÀ»±î ½Í¾î¼ Áö±Ý ½ÃÇèÁßÀÔ´Ï´Ù.
¿Ï¼ºµÇ¸é ¾÷µ¥ÀÌÆ® ¹öÀüÀ¸·Î Àç°øÀ¯ µå¸®°Ú½À´Ï´Ù.
redpill-tool-chain-master Æú´õ¿¡ ÀÖÀº output.dts´Â Á¦ ÇÁ·Î±×·¥¿¡¼ È°¿ëÇÏ°í ÀÖÁö ¾Ê°í,
Á¦°¡ zip À¸·Î °°ÀÌ ¹èÆ÷ÇÑ ds920p_output.dts, ds1621p_output.dts °¡ »ç¿ëµÇ¾î¾ß ÇÕ´Ï´Ù.
Çì³î¿¡¼ lspci -tvq Á¤º¸Á» ¿©±â¿¡ ´ñ±Û·Î ºÙ¿©Áֽðھî¿ä?
¸¶ºíÄÁÆ®·Ñ·¯°¡ °¡»óÀ¸·Î ÀâÇô¼ 00.0 ÀÌ µÎ¹ø »Ñ·ÁÁö´ø°¡ÇÏ´Â ¿À·ù°¡ ÀÖ¾î¾ß Çϴµ¥¿ä?
lspci -tvq Á¤º¸ È®ÀÎ ÈÄ ´ñ±Û ´Þ°Ú½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
+-02.0 Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086: 0412]
+-03.0 Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c]
+-14.0 Intel Corporation 9 Series Chipset Family USB xHCI Controller [8086:8cb1]
+-16.0 Intel Corporation 9 Series Chipset Family ME Interface #1 [8086:8cba]
+-1a.0 Intel Corporation 9 Series Chipset Family USB EHCI Controller #2 [8086:8cad]
+-1b.0 Intel Corporation 9 Series Chipset Family HD Audio Controller [8086:8ca0]
+-1c.0-[01]--
+-1c.2-[02]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Co ntroller [10ec:8168]
+-1c.3-[03-04]----00.0-[04]--
+-1d.0 Intel Corporation 9 Series Chipset Family USB EHCI Controller #1 [8086:8ca6]
+-1f.0 Intel Corporation 9 Series Chipset Family H97 Controller [8086:8cc6]
+-1f.2 Intel Corporation 9 Series Chipset Family SATA Controller [AHCI Mode] [8086:8c82]
\-1f.3 Intel Corporation 9 Series Chipset Family SMBus Controller [8086:8ca2]
È®ÀÎÇØ º¸´Ï ds920p_output.dts, ds1621p_output.dts ÀÌ ÆÄÀÏÀÌ Æ÷ÇÔµÈ zip ÆÄÀÏÀÌ ¾Æ´Ï¶ó ±×Àü¿¡ ¿Ã¶ó¿Â ÆÄÀÏÀ» ´Ù¿î ¹Þ¾Æ¼ ÇÏ°í ÀÖ¾ú³×¿ä.
´Ù½Ã ³»·Á ¹ÞÀº ÈÄ ds920p_output.dts ÆÄÀÏÀ» Á¦ º¸µå¿¡ ¸Â´Â sata °ü·Ã ÁÖ¼Ò·Î ¼öÁ¤ ÈÄ ./auto-dtb.sh ½ÇÇàÇÏ°í ºÎÆ®·Î´õ À̹ÌÁö »ý¼ºÇÏ¿© usb ¸¸µé¾î ºÎÆÃÇØ ¼³Ä¡ °¡´ÉÇؼ ¼³Ä¡Çϸé Áß°£¿¡ pat ÆÄÀÏ ¼Õ»óµÈ °Í °°´Ù´Â ¿¡·¯¸Þ½ÃÁö¿Í ÇÔ²² ¼³Ä¡°¡ Áߴܵdz׿ä. ¤Ð.¤Ì
½Ã³î·ÎÁö¿Í ´Ù¸¥ ¸®´ª½º¿Í lspci Á¤º¸·Î ¶ß´Â DEVICE-ID À§Ä¡¿Í ÀÚ¸´¼ö°¡ ´Ù¸£´Ù´Â°É ÀÌÁ¦ ¾Ë¾Ò³×¿ä.
½Ã³î·ÎÁö´Â Áß°£¿¡ 00: 3ÀÚ¸®°¡ ´õ µé¾î°¡¼ ÀÌ°Í º¸¿ÏÇϵµ·Ï ½©À» ´Ù½Ã Çѹø´õ ¼öÁ¤Çß½À´Ï´Ù.
Çì³î·ÎÁö¿¡¼ ½ÃÇèÇØ ºÃ´Âµ¥ ID Àß °¡Àú¿É´Ï´Ù.
pat ÆÄÀÏ ¼Õ»ó ¹®Á¦´Â ¶Ç ´Ù¸¥ ¹®Á¦ °°½À´Ï´Ù¸¸...
°Á¶õ¿¡ ÀÖ´Â https://www.2cpu.co.kr/lec/4288 ÈÁ¤Å¥»ï´Ô ±Û º¸°í µû¶óÇÏ´Â ÁßÀÌ¿¡¿ä ¤Ð.¤Ì
pat ÆÄÀÏ ¼Õ»ó¹®Á¦´Â ÀÏÀü¿¡ 918+ ¼³Ä¡ ½Ã¿¡µµ ÀÖ¾ú´ø ÀÏ·Î Á¦°¡ ¼³Ä¡ÇÏ·Á´Â NAS ¸ðµ¨°ú ½ÇÁ¦ ºÎÆ®·Î´õ ºôµå ½Ã ÁöÁ¤ÇÏ´Â ¸ðµ¨ÀÌ ´Þ¶úÀ» ¶§ ÀÖ¾ú´ø °Í °°Àºµ¥ À̺κаú ½Ã¸®¾óÀ» È®ÀÎÇØ º¸°Ú½À´Ï´Ù.
¼öµ¿À¸·Î º¯°æÇØ µÐ°ªÀ» Àú ½©ÀÌ ¹Ù²Ù¾î ¹ö¸±¼ö ÀÖ½À´Ï´Ù.
Select Platform is : ds920p
SATA Controller device-id: 1f.2
ÀÌ·±½ÄÀ¸·Î device-id °ªÀÌ Á¤È®È÷ ÂïÈ÷´ÂÁö È®ÀÎ ºÎŹµå¸³´Ï´Ù.
zip ÆÄÀÏÀº Çѹø¸¸ ´Ù½Ã ¹Þ¾Æ ³»·Á Áֽñ⠹ٶø´Ï´Ù.
±×·±µ¥ 7 ·¹µåÇÊ ºÎÅÍ´Â Á¶±Ý ¾ç»óÀÌ ´Ù¸£±ä ÇÕ´Ï´Ù.
internal_slot@1 {
protocol_type = "sata";
power_pin_gpio = <0x14 0x00>;
detect_pin_gpio = <0x23 0x01>;
led_type = "lp3943";
ahci { pcie_root = "00:12.0";
ata_port = <0x00>;
};
led_green {
led_name = "syno_led0";
};
led_orange {
led_name = "syno_led1";
};
};
ÀÌ·¸°Ô µÅ ÀÖÀ¸³ª ./auto-dtb.sh ÈÄ¿¡
redpill-tool-chain-master µð·ºÅ丮 ¾È¿¡ ÀÖ´Â ds920p_output.dts´Â ¾Æ·¡¿Í °°ÀÌ ³ª¿É´Ï´Ù.
internal_slot@1 {
protocol_type = "sata";
power_pin_gpio = <0x14 0x00>;
detect_pin_gpio = <0x23 0x01>;
led_type = "lp3943";
ahci { pcie_root = "00:";
ata_port = <0x00>;
};
led_green {
led_name = "syno_led0";
};
led_orange {
led_name = "syno_led1";
};
};
KiMA@NKM_Server:/volume1/_REDPILL/redpill-tool-chain-master$ ./auto-dtb.sh
version 0.1.1
1. XPEnology Linux
2. Tinycore Linux, Ubuntu, Debian Etc...
Select Linux TYPE : 1
1. tinycore
2. tool-chain
Select RED-PILL BUILDER TYPE : 2
1. ds920+
2. ds1621+
Select XPEnology platform : 1
Select Platform is : ds920p
SATA Controller device-id:
Should i update the ds920p_output.dts with these values ? [Yy/Nn]
y
ds920p_output.dts:17.14-23.5: Warning (unit_address_vs_reg): /DX517/pmp_slot@1: node has a unit name, but no reg or ranges property
ds920p_output.dts:25.14-31.5: Warning (unit_address_vs_reg): /DX517/pmp_slot@2: node has a unit name, but no reg or ranges property
ds920p_output.dts:33.14-39.5: Warning (unit_address_vs_reg): /DX517/pmp_slot@3: node has a unit name, but no reg or ranges property
ds920p_output.dts:41.14-47.5: Warning (unit_address_vs_reg): /DX517/pmp_slot@4: node has a unit name, but no reg or ranges property
ds920p_output.dts:49.14-55.5: Warning (unit_address_vs_reg): /DX517/pmp_slot@5: node has a unit name, but no reg or ranges property
ds920p_output.dts:58.18-75.4: Warning (unit_address_vs_reg): /internal_slot@1: node has a unit name, but no reg or ranges property
ds920p_output.dts:77.18-94.4: Warning (unit_address_vs_reg): /internal_slot@2: node has a unit name, but no reg or ranges property
ds920p_output.dts:96.18-113.4: Warning (unit_address_vs_reg): /internal_slot@3: node has a unit name, but no reg or ranges property
ds920p_output.dts:115.18-132.4: Warning (unit_address_vs_reg): /internal_slot@4: node has a unit name, but no reg or ranges property
ds920p_output.dts:135.18-152.4: Warning (unit_address_vs_reg): /internal_slot@5: node has a unit name, but no reg or ranges property
ds920p_output.dts:155.18-172.4: Warning (unit_address_vs_reg): /internal_slot@6: node has a unit name, but no reg or ranges property
ds920p_output.dts:174.15-180.4: Warning (unit_address_vs_reg): /esata_port@1: node has a unit name, but no reg or ranges property
ds920p_output.dts:182.13-195.4: Warning (unit_address_vs_reg): /usb_slot@1: node has a unit name, but no reg or ranges property
ds920p_output.dts:197.13-210.4: Warning (unit_address_vs_reg): /usb_slot@2: node has a unit name, but no reg or ranges property
ds920p_output.dts:212.14-215.4: Warning (unit_address_vs_reg): /nvme_slot@1: node has a unit name, but no reg or ranges property
ds920p_output.dts:217.14-220.4: Warning (unit_address_vs_reg): /nvme_slot@2: node has a unit name, but no reg or ranges property
Àú À§¿¡ °ªÀ¸·Î ºÁ¼± 1f.2 °¡ ã¾ÆÁ®¾ß Çϴµ¥, ¸øã¾Ò³×¿ä.
2,2,1 ¿É¼ÇÀ¸·Î ¹Ù²ã¼ Çѹø¸¸ ´Ù½Ã Çغ¸½Ã°Ú¾î¿ä?
°°Àº Çì³î·ÎÁöÀε¥µµ ¾î¶² ½ºÆåÀÇ Â÷ÀÌÀÎÁö ¸ð¸£°Ú´Âµ¥, DEVICE-ID Ç¥Çö»óÅ°¡ Àú¿Í´Â ´Ù¸£°Ô ÀÏ¹Ý ¸®´ª½ºÃ³·³ º¸ÀÌ½Ã´Â°Í °°½À´Ï´Ù.
°¡»ó ¸¶ºí SATAµµ ¾Èº¸À̽ó׿ä. DS918+ 6.2.3 ¾²½Ã´Â°ÅÁÒ?
¸ùµ¿ÀÌ´Ô ±Û º¸°í 920+·Î º¯°æÇغ¼±î ½ÃµµÇÏ´Â ÁßÀ̱¸¿ä.
918+ 7.0.1 Çì³îÀ̶ó 1,2,1·Î Çß¾ú´Âµ¥ 2,2,1·Î Çѹø Çغ¸°Ú½À´Ï´Ù. ¤¾¤¾
Áö±Ý ½Å±Ô ·¹µåÇÊ ¸ðµ¨µéÀº ¾ÆÁ÷ º£Å¸ ´Ü°è¶ó¼ ´õ ¾ÈÁ¤È ÀÛ¾÷ÀÌ ÇÊ¿äÇÑ »óȲÀÔ´Ï´Ù.
DS920+ µµ ±× °úÁ¤¿¡ ÀÖ´Â Ç÷§ÆûÀÌ¶ó º¸¿©¼ ½Ç»ç¿ëÀº Á¶±Ý ¹Ì·ç½Ã´Â°Ô ÁÁÀ»µí ÇÕ´Ï´Ù.
È£±â½É¿¡ ½ÃÇè¿ëÀ¸·Î ½ÃµµÇغ¸½Ã´Â°ÍÀ̶ó¸é ±¦Âú½À´Ï´Ù.
±×¸®°í 918+ ¿¡¼ 920+ ·Î º¯°æÇؼ ºÙÀÌ½Ã¸é ¸¶À̱׷¹À̼ÇÀ¸·Î ¶°¾ß Á¤»óÀÔ´Ï´Ù.
±× ¿ÜÀÇ »óÅ·Π½Å±Ô¼³Ä¡, À缳ġ°¡ µÇ´Â °æ¿ì´Â ¹«Çѹݺ¹À̳ª ¿À·ù·Î ºüÁ³´ø°Ô Áö±Ý±îÁö Á¦°¡ °æÇèÇß´ø Çö»óÀÔ´Ï´Ù.
¿ø·¡´Â ¸¶À̱׷¹À̼ÇÀ¸·Î ¶ß´Â°Ô ¸Â´Âµ¥ ¼³Ä¡ Áß pat ÆÄÀÏ ¼Õ»óµÆ´Ù°í ³ª¿Í¼ 918+ ºÎÆ®·Î´õ·Î ´Ù½Ã ¸¶À̱׷¹ÀÌ¼Ç ÇÑ ÀÌÈÄ·Î µ¥ÀÌÅͽºÅ©·´À» óÀ½ºÎÅÍ ´Ù½Ã ÇÏ´Â ¹Ù¶÷¿¡ 920+ ¼³Ä¡ Å×½ºÆ® ÇÒ ¶© 918+¿¡ ¿¬°áÇØ ³õÀº Çϵåµð½ºÅ© ¸ðµÎ ¾ðÇ÷¯±× ÇÏ°í Å×½ºÆ®¿ë Çϵå·Î Çß¾ú½À´Ï´Ù.
¸ÞÀÎÀ¸·Î µ¹¸®°í ÀÖ´Â Çì³îÀº Jun ·Î´õ¿¡ 3617xs 6.2.3 dl°í, Çϵåµð½ºÅ© Áõ¼³À» ¸ñÀûÀ¸·Î 4790k ½Ã½ºÅÛÀÌ Çϳª ³²¾Æ¼ ÀÌ°ÍÀú°Í Å×½ºÆ® ÇÏ´Â ÁßÀÔ´Ï´Ù.
ds918 7.0.1 Çì³îÀÌ ¹æ±Ý ¸»¾¸µå¸° Å×½ºÆ®¿ë 4790kÀ̱¸¿ä.