Jump to content
XPEnology Community

medric

Member
  • Posts

    66
  • Joined

  • Last visited

Posts posted by medric

  1. On 10/25/2019 at 10:15 AM, IG-88 said:

    afaik the 3617 has the same limit

    anyway nothing you can do about it when using dsm, the kernel is original synology and we can only use what we have loaders for (loader = hack for a specific system image)

    if its important then you might try a different mas software like open media vault

     

     

    3617 will load 16 cores before it ignores the rest i have tired with an 8/16 and a 12/24 e5 v2 cpu on 3617 highest i can go with 3615 is 8 cores

  2. On 12/31/2019 at 12:31 PM, Dvalin21 said:

     

    Hello everyone just had a question as I'm getting ready to put my build together. How many cores do you suggest the CPU to be? I'm seeing Xeon 8 core processors for 30 bucks on the internet but doesn't mean I need all data just to run data and a little bit of streaming. Also, ECC or Non ECC which is the better option? I will more likely stick with the Xeon series of CPU and any MB suggestions are welcomed. Thanks in advance.

     

    PS: What does Evey think of the raspberry pie being used as a nas?

     

     

    Sent from my HD1925 using Tapatalk

     

     

     

    The more cores at the highest spead you can get and your system will allow

    3615 will only allow 8 

    3617 will allow 16 

    918 seams from another post to only allow total of 8 before it disables the rest and gives dmesg errors 

    • Like 1
  3. On 7/8/2019 at 2:35 PM, flyride said:

    AFAIK the limit is in the kernel itself, as compiled by Synology.  The platforms enabled by the current loaders have the following compute characteristics:

     

    DS3617xs - Xeon D-1527 - 4C/8T

    DS3615xs - Core i3-4130 - 2C/4T

    DS918 - J3455 - 4C/4T

     

    There has been some confusion about cores vs. threads.  I think that 16 threads is the kernel limit.

    As you can see, 16 threads covers all these CPUs and we have evidence that 16 threads are supported on all three platforms.

     

    If you have more than 8 cores, you will get better performance by disabling SMT. @levifig, you are already doing this. I don't think there is any other way to support @Yossi1114's 10C/20T processor other than to disable SMT.

     

    If someone wants to develop a loader against a platform with more thread support, may I suggest investigating the FS3017 (E5-2620v3 x 2 = 12C/24T) FS2017 (D-1541 = 8C/16T) or RS3618xs (D-1521 = 8C/16T). It would stand to reason that the kernel thread limits might be higher for those platforms.

     

    I know for a fact to much trial and error on my last 2019 build that 3615 only loads max 8 CPU while the  3617 will load max 16. and from another post it seems 918 will only load 8 cpu. which sucks as more and more cpu are adding cores/treads

    I had a 12 core 24T cpu that would only load 16 in Hyper treading and dmesg the others out but would load 12 HT off with no messages either way it worked fine just with the limits 

  4. On 10/25/2019 at 10:26 AM, kaktuss77 said:

    with the 3617xs, i remember all my cpu cores was working, all of them was reporting on my snmp agent.uhm, can't migrate the system, I have 36TB of data on my raid5
    Thanks for answer, well done, it's ok

     

     

     

    you are correct 3615 stops at 8 and 3617 stops at 16 it looks like 918 stops at 8 so you would have to stick with 3617 if want greater than 8 threads. It looks like I am in the same boat I was hoping that 918 would support 16 since more cpu are getting more and more cores.

  5. My Intel Shows Intel Genuine and not that name and each core shows up independently intel E5-2628 x12

     

     dmidecode -t processor
    # dmidecode 2.12
    # SMBIOS entry point at 0x000f04d0
    SMBIOS 2.7 present.
    
    Handle 0x0004, DMI type 4, 42 bytes
    Processor Information
            Socket Designation: SOCKET 0
            Type: Central Processor
            Family: Xeon
            Manufacturer: Intel
            ID: E2 06 03 00 FF FB EB BF
            Signature: Type 0, Family 6, Model 62, Stepping 2
            Flags:
                    FPU (Floating-point unit on-chip)
                    VME (Virtual mode extension)
                    DE (Debugging extension)
                    PSE (Page size extension)
                    TSC (Time stamp counter)
                    MSR (Model specific registers)
                    PAE (Physical address extension)
                    MCE (Machine check exception)
                    CX8 (CMPXCHG8 instruction supported)
                    APIC (On-chip APIC hardware supported)
                    SEP (Fast system call)
                    MTRR (Memory type range registers)
                    PGE (Page global enable)
                    MCA (Machine check architecture)
                    CMOV (Conditional move instruction supported)
                    PAT (Page attribute table)
                    PSE-36 (36-bit page size extension)
                    CLFSH (CLFLUSH instruction supported)
                    DS (Debug store)
                    ACPI (ACPI supported)
                    MMX (MMX technology supported)
                    FXSR (FXSAVE and FXSTOR instructions supported)
                    SSE (Streaming SIMD extensions)
                    SSE2 (Streaming SIMD extensions 2)
                    SS (Self-snoop)
                    HTT (Multi-threading)
                    TM (Thermal monitor supported)
                    PBE (Pending break enabled)
            Version: Genuine Intel(R) CPU @ 2.30GHz
            Voltage: 0.0 V
            External Clock: 100 MHz
            Max Speed: 4000 MHz
            Current Speed: 2300 MHz
            Status: Populated, Enabled
            Upgrade: Socket LGA2011
            L1 Cache Handle: 0x0005
            L2 Cache Handle: 0x0006
            L3 Cache Handle: 0x0007
            Serial Number: Not Specified
            Asset Tag: 87B21280655F7413
            Part Number: Not Specified
            Core Count: 12
            Core Enabled: 12
            Thread Count: 24
            Characteristics:
                    64-bit capable
                    Multi-Core
                    Hardware Thread
                    Execute Protection
                    Enhanced Virtualization
                    Power/Performance Control
    cat /proc/cpuinfo
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 62
    model name      : Genuine Intel(R) CPU  @ 2.30GHz
    stepping        : 2
    microcode       : 0x20d
    cpu MHz         : 2301.000
    cache size      : 30720 KB
    physical id     : 0
    siblings        : 12
    core id         : 0
    cpu cores       : 12
    apicid          : 0
    initial apicid  : 0
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 13
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
    bogomips        : 4599.80
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 46 bits physical, 48 bits virtual
    power management:
    
    processor       : 1
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 62
    model name      : Genuine Intel(R) CPU  @ 2.30GHz
    stepping        : 2
    microcode       : 0x20d
    cpu MHz         : 2301.000
    cache size      : 30720 KB
    physical id     : 0
    siblings        : 12
    core id         : 1
    cpu cores       : 12
    apicid          : 2
    initial apicid  : 2
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 13
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
    bogomips        : 4599.80
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 46 bits physical, 48 bits virtual
    power management:
    
    -----------|
               |
              \ /
    
    processor       : 11
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 62
    model name      : Genuine Intel(R) CPU  @ 2.30GHz
    stepping        : 2
    microcode       : 0x20d
    cpu MHz         : 2301.000
    cache size      : 30720 KB
    physical id     : 0
    siblings        : 12
    core id         : 13
    cpu cores       : 12
    apicid          : 26
    initial apicid  : 26
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 13
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
    bogomips        : 4599.80
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 46 bits physical, 48 bits virtual
    power management:

     

  6. very useful I have amd opteron 6272 that works with DSM 6.2  3615 but not 3617 dont know why i have tried a lot of stuff but cant get it to work, any thoughts

    Supermicro H8SGL-F  c1E disable 

     

    the reason i wanted 3617 DSM 6.2 is i know it supports 16 cores ( i have tested it the an intel cpu)

    cat /proc/cpuinfo | grep "cpu cores" | sort -u | awk '{print $NF}'

     

  7. very useful I have amd opteron 6272 that works with DSM 6.2  3615 but not 3617 dont know why i have tried a lot of stuff but cant get it to work, any thoughts

    Supermicro H8SGL-F  c1E disable 

     

    the reason i wanted 3617 DSM 6.2 is i know it supports 16 cores ( i have tested it the an intel cpu)

    cat /proc/cpuinfo | grep "cpu cores" | sort -u | awk '{print $NF}'

     

  8. On 7/27/2017 at 10:57 AM, Elpee said:

    Check your firmware version.

    Mine are 20.00.04.00 and 20.00.07.00. Both work.

     

    yeah its odd my 9211 card works both windows and xpe the 9240 flash to it mode works windows load in bios drives are found but xpe has issues with it. i will look at it some more later this week

  9. 4 hours ago, satdream said:

     

    Hi, I'm working on ESXi v6 with a DELL H310 flashed LSI 9211-it P20, with jun 1.02b DS3617 6.1.3, and no issue together with external enclosure of x4 HDD 10Tb ...

     

    BUT, I'm not in passthrough mode, I simply use the mapping of drives in VM configuration (perf. are very good with transfer speed ~98 Mbps from my PC to HDD)

     

    No change or configuration, the H310 is directly recognized by ESXi, HDD shown in storage configuration, with the x4 HDD, I simply mapped each drive with command

     

    vmkfstools -z /vmfs/devices/disks/<drive id> ./DISKS/<given drive name>.vmdk

     

    and then, add them to the VM (add drive, existing one, persistent etc.)

     

    Hope this help ...

     

     

    I am not sure what happen to this card it works with windows and bios sees in in both computer however the other card works fine i have two cards one p20 9211 and a p19 9240 flash to it mode which bios sees b ut does not load properly in xpe

  10. 19 hours ago, IG-88 said:

     

    i found this list of kernel optins to activate hyper-v

     

    CONFIG_HYPERVISOR_GUEST: Processor type and featueres > Linux Guest Support
    CONFIG_PARAVIRT: Processor type and features > Linux Guest Support > Enable paravirtualization code
    CONFIG_PARAVIRT_SPINLOCKS: Processor type and features > Linux Guest Support > Paravirtualization layer for spinlocks
    CONFIG_HYPERV: Device Drivers > Microsoft Hyper-V guest support > Microsoft Hyper-V client drivers
    CONFIG_HYPERV_UTILS: Device Drivers > Microsoft Hyper-V guest support > Microsoft Hyper-V Utilities driver
    CONFIG_HYPERV_BALLOON: Device Drivers > Microsoft Hyper-V guest support > Microsoft Hyper-V Balloon driver
    CONFIG_HYPERV_NET: Device Drivers > Network device support > Microsoft Hyper-V virtual network driver
    CONFIG_HYPERV_STORAGE: Device Drivers > SCSI device support > SCSI low-level drivers > Microsoft Hyper-V virtual storage driver
    CONFIG_HYPERV_KEYBOARD: Device Drivers > Input device support > Hardware I/O ports > Microsoft Synthetic Keyboard driver
    CONFIG_FB_HYPERV: Device Drivers > Graphics support > Frame buffer Devices > Microsoft Hyper-V Synthetic Video support
    CONFIG_HID_HYPERV_MOUSE: Device Drivers > HID support > Special HID drivers > Microsoft Hyper-V mouse driver

     

    unfortunatly the first three options are no drivers that can be loaded as module they are kernel options, as they will have to be compiled directly into the kernel (provided by jun including the nice tricks to start on non synology hardware) they are not present so having the hypery-v drivers might/will be of no use

     

    also in kernel 3.10.102 (synology dsm 6.1) there was so option for "Microsoft Synthetic Keyboard driver"

     

    the resultung drivers are like this

     

      LD [M]  drivers/hv/hv_balloon.ko
      LD [M]  drivers/hv/hv_utils.ko
      LD [M]  drivers/hv/hv_vmbus.ko
      LD [M]  drivers/scsi/hv_storvsc.ko
      LD [M]  drivers/hid/hid-hyperv.ko
      LD [M]  drivers/net/hyperv/hv_netvsc.ko
      LD [M]  drivers/video/cfbcopyarea.ko
      LD [M]  drivers/video/cfbfillrect.ko
      LD [M]  drivers/video/cfbimgblt.ko
      LD [M]  drivers/video/hyperv_fb.ko

     

    but imho are useless atm and beside this i will not try/experiment with hyper-v and xpenology, i use barematal and for testing virtual box, no need for hyper-y from my side (there goes another hour of my time without a useful result)

    +1

    That is great news we just have to have some let Jun know the importance of hyper-v drivers. 

  11. 8 hours ago, jamesjfa said:

     

    I have P20 installed

     

    very odd i will try to flash again that is very very odd so it has to be a bad flash (even though windows sees it fine and drives all work under windows) hmm 

  12. 15 hours ago, jamesjfa said:

     

    I'm not sure what your setup is but I run my NAS on esx 6.5 with my lsi -9211 passed through and have no issues.

     

    I'm on the latest loader and running DS3617xs (latest DSM)

     

     

    Sent from my iPad using Tapatalk Pro

     

     

    my setup is normal is baremetal lsi 9211-it  p19 1.02b so i know it works but why is it not working is the real question do i need to downgrade further

    i added my log where it shows something weird if a dev can step in and have a look .

    19 hours ago, medric said:

    [ 3.119995] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 200 6)

    [ 3.125607] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)

    [ 3.142392] Fusion MPT base driver 3.04.20 [ 3.142395] Copyright (c) 1999-2008 LSI Corporation

    [ 3.152978] Fusion MPT SPI Host driver 3.04.20 [ 3.158430] Fusion MPT SAS Host driver 3.04.20 [ 3.163786] Fusion MPT misc device (ioctl) driver 3.04.20

    [ 3.163888] mptctl: Registered with Fusion MPT base driver

    [ 3.163891] mptctl: /dev/mptctl @ (major,minor=10,220)

    [ 3.174735] megasas: 06.506.00.00-rc1 Sat. Feb. 9 17:00:00 PDT 2013 [ 3.180708] mpt2sas version 20.00.00.00 loaded [ 3.180846] scsi6 : Fusion MPT SAS Host

    [ 3.181255] mpt2sas 0000:08:00.0: enabling device (0000 -> 0002)

    [ 3.181309] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (660 51852 kB)

    [ 3.181321] mpt2sas0: sending diag reset !!

    [ 3.332476] mpt2sas0: diag reset: FAILED

    [ 3.332635] mpt2sas0: _base_get_ioc_facts: failed getting to correct state

    [ 3.332903] mpt2sas0: mpt2sas_base_unmap_resources

    [ 3.332941] mpt2sas0: Controller resources are already freed

    [ 3.332943] mpt2sas0: failure at //source/lsi-mpt2sas/mpt2sas_scsih.c:11743/_ scsih_probe()!

    [ 3.339862] mpt3sas version 13.00.00.00 loaded

  13. 9 hours ago, jamesjfa said:

     

    I'm not sure what your setup is but I run my NAS on esx 6.5 with my lsi -9211 passed through and have no issues.

     

    I'm on the latest loader and running DS3617xs (latest DSM)

     

     

    Sent from my iPad using Tapatalk Pro

     

    what version of firmware you're running on your card? that could be the difference i had my on the avago p20 downgrade it to the 19 if i need to go to an older code i can get it and flash it tonight let me know

  14. I have downgrade my lsi 9211-it sas2008 from p20 to p19 and i still does not work using jun 1.02b ds3617 6.1.3

     

    can someone respond?

     

    
    [    3.119995] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 200                                                         6)
    [    3.125607] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
    [    3.142392] Fusion MPT base driver 3.04.20
    [    3.142395] Copyright (c) 1999-2008 LSI Corporation
    [    3.152978] Fusion MPT SPI Host driver 3.04.20
    [    3.158430] Fusion MPT SAS Host driver 3.04.20
    [    3.163786] Fusion MPT misc device (ioctl) driver 3.04.20
    [    3.163888] mptctl: Registered with Fusion MPT base driver
    [    3.163891] mptctl: /dev/mptctl @ (major,minor=10,220)
    [    3.174735] megasas: 06.506.00.00-rc1 Sat. Feb. 9 17:00:00 PDT 2013
    [    3.180708] mpt2sas version 20.00.00.00 loaded
    [    3.180846] scsi6 : Fusion MPT SAS Host
    [    3.181255] mpt2sas 0000:08:00.0: enabling device (0000 -> 0002)
    [    3.181309] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (660                                                         51852 kB)
    [    3.181321] mpt2sas0: sending diag reset !!
    [    3.332476] mpt2sas0: diag reset: FAILED
    [    3.332635] mpt2sas0: _base_get_ioc_facts: failed getting to correct state
    [    3.332903] mpt2sas0: mpt2sas_base_unmap_resources
    [    3.332941] mpt2sas0: Controller resources are already freed
    [    3.332943] mpt2sas0: failure at //source/lsi-mpt2sas/mpt2sas_scsih.c:11743/_                                                         scsih_probe()!
    [    3.339862] mpt3sas version 13.00.00.00 loaded

     

  15. 2 hours ago, medric said:

     

    i have tried the ds3617 and that works with efi boot but still my card does not work its sas2008-it mode it is using the latest firmware the avago (sp) could that be the issue? and if so which firmware should i be using.

     

    also for the ds3615 i am only showing 2 cpu and for ds3617 i am only showing 4

     

    I have downgrade my lsi 9211-it sas2008 from p20 to p19 and i still does not work using jun 1.02b ds3617 6.1.3

     

    can someone respond?

    
    [    3.119995] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 200                                                         6)
    [    3.125607] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
    [    3.142392] Fusion MPT base driver 3.04.20
    [    3.142395] Copyright (c) 1999-2008 LSI Corporation
    [    3.152978] Fusion MPT SPI Host driver 3.04.20
    [    3.158430] Fusion MPT SAS Host driver 3.04.20
    [    3.163786] Fusion MPT misc device (ioctl) driver 3.04.20
    [    3.163888] mptctl: Registered with Fusion MPT base driver
    [    3.163891] mptctl: /dev/mptctl @ (major,minor=10,220)
    [    3.174735] megasas: 06.506.00.00-rc1 Sat. Feb. 9 17:00:00 PDT 2013
    [    3.180708] mpt2sas version 20.00.00.00 loaded
    [    3.180846] scsi6 : Fusion MPT SAS Host
    [    3.181255] mpt2sas 0000:08:00.0: enabling device (0000 -> 0002)
    [    3.181309] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (660                                                         51852 kB)
    [    3.181321] mpt2sas0: sending diag reset !!
    [    3.332476] mpt2sas0: diag reset: FAILED
    [    3.332635] mpt2sas0: _base_get_ioc_facts: failed getting to correct state
    [    3.332903] mpt2sas0: mpt2sas_base_unmap_resources
    [    3.332941] mpt2sas0: Controller resources are already freed
    [    3.332943] mpt2sas0: failure at //source/lsi-mpt2sas/mpt2sas_scsih.c:11743/_                                                         scsih_probe()!
    [    3.339862] mpt3sas version 13.00.00.00 loaded

     

  16. On 1/30/2017 at 8:00 PM, Polanskiman said:

    I haven't checked if those drivers are in the main ramdisk or the extra ramdisk.

     

    If they are in the extra ramdisk then you might need to modify the grub file as follows otherwise there is no need.

     

    In the gub file change the following line:

     

    
    initrd $img/ramdisk.lzma $img/$extra_initrd
     

     

    to:

     

    
    initrd $img/$extra_initrd $img/ramdisk.lzma
     

     

     

     

    i am using ds3617 jun 1.02b works but my sas2008-it does not seem to work i am using the latest firmware is this a firmware issue and if so which version is recommended and if not then what can i do to get this working?

  17. 6 hours ago, medric said:

    just installed ds3615 on my machine it worked great the motherboard is a supermicro x9 inte e5-2695 v2 it boots but it does not see my lsi 9211 hba it is not showing up i thought the driver for this was already built into the kernel or do i have to inject it back

     

    i have tried the ds3617 and that works with efi boot but still my card does not work its sas2008-it mode it is using the latest firmware the avago (sp) could that be the issue? and if so which firmware should i be using.

     

    also for the ds3615 i am only showing 2 cpu and for ds3617 i am only showing 4

  18. just installed ds3615 on my machine it worked great the motherboard is a supermicro x9 inte e5-2695 v2 it boots but it does not see my lsi 9211 hba it is not showing up i thought the driver for this was already built into the kernel or do i have to inject it back

  19. Here is the info that i pulled from

     

     

    https://github.com/kref/scripts juns script i can read and understand a bit of it but its a bash script not my strong suite 

    https://xpenology.club/compile-drivers-xpenology-with-windows-10-and-build-in-bash/

    https://github.com/HuxyUK/xpenology-3.x old but still has good info

    http://xpenology.com/wiki/en/building_xpenology old style for building the pat file but again has good place to start

     

    https://help.ubuntu.com/community/Kernel/Compile standard compile for linux

    https://github.com/0xAX/linux-insides/blob/master/Misc/how_kernel_compiled.md sandard compile for linux

     

     

     

     

  20. 6 hours ago, filippo333 said:

    I'd also be very interested in this, I have quite a lot of Linux knowledge and also am a C# coder, I've never built a kernel from source though.

    A step by step guide would be much appreciated :smile: 

     

    I have found a lot of info but dont have a lot of coding skills only used in school and that was assembly programming I will post all the info i have found and i think we can work on this together to get this done i know we can we just need to put all the pieces together. later tonight i will link to all my sources

  21. I uses windows 10 bash and download the source and tool chains and used old guides and drivers compiling as reference and compiled my own kernel with better cpu support for my 12 core cpu (E5-2695 v2 sandy bride)  and then i took the bzimage and renamed it to zimage and use osfmount to copy over the org zimage but it did not boot (it booted normally with the org zimage file) I could use some pointers on how or what to do next.

     

     

     

    (please don't mention how powerful that cpu is and what i would use it for)

    • Like 1
  22. quote  

     

    On 9/19/2016 at 7:27 PM, jun said:

    @oktisme sovled the problem through userland, and I want to try a different approch.

    I recently wrote a linux kernel module to dynamically patch the dsm kernel.

    With this hack, we only need to repack rd.gz to load this special module at early stage,

    zImage & pat is used as is, so changes are kept minimal.

     

    Now it works on latest version DSM 6.0.2-8451, sort of.

    I mean every feature looks healthy, but drivers for bare metals are not included, there are simply to many, and I am too lazy. :D

    These drivers can be build with the beta source, I notice there is one floating around on the github.

    Personally I only build a few network drivers to test on a VM, but I am pretty sure it works for other drivers.

     

    If any hacker want to test it, pls contact me.

    I mean peoples who comfort to build kernel modules, pack & unpack ramdisk,

    have serial console if want to test on bare metal.

     

    TODO: hide any trace of the module, since I am sure it will be on the blacklist if it become popular.

     

    Below is the console log for installing on a VM with UEFI bootloader & PXE

     

     

    
                             GNU GRUB  version 2.02~beta3
    
    +----------------------------------------------------------------------------+
    | Synology PXE                                                               |
    | Synology DS916+                                                            |
    |*Synology DS3615xs                                                          |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    +----------------------------------------------------------------------------+
    
         Use the ^ and v keys to select which entry is highlighted.
         Press enter to boot the selected OS, `e' to edit the commands
         before booting or `c' for a command-line.
      The highlighted entry will be executed automatically in 0s.
     Booting `Synology DS3615xs'
    
    error: no suitable video mode found.
    Booting in blind mode
    early console in decompress_kernel
    
    Decompressing Linux... Parsing ELF... done.
    Booting the kernel.
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 3.10.77 (root@build1) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #8451 SMP Wed Aug 17 05:12:41 CST 2016
    [    0.000000] Command line: BOOT_IMAGE=(tftp,192.168.200.2)/grub/../image/DS3615xs/zImage root=/dev/md0 syno_hdd_powerup_seq=0 netif_num=1 HddHotplug=0 syno_hw_version=DS3615xs vender_format_version=2 vid=0x058f pid=0x6387 console=uart,io,0x3f8,115200n8 sn=C7LWN09761 mac1=0011322CA785 withefi elevator=your_magic_elevator quiet
    [    0.000000] KERNEL supported cpus:
    [    0.000000]   Intel GenuineIntel
    [    0.000000] Disabled fast string operations
    [    0.000000] e820: BIOS-provided physical RAM map:
    [    0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] ACPI NVS
    [    0.000000] BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
    [    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000000dd80fff] usable
    [    0.000000] BIOS-e820: [mem 0x000000000dd81000-0x000000000dd85fff] ACPI NVS
    [    0.000000] BIOS-e820: [mem 0x000000000dd86000-0x000000000ef1ffff] usable
    [    0.000000] BIOS-e820: [mem 0x000000000ef20000-0x000000000ef3ffff] type 20
    [    0.000000] BIOS-e820: [mem 0x000000000ef40000-0x000000000ef8ffff] reserved
    [    0.000000] BIOS-e820: [mem 0x000000000ef90000-0x000000000efabfff] ACPI data
    [    0.000000] BIOS-e820: [mem 0x000000000efac000-0x000000000efaffff] ACPI NVS
    [    0.000000] BIOS-e820: [mem 0x000000000efb0000-0x000000003fffffff] usable
    [    0.000000] BIOS-e820: [mem 0x00000000ffc00000-0x00000000ffc17fff] reserved
    [    0.000000] Early serial console at I/O port 0x3f8 (options '115200n')
    [    0.000000] bootconsole [uart0] enabled
    START /linuxrc.syno
    Insert basic USB modules...
    :: Loading module usb-common ... [  OK  ]
    :: Loading module usbcore ... [  OK  ]
    :: Loading module ehci-hcd ... [  OK  ]
    :: Loading module ehci-pci ... [  OK  ]
    :: Loading module uhci-hcd ... [  OK  ]
    :: Loading module xhci-hcd ... [  OK  ]
    :: Loading module etxhci-hcd ... [  OK  ]
    Insert net driver(Mindspeed only)...
    Starting /usr/syno/bin/synocfgen...
    /usr/syno/bin/synocfgen returns 0
    Partition Version=8
    /sbin/e2fsck exists, checking /dev/md0...
    
             54 inodes used (0.03%, out of 155648)
              3 non-contiguous files (5.6%)
              0 non-contiguous directories (0.0%)
                # of inodes with ind/dind/tind blocks: 0/0/0
                Extent depth histogram: 45/1
         209209 blocks used (33.61%, out of 622544)
              0 bad blocks
              1 large file
    
             36 regular files
              9 directories
              0 character device files
              0 block device files
              0 fifos
              0 links
              0 symbolic links (0 fast symbolic links)
              0 sockets
    ------------
             45 files
    /sbin/e2fsck returns 0
    Mounting /dev/md0 /tmpRoot
    ------------upgrade
    Begin upgrade procedure
    Found an upgrade file on data volume. Begin upgrade
    Checksum of system tarball verified.
    /tmpRoot//etc ->        /tmpRoot/.upd@te/etc/
    mv: can't rename '/tmpRoot//etc/.[^.]*': No such file or directory
    /tmpRoot//var ->        /tmpRoot/.upd@te/var/
    mv: can't rename '/tmpRoot//var/*': No such file or directory
    Removing /tmpRoot/.upd@te//etc/ftpusers...
    Removing /tmpRoot/.upd@te//etc/rc...
    Removing /tmpRoot/.upd@te//etc/rc.network...
    Removing /tmpRoot/.upd@te//usr/syno/etc/rc.atalk...
    Removing /tmpRoot/.upd@te//usr/syno/etc/.htpasswd...
    Removing /tmpRoot/.upd@te//usr/syno/etc/lpd/lpd.conf...
    Removing /tmpRoot/.upd@te//usr/syno/etc/printcap...
    Removing /tmpRoot/.upd@te//usr/syno/etc/ups.conf...
    Removing /tmpRoot/.upd@te//usr/syno/etc/upsd.conf...
    Removing /tmpRoot/.upd@te//usr/syno/etc/upsd.users...
    Removing /tmpRoot/.upd@te//usr/syno/etc/upsmon.conf...
    Removing /tmpRoot/.upd@te//usr/syno/etc/upssched.conf...
    Removing /tmpRoot/.upd@te//etc/lvm/lvm.conf...
    Removing /tmpRoot/.upd@te//usr/local/etc/rc.d/SynoEnablePersonalServices.sh...
    Removing /tmpRoot/.upd@te//etc/rc.network_routing...
    Removing /tmpRoot/.upd@te//usr/syno/etc/rc.tun...
    Removing /tmpRoot/.upd@te//usr/syno/etc/afpd.conf...
    Removing /tmpRoot/.upd@te//etc/pam.d/samba...
    Removing /tmpRoot/.upd@te//etc/ppp/ip-up...
    Removing /tmpRoot/.upd@te//etc/ppp/ip-down...
    Removing /tmpRoot/.upd@te//etc/ppp/ip-function...
    Removing /tmpRoot/.upd@te//etc/ppp/ipv6-up...
    Removing /tmpRoot/.upd@te//etc/ppp/ipv6-down...
    Removing /tmpRoot/.upd@te//etc/ppp/options...
    Removing /tmpRoot/.upd@te//usr/local/cups/mime.types...
    Removing /tmpRoot/.upd@te//usr/local/cups/mime.convs...
    Removing /tmpRoot/.upd@te//etc/cups/cupsd.conf...
    Removing /tmpRoot/.upd@te//usr/local/cups/cupsd.conf...
    Removing /tmpRoot/.upd@te//usr/local/cups/testprint...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/bannertops...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/commandtops...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/gziptoany...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/imagetops...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/imagetoraster...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/pdftops...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/pstops...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/rastertoepson...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/rastertohp...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/rastertolabel...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/rastertopwg...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/texttops...
    Removing /tmpRoot/.upd@te//usr/local/cups/filter/hpgltops...
    Removing /tmpRoot/.upd@te//etc/hostapd/stainfo.sh...
    Removing /tmpRoot/.upd@te//etc/hostapd/mac_filter/mfscript.sh...
    Removing /tmpRoot/.upd@te//usr/syno/etc/rfkill.sh...
    Removing /tmpRoot/.upd@te//usr/syno/etc/iptables_guest_net.sh...
    Removing /tmpRoot/.upd@te//etc/ld.so.preload...
    Removing /tmpRoot/.upd@te//etc/tc/default.cmd...
    Removing /tmpRoot/.upd@te//usr/syno/etc/ssl/mkcert.sh...
    Removing /tmpRoot/.upd@te//usr/syno/etc/ssl/mkcgikey.sh...
    Removing /tmpRoot/.upd@te//etc/logrotate.conf...
    Removing /tmpRoot/.upd@te//usr/syno/etc/usbmodem/wcdma_list.json...
    Removing /tmpRoot/.upd@te//usr/syno/etc/usbmodem/usb_modeswitch.d/*...
    Removing /tmpRoot/.upd@te//etc/php/php.ini...
    Removing /tmpRoot/.upd@te//etc/php/php-fpm.conf...
    Removing /tmpRoot/.upd@te//etc/php/conf.d/opcache.ini...
    Removing /tmpRoot/.upd@te//usr/syno/etc/synoservice.d/global.setting...
    Removing /tmpRoot/.upd@te//usr/syno/etc/synoservice.d/system.cfg...
    Removing /tmpRoot/.upd@te//usr/syno/etc/ssdp/dsm_desc.xml...
    Removing /tmpRoot/.upd@te//usr/syno/etc/iptables_time_ctrl.sh...
    Removing /tmpRoot/.upd@te//etc/profile...
    Removing /tmpRoot/.upd@te//etc/inputrc...
    Removing /tmpRoot/.upd@te//etc/dhclient/dhclient-script...
    Removing /tmpRoot/.upd@te//etc/dhclient/ipv4/dhclient.conf...
    Removing /tmpRoot/.upd@te//etc/dhclient/ipv6/dhclient.conf...
    Removing /tmpRoot/.upd@te//usr/syno/etc/www/SSLProfile.json...
    Removing /tmpRoot/.upd@te//etc/vimrc...
    Removing /tmpRoot/.upd@te//usr/syno/etc/cacert.pem...
    Removing /tmpRoot/.upd@te//usr/syno/etc/iptables_modules_list...
    Removing /tmpRoot/.upd@te//usr/syno/etc/iptables_chain_list...
    Removing /tmpRoot/.upd@te//usr/local/bin/python*...
    Removing /tmpRoot/.upd@te//etc/pam.d...
    Removing /tmpRoot/.upd@te//usr/syno/etc/vfs...
    Removing /tmpRoot/.upd@te//var/run...
    Removing /tmpRoot/.upd@te//var/state/ups...
    Removing /tmpRoot/.upd@te//usr/syno/etc/ups...
    Removing /tmpRoot/.upd@te//var/spool/postfix...
    Removing /tmpRoot/.upd@te//usr/local/cups/backend...
    Removing /tmpRoot/.upd@te//usr/local/cups/mime...
    Removing /tmpRoot/.upd@te//etc/fw_security/sysconf...
    Removing /tmpRoot/.upd@te//etc/init...
    Removing /tmpRoot/.upd@te//etc/logrotate.d...
    Removing /tmpRoot/.upd@te//etc/syslog-ng...
    Removing /tmpRoot/.upd@te//var/lib/dpkg...
    Removing /tmpRoot/.upd@te//etc/httpd/conf...
    Removing /tmpRoot/.upd@te//etc/postgresql...
    Removing /tmpRoot/.upd@te//etc/nginx...
    Removing /tmpRoot/.upd@te//etc/wide-dhcpv6...
    Removing /tmpRoot/.upd@te//etc/apparmor.d...
    Removing /tmpRoot/.upd@te//usr/syno/etc/synoservice.d...
    Removing /tmpRoot/.upd@te//var/dynlib...
    Removing /tmpRoot/.upd@te//etc/iproute2/script...
    Removing /tmpRoot/.upd@te//etc/ssl/certs...
    Removing /tmpRoot/.upd@te//etc/dbus-1...
    Removing /tmpRoot/.upd@te//usr/syno/etc/dbus-1...
    Removing /tmpRoot/.upd@te//etc/avahi...
    Removing /tmpRoot/.upd@te//usr/syno/etc/synovpnclient/scripts...
    Removing /tmpRoot/.upd@te//var/lib/apparmor...
    Removing /tmpRoot/.upd@te//usr/syno/etc/www/app.d...
    Removing /tmpRoot/.upd@te//usr/syno/etc/rc.d...
    Removing /tmpRoot/.upd@te//usr/syno/etc/bluetooth/...
    Removing /tmpRoot/.upd@te//usr/syno/etc/smallupdate_patch...
    Removing /tmpRoot/.upd@te//etc/ImageMagick-6...
    chmod: /tmpRoot/.upd@te/root: No such file or directory
    cp: can't stat '/tmpRoot/etc.defaults/VERSION': No such file or directory
    cp: can't stat '/tmpRoot/etc.defaults/synoinfo.conf': No such file or directory
    cp: can't stat '/tmpRoot/.system_info': No such file or directory
    Setting up swapspace version 1, size = 2147414016 bytes
    Untaring /tmpRoot/.SynoUpgrade.tar...
    cp: can't create '/tmpRoot/*': No such file or directory
    mknod: /dev/synobios: File exists
    Starting /usr/syno/bin/synohdcfgen...
    /usr/syno/bin/synohdcfgen returns 0
    End upgrade procedure
    ============upgrade
    Wait 2 seconds for synology manufactory device
    Mon Sep 19 11:08:39 UTC 2016
    /dev/md0 /tmpRoot ext4 rw,relatime,journal_checksum,data=ordered 0 0
    none /sys/kernel/debug debugfs rw,relatime 0 0
    sys /sys sysfs rw,relatime 0 0
    none /dev devtmpfs rw,relatime,size=506848k,nr_inodes=126712,mode=755 0 0
    proc /proc proc rw,relatime 0 0
    linuxrc.syno executed successfully.
    Post init
    ==================== start udevd ====================
    ===== trigger device plug event =====
    Mon Sep 19 04:09:08 2016
    
    DiskStation login: [  428.997868] BTRFS: has skinny extents
    [  429.262141] BTRFS: has skinny extents
    System is going to reboot.
    [  655.113869] Restarting system.
    
                             GNU GRUB  version 2.02~beta3
    
    +----------------------------------------------------------------------------+
    | Synology PXE                                                               |
    | Synology DS916+                                                            |
    |*Synology DS3615xs                                                          |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    |                                                                            |
    +----------------------------------------------------------------------------+
    
         Use the ^ and v keys to select which entry is highlighted.
         Press enter to boot the selected OS, `e' to edit the commands
         before booting or `c' for a command-line.
      The highlighted entry will be executed automatically in 0s.
     Booting `Synology DS3615xs'
    
    error: no suitable video mode found.
    Booting in blind mode
    early console in decompress_kernel
    
    Decompressing Linux... Parsing ELF... done.
    Booting the kernel.
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 3.10.77 (root@build1) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #8451 SMP Wed Aug 17 05:12:41 CST 2016
    [    0.000000] Command line: BOOT_IMAGE=(tftp,192.168.200.2)/grub/../image/DS3615xs/zImage root=/dev/md0 syno_hdd_powerup_seq=0 netif_num=1 HddHotplug=0 syno_hw_version=DS3615xs vender_format_version=2 vid=0x058f pid=0x6387 console=uart,io,0x3f8,115200n8 sn=C7LWN09761 mac1=0011322CA785 withefi elevator=your_magic_elevator quiet
    [    0.000000] KERNEL supported cpus:
    [    0.000000]   Intel GenuineIntel
    [    0.000000] Disabled fast string operations
    [    0.000000] e820: BIOS-provided physical RAM map:
    [    0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] ACPI NVS
    [    0.000000] BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
    [    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000000dd80fff] usable
    [    0.000000] BIOS-e820: [mem 0x000000000dd81000-0x000000000dd85fff] ACPI NVS
    [    0.000000] BIOS-e820: [mem 0x000000000dd86000-0x000000000ef1ffff] usable
    [    0.000000] BIOS-e820: [mem 0x000000000ef20000-0x000000000ef3ffff] type 20
    [    0.000000] BIOS-e820: [mem 0x000000000ef40000-0x000000000ef8ffff] reserved
    [    0.000000] BIOS-e820: [mem 0x000000000ef90000-0x000000000efabfff] ACPI data
    [    0.000000] BIOS-e820: [mem 0x000000000efac000-0x000000000efaffff] ACPI NVS
    [    0.000000] BIOS-e820: [mem 0x000000000efb0000-0x000000003fffffff] usable
    [    0.000000] BIOS-e820: [mem 0x00000000ffc00000-0x00000000ffc17fff] reserved
    [    0.000000] Early serial console at I/O port 0x3f8 (options '115200n')
    [    0.000000] bootconsole [uart0] enabled
    START /linuxrc.syno
    Insert basic USB modules...
    :: Loading module usb-common ... [  OK  ]
    :: Loading module usbcore ... [  OK  ]
    :: Loading module ehci-hcd ... [  OK  ]
    :: Loading module ehci-pci ... [  OK  ]
    :: Loading module uhci-hcd ... [  OK  ]
    :: Loading module xhci-hcd ... [  OK  ]
    :: Loading module etxhci-hcd ... [  OK  ]
    Insert net driver(Mindspeed only)...
    Starting /usr/syno/bin/synocfgen...
    /usr/syno/bin/synocfgen returns 0
    [    4.501095] md: invalid raid superblock magic on sdb3
    Partition Version=8
    /sbin/e2fsck exists, checking /dev/md0...
    
          28547 inodes used (18.34%, out of 155648)
             11 non-contiguous files (0.0%)
              9 non-contiguous directories (0.0%)
                # of inodes with ind/dind/tind blocks: 0/0/0
                Extent depth histogram: 25896/2
         222659 blocks used (35.77%, out of 622544)
              0 bad blocks
              1 large file
    
          22671 regular files
           2926 directories
              2 character device files
              0 block device files
              0 fifos
           1315 links
           2939 symbolic links (2639 fast symbolic links)
              0 sockets
    ------------
          29853 files
    /sbin/e2fsck returns 0
    Mounting /dev/md0 /tmpRoot
    ------------upgrade
    Begin upgrade procedure
    No upgrade file exists
    End upgrade procedure
    ============upgrade
    Wait 2 seconds for synology manufactory device
    Mon Sep 19 11:20:01 UTC 2016
    /dev/md0 /tmpRoot ext4 rw,relatime,journal_checksum,data=ordered 0 0
    none /sys/kernel/debug debugfs rw,relatime 0 0
    sys /sys sysfs rw,relatime 0 0
    none /dev devtmpfs rw,relatime,size=506848k,nr_inodes=126712,mode=755 0 0
    proc /proc proc rw,relatime 0 0
    linuxrc.syno executed successfully.
    Post init
    ==================== start udevd ====================
    ===== trigger device plug event =====
    [   31.001996] BTRFS: has skinny extents
    
    vm login: vm
    Password:
     

     

     

    Hide  

     

    if adding an  larger cpu size would break updates and other things I was wondering on a LTS image to get changing CONFIG_NR_CPUS= (>8) greater that 8 so it could work to bypass  the limit and most system should not need a lot of updates anyway once in use I am asking cause the virtual option would be a win if you could actually use it without having to skimp on the vm's synology has a rs3617 that has more cpu core so it can handle virtualization properly 8 is kind of tough. Please provide your thoughts and feedback if it really needs to be a one off build if you could pass on some knowledge would be greatly appreciated 

     

    been learning about compiling and i know i am close but missing a few key information i would like to run baremetal intel xeon x12 ht so i see how to get to menu and i can change from max 8 to 24 but when i am compiling this how do i make this into snynoboot file or could i use juns and edit it with my zimage ?

×
×
  • Create New...