Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

5 hours ago, bymaxi said:

i made "SataPortMap": "2", "DiskIdxMap": "02", "sata_remap": "4\\>2:2\\>4:5\\>3:3\\>5"
and he sees two disks 3, 4.
If I do "SataPortMap": "3", "DiskIdxMap": "01", "sata_remap": "4\\>2:2\\>4:5\\>3:3\\>5"

it doesn't see disk 4

 

Thats not right, can you please pass the output of lsscsi -Hvt and lsscsi -vt

Link to comment
Share on other sites

pocopico

 

I'm sorry if i caused you any aggravation/ frustration in my previous posts that was not my intention.

 

New Test just today

Proxmox, Z370 Chelsio T520 Extension cxgb4,  Adaptec 71605 Extension aic94xx

Installed Proxmox 7.01-2 on NVME

Two spare SDD 120GB and 500GB connected to Adaptec 71605

 

I'm stuck at 55% 

 

when I look at the user config  the script ran this it's the stock config

"

SataPortMap": "58",
 "DiskIdxMap": "0A00"

 

lsscsi -Hvt
[0]    ahci          sata:
  dir: /sys/class/scsi_host//host0
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0
[1]    ahci          sata:
  dir: /sys/class/scsi_host//host1
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1
[2]    ahci          sata:
  dir: /sys/class/scsi_host//host2
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata3/host2
[3]    ahci          sata:
  dir: /sys/class/scsi_host//host3
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata4/host3
[4]    ahci          sata:
  dir: /sys/class/scsi_host//host4
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata5/host4
[5]    ahci          sata:
  dir: /sys/class/scsi_host//host5
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata6/host5
[6]    ahci          sata:
  dir: /sys/class/scsi_host//host6
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               7/host6
[7]    ahci          sata:
  dir: /sys/class/scsi_host//host7
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               8/host7
[8]    ahci          sata:
  dir: /sys/class/scsi_host//host8
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               9/host8
[9]    ahci          sata:
  dir: /sys/class/scsi_host//host9
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               10/host9
[10]    ahci          sata:
  dir: /sys/class/scsi_host//host10
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               11/host10
[11]    ahci          sata:
  dir: /sys/class/scsi_host//host11
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               12/host11
[12]    usb-storage   usb:10-1:1.0
  dir: /sys/class/scsi_host//host12
  device dir: /sys/devices/pci0000:00/0000:00:02.0/usb10/10-1/10-1:1.0/host12

 

l

sscsi -vt
[1:0:0:0]    cd/dvd  sata:ATA     QEMU DVD-ROM                            QM00003               /dev/sr0
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0]
[6:0:0:0]    disk    sata:ATA     QEMU HARDDISK                           QM00013               /dev/sda
  dir: /sys/bus/scsi/devices/6:0:0:0  [/sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata7/host6/target6:0:0/6:0:0:0]
[12:0:0:0]   disk    usb:10-1:1.0                    /dev/sdb
  dir: /sys/bus/scsi/devices/12:0:0:0  [/sys/devices/pci0000:00/0000:00:02.0/usb10/10-1/10-1:1.0/host12/target12:0:0/12:0:0:0]

 

 

Any help would be appreciated...

Edited by RacerX
Link to comment
Share on other sites

I would like ask for help, I am building apollolake-7.0.1-42218,

after this command: 

"sudo ./rploader.sh satamap now"

 

I am getting: 

 

tc@box:~$ sudo ./rploader.sh satamap now
HBA: 00:17.0 Disks : 4
ls: cannot access '/sys/devices/pci0000:00/0000:00:1b.0/0000:01:00.0/port*': No                   such file or directory
HBA: 00:1b.0 Disks : 0
ls: cannot access '/sys/devices/pci0000:00/0000:00:1b.0/0000:01:00.0/port*': No                   such file or directory
SataPortMap=40
DiskIdxMap=0001
Should i update the user_config.json with these values ? [Yy/Nn]

 

Probably this is nvme Samsun SM961 drive im M2 slot.

 

and after final command:

 

"sudo ./rploader.sh build apollolake-7.0.1-42218"

 

I am getting below messages: 

 

Found VGA Controller : pciid 8086d00001912  Required Extension : i915
Searching for matching extension for i915
Found SATA Controller : pciid 8086d0000a102  Required Extension : ahci
Searching for matching extension for ahci


 

At the end I am getting final ds918p_42218.pat file and DS918 is visible in the network and I can install DSM but I would like use nvme cache and maybe install missed drivers. i915,ahci.

I cannot find above extensions here: https://github.com/pocopico/rp-ext

 

My hardware: motherboard Asus Z170I Pro Gaming Mini ITX and Intel i5 6600K, 

 

Thanks

 

 

Link to comment
Share on other sites

19 hours ago, bymaxi said:

