Jump to content

jock

  • Posts

    1273
  • Joined

  • Last visited

Reputation Activity

  1. Like
    jock got a reaction from remlei in CSC Armbian for RK322X TV Boxes   
    Announce:
     
    Hello, I want to announce that Community Supported Configuration (CSC) board images are now built again by Armbian servers on a weekly basis!
    This means that you can now download images for CSC boards (including rk322x-box) browsing from https://github.com/armbian/community
     
    Images are built from trunk, GPG-signed and SHA-sum is provided.
     
    Feel free to donate if you find this useful and wish to offer support to the Armbian developers and maintainers.
     
    Enjoy!
  2. Like
    jock got a reaction from MattWestB in CSC Armbian for RK3318/RK3328 TV box boards   
    Announce:
     
    Hello, I want to announce that Community Supported Configuration (CSC) board images are now built again by Armbian servers on a weekly basis!
    This means that you can now download images for CSC boards (including rk3318-box) browsing from https://github.com/armbian/community
     
    Images are built from trunk, GPG-signed and SHA-sum is provided.
     
    I also removed the manual instructions for upgrades: Armbian 22.08 release is imminent and from that time on it will be sufficient to use apt to get kernel upgrades too! Thanks for your patience!
     
    Feel free to donate if you find this useful and wish to offer support to the Armbian developers and maintainers.
     
    Enjoy!
  3. Like
    jock got a reaction from MattWestB in CSC Armbian for RK322X TV Boxes   
    Announce:
     
    Hello, I want to announce that Community Supported Configuration (CSC) board images are now built again by Armbian servers on a weekly basis!
    This means that you can now download images for CSC boards (including rk322x-box) browsing from https://github.com/armbian/community
     
    Images are built from trunk, GPG-signed and SHA-sum is provided.
     
    Feel free to donate if you find this useful and wish to offer support to the Armbian developers and maintainers.
     
    Enjoy!
  4. Like
    jock got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    Announce:
     
    Hello, I want to announce that Community Supported Configuration (CSC) board images are now built again by Armbian servers on a weekly basis!
    This means that you can now download images for CSC boards (including rk3318-box) browsing from https://github.com/armbian/community
     
    Images are built from trunk, GPG-signed and SHA-sum is provided.
     
    I also removed the manual instructions for upgrades: Armbian 22.08 release is imminent and from that time on it will be sufficient to use apt to get kernel upgrades too! Thanks for your patience!
     
    Feel free to donate if you find this useful and wish to offer support to the Armbian developers and maintainers.
     
    Enjoy!
  5. Like
    jock got a reaction from curse in CSC Armbian for RK3318/RK3328 TV box boards   
    Announce:
     
    Hello, I want to announce that Community Supported Configuration (CSC) board images are now built again by Armbian servers on a weekly basis!
    This means that you can now download images for CSC boards (including rk3318-box) browsing from https://github.com/armbian/community
     
    Images are built from trunk, GPG-signed and SHA-sum is provided.
     
    I also removed the manual instructions for upgrades: Armbian 22.08 release is imminent and from that time on it will be sufficient to use apt to get kernel upgrades too! Thanks for your patience!
     
    Feel free to donate if you find this useful and wish to offer support to the Armbian developers and maintainers.
     
    Enjoy!
  6. Like
    jock got a reaction from fabiobassa in CSC Armbian for RK3318/RK3328 TV box boards   
    ethernet is always working in armbian, it is embedded in the soc, so if it does not work it means that armbian did not boot.
    Also the led should be blinking if the kernel is alive, but I see no leds on your board, am I right?

    You may try one of the newer images built from trunk above, maybe you got an image with the invalid voltages I published by error some weeks ago.
     
    The definitive way is to to debug this is using a USB-to-TTL serial adapter connected to the serial pads of the board, which are sometimes under the heatsink (but just sometimes...), or maybe are those pads in the lower right corner, near the IR receiver.
  7. Like
    jock got a reaction from fabiobassa in CSC Armbian for RK3318/RK3328 TV box boards   
    Announce:
     
    Hello, I want to announce that Community Supported Configuration (CSC) board images are now built again by Armbian servers on a weekly basis!
    This means that you can now download images for CSC boards (including rk3318-box) browsing from https://github.com/armbian/community
     
    Images are built from trunk, GPG-signed and SHA-sum is provided.
     
    I also removed the manual instructions for upgrades: Armbian 22.08 release is imminent and from that time on it will be sufficient to use apt to get kernel upgrades too! Thanks for your patience!
     
    Feel free to donate if you find this useful and wish to offer support to the Armbian developers and maintainers.
     
    Enjoy!
  8. Like
    jock reacted to Vittorio Mori in CSC Armbian for RK322X TV Boxes   
    Today I assembled a fully working image of OpenWRT 22.03.0  for this rk322x tvbox.

    It's a patchwork/mix from multitool/debian kernel 5.16.11 and the userland from the latest OpenWRT I could find for raspberry PI 2/B (same cpu arch):

    OpenWrt 22.03.0-rc6 r19590-042d558536 / LuCI openwrt-22.03 branch git-22.213.35949-d09fbe0

    I've tested wireguard/vxlan/wifi, all working nice (wireless AP too, much to my surprise!).

    You can turn this (rather old for 2022) TVBOX into an extremely capable router with a nice www interface (too bad for the 100Mbit LAN port...). I guess you can add some more ethernet interfaces using USB ports, but do not expect too much on the performance side.

    The best way to add ethernet ports for these devices is a managed switch, so you can use VLANs (€20 for a cheap 5 ports on Amazon).

    Speed of wireguard VPN is quite nice (around 70Mbps on iperf3).

    If anyone is interested I can post the link for the image (flashable via multitool).

    It was - as usual -  painful, but  a nice challenge.

    edit:
    I had to do this because there are no OpenWRT releases for rockchip/32bit armv7: arm64 builds for Rockchip 3318/3328 are officially available.

     

  9. Like
    jock got a reaction from QEQE123 in CSC Armbian for RK3318/RK3328 TV box boards   
    Updated images!
     
    Armbian and Multitool images have been updated with various enhancements:
    Multitool compatibility has been increased Split single device tree in base and overlays: each board can activate different device tree overlays to fit the specific configuration (eMMC DDR/HS200, alternate SDIO bus for Wifi, etc...) Add rk3318-config script to easily configure options via menus; just run it as sudo rk3318-config Add full support for AP6334 (and various clones) Wifi and Bluetooth Add support for AP6330 Wifi and Bluetooth (yet untested) Issues so far:
    Lima driver acceleration has been disabled in X.org for the moment. It gave issues I need to investigate I2S subsystem has some problems that needs to be fixed, as result no sound can be produced for both HDMI and Analog outputs
  10. Like
    jock got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    @MX10.AC2N Didn't you try already 5.18? I remember you already had issues with 5.18, but that was my fault because I downvolted the CPU by mistake; upgrade debs should be fixed now and there should be no issues anymore, as long as also other people found them working stable so far.
     
    About the Jammy edge image, it is an experimental image with KDE Plasma preinstalled. It works, but there is a kernel bug in lima that often causes kernel panics, so it is not "public" not suggested to put in any kind of use.
    The bug seems to be fixed in 5.19, so I guess soon there will be a proper publishing.
  11. Like
    jock got a reaction from deciorocha in CSC Armbian for RK322X TV Boxes   
    @fukowaka
    Hello, some answers:
    no mixed android/armbian boot. It is done this way on purpose: no random proprietary pre-installed crap, for a number of reasons. It is possible to manually make the thing work, but on first u-boot upgrade the installation will probably break and you will come here asking why apt upgrade broke your system the "dts from lakka" is not suitable, don't mix things, they won't work as @RaptorSDS said, minimal variant is suitable for headless server usage again, as @RaptorSDSsaid, armbian makes use of device tree overlays and rk322x-config makes easier to configure board specialties. There would be hundreds of device trees to support boards minor and major differences, device tree overlays solves this thing. Don't use other distro dtbs, they will break things.  
  12. Like
    jock got a reaction from fabiobassa in CSC Armbian for RK322X TV Boxes   
    @fukowaka
    Hello, some answers:
    no mixed android/armbian boot. It is done this way on purpose: no random proprietary pre-installed crap, for a number of reasons. It is possible to manually make the thing work, but on first u-boot upgrade the installation will probably break and you will come here asking why apt upgrade broke your system the "dts from lakka" is not suitable, don't mix things, they won't work as @RaptorSDS said, minimal variant is suitable for headless server usage again, as @RaptorSDSsaid, armbian makes use of device tree overlays and rk322x-config makes easier to configure board specialties. There would be hundreds of device trees to support boards minor and major differences, device tree overlays solves this thing. Don't use other distro dtbs, they will break things.  
  13. Like
    jock got a reaction from Seth in CSC Armbian for RK3318/RK3328 TV box boards   
    Yep, it is way strange, "unfortunately" HDMI works fine on my board with both 5.15 and 5.18, so I can't experiment such issue.
    dmesg may provide some useful information about, there is a dmesg attached to an older post were there was clearly a drm error I never encountered before and can't guess the reason causing it.
     
    Anyway congrats to bringing the board up!
  14. Like
    jock reacted to usual user in Mainline VPU   
    Damn, missed the rebase of the  "Draft: v4l2codecs: Implement VP9 v4l2 decoder" patches and the source branch has been deleted.
    With gstreamer main branch as of 11.12.2021 I get this video-pipeline-vp9.pdf and everything is working as expected.
    Just discovered how to gather some video playback statistics while playing online videos. I still don't know which backend is used, but since I can play e.g. three videos in parallel, I'm pretty sure the VPU will be used.
    The eagle  has landed. \o/
  15. Like
    jock got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    @DmitryS There is no opensource OpenCL driver in mesa, what you want to use is the closed source binary.
    The closed source binary requires the closed source drivers; it can be installed and probably brought into working state, but it is a real PITA  since it requires the proprietary mali kernel driver first, then the closed source blobs and finally the closed source OpenCL driver. I hope I scared you enough, because that way is very scary by itself.
     
    Just a side consideration: people, in general, should be very thankful for opensource drivers that make things work out of the box  and should heavily blame companies that put obstacles - like ARM does.
  16. Like
    jock got a reaction from DmitryS in CSC Armbian for RK3318/RK3328 TV box boards   
    @DmitryS There is no opensource OpenCL driver in mesa, what you want to use is the closed source binary.
    The closed source binary requires the closed source drivers; it can be installed and probably brought into working state, but it is a real PITA  since it requires the proprietary mali kernel driver first, then the closed source blobs and finally the closed source OpenCL driver. I hope I scared you enough, because that way is very scary by itself.
     
    Just a side consideration: people, in general, should be very thankful for opensource drivers that make things work out of the box  and should heavily blame companies that put obstacles - like ARM does.
  17. Like
    jock got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    @Seth the HDMI disappearing is quite disappointing, since I did not tweak that part in 5.18.
     
    Anyway this looks very suspicious to me:
    [ 2.099836] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes [ 2.100004] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes  and maybe is somehow related to EDID or alike
  18. Like
    jock got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    @callegar@Willy Moto@MX10.AC2N
    Ok, I double checked the cpu voltage supply and effectively it seems that in the latest device tree I pushed it way too low... The original device tree of my box said 1.375v@1.3Ghz, the voltage in mainline kernel says 1.300v@1.3Ghz and I set 1.200v@1.3Ghz. That is very good for temperatures and power consumption, but maybe it is a bit too low for stable operations.
     
    I will rebuild the whole set of images, but in the meantime I updated the dtb deb package you can install that should fix issues: https://users.armbian.com/jock/rk3318/upgrade/linux-dtb-edge-rockchip64_22.08.0-trunk_arm64.deb
     
  19. Like
    jock got a reaction from Seth in CSC Armbian for RK3318/RK3328 TV box boards   
    @Seth the HDMI disappearing is quite disappointing, since I did not tweak that part in 5.18.
     
    Anyway this looks very suspicious to me:
    [ 2.099836] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes [ 2.100004] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes  and maybe is somehow related to EDID or alike
  20. Like
    jock reacted to Voidbert in Testing hardware video decoding (rockchip, allwinner?)   
    Greetings!
     
    I have been trying out hardware video decoding recently, running Debian bullseye, kernel 5.15.53-rk322x and the lima open-source drivers on my RK3229. Here are my conclusions (working only on a virtual terminal):
    Using Debian's default ffmpeg and mpv installation, I am only able to get up to 720p with few frame skips. That is using software decoding (--hwdec=no) and SDL for rendering (--vo=sdl). Trying to use DRM (for either software decoding and / or rendering) will result in worse performance. Atomic modesetting needs to be turned off (--drm-atomic=no) in order for anything to appear on my screen (or else, I just get a gray screen). I found this issue of yours (https://github.com/mpv-player/mpv/issues/8522) but it applies to the LibreELEC build. In my case (repo build), --drm-atomic=no needs to be turned on in order for the video playback to work, but it is of no use, since you get better performance out of SDL. --hwdec=rkmpp was also tried but performance differences weren't observed. When you say you built ffmpeg using LibreELEC's patches, are you referring to this? https://github.com/LibreELEC/LibreELEC.tv/tree/0e57a30916a3a88e0d4c595a5525d3c03156fcc6/packages/multimedia/ffmpeg/patches Using your version of mpv, everything works as supposed! Some notes: YUV420 video works very well but RGB video doesn't (both hardware and software decoding). I know it isn't common, I tried it because it could possibly be faster if the CPU didn't have to convert colors between formats, but it ended up being slower. I have tried to provide my help to the Armbian project previously, but what is needed isn't what I know how to provide. Though, I have an idea to help this community: maintaining ffmpeg packages that can take advantage of this hardware acceleration on these chips. This can be done externally of the Armbian project. What do you think of this idea?
  21. Like
    jock reacted to Seth in CSC Armbian for RK3318/RK3328 TV box boards   
    https://github.com/paolosabatino/armbian-build/tree/rk3318
  22. Like
    jock got a reaction from Seth in CSC Armbian for RK3318/RK3328 TV box boards   
    Glad to hear that you solved the issue; I will put this nvram in the armbian firmware repository as well, thanks!
  23. Like
    jock reacted to jernej in Mainline VPU   
    Not at the moment. Thing is that it's, as you said, proof of concept. RPi variant is probably the one that it will be sent upstream (asynchronous job submission, which is much more performant), but it needs to be tweaked to be more universal. Hopefully we'll start working on this soon, since HEVC request api is the only common interface between RPi4 driver and Cedrus, Hantro and RKVDEC.
     
    FYI, RKVDEC HEVC will most likely miss 5.20, since it was posted just yesterday and cut off date for new media features is end of this week.
  24. Like
    jock reacted to Gausus in CSC Armbian for RK3318/RK3328 TV box boards   
    Thank you for the tips @jock
     
     
    I have 2 H96max+ RK3328 ∕ 4GB  tvboxes.
     
    Armbian 22.08 - Debian Bullseye minimal - mainline kernel 5.18.10
     
    BOX1 :  On internal eMMC
    BOX2:   Boot Armbian from SDCARD  , Android on internal eMMC
     
    Benchmark from terminal:
    mbw 1000  
    Box1 : RAM 667Mhz CPU @ 1,3GHz
    AVG    Method: MEMCPY    Elapsed: 0.82118    MiB: 1000.00000    Copy: 1217.764 MiB/s
    AVG    Method: DUMB    Elapsed: 0.88632    MiB: 1000.00000    Copy: 1128.263 MiB/s
    AVG    Method: MCBLOCK    Elapsed: 0.27756    MiB: 1000.00000    Copy: 3602.800 MiB/s
     
    Box2 : RAM 333Mhz (Android uboot) CPU @ 1,3GHz
    AVG    Method: MEMCPY    Elapsed: 1.51033    MiB: 1000.00000    Copy: 662.107 MiB/s
    AVG    Method: DUMB    Elapsed: 1.62614    MiB: 1000.00000    Copy: 614.955 MiB/s
    AVG    Method: MCBLOCK    Elapsed: 0.54709    MiB: 1000.00000    Copy: 1827.854 MiB/s
     
    To boot from sdcard when Android on internal storage.
    1. Flash Armbian on sdcard
    2. Download Multitool.img 
    3. Mount multitool.img on linuxpc or flash to another sdcard.
    4. Copy  trustos.img and uboot.img from bsp folder to a folder on linuxpc,
    5 . DD trustos.img and uboot.img to sdcard Armbian from linuxpc
     
    sudo dd if=uboot.img of=/dev/SDCARD seek=16384 conv=fsync sudo dd if=trustos.img of=/dev/SDCARD seek=24576 conv=fsync  
     
     
  25. Like
    jock got a reaction from paradigman in CSC Armbian for RK3318/RK3328 TV box boards   
    Glad to hear that you solved the issue; I will put this nvram in the armbian firmware repository as well, thanks!
×
×
  • Create New...