Jump to content
XPEnology Community

ghtester

Transition Member
  • Posts

    18
  • Joined

  • Last visited

Everything posted by ghtester

  1. Thank you for another attempt, tried on the same (a bit improper) hardware with the same (crash) result. I'll try to put the module to bootloader and test on baremetal which has ICH7 controller. [ 342.304251] WARNING: module 'ata_piix' built without retpoline-enabled compiler, may affect Spectre v2 mitigation [ 342.316049] ata_piix 0000:00:1f.5: version 2.13 [ 342.321262] ata_piix 0000:00:1f.5: MAP [ [ 342.325649] P0 -- P1 -- ] [ 342.479052] BUG: unable to handle kernel NULL pointer dereference at 000000000000001b [ 342.480013] IP: [<ffffffffa0ef6dc7>] piix_init_one+0x527/0x8dd [ata_piix] [ 342.480013] PGD b650e067 PUD 80d53067 PMD 0 [ 342.480013] Oops: 0000 [#1] SMP [ 342.480013] Modules linked in: ata_piix(F+) fuse 8021q vhost_scsi(O) vhost(O) tcm_loop(O) iscsi_target_mod(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) evdev(OF) button(OF) udf isofs loop synoacl_vfs(PO) btrfs zstd_decompress ecryptfs zstd_compress xxhash xor raid6_pq zram(C) glue_helper lrw gf128mul ablk_helper bromolow_synobios(PO) hid_generic usbhid hid usblp bnx2x(O) mdio mlx5_core(O) mlx4_en(O) mlx4_core(O) mlx_compat(O) qede(O) qed(O) atlantic_v2(O) atlantic(O) tn40xx(O) i40e(O) ixgbe(O) be2net(O) i2c_algo_bit igb(O) dca e1000e(O) sg dm_snapshot crc_itu_t crc_ccitt psnap p8022 llc zlib_deflate libcrc32c hfsplus md4 hmac sit tunnel4 ipv6 flashcache_syno(O) flashcache(O) syno_flashcache_control(O) [ 342.557731] dm_mod cryptd arc4 sha256_generic sha1_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance acpi_cpufreq mperf processor thermal_sys cpufreq_stats freq_table vxlan ip_tunnel etxhci_hcd usb_storage xhci_hcd uhci_hcd ehci_pci ehci_hcd usbcore usb_common redpill(OF) [last unloaded: bromolow_synobios] [ 342.557731] CPU: 0 PID: 12307 Comm: insmod Tainted: PF C O 3.10.108 #42214 [ 342.557731] Hardware name: HP ProLiant ML110 G5/ProLiant ML110 G5, BIOS O15 10/25/2010 [ 342.557731] task: ffff88009e583820 ti: ffff8800b8264000 task.ti: ffff8800b8264000 [ 342.557731] RIP: 0010:[<ffffffffa0ef6dc7>] [<ffffffffa0ef6dc7>] piix_init_one+0x527/0x8dd [ata_piix] [ 342.557731] RSP: 0018:ffff8800b8267b98 EFLAGS: 00010206 [ 342.557731] RAX: ffffffffa0ef96b0 RBX: ffff8800b9713000 RCX: ffff8800a49aae58 [ 342.557731] RDX: ffffffffa0ef96b0 RSI: 0000000000000282 RDI: ffffffff819b7080 [ 342.557731] RBP: 0000000000000000 R08: ffff8800b8264000 R09: 0036edc6ec893e1d [ 342.557731] R10: ffffffffffffffff R11: 0000000225c17d03 R12: 0000000030000002 [ 342.557731] R13: ffff8800b9713098 R14: 0000000000000000 R15: ffff8800b9713098 [ 342.557731] FS: 00007ff4166a0540(0000) GS:ffff8800bda00000(0000) knlGS:0000000000000000 [ 342.557731] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 342.557731] CR2: 000000000000001b CR3: 0000000080bbe000 CR4: 00000000000007f0 [ 342.557731] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 342.557731] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 342.557731] Stack: [ 342.557731] ffff8800b83159d8 ffffffffa0ef96a0 0000000000000000 00000003000000d0 [ 342.557731] ffff020281121167 ffff8800a49aae58 ffff8800b8267bd8 ffff8800b8267c10 [ 342.557731] 0000000030000002 0000000000000000 000000000000001f 0000000000000007 [ 342.557731] Call Trace: [ 342.557731] [<ffffffff812b2f11>] ? pci_device_probe+0x71/0xb0 [ 342.557731] [<ffffffff81326431>] ? driver_probe_device+0x81/0x3e0 [ 342.557731] [<ffffffff8132684b>] ? __driver_attach+0x7b/0x80 [ 342.557731] [<ffffffff813267d0>] ? __device_attach+0x40/0x40 [ 342.557731] [<ffffffff8132458d>] ? bus_for_each_dev+0x5d/0x90 [ 342.557731] [<ffffffff81325a68>] ? bus_add_driver+0x208/0x2a0 [ 342.557731] [<ffffffffa0efd000>] ? 0xffffffffa0efcfff [ 342.557731] [<ffffffff81326e49>] ? driver_register+0x69/0x170 [ 342.557731] [<ffffffffa0efd000>] ? 0xffffffffa0efcfff [ 342.557731] [<ffffffffa0efd01a>] ? piix_init+0x1a/0x29 [ata_piix] [ 342.557731] [<ffffffff810002ea>] ? do_one_initcall+0x2a/0x170 [ 342.557731] [<ffffffff81095149>] ? load_module+0x1b89/0x2540 [ 342.557731] [<ffffffff812a2cb0>] ? ddebug_proc_write+0xf0/0xf0 [ 342.557731] [<ffffffff81095c9d>] ? SYSC_finit_module+0x7d/0xc0 [ 342.557731] [<ffffffff814affbe>] ? system_call_fastpath+0x1c/0x21 [ 342.557731] [<ffffffff814aff11>] ? system_call_after_swapgs+0xae/0x13f [ 342.557731] Code: 4c 8b 71 70 48 89 04 24 48 8b 00 48 8d 50 10 83 38 ff 74 40 48 83 c0 04 48 39 c2 75 f2 41 81 7d a4 86 80 20 29 0f 84 f9 01 00 00 <41> f6 46 1b 20 74 22 49 8b 85 d0 02 00 00 48 85 c0 74 16 49 8b [ 342.557731] RIP [<ffffffffa0ef6dc7>] piix_init_one+0x527/0x8dd [ata_piix] [ 342.557731] RSP <ffff8800b8267b98> [ 342.557731] CR2: 000000000000001b [ 342.910060] ---[ end trace 5be877b7c1576729 ]--- Edit - I can confirm the driver is crashing during the boot as well: [ 16.166975] WARNING: module 'ata_piix' built without retpoline-enabled compiler, may affect Spectre v2 mitigation [ 16.236788] ata_piix 0000:00:1f.2: version 2.13 [ 16.241627] ata880019ba4000 [ 16.400001] RIP: 0010:[<ffffffffa00ffdc7>] [<ffffffffa00ffdc7>] piix_init_one+0x527/0x8dd [ata_piix] [ 16.400001] RSP: 0018:ffff880019ba7b98 EFLAGS: 00010287 [ 16.400001] RAX: ffffffffa0102788 RBX: ffff88001a44f800 RCX: ffff88001ece6618 [ 16.400001] RDX: ffffffffa0102788 RSI: 0000000000000282 RDI: ffffffff819b7080 [ 16.400001] RBP: 0000000000000000 R08: 0000000000000002 R09: 0000000000015d50 [ 16.400001] R10: ffff88001f25eff0 R11: 0000000225c17d03 R12: 0000000010000002 [ 16.400001] R13: ffff88001a44f898 R14: 0000000000000000 R15: ffff88001a44f898 [ 16.400001] FS: 00007f9fc4b50740(0000) GS:ffff88001f400000(0000) knlGS:0000000000000000 [ 16.400001] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 16.400001] CR2: 000000000000001b CR3: 000000001956c000 CR4: 00000000000007f0 [ 16.400001] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 16.400001] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 16.400001] Stack: [ 16.400001] ffff88001edf92d8 ffffffffa0102778 0000000000000000 00000003000000d0 [ 16.400001] ffff001181121167 ffff88001ece6618 ffff880019ba7bd8 ffff880019ba7c10 [ 16.400001] 0000000010000003 0000000000000000 000000000000001f 0000000000000007 [ 16.400001] Call Trace: [ 16.400001] [<ffffffff812b2f11>] ? pci_device_probe+0x71/0xb0 [ 16.400001] [<ffffffff81326431>] ? driver_probe_device+0x81/0x3e0 [ 16.400001] [<ffffffff8132684b>] ? __driver_attach+0x7b/0x80 [ 16.400001] [<ffffffff813267d0>] ? __device_attach+0x40/0x40 [ 16.400001] [<ffffffff8132458d>] ? bus_for_each_dev+0x5d/0x90 [ 16.400001] [<ffffffff81325a68>] ? bus_add_driver+0x208/0x2a0 [ 16.400001] [<ffffffffa0106000>] ? 0xffffffffa0105fff [ 16.400001] [<ffffffff81326e49>] ? driver_register+0x69/0x170 [ 16.400001] [<ffffffffa0106000>] ? 0xffffffffa0105fff [ 16.400001] [<ffffffffa010601a>] ? piix_init+0x1a/0x29 [ata_piix] [ 16.400001] [<ffffffff810002ea>] ? do_one_initcall+0x2a/0x170 [ 16.400001] [<ffffffff81095149>] ? load_module+0x1b89/0x2540 [ 16.400001] [<ffffffff812a2cb0>] ? ddebug_proc_write+0xf0/0xf0 [ 16.400001] [<ffffffff81095c9d>] ? SYSC_finit_module+0x7d/0xc0 [ 16.400001] [<ffffffff814affbe>] ? system_call_fastpath+0x1c/0x21 [ 16.400001] [<ffffffff814aff11>] ? system_call_after_swapgs+0xae/0x13f [ 16.400001] Code: 4c 8b 71 70 48 89 04 24 48 8b 00 48 8d 50 10 83 38 ff 74 40 48 83 c0 04 48 39 c2 75 f2 41 81 7d a4 86 80 20 29 0f 84 f9 01 00 00 <41> f6 46 1b 20 74 22 49 8b 85 d0 02 00 00 48 85 c0 74 16 49 8b [ 16.400001] RIP [<ffffffffa00ffdc7>] piix_init_one+0x527/0x8dd [ata_piix] [ 16.400001] RSP <ffff880019ba7b98> [ 16.400001] CR2: 000000000000001b [ 16.697324] ---[ end trace 68cf778a0238a203 ]--- Killed
  2. Thanks again, this module can be load but leads to crash so I suppose it was compiled with generic kernel 3.10.108 sources. I tried that as well (and none of modules I needed was working) but as already confirmed by @ThorGroup, this is not a proper way (although maybe some drivers can work). insmod ata_piix/ata_piix.ko Killed [91701.976157] WARNING: module 'ata_piix' built without retpoline-enabled compiler, may affect Spectre v2 mitigation [91701.987932] ata_piix 0000:00:1f.5: version 2.13 [91701.993164] ata_piix 0000:00:1f.5: MAP [ [91701.997551] P0 -- P1 -- ] [91702.151055] BUG: unable to handle kernel NULL pointer dereference at 000000000000001b [91702.152013] IP: [<ffffffffa0edfdc7>] piix_init_one+0x527/0x8dd [ata_piix] [91702.152013] PGD 78e74067 PUD 977a2067 PMD 0 [91702.152013] Oops: 0000 [#1] SMP [91702.152013] Modules linked in: ata_piix(F+) fuse 8021q vhost_scsi(O) vhost(O) tcm_loop(O) iscsi_target_mod(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) evdev(OF) button(OF) udf isofs loop synoacl_vfs(PO) btrfs zstd_decompress ecryptfs zstd_compress xxhash xor raid6_pq zram(C) glue_helper lrw gf128mul ablk_helper bromolow_synobios(PO) hid_generic usbhid hid usblp bnx2x(O) mdio mlx5_core(O) mlx4_en(O) mlx4_core(O) mlx_compat(O) qede(O) qed(O) atlantic_v2(O) atlantic(O) tn40xx(O) i40e(O) ixgbe(O) be2net(O) i2c_algo_bit igb(O) dca e1000e(O) sg dm_snapshot crc_itu_t crc_ccitt psnap p8022 llc zlib_deflate libcrc32c hfsplus md4 hmac sit tunnel4 ipv6 flashcache_syno(O) flashcache(O) syno_flashcache_control(O) [91702.190422] dm_mod cryptd arc4 sha256_generic sha1_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance acpi_cpufreq mperf processor thermal_sys cpufreq_stats freq_table vxlan ip_tunnel etxhci_hcd usb_storage xhci_hcd uhci_hcd ehci_pci ehci_hcd usbcore usb_common redpill(OF) [last unloaded: bromolow_synobios] [91702.190422] CPU: 0 PID: 10438 Comm: insmod Tainted: PF C O 3.10.108 #42214 [91702.190422] Hardware name: HP ProLiant ML110 G5/ProLiant ML110 G5, BIOS O15 10/25/2010 [91702.190422] task: ffff88009b585040 ti: ffff880071020000 task.ti: ffff880071020000 [91702.190422] RIP: 0010:[<ffffffffa0edfdc7>] [<ffffffffa0edfdc7>] piix_init_one+0x527/0x8dd [ata_piix] [91702.190422] RSP: 0018:ffff880071023b98 EFLAGS: 00010206 [91702.190422] RAX: ffffffffa0ee26b0 RBX: ffff8800b9793000 RCX: ffff8800a8efea58 [91702.190422] RDX: ffffffffa0ee26b0 RSI: 0000000000000282 RDI: ffffffff819b7080 [91702.190422] RBP: 0000000000000000 R08: ffff880071020000 R09: 0020ee39e1f9050d [91702.190422] R10: ffffffffffffffff R11: 0000000225c17d03 R12: 0000000030000002 [91702.190422] R13: ffff8800b9793098 R14: 0000000000000000 R15: ffff8800b9793098 [91702.190422] FS: 00007fcfc8b3b540(0000) GS:ffff8800bda00000(0000) knlGS:0000000000000000 [91702.190422] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [91702.190422] CR2: 000000000000001b CR3: 0000000071e50000 CR4: 00000000000007f0 [91702.190422] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [91702.190422] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [91702.190422] Stack: [91702.190422] ffff880035e95358 ffffffffa0ee26a0 0000000000000000 00000003000000d0 [91702.190422] ffff020281121167 ffff8800a8efea58 ffff880071023bd8 ffff880071023c10 [91702.190422] 0000000030000002 0000000000000000 000000000000001f 0000000000000007 [91702.190422] Call Trace: [91702.190422] [<ffffffff812b2f11>] ? pci_device_probe+0x71/0xb0 [91702.190422] [<ffffffff81326431>] ? driver_probe_device+0x81/0x3e0 [91702.190422] [<ffffffff8132684b>] ? __driver_attach+0x7b/0x80 [91702.190422] [<ffffffff813267d0>] ? __device_attach+0x40/0x40 [91702.190422] [<ffffffff8132458d>] ? bus_for_each_dev+0x5d/0x90 [91702.190422] [<ffffffff81325a68>] ? bus_add_driver+0x208/0x2a0 [91702.190422] [<ffffffffa0ee6000>] ? 0xffffffffa0ee5fff [91702.190422] [<ffffffff81326e49>] ? driver_register+0x69/0x170 [91702.190422] [<ffffffffa0ee6000>] ? 0xffffffffa0ee5fff [91702.190422] [<ffffffffa0ee601a>] ? piix_init+0x1a/0x29 [ata_piix] [91702.190422] [<ffffffff810002ea>] ? do_one_initcall+0x2a/0x170 [91702.190422] [<ffffffff81095149>] ? load_module+0x1b89/0x2540 [91702.190422] [<ffffffff812a2cb0>] ? ddebug_proc_write+0xf0/0xf0 [91702.190422] [<ffffffff81095c9d>] ? SYSC_finit_module+0x7d/0xc0 [91702.190422] [<ffffffff814affbe>] ? system_call_fastpath+0x1c/0x21 [91702.190422] [<ffffffff814aff11>] ? system_call_after_swapgs+0xae/0x13f [91702.190422] Code: 4c 8b 71 70 48 89 04 24 48 8b 00 48 8d 50 10 83 38 ff 74 40 48 83 c0 04 48 39 c2 75 f2 41 81 7d a4 86 80 20 29 0f 84 f9 01 00 00 <41> f6 46 1b 20 74 22 49 8b 85 d0 02 00 00 48 85 c0 74 16 49 8b [91702.190422] RIP [<ffffffffa0edfdc7>] piix_init_one+0x527/0x8dd [ata_piix] [91702.190422] RSP <ffff880071023b98> [91702.190422] CR2: 000000000000001b [91702.582086] ---[ end trace a9f85e2570baadf7 ]--- I'll try to inject this driver to bootloader to see if it crashes there as well... And also I'll try to run it on a proper hardware (tried on ML110G5 by mistake...)
  3. Thank you but it does not work for bromolow - the correct version magic is 3.10.108 SMP ( 3.10.108 #42214 SMP Sat Aug 28 02:41:43 CST 2021 x86_64 GNU/Linux synology_bromolow_3615xs), not 3.10.108+ SMP mod_unload That's why load attempt leads to error message: insmod: ERROR: could not insert module ata_piix/ata_piix.ko: Invalid module format So the question is still the same - is there anybody who could share a compilation command with proper parameters I should use to compile bromolow modules for DSM 7.0.1 RC with toolchain only please?
  4. Yes I know but I don't know how to get (compile) necessary modules with toolkit/toolchain only, without kernel sources (can anybody share a command with specific parameters to get - for instance - the ata_piix.ko compiled (ich7 sata support - CONFIG_ATA_PIIX) without kernel sources and working in DSM 7.0.1 (based on kernel 3.10.108) on bromolow/ DS3615xs ?).
  5. AFAIK 2543branch/bromolow-source is 3.10.105, as 3.10.108 was not published yet. I wonder which parameters for compilation with toolchain you are using to get working .ko modules for DSM 7.0.1 RC. I have always failed - despite the compilation was finished, the bromolow modules were unusable for me. With 2543branch sources the compiled modules have 3.10.105 magic and when the common kernel sources 3.10.108 are used, there're kernel exceptions when I try to load modules. On the other side, there are some working network drivers for bromolow & DSM 7.0.1 shared here earlier by some people. So what's the trick I am missing? 😕
  6. I can confirm working DS3615xs_7.0.1-42214 as VM on ESXi 6.0, using bootloader compiled recently with @haydibe's great tool 0.7.3. The VM configuration - latest virtual hardware available in ESXi 6.0, custom config - Guest OS Family = Other, Guest OS Version = Other (64-bit), 1 socket - 2 CPU, Memory 2048, Network Adapter E1000e, add 2 SATA controlleres, HDD1=bootloader-SATA 1:0, HDD2=OS-SATA0:0. In VM BIOS changed boot order to HDD2. Bootloader - select SATA boot. Bootloader cmdline used / changed - syno_hdd_detect=1 DiskIdxMap=0 SataPortMap=12 SasIdxMap=0 HddHotplug=1
  7. Now compiled the 3615 bootloader succesfully but did not test an installation yet.
  8. Exactly, the docker from @haydibe is a great tool and hopefully he'll be able to find some free time to update the scripts later. BTW. I am already testing DSM 7.0.1 installed on veteran baremetal HP ML110G5 using bromolow-7.0.1-42214 bootloader compiled couple days ago. Seems to be working fine but I had to install a supported network card (E100E compatible as I am not still able to properly compile a necessary modules with bromolow toolchain). Also it was necessary to enable RAID in BIOS and put DiskIdxMap=00 SataPortMap=4 SasIdxMap=0 mapping to cmdline.
  9. The almost exactly the same issue here, I just get a slightly different output but in general it also fails with: *** Please tell me who you are.
  10. 'they should' is absolute correct but they don't care much about it for years... They'll do it sometimes but it'll take some (and usually a quite long) time...
  11. Well, I did not try to compile kernel, just modules but many of them - mostly for network cards - all Broadcom modules, Realtek network cards support, also support for wireless USB network cards, modules for UVC video etc... As there are dependencies, perhaps selecting many modules made the compilation useless (despite compilation finished OK). Or I made some mistake... Thanks for your offer, I'll try again and when it fails, I'll ask you later for help, at least with some mostly wanted modules...
  12. Unfortunately this is a generic source which did not work for me. Synology has patched kernel sources and they usually publish them with a huge delay. At the usual location ( https://sourceforge.net/projects/dsgpl/files/Synology NAS GPL Source/ ) I could not find the 7.0.1 sources so far.
  13. I have the same issue, tried to compile some modules with generic sources & synoconfig file for bromolow but compiled modules are useless - segmentation faults etc...
  14. Check if you have first partition marked as Active on your USB key (or set it directly). I have imaged the USB key with balenaEtcher as well but the first partition was NOT active and therefore on some computers it could not boot (may depend on BIOS type). For instance you may do it on Windows machine with attached USB Key: C:\>diskpart Microsoft DiskPart version 10.0.17763.1 Copyright (C) Microsoft Corporation. On computer: Workstation DISKPART> sel disk 1 Disk 1 is now the selected disk. DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 243 GB 1024 KB * Disk 1 Online 7488 MB 7360 MB DISKPART> list part Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Primary 48 MB 1024 KB Partition 2 Primary 75 MB 49 MB Partition 3 Primary 4096 KB 124 MB DISKPART> sel part 1 Partition 1 is now the selected partition. DISKPART> active DiskPart marked the current partition as active. DISKPART> exit Leaving DiskPart...
  15. There's nothing extra to be shared, I have just followed the instructions it this thread (regarding to loader compilation using docker on Ubuntu 18.04, it's important to edit user_config.json and configure pid, vid of USB key properly and also sn and mac1). Then I wrote the loader image to USB flash key (with balenaEtcher). It was just necessary to make the first partition active on USB flash key (with diskpart). In dc7700's BIOS configuration it was necessary to configure SATA emulation to RAID. That's all.
  16. FYI I have tested redpill-DS3615xs_7.0-41222_b1629822564.img loader on baremetal - old HP dc7700, DSM succesfully installed from ds3615xs_41222.pat file and so far it seems to be working fine. Great work, developers!
  17. I have succesfully compiled the image using docker, unfortunately the baremetal devices I can use for testing have just Broadcom ethernet adapters. Is there an easy way to modify the script(s) to get compiled & included tg3 module driver please? Where should I start looking?
×
×
  • Create New...