I haven't slept for 2 nights.  I get the error "We've detected errors on the hard drives (3, 4)…".  I have 4 HDDs installed, Sata 0-3 on the motherboard.  In redpill they are visible as 1,2,5,6.  
I have tried various Sataportmap and DiskIdxMap and even sata_remap.  
SataPortMap=6, DiskIdxMap=00 (error 3,4),

SataPortMap=4, DiskIdxMap=00 (error 3,4),

SataPortMap=2, DiskIdxMap=00 (only sees disks 1,2),

SataPortMap=2, DiskIdxMap=  04 (sees disks only 3.4).  

i have tried sata_remap and ahci_remap (4\\>2:2\\>4:5\\>3:3\\>5) in extra_cmdline and still getting disk 3.4 error.  

I am using h61m-ds2, core i3-2100, 8Gb RAM, DS3615xs.
Does anyone have any thoughts?

 

I'm getting the same Drive (3,4) errors no matter what I try (done basically the same you have, as well as setting the "internalportcfg" to 0x33 which should disregard drives 3 & 4 but it doesn't take any affect). 

My motherboard is a Gigabyte H81M-S2V - it has 2x SATA3 ports and 2x SATA2 ports. 

Any assistance grateful from the community to get this working on my hardware - it looks like a very common issue!

Link to comment
Share on other sites

7 hours ago, pehun said:

Talking about network cards, did anybody tried the 10GB synology card?

Have this since 1 or 2 years inside my xpeno...

 

The official synology cards have an odd pcie layout that seem to disable the card in a standard pcie slot - I purchased the latest version of their 10gig card from Amazon and the system did not even detect the card. 

Link to comment
Share on other sites

5 часов назад, pocopico сказал:

 

Thats not right, can you please pass the output of lsscsi -Hvt and lsscsi -vt

Цитата

tc@box:~$ lsscsi -Hvt
[0]    ahci          sata:
  dir: /sys/class/scsi_host//host0
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0
[1]    ahci          sata:
  dir: /sys/class/scsi_host//host1
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1
[2]    ahci          sata:
  dir: /sys/class/scsi_host//host2
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata3/host2
[3]    ahci          sata:
  dir: /sys/class/scsi_host//host3
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata4/host3
[4]    ahci          sata:
  dir: /sys/class/scsi_host//host4
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata5/host4
[5]    ahci          sata:
  dir: /sys/class/scsi_host//host5
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata6/host5
[6]    usb-storage   usb:1-1.1:1.0
  dir: /sys/class/scsi_host//host6
  device dir: /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host6

Цитата

tc@box:~$ lsscsi -vt
[0:0:0:0]    disk    sata:5000039fdef5c109           /dev/sda 
  dir: /sys/bus/scsi/devices/0:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0]
[1:0:0:0]    disk    sata:5000039fdecb26eb           /dev/sdb 
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0]
[4:0:0:0]    disk    sata:5000039fdef614ca           /dev/sdc 
  dir: /sys/bus/scsi/devices/4:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0]
[5:0:0:0]    disk    sata:5000039fdfc2af8e           /dev/sdd 
  dir: /sys/bus/scsi/devices/5:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata6/host5/target5:0:0/5:0:0:0]
[6:0:0:0]    disk    usb:1-1.1:1.0                   /dev/sde 
  dir: /sys/bus/scsi/devices/6:0:0:0  [/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host6/target6:0:0/6:0:0:0]

 

Here is what i get by doing lspci -nnq

 

Цитата

tc@box:~$ lspci -nnq
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b5)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation H61 Express Chipset Family LPC Controller [8086:1c5c] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller [8086:1c02] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 05)
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)

Thanks

Link to comment
Share on other sites

3 hours ago, Dvalin21 said:

Has anyone who is using perc H310, can you share your satamap and diskid? I had to end of migrating my old system from the 6.2.3 to 7.0.1 from 3617 to 3622. Thanks in advance.

Maybe this can help you.

 

https://github.com/pocopico/tinycore-redpill/issues/42

 

and this

 

https://xpenology.com/forum/topic/56163-discussion-on-lsi-array-cards-of-dsm70/?tab=comments#comment-267349

 

I think you have to flash your controller to IT mode and add drivers.

  • Like 1
Link to comment
Share on other sites

11 hours ago, RacerX said:

pocopico

 

I'm sorry if i caused you any aggravation/ frustration in my previous posts that was not my intention.

 

New Test just today

Proxmox, Z370 Chelsio T520 Extension cxgb4,  Adaptec 71605 Extension aic94xx

Installed Proxmox 7.01-2 on NVME

Two spare SDD 120GB and 500GB connected to Adaptec 71605

 

I'm stuck at 55% 

 

when I look at the user config  the script ran this it's the stock config

"


SataPortMap": "58",
 "DiskIdxMap": "0A00"

 


