Jump to content
XPEnology Community

TinyCore RedPill Loader Build Support Tool ( M-Shell )


Peter Suh

Recommended Posts

27 minutes ago, Peter Suh said:

 

The following error was confirmed in dmesg.
The module has been stopped due to an error while loading.

 

[    6.292765] mpt3sas version 41.00.00.00 loaded
[    6.292933] mpt3sas 0000:07:00.0: can't disable ASPM; OS doesn't have ASPM control
[    6.293178] mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (6096876 kB)
[    6.293360] mpt2sas_cm0: doorbell is in use  (line=4858)
[    6.293475] mpt2sas_cm0: _base_get_ioc_facts: handshake failed (r=-14)
[    6.293616] mpt2sas_cm0: _base_unmap_resources
[    6.293734] mpt2sas_cm0: failure at /tmp/input/drivers/scsi/mpt3sas/mpt3sas_scsih.c:16235/_scsih_probe()!


The same phenomenon was confirmed on H310 using the same mpt3sas module.
I am checking this with @wjz304 of ARPL-i18n.

This issue is partially written in Chinese, but please use a translator.


https://github.com/wjz304/arpl-i18n/issues/209

 

 

 

 

 

Thanks a lot so now this needs to get fixed and once done rebuild the loader again. I take it this is WIP now to get fixed.

 

Thanks again for all your help & support with all of this.

 

I hope there is a fix soon. 

 

I take it this is just a messed-up DSM Partition that needs to get re-installed. 

Edited by Vodka2014
Link to comment
Share on other sites

11 hours ago, Vodka2014 said:

 

Thanks a lot so now this needs to get fixed and once done rebuild the loader again. I take it this is WIP now to get fixed.

 

Thanks again for all your help & support with all of this.

 

I hope there is a fix soon. 

 

I take it this is just a messed-up DSM Partition that needs to get re-installed. 

 

 

This is a review of what I experienced in the past on Dell Perc H310 with DSM 6.2.3.

 

At that time, there was a problem in which some disks were not recognized by the HBA, and there was a difficult time because the RAID in DSM kept failing.

 

According to the advice of RAID controller experts, most of the IT Mode firmware used in SAS controllers are legacy firmware.

 

It is recommended to change the Storage Boot Option to Legacy instead of EFI during BIOS setup in MOBO.

 

Of course, EFI firmware also exists separately.

 

230913130340.thumb.jpeg.cf8c595df7704c3e5044db1e75407ab5.jpeg


By doing this, the SAS controller's BIOS boot screen will additionally appear as shown below during BIOS booting,

 

and sufficient timing to accurately detect disks can be obtained during this process.

 

H200-IT-SAS2008-6Gbps-SAS-HBA-LSI-9211-8i-FW-P20-ZFS-FreeNAS-unRAID.thumb.jpg.bf9de24f3cc95435ecfba67ae4ff8f45.jpg

 

As advised by experts, I always use the Storage Boot Option when using an HBA. Fast Boot is also not used.

 

After maintaining these settings, the phenomenon of losing disks from DSM has decreased significantly.

 

I think this theory can be applied to DSM 7 as well.

 

Does a setting like this exist in HP GEN8?

Link to comment
Share on other sites

1 hour ago, Peter Suh said:

 

 

This is a review of what I experienced in the past on Dell Perc H310 with DSM 6.2.3.

 

At that time, there was a problem in which some disks were not recognized by the HBA, and there was a difficult time because the RAID in DSM kept failing.

 

According to the advice of RAID controller experts, most of the IT Mode firmware used in SAS controllers are legacy firmware.

 

It is recommended to change the Storage Boot Option to Legacy instead of EFI during BIOS setup in MOBO.

 

Of course, EFI firmware also exists separately.

 

230913130340.thumb.jpeg.cf8c595df7704c3e5044db1e75407ab5.jpeg


By doing this, the SAS controller's BIOS boot screen will additionally appear as shown below during BIOS booting,

 

and sufficient timing to accurately detect disks can be obtained during this process.

 

H200-IT-SAS2008-6Gbps-SAS-HBA-LSI-9211-8i-FW-P20-ZFS-FreeNAS-unRAID.thumb.jpg.bf9de24f3cc95435ecfba67ae4ff8f45.jpg

 

As advised by experts, I always use the Storage Boot Option when using an HBA. Fast Boot is also not used.

 

After maintaining these settings, the phenomenon of losing disks from DSM has decreased significantly.

 

I think this theory can be applied to DSM 7 as well.

 

Does a setting like this exist in HP GEN8?

 

Thanks for this. It is already on Legacy (will triple check) and the disks do show on the controller all 4 of them.  The interesting thing is it worked the first time when i updated then it went dead in DSM.

 

 

Edited by Vodka2014
Link to comment
Share on other sites

On 8/5/2023 at 3:32 PM, Peter Suh said:

[HBA - H200, H310 recommended setting]

 

DDSML, DS3622xs+, not EUDEV

 

"DiskIdxMap": "1000",
"SataPortMap": "12",
"SasIdxMap: "0",
"MaxDisks: "24"

I built another baremetal with H310 IT-mode (latest DS3622xs+ with Friend). When i set as you mention then i see all 8 drives connected to H310 but i also have 2 drives connected to motherboard (sata1 and 2) and those 2 drives has not been detected.

 

obraz.png.b02332193a8101479763549155c552fe.png

 

In default configuration (DiskIdxMap=0, SasIdxMap=0 SataPortMap) 2 drives connected directly to motherboard are detected as bay 1 and 2 but not all drives connected to H310 are detected - it shows only 5 drives in bay 8,9,10,11,12 - it looks like channels are duplicated (channel A - 8,9,10,11 and channel B - 9,10,11,12).

I tried a lot of "DiskIdxMap & SataPortMap" combinations and always some of drives has not been detected. I don`t understand "logic" of those two variables but FINALLY with:

DiskIdxMap=0011

SataPortMap=24

SasIdxMap=0

MaxDisks=24

 

all drives has been detected - maybe not perfectly but it works!!
1-2 bay - motherboards sata 1 and 2

3 bay is empty?

4-11 bay - 8 drives connected to H310

 

BUT for test i connected another drive... to sata6 port on motherboard, then all H310`s drives disapper :D only sata1&2 has been showed. WTF...

 

if I understand correctly SataPortMap=xyz means:

- x - numer of sata port on 1st controller
- y - numer of sata port on 2nd controller
- z - numer of sata port on 3rd controller

...

So in my example should be 68 (6 ports on internal controller and 8 ports on H310). But how to understand DiskIdxMap?? How should i set it?

 

 

Edited by shibby
Link to comment
Share on other sites

23 minutes ago, shibby said:

I built another baremetal with H310 IT-mode (latest DS3622xs+ with Friend). When i set as you mention then i see all 8 drives connected to H310 but i also have 2 drives connected to motherboard (sata1 and 2) and those 2 drives has not been detected.

 

obraz.png.b02332193a8101479763549155c552fe.png

 

In default configuration (DiskIdxMap=0, SasIdxMap=0 SataPortMap) 2 drives connected directly to motherboard are detected as bay 1 and 2 but not all drives connected to H310 are detected - it shows only 5 drives in bay 8,9,10,11,12 - it looks like channels are duplicated (channel A - 8,9,10,11 and channel B - 9,10,11,12).

I tried a lot of "DiskIdxMap & SataPortMap" combinations and always some of drives has not been detected. I don`t understand "logic" of those two variables but FINALLY with:

DiskIdxMap=0011

SataPortMap=24

SasIdxMap=0

MaxDisks=24

 

all drives has been detected - maybe not perfectly but it works!!
1-2 bay - motherboards sata 1 and 2

3 bay is empty?

4-11 bay - 8 drives connected to H310

 

BUT for test i connected another drive... to sata6 port on motherboard, then all H310`s drives disapper :D only sata1&2 has been showed. WTF...

 

if I understand correctly SataPortMap=xyz means:

- x - numer of sata port on 1st controller
- y - numer of sata port on 2nd controller
- z - numer of sata port on 3rd controller

...

So in my example should be 68 (6 ports on internal controller and 8 ports on H310). But how to understand DiskIdxMap?? How should i set it?

 

 

 

Hi @shibby

 

This is interesting. So since i have 4 Disks on the LSI 9211-4i what should I try and use ? 

 

I am using the below:

 

"DiskIdxMap": "1000",
"SataPortMap": "12",
"SasIdxMap: "0",
"MaxDisks: "16"

 

Link to comment
Share on other sites

@wjz304 and that is solution for my issue. It looks like DS3622xs+ has limit to 12 drives. I changed internal/esata/usbportcfg to 24 drives and now i see all my disks

 

obraz.png.f249db2acad55404ad94bec853228f30.png

1-6 - internal sata ports on motherboard

7 - empty? i dont know what is it and why is it here?

8-15 - 8 drives from H310

 

SataPortMap=68

DiskIdxMap=0000

 

Edited by shibby
Link to comment
Share on other sites

34 minutes ago, shibby said:

@wjz304 and that is solution for my issue. It looks like DS3622xs+ has limit to 12 drives. I changed internal/esata/usbportcfg to 24 drives and now i see all my disks

 

obraz.png.f249db2acad55404ad94bec853228f30.png

1-6 - internal sata ports on motherboard

7 - empty? i dont know what is it and why is it here?

8-15 - 8 drives from H310

 

SataPortMap=68

DiskIdxMap=0000

 

 

Hi @shibby

 

Did you have to leave the SasIdxMap in still or only update those 2 values ?

Link to comment
Share on other sites

2 minutes ago, shibby said:

@Vodka2014 your settings looks correct if you are using only LSI card for drives. If all drives are detected you dont have to change anything.

 

i didnt touch SasIdxMap so it is set to 0.

 

Interesting that you got the H310 to work when https://github.com/wjz304/arpl-i18n/issues/209 is the same issue i am having on DS3622xs+. 

 

The driver is crashing it seems. 

Link to comment
Share on other sites

1 minute ago, wjz304 said:

The calculation of SataPortMap and DiskIdxMap should be combined with the specific information of the controller, rather than WYSIWYG. The table above calculates internalportcfg, esatportcfg, usbportcfg, and maxdisks.  recommended not to set SataPortMap and DiskIdxMap

 

因此,将“”保留为无值或将其设置为 0

 

So leave it is "" with no value or set it to 0

Link to comment
Share on other sites

Just now, Vodka2014 said:

 

因此,将“”保留为无值或将其设置为 0

 

So leave it is "" with no value or set it to 0

 

Yes, my suggestion is to abandon SataPortMap and DiskIdxMap,

If there are any issues, they can be improved by modifying internalportcfg, esatportcfg, usbportcfg, and maxdisks

  • Like 1
Link to comment
Share on other sites

@Peter Suh i have another problem on DS3622xs+, this time is my 10GbE netcard - tn40xx driver. Fresh instalation using M-Shell and card is not detected - dmesg shows only:

Quote

[  132.060523] tn40xx low_mem_msg proc entry initialized
[  132.060757] tn40xx low_mem_counter proc entry initialized
[  132.060991] tn40xx debug_msg proc entry initialized
[  132.061202] tn40xx: Tehuti Network Driver, 0.3.6.12.3

 

but if i unload this module (modprobe -r tn40xx) and download this module

https://github.com/PeterSuh-Q3/arpl-modules/blob/main/broadwellnk-4.4.302/tn40xx.ko

 

and load (insmod <file> then card is shows up

Quote

[ 1392.085373] tn40xx: Tehuti Network Driver, 0.3.6.14
[ 1392.085560] tn40xx: Supported phys : MV88X3120 MV88X3310 MV88E2010 QT2025 TLK10232 AQR105
[ 1392.085967] tn40xx 0000:05:00.0: enabling device (0000 -> 0002)
[ 1392.086292] tn40xx: srom 0x0 HWver 16 build 0 lane# 4 max_pl 0x0 mrrs 0x2
[ 1392.299150] tn40xx: PHY detected on port 0 ID=2B09AB - MV88X3310 (A1) 10Gbps 10GBase-T
[ 1392.299446] tn40xx: PHY type by svid 0 found 4
[ 1395.367040] tn40xx: MV88X3310 firmware code is running
[ 1395.367317] tn40xx: MV88X3310 FW version is 0.2.4.0
[ 1395.555744] tn40xx: fw 0xe
[ 1395.555860] tn40xx: eth1, Port A
[ 1395.556001] tn40xx: 1 1fc9:4027:1432:8104
[ 1395.556161] tn40xx: detected 1 cards, 1 loaded

 

How can i include correct driver to TCRP?

Edited by shibby
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...