Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

29 minutes ago, haydibe said:

The output difference is because of the `-f G` parameter

The formatting indeed seems to be the case:

root@ds918p:~# iperf3 -c 192.168.1.158
Connecting to host 192.168.1.158, port 5201
[  5] local 192.168.1.246 port 35082 connected to 192.168.1.158 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  6.31 GBytes  54.2 Gbits/sec    0   3.02 MBytes       
[  5]   1.00-2.00   sec  6.34 GBytes  54.5 Gbits/sec    0   3.02 MBytes       
[  5]   2.00-3.00   sec  6.19 GBytes  53.1 Gbits/sec    0   3.02 MBytes       
[  5]   3.00-4.00   sec  6.31 GBytes  54.2 Gbits/sec    0   3.02 MBytes       
[  5]   4.00-5.00   sec  6.29 GBytes  54.0 Gbits/sec    0   3.02 MBytes       
[  5]   5.00-6.00   sec  6.30 GBytes  54.1 Gbits/sec    0   3.02 MBytes       
[  5]   6.00-7.00   sec  6.25 GBytes  53.7 Gbits/sec    0   3.02 MBytes       
[  5]   7.00-8.00   sec  6.24 GBytes  53.6 Gbits/sec    0   3.02 MBytes       
[  5]   8.00-9.00   sec  6.32 GBytes  54.3 Gbits/sec    0   3.02 MBytes       
[  5]   9.00-10.00  sec  6.22 GBytes  53.5 Gbits/sec    0   3.02 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  62.8 GBytes  53.9 Gbits/sec    0             sender
[  5]   0.00-10.04  sec  62.8 GBytes  53.7 Gbits/sec                  receiver

iperf Done.
root@ds918p:~# iperf3 -c 192.168.1.158 -R
Connecting to host 192.168.1.158, port 5201
Reverse mode, remote host 192.168.1.158 is sending
[  5] local 192.168.1.246 port 35094 connected to 192.168.1.158 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  5.27 GBytes  45.3 Gbits/sec                  
[  5]   1.00-2.00   sec  5.47 GBytes  47.0 Gbits/sec                  
[  5]   2.00-3.00   sec  5.47 GBytes  47.0 Gbits/sec                  
[  5]   3.00-4.00   sec  5.47 GBytes  47.0 Gbits/sec                  
[  5]   4.00-5.00   sec  5.42 GBytes  46.6 Gbits/sec                  
[  5]   5.00-6.00   sec  5.46 GBytes  46.9 Gbits/sec                  
[  5]   6.00-7.00   sec  5.46 GBytes  46.9 Gbits/sec                  
[  5]   7.00-8.00   sec  5.45 GBytes  46.8 Gbits/sec                  
[  5]   8.00-9.00   sec  5.41 GBytes  46.5 Gbits/sec                  
[  5]   9.00-10.00  sec  5.50 GBytes  47.3 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec  54.4 GBytes  46.5 Gbits/sec  784             sender
[  5]   0.00-10.00  sec  54.4 GBytes  46.7 Gbits/sec                  receiver

iperf Done.

 

But lower bandwidth from PVE -> DSM and retries seems to be consistent with your findings.

 

@haydibeDo you get the link speed displayed on DSM?

 

Link to comment
Share on other sites

19 hours ago, blu001 said:

Anyone successful to install on microserver gen8 and Proxmox?
When I reboot after building I can't reach the vm (no ping). I've tried virtio, E1000 and Realtek adapters in Proxmox, with no success.

For Proxmox I've used this configuration from user haydibe (changed  disk and memory size and the name of the file downloaded from github):

 

Is there any known problem with Microserver gen8 embedded ethernet adapter?


I am facing the exact same issue on HP MicroServer Gen8 on ProxMox VE7.1-7 with the same output on serial console.
I have also tried the various virtual adapters (Virtio, RealTek, e1000) and DS models on SATA boot.
I cannot get a DHCP IP lease and thus the DiskStation cannot be found (DS918+/DS3615xs)

*TinyCore works using the same virtual ethernet adapter


@blu001 Can I confirm that when you run with parameters 'listmods now' that the Ethernet Interface shows "No Matching Extension"?



tc@box:~$ ./rploader.sh listmods now

Testing modules.alias.json -> File OK
------------------------------------------------------------------------------------------------
It looks that you will need the following modules :


Found VGA Controller : pciid 1234d00001111  Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension

 

Link to comment
Share on other sites

4 hours ago, alvink said:

I have also tried the various virtual adapters (Virtio, RealTek, e1000) and DS models on SATA boot.

Virtio, USB-Boot should work fine with when the vm is created from the cli with the commands I provide in my signature.

 

As long as the hardware is properly detected on the hypervisor level, the pysical hardware shouldn't matter. Proxmox (and every other hypervisor) emulate the same set of virtual hardware component for vm's regardless of the physical compoentnes the Proxmox server is run on.

 

4 hours ago, alvink said:

Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension

 This is with a Virtio vnic?! 

 

4 hours ago, alvink said:

I cannot get a DHCP IP lease and thus the DiskStation cannot be found (DS918+/DS3615xs)

Are you sure you are connected to the correct bridge? Since it's working with TC, I would assume to work identicaly with DMS7. In every of my installations on three different hosts, it was always the case.

Link to comment
Share on other sites

1 hour ago, haydibe said:

 This is with a Virtio vnic?! 


 

Hi @haydibe - a quick thank you to your Proxmox instructions which I used when I first started testing!
 

tc@box:~$ lspci | grep Ethernet
06:12.0 Ethernet controller: Red Hat, Inc Virtio network device


Indeed, the VirtIO vnic does not get matched. Attached are the screenshots of the combinations I tried.
And even though Intel E1000 and RealTek RTL-8139 were  'detected' by rploader.sh, the VM still could not obtain an IP on the network.

Tiny Core and a few other Linux distributions worked using the same virtual network bridge (vmbr0).

I agree that virtualization should have abstracted and emulated the virtual devices. Perhaps it could be due to issues between Proxmox and the hardware which is why I wanted to chime in and check if anybody else faced the same issue since the Microserver Gen8 is quite commonly seen here.

*Baremetal DS3617xs (I think DS3615xs gave some issues) worked with the exact hardware/NIC.

proxmox_virtio.thumb.jpg.fc8d9f6a213784a8a884d62c47efb296.jpg
 

Intel E1000
proxmox_e1000.jpg.e14ca23fc1e08f7088efb40dc82ff4dc.jpg

RTL-8139
proxmox_realtek.thumb.jpg.213d15798c373e4627d7e9bcda9e2531.jpg
 

Edited by alvink
Formatting
Link to comment
Share on other sites

It's possible that the virtio driver is not detected by listmods now - I am not sure, as I made my first PVE installation before listmods now was even implemented. It worked like a charm without adding any additional extension.

 

... and it shouldn't matter if the virtio driver is not detected, unless the maintainer of the redpill-load repo you choose in your global_config.json or custom_config.json removed the virtio extension from the bundled-exts.json file.

 

For instance, jumkey's repos still has the virtio driver as one of the default extensions, see: https://github.com/jumkey/redpill-load/blob/develop/bundled-exts.json

 

Thus said, you might want to check the repo used for the specific platform and version, then check the bundled-exts.json to verify wether virtio is still included or not. Ever maintainer is free to modify the bundles-exts.json according their needs. So better doublecheck if the virtio extensions are still present and if not, just add the extension using "ext add" yourself.

 

On PVE you don't need to add any extension, unless the redpill-load repo removed it from bundled-exts.json or you passthrough pci-e cards and require drivers for them to be added to the bootloader.

 

 

Edited by haydibe
Link to comment
Share on other sites

20 hours ago, alvink said:

 Can I confirm that when you run with parameters 'listmods now' that the Ethernet Interface shows "No Matching Extension"?

tc@box:~$ ./rploader.sh listmods now

Testing modules.alias.json -> File OK
------------------------------------------------------------------------------------------------
It looks that you will need the following modules :


Found VGA Controller : pciid 1234d00001111  Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension

 

 

yes, same output

 

tc@box:~$ ./rploader.sh listmods now
Testing modules.alias.json -> File OK
------------------------------------------------------------------------------------------------
It looks that you will need the following modules :


Found VGA Controller : pciid 1234d00001111  Required Extension : bochs_drm
bochs_drm
Searching for matching extension for bochs_drm
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found Ethernet Interface : pciid 1af4d00001000 Required Extension :
No matching extension
------------------------------------------------------------------------------------------------

Link to comment
Share on other sites

Hello,

 

I am trying to install DSM 7 on my Gen10 plus using Tinycore & DS3617XS loader.

 

DSM 62.3 was previously installed using Jun and with Satamap as : DiskIdxMap=0C SataPortMap=1 

 

Using Tinycore & satamap show : 

 

Citation

tc@box:~$ ./rploader.sh satamap now
HBA: 00:17.0 Disks : 6
SataPortMap=6
DiskIdxMap=00

 

Installation is working but after the reboot, it asked again for DSM installation. (DSM installation loop)

 

i tried with the following satamap config but it is always the same thing (SataPortMap=1 DiskIdxMap=0C, SataPortMap=4 DiskIdxMap=00,)

 

I am using only the internal controler with 4 disks. Any idea ?

 

EDIT : It seems like SataPortMap=4 DiskIdxMap=00 is working only using 3615xs image. But with 3615xs loader, DSM is only seeing 1 core instead of 4. (Like 918+)

 

Any tips to make 3617xs working ?

Edited by sebg35
Link to comment
Share on other sites

I run DSM7 as a KVM VM.

Redpill is built with VirtIO drivers.

On of the disks in that VM will actually be a virtual disk image.

 

For that virtual disk instead of using the "SATA" bus, I first tried "VirtIO" but DSM7 did not see the disk.

I then chose the "SCSI" bus to which Virt-Manager automatically added a "VirtIO SCSI" controller. With that DSM could see the disk.

Is using "SCSI" bus with "VirtIO SCSI" controller the way to go?
Will I see performance improvements compared to regular SATA bus emulation ?

 

Thank you

Link to comment
Share on other sites

6 minutes ago, devid79 said:

Hi guys a big thank you to @pocopico, for the great work. I solved the installation loop.
You will have to disconnect the internet connection during the installation, I noticed through firewalls that requests are made to synology updates. blocking them, the installation continues up to 100% and the system starts.

Hi, did you get stucked at 55% during installation? 

Link to comment
Share on other sites

2 minutes ago, Aigor said:

Hi, did you get stucked at 55% during installation? 

yes each time it reached 54/55% then it restarted and the installation started from 0 or said that the disks had been moved. I tried everything even changing sata maps or disks. but the problem later seen on the firewall connecting when installing to synology. removing the internet I solved.

  • Like 1
Link to comment
Share on other sites

3 minutes ago, devid79 said:

yes each time it reached 54/55% then it restarted and the installation started from 0 or said that the disks had been moved. I tried everything even changing sata maps or disks. but the problem later seen on the firewall connecting when installing to synology. removing the internet I solved.

Good to know, i will try in the afternoon 

  • Like 1
Link to comment
Share on other sites

@pocopico how to compile redpill loader into smaller .img size ?

i found synoboot.img which only has 17724KB size. 

more over, i see the redpill kernel .img structure is different than synoboot.img file.

this is from synoboot.img

image.png.02ccbb31ee62e25f1ce3bf7b28a47505.png

 

this is from redpill kernel loader

image.png.4d86ee665ff9c970facc3a7d66e7e25b.png

 

the problem is, when i load redpill loader into docker container to run xpenology on docker by uxora, the script cannot detect redpill loader. 

But after changed into synoboot.img, the script is running.. even it still found some errors at the end.

 

Link to comment
Share on other sites

Il y a 1 heure, devid79 a dit :

Hi guys a big thank you to @pocopico, for the great work. I solved the installation loop.
You will have to disconnect the internet connection during the installation, I noticed through firewalls that requests are made to synology updates. blocking them, the installation continues up to 100% and the system starts.

 I also get the installation loop ->

 

  • DS3617XS - Installation loop - Not asking for migration

-Previous DSM install from 6.2.3 with Internet connection disconnected

 

  • DS3615XS - Installation OK - Only one CPU core Seen (As DSM 7 & 918+) - Not asking for migration

-Previous DSM install from 6.2.3 with Internet connection disconnected

 

  • DS3617XS - Installation loop - asking to format all 4 disks

- 4  disks formated with Internet connection disconnected

 

 

I rollback to Jun & DSM 6.2.3 with DS3617XS

Link to comment
Share on other sites

3 minutes ago, sebg35 said:

 I also get the installation loop ->

 

  • DS3617XS - Installation loop - Not asking for migration

-Previous DSM install from 6.2.3 with Internet connection disconnected

 

  • DS3615XS - Installation OK - Only one CPU core Seen (As DSM 7 & 918+) - Not asking for migration

-Previous DSM install from 6.2.3 with Internet connection disconnected

 

  • DS3617XS - Installation loop - asking to format all 4 disks

- 4  disks formated with Internet connection disconnected

 

 

I rollback to Jun & DSM 6.2.3 with DS3617XS

Test with fresh installation and correct sata map 

Link to comment
Share on other sites

Hello World! Can I to ask about UPS connection via usb? I have APC CS-500 that normally worked on my N54L Jun 1.0.3 loader DSM-3615 6.2.3 , but after migration to 7.0.1 redpill loader UPS isn't connect watching into DSM. Have anybody the same problem, and any ideas how to fix?

And question about printer, old hp LaserJet connected via usb before migration working normally, after installing normally but not printing, maybe it problem windows 11?

Edited by A.S._id
Link to comment
Share on other sites

3 hours ago, A.S._id said:

Hello World! Can I to ask about UPS connection via usb? I have APC CS-500 that normally worked on my N54L Jun 1.0.3 loader DSM-3615 6.2.3 , but after migration to 7.0.1 redpill loader UPS isn't connect watching into DSM. Have anybody the same problem, and any ideas how to fix?

And question about printer, old hp LaserJet connected via usb before migration working normally, after installing normally but not printing, maybe it problem windows 11?

http://www.jadahl.com/iperf-arp-scan/DSM_7.0/

 

From Bromolow's readme :

 

Download driver you need and copy to your NAS. Place the drivers in /lib/modules folder.

Then run:

sudo insmod /lib/modules/usbserial.ko

sudo insmod /lib/modules/cp210x.ko

If your driver is cp210x.ko. You can also download the start-usb-drivers.sh script and copy to folder: /usr/local/etc/rc.d/start-usb-drivers.sh

Then:

chmod +x /usr/local/etc/rc.d/start-usb-drivers.sh

The the drivers will be loaded when you reboot your NAS.

You must edit the start-usb-drivers.sh script if you want to load another driver. /Jadahl

 

Synology DSM7 dropped USB support. Issue is not about Loader but about Synology's choice.

 

Edit : Alternative : https://mariushosting.com/synology-how-to-add-usb-support-on-dsm-7/

Edited by Orphée
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

1 hour ago, Orphée said:

Synology DSM7 dropped USB support. Issue is not about Loader but about Synology's choice.

??? I've OOTB support with APC BackUPS

5 hours ago, A.S._id said:

Can I to ask about UPS connection via usb? I have APC CS-500 that normally worked on my N54L Jun 1.0.3 loader DSM-3615 6.2.3 , but after migration to 7.0.1 redpill loader UPS isn't connect watching into DSM. Have anybody the same problem, and any ideas how to fix?

No issues here with APC UPS: DSM 7/ds918+

 

Screenshot 2022-02-14 at 17.04.56.png

  • Thanks 1
Link to comment
Share on other sites

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

@pocopico how to compile redpill loader into smaller .img size ?

i found synoboot.img which only has 17724KB size. 

more over, i see the redpill kernel .img structure is different than synoboot.img file.

this is from synoboot.img

image.png.02ccbb31ee62e25f1ce3bf7b28a47505.png

 

this is from redpill kernel loader

image.png.4d86ee665ff9c970facc3a7d66e7e25b.png

 

the problem is, when i load redpill loader into docker container to run xpenology on docker by uxora, the script cannot detect redpill loader. 

But after changed into synoboot.img, the script is running.. even it still found some errors at the end.

 

Maybe this solution will help?
https://poweruser.guru/questions/958812/обрезать-пустое-пространство-из-необработанного-изображения-dd

 

In short...
check sector size:

 

sudo fdisk -l '/home/user/images/test.img'

 

image.png.8e119d85d987854155650d72c2b71479.png

 

Use the ending number (7200767) as a reference, add 1 and multiply by 512 as shown below:

 

sudo truncate --size=$[(7200767+1)*512] '/home/user/images/test.img'

 

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...