lsscsi -Hvt
[0]    ahci          sata:
  dir: /sys/class/scsi_host//host0
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata1/host0
[1]    ahci          sata:
  dir: /sys/class/scsi_host//host1
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata2/host1
[2]    ahci          sata:
  dir: /sys/class/scsi_host//host2
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata3/host2
[3]    ahci          sata:
  dir: /sys/class/scsi_host//host3
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata4/host3
[4]    ahci          sata:
  dir: /sys/class/scsi_host//host4
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata5/host4
[5]    ahci          sata:
  dir: /sys/class/scsi_host//host5
  device dir: /sys/devices/pci0000:00/0000:00:1f.2/ata6/host5
[6]    ahci          sata:
  dir: /sys/class/scsi_host//host6
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               7/host6
[7]    ahci          sata:
  dir: /sys/class/scsi_host//host7
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               8/host7
[8]    ahci          sata:
  dir: /sys/class/scsi_host//host8
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               9/host8
[9]    ahci          sata:
  dir: /sys/class/scsi_host//host9
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               10/host9
[10]    ahci          sata:
  dir: /sys/class/scsi_host//host10
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               11/host10
[11]    ahci          sata:
  dir: /sys/class/scsi_host//host11
  device dir: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata               12/host11
[12]    usb-storage   usb:10-1:1.0
  dir: /sys/class/scsi_host//host12
  device dir: /sys/devices/pci0000:00/0000:00:02.0/usb10/10-1/10-1:1.0/host12

 

l


sscsi -vt
[1:0:0:0]    cd/dvd  sata:ATA     QEMU DVD-ROM                            QM00003               /dev/sr0
  dir: /sys/bus/scsi/devices/1:0:0:0  [/sys/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0]
[6:0:0:0]    disk    sata:ATA     QEMU HARDDISK                           QM00013               /dev/sda
  dir: /sys/bus/scsi/devices/6:0:0:0  [/sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/0000:06:07.0/ata7/host6/target6:0:0/6:0:0:0]
[12:0:0:0]   disk    usb:10-1:1.0                    /dev/sdb
  dir: /sys/bus/scsi/devices/12:0:0:0  [/sys/devices/pci0000:00/0000:00:02.0/usb10/10-1/10-1:1.0/host12/target12:0:0/12:0:0:0]

 

11 hours ago, RacerX said:

 

Any help would be appreciated...

 

Do you select USB while at GRUB ? and have you set VID:PID correctly using :

 

./rploader.sh identifyusb now 

Link to comment
Share on other sites

A minor update on rploader.sh

 

The rploader.sh scripts has now two new features : 

 

1. backuploader/restoreloader so that you can backup and restore your loader contents.

2. mountdsmroot to mount your DSM root partition and perform any manual changes you like. e.g. fix the model.dtb, edit synoinfo.conf, copy over files,modules etc.

 

Also i have created a tcrp-diag extension that will try to collect some diagnostic information and save it to an HTML format file into the diag folder on the third partition of the loader where tinycore exists.

 

This will be very helpful for people that are headless, without serial console and not able to login remotely but not only. The tcrp-diag collection can be launced automatically if you add the word tcrpdiag in GRUB linux line (same line as sn, mac1 are ) , or it can be manually triggered once and if you have the option to telnet/ssh to DSM. 

 

The extension will always copy over to your DSM junior or DSM root the following files :

 

lsscsi

lspci

lsusb

dmidecode

dtb 

tcrp-diag.sh

 

and some required libraries.

 

Once you have succesfully resolv all your issues, you can proceed and recreate the loader without the tcrp-diag if you dont want it. 

 

enjoy.

 

 

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

On 3/23/2022 at 8:08 PM, cospotato said:

 

Hello @pocopico! My server is ok to boot without Intel 82599 NIC. If i install the NIC. Server fall into restart loop. How to debug?

 

Thanks!

Hi @pocopico. Please look around this problem. My Server is Microserver Gen8. If i install Intel 82599 NIC. The server fall into restart loop. 

 

Thanks !

Link to comment
Share on other sites

11 hours ago, painkiller895 said:

Plug in a intel nic card  Then build your loader.  it should work  Do not use internal card...

 

Hi @painkiller895

 

Thank you for your respond and interest. I installed a separate intel nic and tested all the bios and uefi  0.4.6 variants with DSM 7.0.1 of the tinycore/redpill loader but i can`t still not get any dhcp adress or access to the DSM setup homepage.

 

@pocopico I`ve tried to setup your tcrpdiag command in GRUB  to give me a hint, what the reason is, but unfortunately, i can`t get some disgnostic data. there ist nothing stored on my usb bootstick, in any folders of all partitions.. Do i have to setup this tcrpdiag command in the build command or can i place it normally with "e" in the GRUB boot screen so i can get some additional data for further research?

 

Thank you for your answers!

 

Dominik

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