-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@jim3ma, Can GeminiLake, v1000, and r1000 be used as HBAs in lkm4? #14
Comments
I have compiled many HBA modules for SA6400. I'm sure SA6400 with DSM 7.2 works well with many HBA cards, like LSI and HBA 1000. |
What type of HBA did you test? Direct Boot was activated on ARPL-i18n, The serial port log below was confirmed. |
Yes, I have modified HBA drivers to match The kernel source between SA6400 and other machines are not different, but I think HBA is okay for those machines if update HBA drivers to match the synology kernel. |
It is correct to understand that HBA operates independently of model.dtb. And, it seems that kernel 4 already has a part related to sd_probe. https://github.com/search?q=repo%3APeterSuh-Q3%2Farpl-modules%20sd_probe&type=code This repo also contains kernel 5 sources, but sd_probe is not coded. |
The HBA did not operate model.dtb and only The |
I wanted to reference the code in your repo, Is it true that you are only giving me instructions? I am a beginner who has done module compilation in Ubuntu a few times. To resolve errors during compilation, you may also receive help from ChatGPT. |
You should compiling HBA drivers to meet |
I am referring to the repo below, which was compiled for Kernel 4.4.x, the source source, 4 years ago, as a model. I think it would be difficult to selectively refer to only the syno_disk_type you mentioned. I imported the entire scsi and commented out some functions that cause compilation errors. |
https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/7.1.1-42962/purley/linux-4.4.x.txz |
thank you The contents of the toolchain you provided and https://github.com/PeterSuh-Q3/arpl-modules/blob/main/src/4.x/drivers/scsi/virtio_scsi.c#L811 I'm testing Gemini Lake. And, I found a declaration that is already in use in kernel 5. I think the same thing can be applied to kernel 4 code. |
Different platforms use different mechanism, like SA6400 only supports |
The /drivers/scsi subcodes have been modified as per your instructions as shown below. The platform I am currently testing is Gemini Lake DS920+. I am currently testing one Intel SSD disk on a Dell Perc H200 in IT mode. The disk does not appear in /sys/block.
|
Your message.txt is missing some logs. |
In case there was any improvement, I replaced the /drivers/scsi/mpt3sas subdirectory with geminilake's original old version 09.102.00.00 and compiled it. [ 50.618684] mpt3sas version 09.102.00.00 loaded I did some Googling, and this problem seems to be a very tricky and difficult situation to analyze. Should we stop here? Attach the dmesg full log again. |
The most possible reason is the struct memory aligning due to the different The
You can disassemble vmlinux and find the code in |
https://github.com/PeterSuh-Q3/arpl-modules/blame/main/src/4.x/drivers/scsi/sd.c#L4666 In that line of code: CONFIG_SYNO_MULTIPATH_NATIVE_SAS_DEVICE_PREFIX |
I'm not clear. The |
And I've never done disassembly before, so I'll give it a try. objcopy -O binary -R .note -R .comment -S vmlinux vmlinux.bin objdump -D -b binary -m i386:vmlinux.bin |
After converted, you can use IDA Pro or other disassemble tools to analyze |
The last compiled mpt3sas.ko is PeterSuh-Q3/arpl-modules@b7b4acd The reason for the change is because I think SYNO_DISK_SAS should be used in sd_probe. I installed ida 8.3 free and opened the elf file as shown below. |
I don't think it works. You should analyze some struct size which
|
d7e0766
@jim3ma
I tried applying this new module you added for lkm5 to lkm4 yesterday.
https://xpenology.com/forum/topic/65408-automated-redpill-loader-arpl/?do=findComment&comment=449219
An issue where the disk serial, which is part of S.M.A.R.T information, cannot be displayed when using HBA in DS918+ (Apollo Lake) has been resolved.
Thank you so much for adding such a great feature.
I have one question or additional request.
The SA6400 is a Device-Tree based model, so is this a function that HBA can use?
I haven't been able to test SA6400 yet because I was concentrating on DS918+ in HBA yesterday.
If this were possible,
I hope that HBA will also be activated in existing Device-Tree based platforms such as lkm4, Gemini Lake, v1000, and r1000.
Is it possible?
The text was updated successfully, but these errors were encountered: