Jump to content
XPEnology Community

TinyCore RedPill Loader (TCRP)


pocopico

Recommended Posts

1 hour ago, ausmann said:

i have a message DSM_DS3615xs_42218 file are damaged after upload and on install

grafik.png.27b93d7e9944a43e4e8c9ac5788266da.png

 

Are you installing on physical or virtual ? If you are using virtual machine then select SATA boot entry on GRUB, otherwise select USB and check your VID:PID entry on GRUB

  • Like 1
Link to comment
Share on other sites

8 minutes ago, pocopico said:

 

For the error , i've tested it thouroughly running it with user tc, do you run this as root or tc or sudo ?

 

To add an extension run : 

 

./rploader.sh ext bromolow-7.0.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/e1000/rpext-index.json
 

to specify the mac address manually to match your adapter (which you shouldn't you should use a generated mac address) you can modify manually user_config.json

 

 

 

 

I run the command via ssh command but with the tc user.

Link to comment
Share on other sites

1 hour ago, pocopico said:

 

Is this virtual or physical machine ? can you pass the output of :

 

# lsusb -v  2>&1|grep -B 33 -A 52 SCSI

 

 

Spoiler

Bus 001 Device 004: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x090c Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.)
  idProduct          0x1000 Flash Drive
  bcdDevice           11.00
  iManufacturer           1 SMI Corporation
  iProduct                2 USB DISK
  iSerial                 3 AA04012700009107
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval             255
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval             255
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Flash Drive
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x058f Alcor Micro Corp.
  idProduct          0x6387 Flash Drive
  bcdDevice            1.03
  iManufacturer           1 
  iProduct                2 USB Flash Drive
  iSerial                 3 263EAB54
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            5.10
  iManufacturer           3 Linux 5.10.3-tinycore64 ehci_hcd
  iProduct                2 EHCI Host Controller
  iSerial                 1 0000:00:1d.7
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                              9

 

I use a physical test machine.

 

Regarding your comment: 

"to specify the mac address manually to match your adapter (which you shouldn't, you should use a generated mac address) you can modify manually user_config.json"

 

→ I thought to use the WOL functionality I need to define the real MAC address within the loader. Then it would be an advantage to set the MAC address automatically. 

 

regarding ./rploader.sh listmod or listmods is this command already implemented?

neither ./rploader.sh listmod nor  ./rploader.sh listmods will show any specific result only the usage of rploader itselfes. 

Do I have to enter additional parameters? 

 

UPDATE:  ./rploader.sh listmods now will show result

-> could you add s to listmod in the Actions line and the information regarding the now additon?

Edited by Dreadnought
command listmod
Link to comment
Share on other sites

30 minutes ago, Dreadnought said:
  lsusb (Hide contents)

Bus 001 Device 004: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x090c Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.)
  idProduct          0x1000 Flash Drive
  bcdDevice           11.00
  iManufacturer           1 SMI Corporation
  iProduct                2 USB DISK
  iSerial                 3 AA04012700009107
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval             255
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval             255
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Flash Drive
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x058f Alcor Micro Corp.
  idProduct          0x6387 Flash Drive
  bcdDevice            1.03
  iManufacturer           1 
  iProduct                2 USB Flash Drive
  iSerial                 3 263EAB54
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            5.10
  iManufacturer           3 Linux 5.10.3-tinycore64 ehci_hcd
  iProduct                2 EHCI Host Controller
  iSerial                 1 0000:00:1d.7
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                              9

 

You have two USB drives connected to this machine. Keep only the loader connected when running USB identification. 

 

I will try to fix this.

 

 

Link to comment
Share on other sites

1 hour ago, Dreadnought said:

this became tricky. This board has an internal 240MB USB disc which is not possible to deactivate

 

That was a tricky one, thanks for the heads up ! Can you try updating the rploader.sh and check again ?

 

It should now find both usb disks but will ask you which USB device you want to select.

  • Like 1
Link to comment
Share on other sites

Hi @pocopico. I have Unraid and I boot the img as a virtual USB. When trying to identify the usb to enter the correct VID and PID I get the below error.

tc@box:~$ ./rploader.sh identifyusb now
Found QEMU
QEMU QEMU
QEMU SerialNumber: 1-0000:00:07.7-2
28754-0000:00:07.7-1
Vendor ID : 0x46f4
0x0627 Product ID : 0x0001
0x0001
Should i update the user_config.json with these values ? [Yy/Nn]
y
sed: -e expression #1, char 33: invalid usage of line address 0
sed: -e expression #1, char 33: invalid usage of line address 0

 

In the VM I created additional 2 hard disks (20G). First time the interface was Virtio and the other time was SATA and both times when I am on the DSM installation it reports that no drives were detected...

 

image.thumb.png.f8c7db3c0406aa7e2a2bc0266acef403.png

 

The qx1 is the video driver for VNC we can ignore that one...

 

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


./rploader.sh: line 982: ./redpill-load/ext-manager.sh: No such file or directory
Found VGA Controller : pciid 1b36d00000100  Required Extension : qxl
qxl
Searching for matching extension for qxl
Found matching extension :
./rploader.sh: line 982: ./redpill-load/ext-manager.sh: No such file or directory
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found matching extension :
Found Ethernet Interface : pciid 1af4d00001041 Required Extension :
No matching extension
------------------------------------------------------------------------------------------------

 

UPDATE: Removing the SataPortMap from the user_config.json found the drives but the installation failed. Will investigate further...

Edited by gadreel
Link to comment
Share on other sites

14 hours ago, pocopico said:

 

That was a tricky one, thanks for the heads up ! Can you try updating the rploader.sh and check again ?

 

It should now find both usb disks but will ask you which USB device you want to select.

 

just perfect, many thanks @pocopico

Now I am able to choose the controller and than the user_config.json is successfully updated.

Link to comment
Share on other sites

3 hours ago, gadreel said:

Hi @pocopico. I have Unraid and I boot the img as a virtual USB. When trying to identify the usb to enter the correct VID and PID I get the below error.


tc@box:~$ ./rploader.sh identifyusb now
Found QEMU
QEMU QEMU
QEMU SerialNumber: 1-0000:00:07.7-2
28754-0000:00:07.7-1
Vendor ID : 0x46f4
0x0627 Product ID : 0x0001
0x0001
Should i update the user_config.json with these values ? [Yy/Nn]
y
sed: -e expression #1, char 33: invalid usage of line address 0
sed: -e expression #1, char 33: invalid usage of line address 0

 

In the VM I created additional 2 hard disks (20G). First time the interface was Virtio and the other time was SATA and both times when I am on the DSM installation it reports that no drives were detected...

 

image.thumb.png.f8c7db3c0406aa7e2a2bc0266acef403.png

 

The qx1 is the video driver for VNC we can ignore that one...

 


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


./rploader.sh: line 982: ./redpill-load/ext-manager.sh: No such file or directory
Found VGA Controller : pciid 1b36d00000100  Required Extension : qxl
qxl
Searching for matching extension for qxl
Found matching extension :
./rploader.sh: line 982: ./redpill-load/ext-manager.sh: No such file or directory
Found SATA Controller : pciid 8086d00002922  Required Extension : ahci
Searching for matching extension for ahci
Found matching extension :
Found Ethernet Interface : pciid 1af4d00001041 Required Extension :
No matching extension
------------------------------------------------------------------------------------------------

 

UPDATE: Removing the SataPortMap from the user_config.json found the drives but the installation failed. Will investigate further...

please execute the ./reploader.sh update now to get the latest version of the loader with the fix for multiple usb controller.

Link to comment
Share on other sites

./rploader.sh identifyusb now does not output anything...but anyway I changed the user_config manually.

 

If I set the disks to Virtio they are not detected only if I change the controller to SATA. I remember ThorGroup said it is better to set them to Virtio because they perform better.

 

Anyway, after deleting everything and setting the USB as I have on my production Synology and the Disks controller to SATA everything worked.

Great job @pocopico if you need to test something let us know.

  • Like 1
Link to comment
Share on other sites

Hi pocopico, hi devs,

 

thanks a lot for your outstanding work! With your developments, I'm finally able to run bromolow-7.0.1-42218 successfully on my bare-metal machine which is an ASUS P8H67-I Deluxe utilizing six disks on the onboard Intel controller and an additional ASMedia controller. Really amazing and thanks a lot again!

 

