Jump to content
XPEnology Community

RedPill - the new loader for 6.2.4 - Discussion


Recommended Posts

15 hours ago, RedwinX said:

I think the face detection use HW transcoding to works. Did you used a real SN ? go to telegram, have send all screenshot. Did you activate the functionnality ? You must in order to work.

No they dont use HW Transcoding. With the 3615xs 7.0 Version (no HW transcoding support) Face Detection works fine in a Proxmox Machine.

Proxmox Machine with 918+ 7.0 dont work with i915 or without.

Legit Serial Nr and Mac Number for 3615xs and 918+.

 

Btw, the i915 Driver integrated in the Syno Image works fine (Video transcoding is also working). So theres is no general Reason to replace it when its loaded fine:

lsmod | grep i915
i915                 1308361  0
drm_kms_helper        121033  1 i915
drm                   310096  3 i915,drm_kms_helper
iosf_mbi                4298  1 i915
fb                     34959  2 i915,drm_kms_helper
video                  27139  1 i915
backlight               6219  2 i915,video
button                  5105  1 i915
i2c_algo_bit            5456  1 i915
root@DS918plus:/usr/lib/modules# dmesg | grep i915
[    9.218265] i915 0000:01:00.0: Invalid ROM contents
[    9.241795] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    9.263590] [drm] Initialized i915 1.6.0 20171222 for 0000:01:00.0 on minor 0
[    9.699633] i915 0000:01:00.0: fb0: inteldrmfb frame buffer device

 

I think the Problem is another why Facial Detection sometimes works and sometimes not.

 

Link to comment
Share on other sites

16 minutes ago, loomes said:

No they dont use HW Transcoding. With the 3615xs 7.0 Version (no HW transcoding support) Face Detection works fine in a Proxmox Machine.

Proxmox Machine with 918+ 7.0 dont work with i915 or without.

Legit Serial Nr and Mac Number for 3615xs and 918+.

 

Btw, the i915 Driver integrated in the Syno Image works fine (Video transcoding is also working). So theres is no general Reason to replace it when its loaded fine:


lsmod | grep i915
i915                 1308361  0
drm_kms_helper        121033  1 i915
drm                   310096  3 i915,drm_kms_helper
iosf_mbi                4298  1 i915
fb                     34959  2 i915,drm_kms_helper
video                  27139  1 i915
backlight               6219  2 i915,video
button                  5105  1 i915
i2c_algo_bit            5456  1 i915
root@DS918plus:/usr/lib/modules# dmesg | grep i915
[    9.218265] i915 0000:01:00.0: Invalid ROM contents
[    9.241795] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    9.263590] [drm] Initialized i915 1.6.0 20171222 for 0000:01:00.0 on minor 0
[    9.699633] i915 0000:01:00.0: fb0: inteldrmfb frame buffer device

 

I think the Problem is another why Facial Detection sometimes works and sometimes not.

 

Same point of view, By the way, can you share how to upgrade from jun-6.2.3 to redpilll-7.0

Link to comment
Share on other sites

42 minutes ago, loomes said:

No they dont use HW Transcoding. With the 3615xs 7.0 Version (no HW transcoding support) Face Detection works fine in a Proxmox Machine.

Proxmox Machine with 918+ 7.0 dont work with i915 or without.

Legit Serial Nr and Mac Number for 3615xs and 918+.

 

Btw, the i915 Driver integrated in the Syno Image works fine (Video transcoding is also working). So theres is no general Reason to replace it when its loaded fine:


lsmod | grep i915
i915                 1308361  0
drm_kms_helper        121033  1 i915
drm                   310096  3 i915,drm_kms_helper
iosf_mbi                4298  1 i915
fb                     34959  2 i915,drm_kms_helper
video                  27139  1 i915
backlight               6219  2 i915,video
button                  5105  1 i915
i2c_algo_bit            5456  1 i915
root@DS918plus:/usr/lib/modules# dmesg | grep i915
[    9.218265] i915 0000:01:00.0: Invalid ROM contents
[    9.241795] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    9.263590] [drm] Initialized i915 1.6.0 20171222 for 0000:01:00.0 on minor 0
[    9.699633] i915 0000:01:00.0: fb0: inteldrmfb frame buffer device

 

I think the Problem is another why Facial Detection sometimes works and sometimes not.

 

true and not true. 

 

It depends on moments version.

Link to comment
Share on other sites

1 hour ago, mcdull said:

true and not true. 

 

It depends on moments version.

 

We are talking about Synology Photos😊

1.0.0-0154 Beta < DS3615xs DSM7 Beta, Facial Detection works

1.0.0-0190 < DS918+ DSM7 Final, Facial Detection dont work

 

Is there a place where we can download the spk files directly? So we can test the Photos Beta Version on DSM7 Final.

Link to comment
Share on other sites

On 8/2/2021 at 7:10 PM, loomes said:

I have made some tests.

 

- Get a Backup of my 2 Drives from DSM 6.2.3-25426 junLoader Machine.

- Make a redpill loader for 6.2.4 and create a new machine (proxmox)

- attach the backup hdds to the new machine and startup

- It comes the assistant and i update to 6.2.4

- WORKS

 

- After that i build the redpill loader for DSM7 and replaced the 6.2.4 in the new machine and startup

- it will hang forever at "------------bootup-smallupdate"

- So i patched out this part from linuxrc.syno.impl and startup again

- Now it works an the DSM7 Migration Assistant starts

- Migrate all Packages include Moments to Photos

- Reboot the whole thing... and it works

 

i will test now a straight upgrade from 6.2.3 -> 7.0 .... WORKING

 

 

@loomes Is it possible to share the patch file of linuxrc.syno.impl, that is, what specific changes have you made to the smallupdate function?

Link to comment
Share on other sites

22 minutes ago, loomes said:

 

We are talking about Synology Photos😊

1.0.0-0154 Beta < DS3615xs DSM7 Beta, Facial Detection works

1.0.0-0190 < DS918+ DSM7 Final, Facial Detection dont work

 

Is there a place where we can download the spk files directly? So we can test the Photos Beta Version on DSM7 Final.

https://archive.synology.com/download/Package/

Link to comment
Share on other sites

12 minutes ago, yanjun said:

 

 

@loomes Is it possible to share the patch file of linuxrc.syno.impl, that is, what specific changes have you made to the smallupdate function?

--- a/linuxrc.syno.impl
+++ b/linuxrc.syno.impl
@@ -138,6 +140,7 @@ fi
 # insert basic USB modules for detect f401/FDT
 echo "Insert basic USB modules..."
 SYNOLoadModules $USB_MODULES
+SYNOLoadModules "usb-storage"
 
 # insert Etron USB3.0 drivers
 
@@ -252,7 +255,7 @@ if [ "x" != "x`/bin/get_key_value /etc.d
 fi
 if [ "$UniqueRD" = "kvmx64" -o \
 		"$UniqueRD" = "nextkvmx64" -o \
-		"$UniqueRD" = "kvmcloud" ]; then
+		"$UniqueRD" = "kvmcloud" ] || (grep -r -q -E "(QEMU|VirtualBox)" /sys/devices/virtual/dmi/id/); then
 	insmod /lib/modules/virtio.ko
 	insmod /lib/modules/virtio_ring.ko
 	insmod /lib/modules/virtio_pci.ko
@@ -704,8 +707,11 @@
 # check if upgrade
 #
 if [ 0 -eq $FsckFailed ]; then
-	echo '------------upgrade'
-	RunWithLog /var/log/upgrade_sh.log /usr/syno/sbin/upgrade.sh
+	if echo '------------upgrade';then
+		RunWithLog /var/log/upgrade_sh.log /usr/syno/sbin/upgrade.sh
+	else
+		/bin/sh /usr/syno/sbin/upgrade.sh > /dev/null
+	fi
 	if [ $? -ne 0 ]; then
 		touch /.untar_upgrade_file_failed
 		Exit 6 "upgrade failed"
@@ -713,11 +719,11 @@
 	echo '============upgrade'
 
 	echo '------------bootup-smallupdate'
-	/bin/sh /usr/syno/sbin/bootup-smallupdate.sh
-	if [ $? -ne 0 ]; then
-		touch /.bootup_smallupdate_failed
-		Exit 6 "bootup-smallupdate failed"
-	fi
+	#/bin/sh /usr/syno/sbin/bootup-smallupdate.sh
+	#if [ $? -ne 0 ]; then
+	#	touch /.bootup_smallupdate_failed
+	#	Exit 6 "bootup-smallupdate failed"
+	#fi
 	echo '============bootup-smallupdate'
 fi
 

The smallupdate part. At this point it hangs everytime when i upgraded. After disable this all works fine.

@Orphée THX

Link to comment
Share on other sites

30 minutes ago, jforts said:

I successfully boot with Proxmox all works fine during the testing. But still cannot boot from baremetal, after choose the USB drive, it just bypass to boot from USB drive. Anyone have this problem?

 

Below is my DSM in Proxmox :)

image.thumb.png.7344f6fbbba9382e30c50dac40e1c85d.png

1. use lagacy bios to boot (cms)

2. Make sure you use the correct vid pid of your real usb.

Link to comment
Share on other sites

1 hour ago, jumkey said:

use real sn and mac with GPU Passthrough Facial Detection can be work


root@DSM:~# ls /dev/dri/
card0  renderD128
root@DSM:~# 

 

20210828181314.thumb.png.89714b93b12ad08f6e09bd2d899baa3f.png

As i said many times before, i am using Real SN/MAC and GPU Passtrough:

ls /dev/dri/
card0  renderD128

That it CAN work is not new. The thing is we dont know why sometimes it works, and sometimes not. Thats the point.

Link to comment
Share on other sites

@ThorGroup

Hello, I have a lsi 9207-8i working in IT mode, which means that it is used as an hba card to pass my hard drive to my nas virtual machine. Under jun 6.2.3, my pve virtual machine startup mode is set to UEFI, but currently redpill does not support this option, so when I select the HBA card through LSI 9207-8i and start the virtual machine, the system first loads the LSI ROM and shows that 8 hard disks have been read (in my case) , And then stuck in the following interface: Booting from Hard Disk..., my guess is because the hard disk loaded by the HBA card affects the arrangement of the entire hard disk, resulting in the inability to read the boot information, I don’t know if my guess is Correct, do you have any ideas for solving this problem.

 

532991683__20210829015637.thumb.png.ca51d561fb10a47dca647e29b2ed0e1c.png

 

When I cancel the option of rom-bar =1 in the pass-through, boot can start, but I get a lot of error messages, and finally get stuck in the place shown below

 

[    6.206882] mpt2sas_cm0: MSI-X vectors supported: 16, no of cores: 2, max_msix_vectors: -1
[    6.225676] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 36
[    6.226994] mpt2sas0-msix1: PCI-MSI-X enabled: IRQ 37
[    6.228587] mpt2sas_cm0: iomem(0x00000000fde80000), mapped(0xffffc90002080000), size(65536)
[    6.231297] mpt2sas_cm0: ioport(0x0000000000004000), size(256)
[    6.289115] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[    6.300946] usb-storage 2-1:1.0: USB Mass Storage device detected
[    6.302105] scsi host13: usb-storage 2-1:1.0
[    6.302628] <redpill/usb_boot_shim.c:95> Device <vid=46f4, pid=0001> shimmed to <vid=f400, pid=f400>
[    6.391148] mpt2sas_cm0: Allocated physical memory: size(16365 kB)
[    6.392360] mpt2sas_cm0: Current Controller Queue Depth(9979),Max Controller Queue Depth(10240)
[    6.394060] mpt2sas_cm0: Scatter Gather Elements per IO(128)
[    6.465124] mpt2sas_cm0: LSISAS2308: FWVersion(20.00.07.00), ChipRevision(0x05), BiosVersion(07.39.02.00)
[    6.466270] mpt2sas_cm0: Protocol=(
[    6.466631] Initiator,Target
[    6.467010] ), Capabilities=(
[    6.467362] TLR,EEDP
[    6.467601] ,Snapshot Buffer,Diag Trace Buffer
[    6.468056] ,Task Set Full,NCQ
[    6.468361] )
[    6.468632] scsi host12: Fusion MPT SAS Host
[    6.469296] I/O scheduler elevator not found
[    6.469843] mpt2sas_cm0: sending port enable !!
[    6.486371] mpt2sas_cm0: host_add: handle(0x0001), sas_addr(0x500605b006bc2e50), phys(8)
[    6.515043] mpt2sas_cm0: port enable: SUCCESS
[    6.516742] I/O scheduler elevator not found
[    6.517416] I/O scheduler elevator not found
[    6.541888] scsi 12:0:0:0: Direct-Access     ATA      ST8000NM0055-1RM112      SN05 PQ: 0 ANSI: 6
[    6.542906] scsi 12:0:0:0: SATA: handle(0x0010), sas_addr(0x4433221107000000), phy(7), device_name(0x5000c500b5cd6933)
[    6.543891] scsi 12:0:0:0: SATA: enclosure_logical_id(0x500605b006bc2e50), slot(4)
[    6.544861] scsi 12:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[    6.561327] I/O scheduler elevator not found
[    6.563017] sd 12:0:0:0: [] 15628053168 512-byte logical blocks: (8.00 TB/7.28 TiB)
[    6.563817] sd 12:0:0:0: [] 4096-byte physical blocks
[    6.564559] I/O scheduler elevator not found
[    6.581214] scsi 12:0:1:0: Direct-Access     ATA      ST12000NM0007-2A1101     SN02 PQ: 0 ANSI: 6
[    6.582105] scsi 12:0:1:0: SATA: handle(0x0009), sas_addr(0x4433221100000000), phy(0), device_name(0x5000c500b5d44b2e)
[    6.583060] scsi 12:0:1:0: SATA: enclosure_logical_id(0x500605b006bc2e50), slot(3)
[    6.584657] scsi 12:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[    6.600028] I/O scheduler elevator not found
[    6.601791] I/O scheduler elevator not found
[    6.607604] sd 12:0:0:0: [] Write Protect is off
[    6.607617] sd 12:0:1:0: [] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB)
[    6.607618] sd 12:0:1:0: [] 4096-byte physical blocks
[    6.609289] sd 12:0:0:0: [] Mode Sense: 7f 00 10 08
[    6.615227] sd 12:0:0:0: [] Write cache: enabled, read cache: enabled, supports DPO and FUA
[    6.619493] scsi 12:0:2:0: Direct-Access     ATA      ST12000NM0007-2A1101     SN02 PQ: 0 ANSI: 6
[    6.620734] scsi 12:0:2:0: SATA: handle(0x000a), sas_addr(0x4433221101000000), phy(1), device_name(0x5000c500b59c1fd8)
[    6.621720] scsi 12:0:2:0: SATA: enclosure_logical_id(0x500605b006bc2e50), slot(2)
[    6.623349] sd 12:0:1:0: [] Write Protect is off
[    6.623423] scsi 12:0:2:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[    6.624553] sd 12:0:1:0: [] Mode Sense: 7f 00 10 08
[    6.630768] sd 12:0:1:0: [] Write cache: enabled, read cache: enabled, supports DPO and FUA
[    6.634556] I/O scheduler elevator not found
[    6.635389] sd 12:0:2:0: [] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB)
[    6.636478] sd 12:0:2:0: [] 4096-byte physical blocks
[    6.637522] ------------[ cut here ]------------
[    6.637555] ------------[ cut here ]------------
[    6.637560] WARNING: CPU: 1 PID: 394 at lib/kobject.c:210 kobject_add_internal+0x285/0x2b0()
[    6.637561] kobject: (ffff8801783fa080): attempted to be registered with empty name!
[    6.637568] Modules linked in: mpt3sas(OE+) mptctl(OE) mptspi(OE) mptscsih(OE) mptbase(OE) scsi_transport_spi(OE) scsi_transport_sas(OE) raid_class(OE) ixgbevf(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE)
[    6.637570] CPU: 1 PID: 394 Comm: kworker/u4:2 Tainted: G           OE   4.4.180+ #41890
[    6.637570] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    6.637574] Workqueue: events_unbound async_run_entry_fn
[    6.637576]  0000000000000000 ffff8801774c7ba8 ffffffff812ef73d 0000000000000009
[    6.637577]  ffff8801774c7bf0 ffff8801774c7be0 ffffffff8105255f ffff8801783fa080
[    6.637578]  0000000000000000 ffff880079bf3720 ffff8801783fa070 ffff8801783fa070
[    6.637578] Call Trace:
[    6.637581]  [<ffffffff812ef73d>] dump_stack+0x4d/0x70
[    6.637583]  [<ffffffff8105255f>] warn_slowpath_common+0x7f/0xb0
[    6.637585]  [<ffffffff810525d9>] warn_slowpath_fmt+0x49/0x50
[    6.637586]  [<ffffffff812f1b45>] ? kobject_add_internal+0x185/0x2b0
[    6.637589]  [<ffffffff8114db5b>] ? kfree_const+0x1b/0x30
[    6.637590]  [<ffffffff812f0ec1>] ? ida_get_new_above+0x1f1/0x250
[    6.637591]  [<ffffffff812f1c45>] kobject_add_internal+0x285/0x2b0
[    6.637592]  [<ffffffff812f2137>] kobject_add+0x67/0xb0
[    6.637594]  [<ffffffff812f0ec1>] ? ida_get_new_above+0x1f1/0x250
[    6.637596]  [<ffffffff813cb6b7>] device_add+0xf7/0x5d0
[    6.637598]  [<ffffffff812ddfb1>] add_disk+0x1b1/0x470
[    6.637600]  [<ffffffff813d95d0>] ? update_autosuspend+0x50/0x60
[    6.637601]  [<ffffffff813d967a>] ? __pm_runtime_use_autosuspend+0x4a/0x60
[    6.637605]  [<ffffffff81413d12>] sd_probe_async+0x112/0x1c0
[    6.637606]  [<ffffffff810726bb>] async_run_entry_fn+0x3b/0xf0
[    6.637607]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
[    6.637608]  [<ffffffff81072680>] ? lowest_in_progress+0x70/0x70
[    6.637611]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
[    6.637612]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
[    6.637613]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
[    6.637615]  [<ffffffff810700f5>] kthread+0xd5/0xf0
[    6.637616]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.637619]  [<ffffffff81579d2f>] ret_from_fork+0x3f/0x80
[    6.637621]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.637622] ---[ end trace 2accd9a94609ebe3 ]---
[    6.637634] ------------[ cut here ]------------
[    6.637635] kernel BUG at fs/sysfs/group.c:113!
[    6.637636] invalid opcode: 0000 [#1] SMP
[    6.637640] Modules linked in: mpt3sas(OE+) mptctl(OE) mptspi(OE) mptscsih(OE) mptbase(OE) scsi_transport_spi(OE) scsi_transport_sas(OE) raid_class(OE) ixgbevf(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE)
[    6.637641] CPU: 1 PID: 394 Comm: kworker/u4:2 Tainted: G        W  OE   4.4.180+ #41890
[    6.637642] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    6.637643] Workqueue: events_unbound async_run_entry_fn
[    6.637644] task: ffff880179324500 ti: ffff8801774c4000 task.ti: ffff8801774c4000
[    6.637648] RIP: 0010:[<ffffffff8120ed06>]  [<ffffffff8120ed06>] internal_create_group+0x2c6/0x2f0
[    6.637649] RSP: 0018:ffff8801774c7ca8  EFLAGS: 00010246
[    6.637649] RAX: ffff8800339b2538 RBX: ffff8800339b23a8 RCX: 0000000000000000
[    6.637650] RDX: ffffffff8184b8a0 RSI: 0000000000000000 RDI: ffff8801783fa080
[    6.637650] RBP: ffff8801774c7ce0 R08: fffffffffffffffc R09: 0000000000000003
[    6.637651] R10: ffffea0000d03c00 R11: 61727420646e6520 R12: 0000000000000000
[    6.637652] R13: ffff8801783fa070 R14: ffff880034b65400 R15: ffff8801783fa070
[    6.637653] FS:  0000000000000000(0000) GS:ffff88017dd00000(0000) knlGS:0000000000000000
[    6.637653] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.637654] CR2: 00007f7fb9769630 CR3: 00000001754ad000 CR4: 00000000000006f0
[    6.637656] Stack:
[    6.637657]  00000000ffffffea ffff88017694e1a0 ffff8800339b23a8 ffff8801783fa000
[    6.637659]  ffff8801783fa070 ffff880034b65400 ffff8801783fa070 ffff8801774c7cf0
[    6.637660]  ffffffff8120ed3e ffff8801774c7d00 ffffffff810fbc14 ffff8801774c7d40
[    6.637660] Call Trace:
[    6.637662]  [<ffffffff8120ed3e>] sysfs_create_group+0xe/0x10
[    6.637664]  [<ffffffff810fbc14>] blk_trace_init_sysfs+0x14/0x20
[    6.637667]  [<ffffffff812cfdf7>] blk_register_queue+0x47/0x160
[    6.637668]  [<ffffffff812ddfc1>] add_disk+0x1c1/0x470
[    6.637669]  [<ffffffff813d95d0>] ? update_autosuspend+0x50/0x60
[    6.637670]  [<ffffffff813d967a>] ? __pm_runtime_use_autosuspend+0x4a/0x60
[    6.637672]  [<ffffffff81413d12>] sd_probe_async+0x112/0x1c0
[    6.637673]  [<ffffffff810726bb>] async_run_entry_fn+0x3b/0xf0
[    6.637675]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
[    6.637676]  [<ffffffff81072680>] ? lowest_in_progress+0x70/0x70
[    6.637677]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
[    6.637678]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
[    6.637679]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
[    6.637681]  [<ffffffff810700f5>] kthread+0xd5/0xf0
[    6.637682]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.637684]  [<ffffffff81579d2f>] ret_from_fork+0x3f/0x80
[    6.637685]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.637698] Code: be 3d 00 00 00 48 c7 c7 c6 3f 72 81 44 89 4d cc e8 a0 38 e4 ff 49 8b 75 00 44 8b 4d cc e9 16 fe ff ff 4d 85 e4 0f 85 6f fd ff ff <0f> 0b 48 83 f8 ef 74 09 41 8d 04 24 e9 6b fe ff ff 48 8b 45 d0
[    6.637700] RIP  [<ffffffff8120ed06>] internal_create_group+0x2c6/0x2f0
[    6.637700]  RSP <ffff8801774c7ca8>
[    6.637706] ---[ end trace 2accd9a94609ebe4 ]---
[    6.637717] BUG: unable to handle kernel paging request at ffffffffffffffd8
[    6.637719] IP: [<ffffffff810705eb>] kthread_data+0xb/0x20
[    6.637721] PGD 180d067 PUD 180f067 PMD 0
[    6.637721] Oops: 0000 [#2] SMP
[    6.637725] Modules linked in: mpt3sas(OE+) mptctl(OE) mptspi(OE) mptscsih(OE) mptbase(OE) scsi_transport_spi(OE) scsi_transport_sas(OE) raid_class(OE) ixgbevf(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE)
[    6.637726] CPU: 1 PID: 394 Comm: kworker/u4:2 Tainted: G      D W  OE   4.4.180+ #41890
[    6.637727] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    6.637733] task: ffff880179324500 ti: ffff8801774c4000 task.ti: ffff8801774c4000
[    6.637735] RIP: 0010:[<ffffffff810705eb>]  [<ffffffff810705eb>] kthread_data+0xb/0x20
[    6.637735] RSP: 0018:ffff8801774c7988  EFLAGS: 00010002
[    6.637736] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000001
[    6.637736] RDX: ffff880179004080 RSI: 0000000000000001 RDI: ffff880179324500
[    6.637737] RBP: ffff8801774c7988 R08: ffff88017dd16368 R09: 000000018ba37cd4
[    6.637737] R10: 0000000000000000 R11: 0000000000002000 R12: ffff880179324500
[    6.637738] R13: ffff88017dd16300 R14: ffff88017dd16300 R15: 0000000000000001
[    6.637739] FS:  0000000000000000(0000) GS:ffff88017dd00000(0000) knlGS:0000000000000000
[    6.637739] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.637740] CR2: 0000000000000028 CR3: 00000001754ad000 CR4: 00000000000006f0
[    6.637741] Stack:
[    6.637742]  ffff8801774c79a0 ffffffff8106c37c 0000000000016300 ffff8801774c79f0
[    6.637743]  ffffffff815759a1 00000000774c0078 ffff8801774c79e8 ffff880179324500
[    6.637744]  ffff880179324500 ffff8801774c7a40 ffff8801774c75f0 ffff880179100000
[    6.637744] Call Trace:
[    6.637745]  [<ffffffff8106c37c>] wq_worker_sleeping+0xc/0x90
[    6.637748]  [<ffffffff815759a1>] __schedule+0x371/0x820
[    6.637749]  [<ffffffff81575e76>] schedule+0x26/0x70
[    6.637750]  [<ffffffff81055379>] do_exit+0x6a9/0xaa0
[    6.637753]  [<ffffffff810082e4>] oops_end+0x84/0xb0
[    6.637754]  [<ffffffff810086e8>] die+0x48/0x70
[    6.637755]  [<ffffffff81005bdb>] do_trap+0x13b/0x150
[    6.637757]  [<ffffffff81005db5>] do_error_trap+0x75/0xe0
[    6.637758]  [<ffffffff8120ed06>] ? internal_create_group+0x2c6/0x2f0
[    6.637759]  [<ffffffff810524b7>] ? print_oops_end_marker+0x27/0x50
[    6.637760]  [<ffffffff8100630b>] do_invalid_op+0x1b/0x20
[    6.637762]  [<ffffffff8157b4b8>] invalid_op+0x18/0x20
[    6.637763]  [<ffffffff8120ed06>] ? internal_create_group+0x2c6/0x2f0
[    6.637765]  [<ffffffff8120ed3e>] sysfs_create_group+0xe/0x10
[    6.637766]  [<ffffffff810fbc14>] blk_trace_init_sysfs+0x14/0x20
[    6.637768]  [<ffffffff812cfdf7>] blk_register_queue+0x47/0x160
[    6.637769]  [<ffffffff812ddfc1>] add_disk+0x1c1/0x470
[    6.637770]  [<ffffffff813d95d0>] ? update_autosuspend+0x50/0x60
[    6.637771]  [<ffffffff813d967a>] ? __pm_runtime_use_autosuspend+0x4a/0x60
[    6.637773]  [<ffffffff81413d12>] sd_probe_async+0x112/0x1c0
[    6.637774]  [<ffffffff810726bb>] async_run_entry_fn+0x3b/0xf0
[    6.637776]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
[    6.637777]  [<ffffffff81072680>] ? lowest_in_progress+0x70/0x70
[    6.637778]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
[    6.637779]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
[    6.637780]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
[    6.637782]  [<ffffffff810700f5>] kthread+0xd5/0xf0
[    6.637783]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.637785]  [<ffffffff81579d2f>] ret_from_fork+0x3f/0x80
[    6.637786]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.637799] Code: 24 18 e8 f9 da 50 00 49 8b 04 24 48 85 c0 75 e5 e9 03 ff ff ff 90 66 2e 0f 1f 84 00 00 00 00 00 48 8b 87 c8 04 00 00 55 48 89 e5 <48> 8b 40 d8 5d c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00
[    6.637800] RIP  [<ffffffff810705eb>] kthread_data+0xb/0x20
[    6.637801]  RSP <ffff8801774c7988>
[    6.637801] CR2: ffffffffffffffd8
[    6.637802] ---[ end trace 2accd9a94609ebe5 ]---
[    6.637802] Fixing recursive fault but reboot is needed!
[    6.720702] WARNING: CPU: 0 PID: 18 at lib/kobject.c:210 kobject_add_internal+0x285/0x2b0()
[    6.721472] kobject: (ffff8801783fd080): attempted to be registered with empty name!
[    6.722194] Modules linked in: mpt3sas(OE+) mptctl(OE) mptspi(OE) mptscsih(OE) mptbase(OE) scsi_transport_spi(OE) scsi_transport_sas(OE) raid_class(OE) ixgbevf(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE)
[    6.724218] CPU: 0 PID: 18 Comm: kworker/u4:1 Tainted: G      D W  OE   4.4.180+ #41890
[    6.724935] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    6.725081] Workqueue: events_unbound async_run_entry_fn
[    6.725081]  0000000000000000 ffff88017920bba8 ffffffff812ef73d 0000000000000009
[    6.725081]  ffff88017920bbf0 ffff88017920bbe0 ffffffff8105255f ffff8801783fd080
[    6.725081]  0000000000000000 ffff880175487360 ffff8801783fd070 ffff8801783fd070
[    6.725081] Call Trace:
[    6.725081]  [<ffffffff812ef73d>] dump_stack+0x4d/0x70
[    6.725081]  [<ffffffff8105255f>] warn_slowpath_common+0x7f/0xb0
[    6.725081]  [<ffffffff810525d9>] warn_slowpath_fmt+0x49/0x50
[    6.725081]  [<ffffffff812f1b45>] ? kobject_add_internal+0x185/0x2b0
[    6.725081]  [<ffffffff8114db5b>] ? kfree_const+0x1b/0x30
[    6.725081]  [<ffffffff812f0ec1>] ? ida_get_new_above+0x1f1/0x250
[    6.725081]  [<ffffffff812f1c45>] kobject_add_internal+0x285/0x2b0
[    6.725081]  [<ffffffff812f2137>] kobject_add+0x67/0xb0
[    6.725081]  [<ffffffff812f0ec1>] ? ida_get_new_above+0x1f1/0x250
[    6.725081]  [<ffffffff813cb6b7>] device_add+0xf7/0x5d0
[    6.725081]  [<ffffffff812ddfb1>] add_disk+0x1b1/0x470
[    6.725081]  [<ffffffff813d95d0>] ? update_autosuspend+0x50/0x60
[    6.725081]  [<ffffffff813d967a>] ? __pm_runtime_use_autosuspend+0x4a/0x60
[    6.725081]  [<ffffffff81413d12>] sd_probe_async+0x112/0x1c0
[    6.725081]  [<ffffffff810726bb>] async_run_entry_fn+0x3b/0xf0
[    6.725081]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
[    6.725081]  [<ffffffff81072680>] ? lowest_in_progress+0x70/0x70
[    6.725081]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
[    6.725081]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
[    6.725081]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
[    6.725081]  [<ffffffff810700f5>] kthread+0xd5/0xf0
[    6.725081]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.725081]  [<ffffffff81579d2f>] ret_from_fork+0x3f/0x80
[    6.725081]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.741742] ---[ end trace 2accd9a94609ebe6 ]---
[    6.742202] ------------[ cut here ]------------
[    6.742634] kernel BUG at fs/sysfs/group.c:113!
[    6.743054] invalid opcode: 0000 [#3] SMP
[    6.743190] Modules linked in: mpt3sas(OE+) mptctl(OE) mptspi(OE) mptscsih(OE) mptbase(OE) scsi_transport_spi(OE) scsi_transport_sas(OE) raid_class(OE) ixgbevf(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE)
[    6.743190] CPU: 0 PID: 18 Comm: kworker/u4:1 Tainted: G      D W  OE   4.4.180+ #41890
[    6.743190] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    6.743190] Workqueue: events_unbound async_run_entry_fn
[    6.743190] task: ffff880179153980 ti: ffff880179208000 task.ti: ffff880179208000
[    6.743190] RIP: 0010:[<ffffffff8120ed06>]  [<ffffffff8120ed06>] internal_create_group+0x2c6/0x2f0
[    6.743190] RSP: 0018:ffff88017920bca8  EFLAGS: 00010246
[    6.743190] RAX: ffff8800340d4bc0 RBX: ffff8800340d4a30 RCX: 0000000000000000
[    6.743190] RDX: ffffffff8184b8a0 RSI: 0000000000000000 RDI: ffff8801783fd080
[    6.743190] RBP: ffff88017920bce0 R08: fffffffffffffffc R09: 0000000000000003
[    6.743190] R10: ffffea0000d2d840 R11: 2036656265393036 R12: 0000000000000000
[    6.743190] R13: ffff8801783fd070 R14: ffff880172b7ac00 R15: ffff8801783fd070
[    6.743190] FS:  0000000000000000(0000) GS:ffff88017dc00000(0000) knlGS:0000000000000000
[    6.743190] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.743190] CR2: 00007f185091f170 CR3: 00000001767e8000 CR4: 00000000000006f0
[    6.743190] Stack:
[    6.743190]  00000000ffffffea ffff88017578e1a0 ffff8800340d4a30 ffff8801783fd000
[    6.743190]  ffff8801783fd070 ffff880172b7ac00 ffff8801783fd070 ffff88017920bcf0
[    6.743190]  ffffffff8120ed3e ffff88017920bd00 ffffffff810fbc14 ffff88017920bd40
[    6.743190] Call Trace:
[    6.743190]  [<ffffffff8120ed3e>] sysfs_create_group+0xe/0x10
[    6.743190]  [<ffffffff810fbc14>] blk_trace_init_sysfs+0x14/0x20
[    6.743190]  [<ffffffff812cfdf7>] blk_register_queue+0x47/0x160
[    6.743190]  [<ffffffff812ddfc1>] add_disk+0x1c1/0x470
[    6.743190]  [<ffffffff813d95d0>] ? update_autosuspend+0x50/0x60
[    6.743190]  [<ffffffff813d967a>] ? __pm_runtime_use_autosuspend+0x4a/0x60
[    6.743190]  [<ffffffff81413d12>] sd_probe_async+0x112/0x1c0
[    6.743190]  [<ffffffff810726bb>] async_run_entry_fn+0x3b/0xf0
[    6.743190]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
[    6.743190]  [<ffffffff81072680>] ? lowest_in_progress+0x70/0x70
[    6.743190]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
[    6.743190]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
[    6.743190]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
[    6.743190]  [<ffffffff810700f5>] kthread+0xd5/0xf0
[    6.743190]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.743190]  [<ffffffff81579d2f>] ret_from_fork+0x3f/0x80
[    6.743190]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.743190] Code: be 3d 00 00 00 48 c7 c7 c6 3f 72 81 44 89 4d cc e8 a0 38 e4 ff 49 8b 75 00 44 8b 4d cc e9 16 fe ff ff 4d 85 e4 0f 85 6f fd ff ff <0f> 0b 48 83 f8 ef 74 09 41 8d 04 24 e9 6b fe ff ff 48 8b 45 d0
[    6.743190] RIP  [<ffffffff8120ed06>] internal_create_group+0x2c6/0x2f0
[    6.743190]  RSP <ffff88017920bca8>
[    6.770343] ---[ end trace 2accd9a94609ebe7 ]---
[    6.770785] BUG: unable to handle kernel paging request at ffffffffffffffd8
[    6.771337] IP: [<ffffffff810705eb>] kthread_data+0xb/0x20
[    6.771337] PGD 180d067 PUD 180f067 PMD 0
[    6.771337] Oops: 0000 [#4] SMP
[    6.771337] Modules linked in: mpt3sas(OE+) mptctl(OE) mptspi(OE) mptscsih(OE) mptbase(OE) scsi_transport_spi(OE) scsi_transport_sas(OE) raid_class(OE) ixgbevf(OE) usb_storage xhci_pci xhci_hcd usbcore usb_common redpill(OE)
[    6.771337] CPU: 0 PID: 18 Comm: kworker/u4:1 Tainted: G      D W  OE   4.4.180+ #41890
[    6.771337] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    6.771337] task: ffff880179153980 ti: ffff880179208000 task.ti: ffff880179208000
[    6.771337] RIP: 0010:[<ffffffff810705eb>]  [<ffffffff810705eb>] kthread_data+0xb/0x20
[    6.771337] RSP: 0018:ffff88017920b988  EFLAGS: 00010002
[    6.771337] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[    6.771337] RDX: ffff880179004080 RSI: 0000000000000000 RDI: ffff880179153980
[    6.771337] RBP: ffff88017920b988 R08: ffff88017dc16368 R09: 000000019391f46f
[    6.771337] R10: 0000000000000000 R11: 0000000000366000 R12: ffff880179153980
[    6.771337] R13: ffff88017dc16300 R14: ffff88017dc16300 R15: 0000000000000000
[    6.771337] FS:  0000000000000000(0000) GS:ffff88017dc00000(0000) knlGS:0000000000000000
[    6.771337] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.771337] CR2: 0000000000000028 CR3: 00000001767e8000 CR4: 00000000000006f0
[    6.771337] Stack:
[    6.771337]  ffff88017920b9a0 ffffffff8106c37c 0000000000016300 ffff88017920b9f0
[    6.771337]  ffffffff815759a1 00000000774c00e0 ffff88017920b9e8 ffff880179153980
[    6.771337]  ffff880179153980 ffff88017920ba40 ffff88017920b5f0 ffff880179100000
[    6.771337] Call Trace:
[    6.771337]  [<ffffffff8106c37c>] wq_worker_sleeping+0xc/0x90
[    6.771337]  [<ffffffff815759a1>] __schedule+0x371/0x820
[    6.771337]  [<ffffffff81575e76>] schedule+0x26/0x70
[    6.771337]  [<ffffffff81055379>] do_exit+0x6a9/0xaa0
[    6.771337]  [<ffffffff810082e4>] oops_end+0x84/0xb0
[    6.771337]  [<ffffffff810086e8>] die+0x48/0x70
[    6.771337]  [<ffffffff81005bdb>] do_trap+0x13b/0x150
[    6.771337]  [<ffffffff81005db5>] do_error_trap+0x75/0xe0
[    6.771337]  [<ffffffff8120ed06>] ? internal_create_group+0x2c6/0x2f0
[    6.771337]  [<ffffffff810524b7>] ? print_oops_end_marker+0x27/0x50
[    6.771337]  [<ffffffff8100630b>] do_invalid_op+0x1b/0x20
[    6.771337]  [<ffffffff8157b4b8>] invalid_op+0x18/0x20
[    6.771337]  [<ffffffff8120ed06>] ? internal_create_group+0x2c6/0x2f0
[    6.771337]  [<ffffffff8120ed3e>] sysfs_create_group+0xe/0x10
[    6.771337]  [<ffffffff810fbc14>] blk_trace_init_sysfs+0x14/0x20
[    6.771337]  [<ffffffff812cfdf7>] blk_register_queue+0x47/0x160
[    6.771337]  [<ffffffff812ddfc1>] add_disk+0x1c1/0x470
[    6.771337]  [<ffffffff813d95d0>] ? update_autosuspend+0x50/0x60
[    6.771337]  [<ffffffff813d967a>] ? __pm_runtime_use_autosuspend+0x4a/0x60
[    6.771337]  [<ffffffff81413d12>] sd_probe_async+0x112/0x1c0
[    6.771337]  [<ffffffff810726bb>] async_run_entry_fn+0x3b/0xf0
[    6.771337]  [<ffffffff81073ceb>] worker_run_work+0x9b/0xe0
[    6.771337]  [<ffffffff81072680>] ? lowest_in_progress+0x70/0x70
[    6.771337]  [<ffffffff8106b2e3>] process_one_work+0x1e3/0x4f0
[    6.771337]  [<ffffffff8106b61e>] worker_thread+0x2e/0x4b0
[    6.771337]  [<ffffffff8106b5f0>] ? process_one_work+0x4f0/0x4f0
[    6.771337]  [<ffffffff810700f5>] kthread+0xd5/0xf0
[    6.771337]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.771337]  [<ffffffff81579d2f>] ret_from_fork+0x3f/0x80
[    6.771337]  [<ffffffff81070020>] ? kthread_worker_fn+0x160/0x160
[    6.771337] Code: 24 18 e8 f9 da 50 00 49 8b 04 24 48 85 c0 75 e5 e9 03 ff ff ff 90 66 2e 0f 1f 84 00 00 00 00 00 48 8b 87 c8 04 00 00 55 48 89 e5 <48> 8b 40 d8 5d c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00
[    6.771337] RIP  [<ffffffff810705eb>] kthread_data+0xb/0x20
[    6.771337]  RSP <ffff88017920b988>
[    6.771337] CR2: ffffffffffffffd8
[    6.771337] ---[ end trace 2accd9a94609ebe8 ]---
[    6.771337] Fixing recursive fault but reboot is needed!

 

Edited by yanjun
Link to comment
Share on other sites

Hi everyone, new to the forum and this thread specifically here. Been spending the last few hours reading through this whole thread and I have made some progress. but nothing further. Currently I'm trying to boot DS918+ / DS3615XS on my own pc's VMWare Workstation 16, currently I have built the images with custom VID/PID/Serial/MAC, and have successfully booted them up in VMWare with no issues, but here comes the issue, the internet adapter that I've assigned (Changing vmdx eth option from e1000 to e1000e) doesn't look like it has showed up in the serial access and thus no IP has been assigned to the given adapter (Will be attaching serial debug output below) and both of the DS3615XS and DS918+ only shows lo(loopback) as the only available adapter, am I doing anything wrong here? (Full disclaimer I have nowhere near any level of advance VM knowledge, but I know the basics) I'm just trying stuff out since my current box is running DS3615XS 6.1.7-15284 with MBR partition table(Custom built bootloader by the members of this forum) since my box is a 775 C2 Quad, and was looking to at least update to 6.2.4(Maybe 7 but from what I've read of this thread, it requires newer hardware to run 7 so idk) when the branch becomes more stabler. I have saw a few options given by the members of this thread such as using VirtIO as my ethernet adapter in vmdx but since my knowledge with VM is scarce.. not really sure how to do that. Would appreciate if anyone could take a look at my serial dump and see what's wrong with it. I'm using the builder by haydibe as of 2021/08/28 (So I should be pulling the latest loader and LKM loader from github dir).

My network runs on 24bit block which is 10.0.0.1/24 but that shouldn't affect it when it comes to it since DHCP should do the job automatically assigning an IP to it.

 image.thumb.png.557762d02450922f1a1f83c387ad7643.png

List of builds based on the docker script. 
image.thumb.png.d2ab16a2f52f65e7d82eb4c4181c8a48.png
My current VMWare settings, Network Adapter 2 was added after I logged from the serial. Just for testing since I'm kinda beating blind in the bush. 
image.thumb.png.1cba290555c4f44a662fb23f45ce0a63.png
Boot screen shown on VMWare currently

Apollo Lake Boot Serial Log.txt Bromolow Boot Serial Log.txt

Edited by coint_cho
Link to comment
Share on other sites

8 hours ago, mcdull said:

1. use lagacy bios to boot (cms)

2. Make sure you use the correct vid pid of your real usb.

@mcdull, thank you so much. Legacy boot solved the problem.... will test it with baremetal to make sure everything works then will slowly test in the production unit... hehehe...

Link to comment
Share on other sites

1 hour ago, jforts said:

@mcdull, thank you so much. Legacy boot solved the problem.... will test it with baremetal to make sure everything works then will slowly test in the production unit... hehehe...

@mcdull, I faced another problem at baremetal, installation will never pass 55%. Anyone know about this issue? I had make sure my PID and VID are correct. The pat file is used to install in Proxmox VM so shouldn't be corrupted. My sataportmap=1 because I am testing it on my laptop.

Link to comment
Share on other sites

Update the toolchain builder to 0.6.0

 

 

# Inofficial redpill toolchain image builder
- Creates a OCI Container (~= Docker) image based tool chain.
- Takes care of downloading (and caching) the required sources to compile redpill.ko and the required os packages that the build process depends on.
- Caches .pat downloads inside the container on the host.
- Configuration is done in the JSON file `global_config.json`; custom <platform_version> entries can be added underneath the `building_configs` block. Make sure the id is unique per block!
- Support a `user_config.json` per <platform_version>
- Allows to bind a local redpill-load folder into the container (set `"docker.local_rp_load_use": "true"` and set `"docker.local_rp_load_path": "path/to/rp-load"`)

## Changes
- removed `user_config.json.template`, as it was orphaned and people started to use it in an unintended way.
- new parameters in `global_config.json`:
-- `docker.local_rp_load_use`: wether to mount a local folder with redpill-load into the build container (true/false)
-- `docker.local_rp_load_path`: path to the local copy of redpill-load to mount into the build container (absolute or relative path)
-- `build_configs[].user_config_json`: allows to defina a user_config.json per <platform_version>. 

## Usage

1. edit `<platform>_user_config.json` that matches your <platform_version> according https://github.com/RedPill-TTG/redpill-load and place it in the same folder as redpill_tool_chain.sh
2. Build the image for the platform and version you want:
   `./redpill_tool_chain.sh build <platform_version>`
3. Run the image for the platform and version you want:
   `./redpill_tool_chain.sh auto <platform_version>`

 

You can always use `./redpill_tool_chain.sh run <platform_version>` to get a bash prompt, modify whatever you want and finaly execute `make -C /opt/build_all` to build the boot loader image.

 

Note1: run `./redpill_tool_chain.sh` to get the list of supported ids for the <platform_version> parameter.

Note2: if `docker.use_local_rp_load` is set to `true`, the auto action will not pull latest redpill-load sources.

 

See README.md for examples

redpill-tool-chain_x86_64_v0.6.zip

Edited by haydibe
  • Like 6
  • Thanks 8
Link to comment
Share on other sites

6 hours ago, jforts said:

@mcdull, I faced another problem at baremetal, installation will never pass 55%. Anyone know about this issue? I had make sure my PID and VID are correct. The pat file is used to install in Proxmox VM so shouldn't be corrupted. My sataportmap=1 because I am testing it on my laptop.

page 25, post 2

args: -device 'qemu-xhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/XXX/redpill-DS918+_7.0-41890.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot,bootindex=5'

Edited by u357
Link to comment
Share on other sites

2 hours ago, u357 said:

page 25, post 2

args: -device 'qemu-xhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/XXX/redpill-DS918+_7.0-41890.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot,bootindex=5'

Hi, sorry... my problem is the baremetal cannot be install... at VM it works fine...

Link to comment
Share on other sites

8 hours ago, haydibe said:

Update the toolchain builder to 0.6.0

 

 

# Inofficial redpill toolchain image builder
- Creates a OCI Container (~= Docker) image based tool chain.
- Takes care of downloading (and caching) the required sources to compile redpill.ko and the required os packages that the build process depends on.
- Caches .pat downloads inside the container on the host.
- Configuration is done in the JSON file `global_config.json`; custom <platform_version> entries can be added underneath the `building_configs` block. Make sure the id is unique per block!
- Support a `user_config.json` per <platform_version>
- Allows to bind a local redpill-load folder into the container (set `"docker.local_rp_load_use": "true"` and set `"docker.local_rp_load_path": "path/to/rp-load"`)

## Changes
- removed `user_config.json.template`, as it was orphaned and people started to use it in an unintended way.
- new parameters in `global_config.json`:
-- `docker.local_rp_load_use`: wether to mount a local folder with redpill-load into the build container (true/false)
-- `docker.local_rp_load_path`: path to the local copy of redpill-load to mount into the build container (absolute or relative path)
-- `build_configs[].user_config_json`: allows to defina a user_config.json per <platform_version>. 

## Usage

1. edit `<platform>_user_config.json` that matches your <platform_version> according https://github.com/RedPill-TTG/redpill-load and place it in the same folder as redpill_tool_chain.sh
2. Build the image for the platform and version you want:
   `./redpill_tool_chain.sh build <platform_version>`
3. Run the image for the platform and version you want:
   `./redpill_tool_chain.sh auto <platform_version>`

 

You can always use `./redpill_tool_chain.sh run <platform_version>` to get a bash prompt, modify whatever you want and finaly execute `make -C /opt/build_all` to build the boot loader image.

 

Note1: run `./redpill_tool_chain.sh` to get the list of supported ids for the <platform_version> parameter.

Note2: if `docker.use_local_rp_load` is set to `true`, the auto action will not pull latest redpill-load sources.

 

See README.md for examples

redpill-tool-chain_x86_64_v0.6.zip 7.41 kB · 47 downloads

Hi, could you please keep Pat fule outside container ?

 

As we need it to install DSM, it avoid downloading it twice ans search it elsewere.

 

thank you

Link to comment
Share on other sites

34 minutes ago, Orphée said:

Hi, could you please keep Pat fule outside container ?

 

There is a bind-mount in place from the ./cache folder on the host to the /opt/redpill-load/cache folder in the container.

The content (~=pat files) of the cache folder has been been stored directly on the host since v0.4.

 

Edited by haydibe
  • Like 1
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.   Paste as plain text instead

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