Jump to content
XPEnology Community

fangzhen2005

Rookie
  • Posts

    5
  • Joined

  • Last visited

Posts posted by fangzhen2005

  1. On 9/16/2020 at 11:44 AM, fangzhen2005 said:

    Hi, IG-88,

    my board is j4105.

    DSM version 6.2.3 25426

    extra.lzma v0.13.3

     

    I tried to transcoding some videos with hardware acceleration and found that it didn't work

     

     

    Turn off the VT-D and it will work normally!!!

     But there is a problem, if VT-D is needed, hardware acceleration and VT-D,  I have to choose one or the other?

  2. Hi, IG-88,

    my board is j4105.

    DSM version 6.2.3 25426

    extra.lzma v0.13.3

     

    I tried to transcoding some videos with hardware acceleration and found that it didn't work

     

    image.png.8d4757f302b691012fcc7d569ee66fea.png

     

    image.png.a38cee22400196bec10423e5f8c76e15.png

     

    the result video size is very small, and no video frame in it, just only audio data. I try transcoding command line(same MOV format video), get the same result.

     

    Partial transcoding log(return video:0kB audio:159kB):

    [aac @ 0x564733e9ef00] Trying to remove 128 more samples than there are in the queue
    frame=  209 fps=0.0 q=-0.0 Lsize=     162kB time=00:00:09.98 bitrate= 132.7kbits/s speed=24.2x    
    video:0kB audio:159kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.556809%
    Input file #0 (input.MOV):
      Input stream #0:0 (video): 209 packets read (13041871 bytes); 209 frames decoded; 
      Input stream #0:1 (audio): 431 packets read (137638 bytes); 430 frames decoded (440192 samples); 
      Total: 640 packets (13179509 bytes) demuxed
    Output file #0 (out.mp4):
      Output stream #0:0 (video): 209 frames encoded; 209 packets muxed (0 bytes); 
      Output stream #0:1 (audio): 430 frames encoded (440192 samples); 431 packets muxed (163090 bytes); 
      Total: 640 packets (163090 bytes) muxed
    639 frames successfully decoded, 0 decoding errors

    Transcoding Command Line:

    ffmpeg -y -report -init_hw_device vaapi=foo:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device foo -i input.mov -filter_hw_device foo -vf 'format=nv12|vaapi,hwupload' -c:v h264_vaapi -b:v 10683833 output.mp4

     

    the /dev/driv/ is normal,

    image.png.dcf5ef5f3b86b7f31a9597b771885c63.png

     

    and the driver is normal

    image.png.109b1267d2786c3f880541c92e98cb32.png

     

    Everything looks normal, but it just doesn't return normal results, I found an error in a section of log in DMESG, I don't know whether it is related to this, please help to confirm whether this section of log indicates that the graphics card has been driven normally

     

    Quote
    
    [   12.450705] [drm] GuC: No firmware known for this platform!
    [   12.450709] [drm] HuC: No firmware known for this platform!
    [   12.451182] [drm] VT-d active for gfx access
    [   12.451275] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [   12.451276] [drm] Driver supports precise vblank timestamp query.
    [   12.451351] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
    [   12.452047] [drm] Finished loading DMC firmware i915/glk_dmc_ver1_04.bin (v1.4)
    [   13.515590] systemd-udevd[6736]: starting version 204
    [   13.530743] [drm] failed to retrieve link info, disabling eDP
    [   15.751334] [drm] GPU HANG: ecode 9:0:0x6bf56ac4, reason: Hang on bcs0, vcs0, vecs0, action: reset
    [   15.751410] i915 0000:00:02.0: Resetting bcs0 after gpu hang
    [   16.956694] [drm:gen8_reset_engines [i915]] *ERROR* bcs0: reset request timeout
    [   16.964034] i915 0000:00:02.0: Resetting vcs0 after gpu hang
    [   18.169750] [drm:gen8_reset_engines [i915]] *ERROR* vcs0: reset request timeout
    [   18.177121] i915 0000:00:02.0: Resetting vecs0 after gpu hang
    [   18.227003] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   18.240752] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)
    [   18.313716] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [   19.381805] [drm:gen8_reset_engines [i915]] *ERROR* vecs0: reset request timeout
    [   19.389315] i915 0000:00:02.0: Resetting chip after gpu hang
    [   22.098969] [drm:gen8_reset_engines [i915]] *ERROR* rcs0: reset request timeout
    [   24.395968] i915 0000:00:02.0: i915_reset_device timed out, cancelling all in-flight rendering.
    [   24.917092] [drm:gen8_reset_engines [i915]] *ERROR* rcs0: reset request timeout
    [   27.735213] [drm:gen8_reset_engines [i915]] *ERROR* rcs0: reset request timeout
    [   27.843129] i915 0000:00:02.0: Failed to reset chip
    [   27.859631] [drm] Initialized i915 1.6.0 20171222 for 0000:00:02.0 on minor 0
    [   27.860735] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
    [   27.861362] acpi device:54: registered as cooling_device4
    [   27.861440] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input1
    [   27.863853] [drm] Cannot find any crtc or sizes
    [   27.864908] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
    [   27.892211] Btrfs loaded, crc32c=crc32c-intel
    [   27.898541] exFAT: Version 1.2.9
    [   27.947889] jme: JMicron JMC2XX ethernet driver version 1.0.8

     

     

    dmesg.txt transcoding_log.txt

  3. I bought an Intel i350-am2 nic, and my motherboard is j4105.

    DSM version 6.2.3 25426

    extra.lzma v0.13.3

     

    Entering the system did not recognize the NIC. dmesge.log show

    Quote

    [Sun Jul 5 12:17:33 2020] igb 0000:01:00.0: enabling device (0000 -> 0002)
    [Sun Jul 5 12:17:33 2020] igb 0000:01:00.0: The NVM Checksum Is Not Valid
    [Sun Jul 5 12:17:33 2020] igb: probe of 0000:01:00.0 failed with error -5
    [Sun Jul 5 12:17:33 2020] igb 0000:01:00.1: enabling device (0000 -> 0002)
    [Sun Jul 5 12:17:33 2020] igb 0000:01:00.1: The NVM Checksum Is Not Valid
    [Sun Jul 5 12:17:33 2020] igb: probe of 0000:01:00.1 failed with error -5

     

    But when I use win10 PE, it can recognize the network card normally

    I want to remove nvm checksum, let it always return 0, and recompile igb.ko.

     

    I follow https://xpenology.club/compile-drivers-xpenology-with-windows-10-and-build-in-bash/ How to do it,

     

    Downloaded 


    https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/24922branch/apollolake-source/linux-4.4.x.txz/download

     

    and

     

    https://sourceforge.net/projects/dsgpl/files/DSM%206.2.2%20Tool%20Chains/Intel%20x86%20Linux%204.4.59%20%28Apollolake%29/apollolake-gcc493_ glibc220_ linaro_ x86_ 64- GPL.txz/download

     

    and

     

    Igb-5.3.5.61 source code

     

    I modify it

    Quote

     

    s32 e1000_ validate_ nvm_ checksum_ generic(struct e1000_ hw *hw)

    {

        s32 ret_ val;
        u16 checksum = 0;
        u16 i, nvm_ data;

        DEBUGFUNC("e1000_ validate_ nvm_ checksum_ generic");

        for (i = 0; i < (NVM_ CHECKSUM_ REG + 1); i++) {

            ret_ val = hw-> nvm.ops.read (hw, i, 1, &nvm_ data);

            if (ret_ val) {
            
                DEBUGOUT("NVM Read Error\n");
                return ret_ val;

            }

            checksum += nvm_ data;

        }

        if (checksum != (u16) NVM_ SUM) {

            DEBUGOUT("NVM Checksum Invalid\n");

            return -E1000_ ERR_ NVM;

        }

        return E1000_ SUCCESS;

    }

     

    Make it always return to success

    I successfully compiled it igb.ko But when I inmod this file, I will prompt insmod: error: could not insert module / lib / modules / update/ igb.ko : Invalid module format

    I don't know where the wrong operation caused this problem. How to compile correctly igb.ko?

    igb.ko

×
×
  • Create New...