BR,

Elix

 

 

  • Like 1
Link to comment
Share on other sites

1 hour ago, Elix said:

Hi pocopico, hi devs,

 

thanks a lot for your outstanding work! With your developments, I'm finally able to run bromolow-7.0.1-42218 successfully on my bare-metal machine which is an ASUS P8H67-I Deluxe utilizing six disks on the onboard Intel controller and an additional ASMedia controller. Really amazing and thanks a lot again!

 

BR,

Elix

 

 

what cpu did you use ?

Link to comment
Share on other sites

Have issue not seeing any drives when installation of dsm 7 starts. Looked at dmesg and did lsmod, the mpt3sas driver is not loading. Even though when I did a ./rploader.sh listmods, it finds ext. I also had did .rploader.sh ext bromolow-7.0.1-42218 info. Any ideas on how to proceed would be appreciated. UPDATE: Get this error when manually trying to add.

 The index file for https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/releases/ds3615xs_42218.json extension is invalid - please report that to the extension maintainer

*** Process will exit ***
tc@box:~$  The index file for https://raw.githubusercontent.com/pocopico/rp-ext/master/mpt3sas/releases/ds3615xs_42218.json extension is invalid - please report that t
o the extension maintainer
-sh: The: not found

Edited by g4sho
Adding new info.
Link to comment
Share on other sites

On 12/30/2021 at 12:05 PM, haydibe said:

Extension handling is not implemented so far, except listing detected devices.

You will have to do this manualy. Something like this should do the trick:
 


./rploader.sh download bromolow-7.0.1-42218
./redpill-load/ext-manager.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/qla2xxx/rpext-index.json
./rploader.sh build bromolow-7.0.1-42218 static

 

If I am not mistaken, @pocopico is researching on how to auto detect required drivers and add extensions for them automaticly. This might explain why the "ext" action is not simply wired to ext-manager, like it is in rp-helper. 

Thank to haydibe post I was able to figure out how to add mpt3sas ext. But still not able to see drives at install start, will keep digging.

Link to comment
Share on other sites

6 hours ago, g4sho said:

./rploader.sh download bromolow-7.0.1-42218
./redpill-load/ext-manager.sh add https://raw.githubusercontent.com/pocopico/rp-ext/master/qla2xxx/rpext-index.json
./rploader.sh build bromolow-7.0.1-42218 static

 

This was a temporary workaround. It is not needed anymore, instead use `./rploader.sh ext bromolow-7.0.1-42218 add https://raw.githubusercontent.com/pocopico/rp-ext/master/qla2xxx/rpext-index.json`.

 

Seems there was a hickup in the auto detection process. 

 

  • Like 1
Link to comment
Share on other sites

Did someone manage to use the TinyLoader with VMWare Fusion?

I can boot into the loader update, configure satamap via loader command and build the image.

 

But when the loader boot via SATA bootoption the DSM installation manager show the message that no hard disk is found.

In VMWare options, I added a second SATA drive before. 

Any suggestions? 

Link to comment
Share on other sites

3 hours ago, Dreadnought said:

Did someone manage to use the TinyLoader with VMWare Fusion?

I can boot into the loader update, configure satamap via loader command and build the image.

 

But when the loader boot via SATA bootoption the DSM installation manager show the message that no hard disk is found.

In VMWare options, I added a second SATA drive before. 

Any suggestions? 

 

I have the same issue with Virtio drives. I have no idea why...

Link to comment
Share on other sites

Something about SataPortMap and DiskIdxMap: My motherboard got a H67 chipset, which offers six SATA ports. Four of them are available is internal port, one as an eSATA port and the sixth one remains unused. An additional PCIe controller offers another two internal SATA ports. All six internal ports are in use. This should result in SataPortmap 62 and DiskIdxMap 02. That is exactly what rploader detects too. With such parameters, DSM setup runs into the already known problem regarding errors found on the (6) hard drives and disabled SATA ports.

As a resolution, I've aligned the parameters to the existing hard disks: 42 and 02. With these parameters, DSM setup runs smoothly detecting all six drives in a row. Fine so far but of course the eSATA port isn't working. Does somebody know if the parameters are related to some other option like max disks or else or got any other heads up?

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