Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

1 hour ago, pocopico said:

Have a look at @haydibe signature links to see if these help you 

 

In my case DSM can't see scsi and virtio, so first link doesn't help. Every other params I have set very similar.

Second give me some improvement because I can run DS918+ without flapping network interface. Previously, I had the same problem as with the DS3615 / 22 (flapping network)


But still can't install OS
Error 21 in the logs, corrupted file message on UI

Link to comment
Share on other sites

17 minutes ago, RacerX said:

I've seen that 21 error before with updates,  what kind of hardware are you running?

This is VM
Host is Gigabyte B365M + Intel Core I7-8700 + Qemu/KVM Virtualization
VM is Q35-2.6 (2.9, 3.1, 5.1) 3GB RAM
bootdisk mount as USB drive
 

Link to comment
Share on other sites

3 hours ago, VRx666 said:

I've been trying to install DS3615xs DS3617xs DS3622xs+ in VM (qemu/kvm).
On DS3615xs ethernet port (e1000e) is flapping, can't get ip address. DS3622xs+ same problem.
DS3617xs is ok., but when instaling OS always get at 55% possibly a corrupted file.

less /var/log/synoupdate.log 
2022/03/22 12:11:04     Start of the update...
2022/03/22 12:11:04     Upgrade from version 7.0.1.42218 to version 7.0.1.42218
2022/03/22 12:11:05     Failed to accomplish the update! (errno = 21)

VID/PID set correctly, Sataportmap set correctly. PAT file checksum coresponds with sum for pat file which was used to build loader.
 

@gadreel @seanone could You post some VM configuration for Unraid?
There where a lot of problems on Unraid even with 6.2 and Jun's loader, but no one wants to share their knowledge.
I don't know is this a community forum.
Someone asked on Unraid forum, but noone answered, same here.

 

@VRx666 Find attached a sample Unraid XML configuration...

unraid.xml

  • Thanks 1
Link to comment
Share on other sites

Hi @pocopico,

 

I've these suggestions to improve you Tinycore Redpill project:

  • Please, add the option to use a custom "redpill.ko" file. I've done a simple mod that overwrites the file after downloading it, but I prefer if you provide native support. For example supporting "auto", "compile" and "file_path.ko" options.
  • I see that the PAT file is not cached. This is very annoying as the download is slow. Why not save the file and reuse it? I've also done a simple patch that does this, so it's quite simple to achieve.
  • Finally, if the target platform is VIRTUAL, I suggest that the entries in the Bootloader will put first the SATA entry and second the USB. Then it will be more user friendly because the default one after the reboot is the correct entry. In any other case, the USB will continue to be the first, that will be more usefull for baremetal installs.

I hope you agree with that.
Regards.

 

Link to comment
Share on other sites

46 minutes ago, alienman said:

Hi @pocopico,

 

I've these suggestions to improve you Tinycore Redpill project:

  • Please, add the option to use a custom "redpill.ko" file. I've done a simple mod that overwrites the file after downloading it, but I prefer if you provide native support. For example supporting "auto", "compile" and "file_path.ko" options.
  • I see that the PAT file is not cached. This is very annoying as the download is slow. Why not save the file and reuse it? I've also done a simple patch that does this, so it's quite simple to achieve.
  • Finally, if the target platform is VIRTUAL, I suggest that the entries in the Bootloader will put first the SATA entry and second the USB. Then it will be more user friendly because the default one after the reboot is the correct entry. In any other case, the USB will continue to be the first, that will be more usefull for baremetal installs.

I hope you agree with that.
Regards.

 

 

Hi @alienman

 

thanks for the suggestions, i'm always open to suggestions or PRs to the repo.

 

1. What would be the purpose for that ? I can understand you want to maybe compile yourself the module but why ? Maybe i could provide additional versions for dev/test/prod. That, would make sense. 

 

2. You can download the pat and cache it on your remote desktop computer and scp the file to TC. Thats one option that we mostly use. 

 

3. Yes i understand, the concept though, is to interfere the least with what the developers have decided to do in their loader repo. So whatever the developer configures in his repo this is what you get.  Nevertheless you only select SATA the first time, then is should be saved as default. 

 

 

 

 

Edited by pocopico
Link to comment
Share on other sites

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?

Edited by bymaxi
Link to comment
Share on other sites

SSD not found (in Bios with AHCI mode available)

 

Hello Pocopico,

 

a new issue with an HP microserver gen8 

did an sataportmap to: 4444 and the diskidxmap to 00000000 and thought all disks would be found, ok for the 4 HDDs, but not for the SSD. 

Any ideas? 

 

thx a lot Keasee

 

user@ServerStation:/$ lspci -nnq

0000:00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v2/Ivy Bridge DRAM Controller [8086:0158] (rev 09)

0000:00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:0151] (rev 09)

0000:00:06.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port [8086:015d] (rev 09)

0000:00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)

0000:00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)

0000:00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b5)

0000:00:1c.6 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 [8086:1c1c] (rev b5)

0000:00:1c.7 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 [8086:1c1e] (rev b5)

0000:00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)

0000:00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev a5)

0000:00:1f.0 ISA bridge [0601]: Intel Corporation C204 Chipset LPC Controller [8086:1c54] (rev 05)

0000:00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller [8086:1c02] (rev 05)

0000:01:00.0 System peripheral [0880]: Hewlett-Packard Company Integrated Lights-Out Standard Slave Instrumentation & System Support [103c:3306] (rev 05)

