mrmvd Posted July 21, 2022 Share #326 Posted July 21, 2022 Just find this topic and test under VMWare ESXi 6.7U3. VMXNet3 driver did't work, E1000e boots fine. Thank you! Quote Link to comment Share on other sites More sharing options...
fbelavenuto Posted July 21, 2022 Author Share #327 Posted July 21, 2022 57 minutes ago, pocopico said: @fbelavenuto do you mind sharing the module build options ? I always wanted to create a how to for module and extension compilation but didn’t have the time or the willing 😛 more or less it is based on the syno released kernel source and the toolchain. Once i download these, the process goes like this KERNEL_SOURCE="/opt/dsm-kernel/broadwellnk/linux-4.4.x" KHOME="/opt/dsm-kernel/broadwellnk" function dsmmake(){ make \ CROSS_COMPILE="$KHOME/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/bin/x86_64-pc-linux-gnu-" \ CFLAGS="-I$KHOME/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/include/" \ LDFLAGS="-I$KHOME/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/lib/" \ RANLIB="/usr/bin/x86_64-linux-gnu-ranlib" \ LD="/usr/bin/x86_64-linux-gnu-ld" \ CC="/usr/bin/x86_64-linux-gnu-gcc" \ LD_LIBRARY_PATH="$KHOME/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib" \ -C "$KHOME/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-7.0/build/" \ ARCH=x86_64 M=`pwd` modules $@ } cd $KERNEL_SOURCE/drivers/virtio/ dsmmake CONFIG_VIRTIO=m CONFIG_VIRTIO_MMIO=m CONFIG_VIRTIO_PCI=m CONFIG_VIRTIO_PCI_LEGACY=m CONFIG_VIRTIO_BALLOON=m CONFIG_VIRTIO_INPUT=m I'm using this script: https://github.com/fbelavenuto/arpl-modules/blob/main/src/.compile.sh I use docker with old binutils/gcc instead toolchain from dsm 1 Quote Link to comment Share on other sites More sharing options...
fbelavenuto Posted July 21, 2022 Author Share #328 Posted July 21, 2022 12 minutes ago, mrmvd said: Just find this topic and test under VMWare ESXi 6.7U3. VMXNet3 driver did't work, E1000e boots fine. Thank you! I've tested with ESXi and really not works! Vmware player works! I not find the trouble yet. 2 Quote Link to comment Share on other sites More sharing options...
pocopico Posted July 21, 2022 Share #329 Posted July 21, 2022 (edited) 26 minutes ago, fbelavenuto said: I'm using this script: https://github.com/fbelavenuto/arpl-modules/blob/main/src/.compile.sh I use docker with old binutils/gcc instead toolchain from dsm please use the platform specific tool chain, the bin utils are not the only issue. There are syno specific libraries that should be taken into consideration during build. wrong binutils will result in unloadable modules, not using the toolchain will cause KPs and trouble in loading modules following the module after the last loaded. it’s easy and can be scripted like you did for the previous ones. Just extract the kernel in one stable directory and the tool chains in different directories. Then call different script function for each platform. Edited July 21, 2022 by pocopico 1 Quote Link to comment Share on other sites More sharing options...
sadog Posted July 22, 2022 Share #330 Posted July 22, 2022 (edited) I have fixed my issue, thanks Edited July 22, 2022 by sadog 1 Quote Link to comment Share on other sites More sharing options...
jrac86 Posted July 22, 2022 Share #331 Posted July 22, 2022 On 7/20/2022 at 1:24 AM, Orphée said: If you choose q35 machine, you will have a dummy/unused controller so your SataPortMap will have to be SataPortMap="1X" and DiskIdxMap="10XX" in my case : SataPortMap="18" DiskIdxMap="1000" Your disks in DSM will start at sdb and will see first disk slot unsused. Can you explain this more? So in my case, I have the dummy 6 port controller, then the 6 port controller with the sata0 img disk, then my 24 disk HBA card... What would my SatPortMap and DiskIdxMap be for this situation? Quote Link to comment Share on other sites More sharing options...
vbap Posted July 22, 2022 Share #332 Posted July 22, 2022 How would I re-install DSM using this tool? My system was working fine then made a network config error in DSM and now it won't get an IP. Physical syno box can "reset" button to reset network settings. I think for xpenology we need to do a re-install. Quote Link to comment Share on other sites More sharing options...
Orphée Posted July 22, 2022 Share #333 Posted July 22, 2022 2 hours ago, jrac86 said: Can you explain this more? So in my case, I have the dummy 6 port controller, then the 6 port controller with the sata0 img disk, then my 24 disk HBA card... What would my SatPortMap and DiskIdxMap be for this situation? Well, I don't know how 24 disks are handled by the HBA card, and how it can be addressed in SataPortMap. SataPortMap is set on only 1 digit... so 9 disks maximum... But I'm not an expert. In my case, with the HBA 8 disks, my conf was : SataPortMap=118 DiskIdxMap=100A00 1st controller = dummy/unused. 2nd controller = IMG Loader 3nd Controller = HBA card with my 8 slots But no matter DiskIdxMap setting, the dummy/unused controller seems to always be in /dev/sda So fist disk available in DSM is in slot 2. 1 Quote Link to comment Share on other sites More sharing options...
pocopico Posted July 22, 2022 Share #334 Posted July 22, 2022 (edited) 20 minutes ago, Orphée said: Well, I don't know how 24 disks are handled by the HBA card, and how it can be addressed in SataPortMap. SataPortMap is set on only 1 digit... so 9 disks maximum... But I'm not an expert. In my case, with the HBA 8 disks, my conf was : SataPortMap=118 DiskIdxMap=100A00 1st controller = dummy/unused. 2nd controller = IMG Loader 3nd Controller = HBA card with my 8 slots But no matter DiskIdxMap setting, the dummy/unused controller seems to always be in /dev/sda So fist disk available in DSM is in slot 2. Actually, we were able to reach 30 ports. Read the below and a few posts after that. SataPortMap values are neither decimal nor hex its based on ASCII values.(WTF? I know) Edited July 22, 2022 by pocopico 1 1 Quote Link to comment Share on other sites More sharing options...
pigr8 Posted July 22, 2022 Share #335 Posted July 22, 2022 10 hours ago, pocopico said: please use the platform specific tool chain, the bin utils are not the only issue. There are syno specific libraries that should be taken into consideration during build. wrong binutils will result in unloadable modules, not using the toolchain will cause KPs and trouble in loading modules following the module after the last loaded. it’s easy and can be scripted like you did for the previous ones. Just extract the kernel in one stable directory and the tool chains in different directories. Then call different script function for each platform. it would be cool to being able to add custom user modules on loader build, like if someone wants to add the extra Intel GPU ko in the tgz. well it can be done before building via cli easily tho. Quote Link to comment Share on other sites More sharing options...
pigr8 Posted July 22, 2022 Share #336 Posted July 22, 2022 10 hours ago, fbelavenuto said: I've tested with ESXi and really not works! Vmware player works! I not find the trouble yet. if you need testing i can provide support with esxi 7u3 1 Quote Link to comment Share on other sites More sharing options...
Edward Page Posted July 22, 2022 Share #337 Posted July 22, 2022 14 hours ago, fbelavenuto said: I think it's easier for me to generate an image with the module you want to test to see if it works. Marvell Yukon 2 Gigabit Ethernet (sky2.ko) now working fine! Thanks to all for help! 1 Quote Link to comment Share on other sites More sharing options...
mmkt Posted July 22, 2022 Share #338 Posted July 22, 2022 14 hours ago, fbelavenuto said: Try with this image: https://github.com/fbelavenuto/arpl/suites/7466951834/artifacts/305894996 Added firmwares the box won't show up in synofinder after rebuild from the scratch and reboot. Can someone give me a hint where to find or get the logs? Quote Link to comment Share on other sites More sharing options...
fbelavenuto Posted July 22, 2022 Author Share #339 Posted July 22, 2022 2 hours ago, pigr8 said: it would be cool to being able to add custom user modules on loader build, like if someone wants to add the extra Intel GPU ko in the tgz. well it can be done before building via cli easily tho. I'll re-add the download option, this way the user can add a custom addon that add the module Quote Link to comment Share on other sites More sharing options...
fbelavenuto Posted July 22, 2022 Author Share #340 Posted July 22, 2022 4 hours ago, vbap said: How would I re-install DSM using this tool? My system was working fine then made a network config error in DSM and now it won't get an IP. Physical syno box can "reset" button to reset network settings. I think for xpenology we need to do a re-install. Burn image, create the loader and re-install DSM keeping only the files. Quote Link to comment Share on other sites More sharing options...
fbelavenuto Posted July 22, 2022 Author Share #341 Posted July 22, 2022 12 hours ago, pocopico said: please use the platform specific tool chain, the bin utils are not the only issue. There are syno specific libraries that should be taken into consideration during build. wrong binutils will result in unloadable modules, not using the toolchain will cause KPs and trouble in loading modules following the module after the last loaded. it’s easy and can be scripted like you did for the previous ones. Just extract the kernel in one stable directory and the tool chains in different directories. Then call different script function for each platform. Hum, then this can be my problem! Thanks again! 1 Quote Link to comment Share on other sites More sharing options...
vbap Posted July 22, 2022 Share #342 Posted July 22, 2022 35 minutes ago, fbelavenuto said: Burn image, create the loader and re-install DSM keeping only the files. So only possible with new USB? I can't re-install with the existing USB? Quote Link to comment Share on other sites More sharing options...
fbelavenuto Posted July 22, 2022 Author Share #343 Posted July 22, 2022 19 minutes ago, vbap said: So only possible with new USB? I can't re-install with the existing USB? You can use the existing USB Quote Link to comment Share on other sites More sharing options...
vbap Posted July 22, 2022 Share #344 Posted July 22, 2022 24 minutes ago, fbelavenuto said: You can use the existing USB I tried to build the loader again using existing USB, clear cache, even generating new serial, but nothing happens (the . So no way to do this from the menu? I have to burn the image again (even if to same USB)? The system stays at this screen, showing new serial and has an IP, find.synology.com still detects the system with the old serial (and cant launch DSM). Quote Link to comment Share on other sites More sharing options...
SWAGG3R Posted July 22, 2022 Share #345 Posted July 22, 2022 4 минуты назад, vbap сказал: I tried to build the loader again using existing USB, clear cache, even generating new serial, but nothing happens (the . So no way to do this from the menu? I have to burn the image again (even if to same USB)? The system stays at this screen, showing new serial and has an IP, find.synology.com still detects the system with the old serial (and cant launch DSM). And before that DSM was launched? Quote Link to comment Share on other sites More sharing options...
jrac86 Posted July 22, 2022 Share #346 Posted July 22, 2022 5 hours ago, pocopico said: Actually, we were able to reach 30 ports. Read the below and a few posts after that. SataPortMap values are neither decimal nor hex its based on ASCII values.(WTF? I know) @pocopico Awesome, I used the SataPortMap as 11H and it seems to find all my disks. As @Orphée mentioned though, it see the dummy 6 port controller and my onboard 6 port controller, then the 24 disks from the disk shelf - this makes DSM start at disk 13 (since the first 12 are detected but not being used). If there any way to have DSM just skip over those first 2 controllers entirely as I will not be using them at all? Ideally would want the first disk in my disk shelf to be registered as Disk 1 in DSM. Quote Link to comment Share on other sites More sharing options...
Orphée Posted July 22, 2022 Share #347 Posted July 22, 2022 (edited) 17 minutes ago, jrac86 said: @pocopico Awesome, I used the SataPortMap as 11H and it seems to find all my disks. As @Orphée mentioned though, it see the dummy 6 port controller and my onboard 6 port controller, then the 24 disks from the disk shelf - this makes DSM start at disk 13 (since the first 12 are detected but not being used). If there any way to have DSM just skip over those first 2 controllers entirely as I will not be using them at all? Ideally would want the first disk in my disk shelf to be registered as Disk 1 in DSM. How did you set DiskIdxMap ? It should be like : DiskIdxMap=181900 Edited July 22, 2022 by Orphée Quote Link to comment Share on other sites More sharing options...
vbap Posted July 22, 2022 Share #348 Posted July 22, 2022 46 minutes ago, SWAGG3R said: And before that DSM was launched? DSM was not launched since I stuffed up a network config in DSM (my fault). The serial number in that screen shot is a newly generated SN, different to the one originally generated for the working DSM. I am happy to reinstall DSM, but wondering how to do this without burning arpl to the USB again. Can it be done from the menu.sh somehow? Quote Link to comment Share on other sites More sharing options...
jrac86 Posted July 22, 2022 Share #349 Posted July 22, 2022 (edited) 5 minutes ago, Orphée said: How did you set diskixdmap ? I tried SataPortMap as 00H and 11H without specifying the DiskIdxMap... Both ways gave the same result. Edited July 22, 2022 by jrac86 Quote Link to comment Share on other sites More sharing options...
SWAGG3R Posted July 22, 2022 Share #350 Posted July 22, 2022 4 минуты назад, vbap сказал: DSM was not launched since I stuffed up a network config in DSM (my fault). The serial number in that screen shot is a newly generated SN, different to the one originally generated for the working DSM. I am happy to reinstall DSM, but wondering how to do this without burning arpl to the USB again. Can it be done from the menu.sh somehow? for some reason, 3622xs+ didn’t work for me either, then I made a new bootloader with 920+ and everything started Configuration H410i Asus, i3 10100 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.