Jump to content
XPEnology Community

Develop and refine the DVA1622 loader


Recommended Posts

Posted (edited)

Ok, you need to find the port and pciepath :

 

1. cat /sys/block/sata1/device/syno_block_info
 

and then update your model.dtb using dtc 

 

2. /exts/redpill-dtb-static/dtc -I dtb -O /etc/model.dtb > /tmp/model.dts

 

edit the file according to the output of command 1. 

 

3. convert again the file to dtb 

 

. /exts/redpill-dtb-static/dtc -I dts -O dtb /tmp/model.dts > /etc/model.dtb

cp /etc/model.dtb /var/run/

 

 

 

 

 

 

Edited by pocopico
Link to comment
Share on other sites

OK I found, there is an error in your command:

  •  /exts/redpill-dtb-static/dtc -I dtb -O dts /etc/model.dtb > /tmp/model.dts

I modified the file, and I reinjected it, as you advised me, and the result:

hello.png.e28315162b3c4cd409aedfe9ece03cb9.png

Installing DSM = OK
Reboot, but I go back to the start, it no longer detects the disk for me.
The modification made to the .dtb file is not saved.
How to do please?

Link to comment
Share on other sites

Posted (edited)
58 minutes ago, scfrancis said:

OK I found, there is an error in your command:

  •  /exts/redpill-dtb-static/dtc -I dtb -O dts /etc/model.dtb > /tmp/model.dts

I modified the file, and I reinjected it, as you advised me, and the result:

hello.png.e28315162b3c4cd409aedfe9ece03cb9.png

Installing DSM = OK
Reboot, but I go back to the start, it no longer detects the disk for me.
The modification made to the .dtb file is not saved.
How to do please?

 

So its now working, to solve your issue permanently you need to have a manually patched dts.

 

To do so you can do the following :

 

1. Boot into TCRP 

2. login using ssh

3. cd /home/tc/custom-module

4. wget https://github.com/pocopico/tinycore-redpill/raw/develop/dva1622.dts

5. vi dva1622.dts 

6. cd /home/tc

7. ./rploader.sh restoresession dva1622_7.1.0-42661

8. ./rploader.sh build dva1622_7.1.0-42661

 

 

 

 

 

Edited by pocopico
Link to comment
Share on other sites

I am testing with VMWARE but I can´t detect any disk.

 

The .img detect disks with usb in baremetal.

 

The .vmdk not detect disks with VMWARE.

 

I am trying with TC in VMWARE but satamap show me this. I have DVA3221, DS918+, DS920+ in VMWARE whitout issue but DVA1622 can´t detect disks.

 

tc@box:~$ ./rploader.sh satamap now
Machine is VIRTUAL Hypervisor=VMware
Found SCSI HBAs, We need to install the SCSI modules
scsi-5.10.3-tinycore64 is already installed!
Succesfully installed SCSI modules

Found "02:04.0 VMware SATA AHCI controller"
Detected 30 ports/2 drives. Mapping SATABOOT drive after maxdisks
WARNING: Other drives are connected that will not be accessible!

Found SCSI/HBA "00:10.0 LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid bus number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (72 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)
lspci: -s: Invalid slot number
Found SCSI/HBA "" (0 drives)

Computed settings:
SataPortMap=1
DiskIdxMap=10

 

Captura de pantalla 2022-06-30 230609.png

Link to comment
Share on other sites

8 hours ago, apriliars3 said:
Found SCSI/HBA "00:10.0 LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)" (0 drives)
lspci: -s: Invalid slot number

@pocopico it looks like the "breakdown" of the chained lspci -d ::XXX command (change you made in rploader) is doing something untoward. Someone reported this specifically with LSI earlier this week, but I can't duplicate it.

 

@apriliars3 Don't connect your data vmdk to the same controller as your loader image.  Add another SATA controller and move the vmdk to it.  Then try to change DiskIdxMap to 1000.  EDIT: the diskidxmap worked for another user so I'll update the satamap logic.  You can manually edit in the meantime.

Link to comment
Share on other sites

16 hours ago, Peter Suh said:

@pocopico

 

I think I stumbled across the Typo while browsing platforms.h in your lkm repo.
Right above the last line, you can see one more ,
Any problems compiling lkm?

 

https://github.com/pocopico/redpill-lkm/blob/master/config/platforms.h

 

 

1208648250_2022-07-011_27_15.thumb.png.947ce864061b7339c64fd4b931f5b419.png

 

No, i didnt notice the extra comma, but i guess it makes no difference for GCC. All platform redpill modules compile fine.

Link to comment
Share on other sites

11 hours ago, apriliars3 said:
Found SCSI/HBA "00:10.0 LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)" (0 drives)

afair its not suggested (supported?) to have old style parallel scsi, it should be sata or at least lsi sas

Link to comment
Share on other sites

afair its not suggested (supported?) to have old style parallel scsi, it should be sata or at least lsi sas

Only I have redpill.v0.9.0.2.vmdk like sata and other disk like sata. I haven’t any disks like SCSI.

Also, I tested with loader.img compile in baremetal with a pc, but the same problem, only with loader.vmdk and another disk like sata.

I can’t tested with fisical disks every day formatting, so I test the images in virtual if they are functional.

For example, platform DS918+ no issue with detect disks, but DVA1622 no detect disks. Compile loader.img is similar but result different.

With platform DS920+ only I can detect disks in VMWARE with new .dbt by Peter Suh and script myv.sh.
Link to comment
Share on other sites

5 minutes ago, apriliars3 said:


Only I have redpill.v0.9.0.2.vmdk like sata and other disk like sata. I haven’t any disks like SCSI.

Also, I tested with loader.img compile in baremetal with a pc, but the same problem, only with loader.vmdk and another disk like sata.

I can’t tested with fisical disks every day formatting, so I test the images in virtual if they are functional.

For example, platform DS918+ no issue with detect disks, but DVA1622 no detect disks. Compile loader.img is similar but result different.

With platform DS920+ only I can detect disks in VMWARE with new .dbt by Peter Suh and script myv.sh.

 

DVA1622 does not use SataPortMap but DTS as does 920+ and ds1621+.

 

If the automatic patching is not working for you, you can always use the manual edit process and place the file under /home/tc/custom-module prior building the loader. 

 

The process is explained a few posts back

Link to comment
Share on other sites

Posted (edited)
3 hours ago, pocopico said:

 

DVA1622 does not use SataPortMap but DTS as does 920+ and ds1621+.

 

If the automatic patching is not working for you, you can always use the manual edit process and place the file under /home/tc/custom-module prior building the loader. 

 

The process is explained a few posts back

 

On baremetal detect disks well, both nuc j3455 and Lenovo Edge Thinkcentre Intel G2020.

 

the problem is in virtual since I can't test it on a physical hard drive.

In virtual I have tried two options and both without success:

- redpill.v0.9.0.2.vmdk like sata and other disk like sata. I haven't any disks like SCSI.

 

8ioxCwP.png

 

- Test with loader.img compile in baremetal that works with j3455 and G2020, only with loader.vmdk and another disk like sata.

 

Ao4HiLv.png

 

Mapping dva1622.dts not works for me with VMWare.

 

 

Edited by apriliars3
Link to comment
Share on other sites

Posted (edited)

Hey.

I was successful install on baremetal on a Laptop Del Inspiron.

- Internal display works.

- Transcode in jellyfin works.

- Recognized all disks.

- Only AI in survillance center not work.

 

image.thumb.png.30b1e52eca6c60a9ef5eb02725066e05.png

image.thumb.png.0508361fea35c2c500b82f5830f7b3be.png

Edited by iansc
  • Like 1
Link to comment
Share on other sites

Posted (edited)
46 minutes ago, iansc said:

I was successful install on baremetal on a Laptop Del Inspiron.

- Internal display works.

- Transcode in jellyfin works.

 

with a i7 3632qm (https://ark.intel.com/content/www/us/en/ark/products/71670/intel-core-i73632qm-processor-6m-cache-up-to-3-20-ghz-bga.html)

thats kind of interesting as (in theory) the dva1622 would have the same minimum as 918+/920+ (same platform gemini lake), 4th gen aka haswell, but with the hint already here (no cpu gen mentioned, only that its to old for the other dva, https://xpenology.com/forum/topic/63410-develop-and-refine-the-dva1622-loader/?do=findComment&comment=288453) and that now it seems the dva1622 is much more interesting as it might open the field for a lot of older systems using transcoding if it does not need 4th gen as minimum - i'd say need a test with something older like 2nd gen sandybridge or older (and a good look into the kernel config files of 920+ and dva1622)

 

46 minutes ago, iansc said:

...

- Only AI in survillance center not work.

that might be because of the differences in features of gpu gen's

https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video

its not documented yet what the min. requirement for the AI survailance to work, worst case it might be exclusive to gemini lake and above

Intel GPU Gen's (but there are also list of intel qsv gen's with differents gen numbers)
 

Gen 1     810, 815
Gen 2     i830M, 845G, 855GM, 865G
Gen 3     915G/GM, 945G/GM, G/Q33, Q35, Atom D4xx/D5xx/N4xx/N5xx
Gen 4     965G/GM/Q, G35, G41, G/Q43, G/GM/Q45
Gen 5     Nehalem (Ironlake)
Gen 6     Sandy Bridge
Gen 7     Ivy Bridge, Valley View, Bay Trail
Gen 7.5   Haswell
Gen 8     Broadwell, Cherryview
Gen 9     Skylake, Broxton, Apollo Lake
Gen 9.5   Kaby Lake, Coffee Lake, Gemini Lake
Gen 10    Cannon Lake
Gen 11    Elkhart Lake, Ice Lake
Gen 12    Tiger Lake

 

Edited by IG-88
Link to comment
Share on other sites

Posted (edited)
1 hour ago, IG-88 said:

with a i7 3632qm (https://ark.intel.com/content/www/us/en/ark/products/71670/intel-core-i73632qm-processor-6m-cache-up-to-3-20-ghz-bga.html)

thats kind of interesting as (in theory) the dva1622 would have the same minimum as 920+ (same platform gemini lake), 4th gen aka haswell, but with the hint already here (no cpu gen mentioned, only that its to old for the other dva, https://xpenology.com/forum/topic/63410-develop-and-refine-the-dva1622-loader/?do=findComment&comment=288453) and that now it seems the dva1622 is much more interesting as it might open the field for a lot of older systems using transcoding if it does not need 4th gen as minimum - i'd say need a test with something older like 2nd gen sandybridge or older (a o good look into the kernel config files of 920+ and dva1622)

I saw this in a previous post of yours, so I thought it was interesting to share.

I had tried installing the 920+ on this same laptop and it didn't work.

 

Edited by iansc
Link to comment
Share on other sites

4 minutes ago, iansc said:

I saw this in a previous post of yours so I thought it was interesting to share as I had tried installing the 920+ on this same laptop and it didn't work.

7.1 in both cases i guess?

the kernel config file should be in toolkit ds.geminilake-7.1.dev.txz and would be he same for both so it it will be difficult to find out what the difference is but as long as it works ...

maybe there are even more differences? best case the 8 cpu thread limit is gone too, maybe a vm with 16  cpu's can be used for testing to see if dva1622 uses more then 8 cpu threads

 

Link to comment
Share on other sites

6 minutes ago, IG-88 said:

7.1 in both cases i guess?

 

 

Yes.

 


I tried in an old fx 8350 and partial works. 
Disks not find, but i not tried a new installation, i used the disk and ubsdrive maked in the laptop.

Link to comment
Share on other sites

1 minute ago, iansc said:

I tried in an old fx 8350 and partial works. 

Disks not find, but i not tried a new installation, i used the disk and ubsdrive maked in the laptop.

@flyride if you do a new entry for dva1622 in the platform list for 7.x - looks like no min. cpu requirement like 4th gen intel

(at least not for booting, the AI surveillance needs intel qsv in a newer version then a 3rd gen has)

  • Like 1
Link to comment
Share on other sites

Posted (edited)
3 hours ago, IG-88 said:

i'd say need a test with something older like 2nd gen sandybridge or older (and a good look into the kernel config files of 920+ and dva1622)

@IG-88, I have make a test on 1st generation (i3-380M). Not work. 
System get boot, but installation of DMS goes until 56% and report error.

Edited by iansc
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...