0000:01:00.1 VGA compatible controller [0300]: Matrox Electronics Systems Ltd. MGA G200EH [102b:0533]

0000:01:00.2 System peripheral [0880]: Hewlett-Packard Company Integrated Lights-Out Standard Management Processor Support and Messaging [103c:3307] (rev 05)

0000:01:00.4 USB controller [0c03]: Hewlett-Packard Company Integrated Lights-Out Standard Virtual USB Controller [103c:3300] (rev 02)

0000:03:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]

0000:03:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe [14e4:165f]

0000:04:00.0 USB controller [0c03]: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller [1912:0014] (rev 03)

0001:07:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller [1b4b:9235] (rev 11)

0001:08:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller [1b4b:9235] (rev 11)

0001:09:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller [1b4b:9235] (rev 11)

0001:0a:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9235 PCIe 2.0 x2 4-port SATA 6 Gb/s Controller [1b4b:9235] (rev 11)

pcilib: Cannot write to /var/services/homes/user/.pciids-cache: No such file or directory

Edited by keasee
Link to comment
Share on other sites

15 hours ago, RacerX said:

I' think ds918 i the way to go for your board, however if you want a test ds3622 there is an extension for e1000e that would be good to test. I can help if you nee help loading it......

DS918 working but I cannot install OS - error21 (vhdd is present, networki is working).
I have tested ds3622 with e1000e extension but network is flapping.

Link to comment
Share on other sites

4 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?

 

Did you try SataPortMap=58 DiskIdxMap=0F00 ?

Link to comment
Share on other sites

16 hours ago, RacerX said:

I' think ds918 i the way to go for your board, however if you want a test ds3622 there is an extension for e1000e that would be good to test. I can help if you nee help loading it......

Thank You for some sugestions.
e1000e was flapping even on ds918, i have manually added e1000, and it is working for me.
But error 21 was caused because my bad configuration for virtual usb I think.
I've checked vm configuration from @gadreel and set model='qemu-xhci'.
Now after boot in console I can see synoboot1-3 partitions, and OS installed like a charm.
When installation process shows approx 50-55% there is unmount(remount) /dev/synoboot* partitions in the background, I haven't seen it before, I think it could be a problem.

Link to comment
Share on other sites

On 3/19/2022 at 1:33 PM, cospotato said:

 

Update:

 

I successfully access the DSM! The problem i was met is the 10G NIC IP has filled in the on-board 1G NIC. I captured package on that port found this.

 

Now the problem is:

 

If i install the 10G NIC card. Although rebuild loader in tinycore. But the system fall into restart loop.

 

Note: My 10G NIC cart is Intel 82599

 

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!

Edited by cospotato
Link to comment
Share on other sites

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

 

Did you try SataPortMap=58 DiskIdxMap=0F00 ?

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

Link to comment
Share on other sites

23 hours ago, pocopico said:

 

Hi @alienman

 

thanks for the suggestions, i'm always open to suggestions or PRs to the repo.

 

1. What would be the purpose for that ? I can understand you want to maybe compile yourself the module but why ? Maybe i could provide additional versions for dev/test/prod. That, would make sense. 

 

2. You can download the pat and cache it on your remote desktop computer and scp the file to TC. Thats one option that we mostly use. 

 

3. Yes i understand, the concept though, is to interfere the least with what the developers have decided to do in their loader repo. So whatever the developer configures in his repo this is what you get.  Nevertheless you only select SATA the first time, then is should be saved as default. 

 

 

 

 

Hi @pocopico

 

1. Yes, what I want to do it's use a redpill.ko compile by myself. Your current "compile" environment doesn't work right, and it doesn't permit to do modifications in the source and/or change the configuration. So I prefer to compile using the docker environment. However, please think the case when a user wants to test a new module that you don't provide. In this case it will useful to support (as example) "./rploader.sh build broadwellnk-7.0.1-42218 /home/tc/test/redpill.ko". In this case (when the parameter ends with "redpill.ko") you only need to overcome the download and copy from this path the module. Easy right?

 

2. I've downloaded too. But your script doesn't store the downloaded .pat file. Only if the user executes before calling to your script the command to create the directory ("mkdir -p /home/tc/redpill-load/cache") and copy the .pat file to it, then only in this case it will be used. That doesn't have much sense. Please, save the downloaded file in the cache and don't remove it. Or provide a documented method to provide it.

 

3. I know that the last selection in GRUB it's saved. And I accept that perhaps it's best to not change much what it's done by developers. I agree in this case with you.

 

Please, note another issue:

 

4. When I want to "remake" and no new version of the redpill exists, then in this case the process fails because some extensions are duplicated. In my case I need to execute BEFORE some commands to clean:  "rm -rf redpill-load/custom/extensions/pocopico.vmxnet3" and "rm -rf redpill-load/custom/extensions/thethorgroup.jg.boot-wait". I feel you can add to the script to remove all previously applied extensions.

 

And one question: When using a Virtual Machine it's a pain to use the X-Window of the TinyCore (the mouse doesn't work nice). You know how to start it in TEXT MODE only and print in the welcome page the IP of the ethernet interface? Then it will be more easy to see the address and SSH to it.

 

Regards.

Link to comment
Share on other sites

1 hour ago, alienman said:

And one question: When using a Virtual Machine it's a pain to use the X-Window of the TinyCore (the mouse doesn't work nice). You know how to start it in TEXT MODE only and print in the welcome page the IP of the ethernet interface? Then it will be more easy to see the address and SSH to it.

 

Press <alt-ctrl-F1> and there you are 

  • Thanks 2
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...