Jump to content

Magnets

Members
  • Posts

    50
  • Joined

Posts posted by Magnets

  1. On 07/12/2016 at 4:49 PM, Neo said:

    I bought a LCD with a link that you set up and followed all the steps that you suggested but without success. OPI lite, Armbian 5.20. I can see some activity on the screen but not pictures, video, watch. Only dark images and sometimes a little brighter.

     

    20161207_171226_1.jpg    20161207_171547.jpg

     

     

    I bought the same LCD but how do you know how to connect the pins?

     

    Is there a wiring guide anywhere?

  2. On the ultra low end you can get a pogoplug v4, and if you get the pink version it has 2xUSB 3.0, 1xUSB2, SD slot, gigabit ethernet and a sata slot. They also come with a 12v/2A power supply and you don't have to buy a case. They have pretty crappy performance compared to the newer boards and do run hot.

     

    https://linuxengineering.wordpress.com/2014/08/03/performance-tuning-with-pogoplug-v4/

     

    You can pick them up on ebay for next to nothing, especially in the US

  3. Pardon? RPi's outdated VideoCore IV does h.264 decoding HW accelerated but not h.265. While more recent Allwinner SoCs can do that at least with 8 bit (no 10 bit support): http://linux-sunxi.org/Cedrus#Supported_codec_matrix (you can add H5 here too -- progress with this SoC is mostly missing in linux-sunxi wiki yet)

     

    Instead of recommending those boring and outdated Raspberries it would help if people would start contributing support for better platforms.

     

    You're right, I edited my post.

  4. I was curious about this so looked around and there is a lot of raspberry pi ups solutions, most run from a lipo cell and switch power source when the 5v supply fails.

     

    Most are $30+ so you may as well just buy a very cheap regular UPS

     

    This is the cheapest one I've seen: https://www.aliexpress.com/item/UGEEK-UPS-HAT-with-Battery-for-Raspberry-Pi-3-Model-B-2B-B-Raspberry-Pi-Battery/32786176030.html

     

    http://www.raspberrypiwiki.com/index.php/Raspi_UPS_HAT_Board

     

    more:

    https://www.modmypi.com/raspberry-pi/breakout-boards/pi-modules/ups-pico

     

    http://juice4halt.com/

     

    a more ghetto way is find a powerbank that is able to do passthrough charging

  5. The LM2596 modules on aliexpress all use counterfeit ICs but do work

     

    This is probably a better bet: https://www.aliexpress.com/item/DC-6-24V-12V-24v-to-5V-USB-Output-charger-step-down-Power-Module-Mini-DC/32679427711.html

     

    This guy on youtube tests the cheap buck modules, go back 6+ months

     

    https://www.youtube.com/channel/UCKs_u8kcQBQsERZhpZHU_7Q/videos

     

    beware: the really small ones with the tiny adjust potentiometers are very difficult to adjust to 5.00v and if you press on the pot it changes the voltage.

     

    Or you could get a 12v car USB adapter

  6. I'm trying to wake up an OPi PC using an IR remote following these instructions

    http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=2048&extra=page%3D1

      bits           16
      flags SPACE_ENC|CONST_LENGTH
      eps            30
      aeps          100
    
      header       9004  4560
      one           532  1703
      zero          532   593
      ptrail        541
      repeat       9015  2283
      pre_data_bits   16
      pre_data       0x1CE3
      gap          139912
      toggle_bit_mask 0x0
    
          begin codes
              KEY_POWER                0x48B7
              KEY_0                    0x00FF
              KEY_5                    0xA05F
          end codes
    
    end remote
    
    

    .

    [s_cir0]
    ir_used = 1
    ir_rx = port:PL11<2><1><default><default>
    ir_power_key_code0 = 87
    ir_addr_code0 = 40704
    ir_power_key_code1 = 26
    ir_addr_code1 = 64260
    ir_power_key_code2 = 20
    ir_addr_code2 = 32640
    ir_power_key_code3 = 21
    ir_addr_code3 = 32640
    ir_power_key_code4 = 11
    ir_addr_code4 = 63240
    ir_power_key_code5 = 3
    ir_addr_code5 = 239
    ir_power_key_code6 = 159
    ir_addr_code6 = 19635
    ir_power_key_code7 = 10
    ir_addr_code7 = 30536
    ir_power_key_code8 = 69
    ir_addr_code8 = 48386
    ir_power_key_code9 = 77
    ir_addr_code9 = 56865
    ir_power_key_code10 = 24
    ir_addr_code10 = 65025
    ir_power_key_code11 = 87
    ir_addr_code11 = 65280
    ir_power_key_code12 = 77
    ir_addr_code12 = 65344
    ir_power_key_code13 = 0x12
    ir_addr_code13 = 0xC738
    
    [wakeup_src_para]
    cpu_en = 0
    cpu_freq = 48
    pll_ratio = 273
    dram_selfresh_en = 1
    dram_freq = 36
    wakeup_src0 =
    wakeup_src_wl = port:PG10<4><default><default><0>
    wakeup_src_bt = port:PL03<6><default><default><0>
    

    My remote is a universal one but through trial and error I found what looks like an NEC coded setting

     

    pre_data: 0x1CE3

    0001110011100011 -> 1100011100111000    0xC738

     

    Power button: 0x48B7

    0x48

    01001000 -> 00010010    0x12

     

    Any ideas?

  7. PNY SDXC 64GB UHS-I - rated 50MB/s

            Include fsync in write timing
            O_DIRECT feature enabled
            Auto Mode
            File size set to 102400 kB
            Record Size 4 kB
            Record Size 16 kB
            Record Size 512 kB
            Record Size 1024 kB
            Record Size 16384 kB
            Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Output is in kBytes/sec
            Time Resolution = 0.000001 seconds.
            Processor cache size set to 1024 kBytes.
            Processor cache line size set to 32 bytes.
            File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride                                                                                                                                  
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  frer                                                                                                 ead
              102400       4     1182     1182     7421     7419     3163     1029
              102400      16     2577     3512    14447    14524     8940     3230
              102400     512    11793    16506    21625    21623    20965    17871
              102400    1024    15319    16764    22187    22184    21804    18210
              102400   16384    15889    17232    22911    22908    22886    18651
    
    
  8. 32GB sandisk ultra

    root@orangepipcplus:~# iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Iozone: Performance Test of File I/O
                    Version $Revision: 3.429 $
                    Compiled for 32 bit mode.
                    Build: linux
            Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Output is in kBytes/sec
            Time Resolution = 0.000001 seconds.
            Processor cache size set to 1024 kBytes.
            Processor cache line size set to 32 bytes.
            File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
              102400       4     2087     3278     7660     7666     6585     2525
              102400      16     2193     2680    15009    15004    14165     4382
              102400     512     7311    10130    21708    21690    21675     9219
              102400    1024    11290    16439    22156    22163    22137    13792
              102400   16384    17462    18827    22777    22779    22776    18479
    
  9. Samsung Evo 64GB microsd. Brand new, just run through crystaldiskmark and h2testw

    Orange pi PC

    Linux orangepipc 3.4.112-sun8i #10 SMP PREEMPT Sun Oct 23 16:06:55 CEST 2016 armv7l GNU/Linux
    
    root@orangepipc:~# iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Iozone: Performance Test of File I/O
                    Version $Revision: 3.429 $
                    Compiled for 32 bit mode.
                    Build: linux
    
            Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                         Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                         Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                         Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                         Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                         Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                         Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                         Vangel Bojaxhi, Ben England, Vikentsi Lapa.
    
            Run began: Mon Jan 16 22:16:47 2017
    
            Include fsync in write timing
            O_DIRECT feature enabled
            Auto Mode
            File size set to 102400 kB
            Record Size 4 kB
            Record Size 16 kB
            Record Size 512 kB
            Record Size 1024 kB
            Record Size 16384 kB
            Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Output is in kBytes/sec
            Time Resolution = 0.000001 seconds.
            Processor cache size set to 1024 kBytes.
            Processor cache line size set to 32 bytes.
            File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride                                                                                   
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  frer                                                  ead
              102400       4     1004      689     4453     4434     4381      839
              102400      16     2827     3298    11694    11903    11507     2441
              102400     512    11333    13769    21382    21393    21106    12297
              102400    1024    13565    13151    22074    22067    21998    11406
              102400   16384    13517    14777    22850    22838    22844    11913
    
    iozone test complete.
    

    It seems samsung have crippled the later evos!

    it's showing:

    date: 10/2016

    second run with performance governor

     

     

     

    root@orangepipc:~# iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Iozone: Performance Test of File I/O
                    Version $Revision: 3.429 $
                    Compiled for 32 bit mode.
                    Build: linux
    
            Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
                         Al Slater, Scott Rhine, Mike Wisner, Ken Goss
                         Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
                         Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
                         Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,
                         Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root,
                         Fabrice Bacchella, Zhenghua Xue, Qin Li, Darren Sawyer,
                         Vangel Bojaxhi, Ben England, Vikentsi Lapa.
    
            Run began: Mon Jan 16 22:43:53 2017
    
            Include fsync in write timing
            O_DIRECT feature enabled
            Auto Mode
            File size set to 102400 kB
            Record Size 4 kB
            Record Size 16 kB
            Record Size 512 kB
            Record Size 1024 kB
            Record Size 16384 kB
            Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2
            Output is in kBytes/sec
            Time Resolution = 0.000001 seconds.
            Processor cache size set to 1024 kBytes.
            Processor cache line size set to 32 bytes.
            File stride size set to 17 * record size.
                                                                  random    random     bkwd    record    stride
                  kB  reclen    write  rewrite    read    reread    read     write     read   rewrite      read   fwrite frewrite    fread  freread
              102400       4      590      732     4510     4394     4251      805
              102400      16     2927     3948    11782    11798    11642     2904
              102400     512    12633    14333    21418    21406    21334    12595
              102400    1024    14782    14092    21998    21981    21950    12414
              102400   16384    15195    12667    22833    22845    22839    13129
    
    iozone test complete.
    

     

     

  10. I'm experimenting with video transcoding but am getting problems when using vdpau to decode and the hw video encoder.

    Using this

    https://github.com/stulluk/FFmpeg-Cedrus

    and

    https://github.com/uboborov/ffmpeg_h264_H3

     

    software decode & hw encode = 15-20FPS but high CPU usage. it can do 60FPS encoding rate with 960x540 30fps h264 source

    dropping the compression helps a bit too (-qp 24, default is 30)

     

     

    hw decode & hw encode of 1080 h264 = 1FPS, using 4k h265 as the source gives 1.5 FPS

    ffmpeg -hwaccel vdpau -i 1080p30.mp4 -c:v cedrus264 -c:a copy -pix_fmt nv12 out.mp4
    

    Is the video engine designed to do transcoding?

  11. I'm using an opi PC with a sandisk ultra 32GB micro SD. I've noticed that if you do a large write to the SD card (i.e. via samba) then the system becomes sluggish. Writing to a USB stick does not have the same effect on system performance.

     

    I tried changing the scheduler to CFQ (from noop) and it helped a lot. Has there been any testing on which scheduler is best? I assume noop performance will vary dependant on the SD controller?

     

    raspbian uses deadline as the default - https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=64702

     

    Some very good info here:

    https://www.thomas-krenn.com/de/wiki/Linux_I/O_Scheduler

     

    Scheduler for SSDs

    The Deadline Scheduler is well-suited for interacting with SSDs because it does not rely on the excessive merging of requests. In many places, NOOP is praised as the best scheduler for SSDs since it simply passes the requests to the device. For performance reasons this is quite conclusive, but the fairness of the scheduler times under applications can suffer.

     

  12. Testing this on a oPi PC but it doesn't re-enable cores when going back to all 4

     

    Going down to 1 core works, and back to 3, but I can't enable all 4. Corekeeper is enabled in the fex file but the script never reverts the changes to rc.local

    ### do NOT edit the following lines, always use h3consumption instead ###
    echo 0 >/sys/devices/system/cpu/cpu3/online # h3consumption
    
  13. Can the opi zero decode anything above 1080p? I want to decode a 3MP h.264 stream (2048*1538) and re-encode it to 1080p and serve over RTSP.

     

    do I need to get an H3 for that? the wiki says

     

     

    H2+ is a variant of H3, targeted at low-end OTT boxes, which lacks Gigabit MAC and 4K HDMI output support.

    http://linux-sunxi.org/H2%2B#Variants

     

    Is that HDMI specific or lack of GPU power for decoding?

     

    Will that be pushing it too much even on an OPI PC?

×
×
  • Create New...