Porting Raspberry Application to Rock 4 SE

Dear all,
good morning,

i’m trying to move my Raspy app to Rock 4 SE and i’d like to share with you my progress and my problems hoping in your help.
What i need is:

  • 1 a GUI
    i managed to cross compile QT ver 5.17 with some effort in several distros (debian 4.4 and 5 kernel, armbian)
  • 2 GPIO control
    libmraa and wiringX seem be working but wiringX raise some errors on PIN 28-29 despite they work apparently in a correct way (it’s only in debian bullseye 4.4 - no chance to find working overlays in kernel 5 or armbian). It’s not clear if there is a perfect match between Raspy and Rock 4 se pins.
  • 3 I2C interface at 400Mhz
    It’s not clear how easy would be change the speed ( but working only in 4,4 kernel)
  • 4 working low latency sound effects
    QT cross-compiled uses ALSA and audio drivers works very good in kernel 5. Unfortunately in kernel 4.4 the playback is very slow and i couldn’t do better than connect an external USB sound card.
    furthermore i can’t understand because lsmod doesn’t show any snd_* drivers.
  • 5 raspberry LCD
    Like Gpio and I2s works only in kernel 4.4
  • 6 boot logo
    i’ve tried to recompile 4.4 kernel with this option but it did not work (any suggestions).

thank you
Mirko

Sounds like complete project for me :slight_smile:
For sure I’ve got working most of them on kernel 5.x on rock3 or rock4B+ during some tests,
Sure there are many traps for us, same thing just worked great on rpi, when here there were missed packages/utils as well as messed packages or configurations. Good luck :slight_smile:

You realise that kernel 4 and 5/6 are completely different? Radxa is sticking to support 4.4. so in case you want mainline based support questions, you will get a lot more hints (solutions are too complex for public forums) at Armbian forums - all RK3399 boards share same problems you have exposed (https://forum.armbian.com/forum/85-rockchip/) … many unexpected troubles. Armbian provides commercial assistance in case you want to save few months of your time. Good luck from my side too :slight_smile: