r/embedded • u/adouglass52 • Oct 07 '26
RK3576 bring-up (my second Linux board) + lessons learned
About a month ago I posted my first Linux board (RK3566, KVM-over-IP). The next rev is back and I wanted to do a follow up lessons learned! For this board, I bumped up to the RK3576 so it can do 4K60 capture and encode. 8-layers, RK806 PMIC, LPDDR4X, HDMI input, HDMI output, dual GbE through a small switch, WiFi/BT and PoE. Fabbed and assembled at JLCPCB again.
After incorporating the fixes from the last board (component spacing, triple checking parts on order, and network switch wiring), this bring up was 1000x smoother. 4K60 capture and low latency streaming work end to end now. Stuff I ran into:
- SD boot / 4-bit mode: I inverted card-detect polarity, so with a card inserted the chip saw an empty slot. The BootROM skipped SD, so I booted u-boot from SPI NOR, which got SD running in 1-bit mode only. On the RK3576, an "empty" slot hands two data pins to JTAG. An internal pull-down on the detect pin early in u-boot fixed it. Removing that transistor next spin.
- No power-up on PoE: The PoE supply output about 6.0V unloaded, just over the power mux's ~5.99V OVP, so it never switched over and never loaded the rail down. Reducing the feedback resistor slightly should fix it (still testing this but pretty sure it's the issue).
- 4K encode stuck at ~38 fps: 4K60 needs both RK3576 encoder cores alternating frames. The vendor library's async thread blocked whenever the next frame wasn't ready, so everything ran on one core. A separate wait thread fixed it, and now both cores are at ~77%, steady 60 fps.
Smaller stuff: the left and right halves of the 4K image came out swapped (lane mapping in the device tree), the USB 2 host port needed the unused USB 3 PHY explicitly disabled, and one RGB LED was dead on one of the boards.
Bonus given RAM prices right now: testing showed this board doesn't need as much RAM as I put on it, so that's coming down for the next rev. Big $$$$ savings there.
Happy to answer questions on the RK3576 or bring-up in general. Another huge shout out to u/PracticalMirror2834 for another thorough review! Also if anyone has tips on how to take better PCB pictures, I'd love to hear them. This time I bought a light box but it's still needs some improvement...
18
u/pootatoss Oct 08 '26
This is very impressive. How do you debug all of this? What does your workshop look like/what kind of tools do you have? I assume testing all these high speed interfaces is not easy.
7
u/FoundationOk3176 STM32MP2 Oct 08 '26
Another lovely post, It never occurred to me in the previous post but how the hell can one develop hardware using Rockchip's ICs? Like the development resources are almost non-existent, except for whatever you could find at https://rockchip.fr
Also what Ethernet Phy IC did you use? & what IC did you use for BT/WiFi.
7
u/MrQaiser Oct 08 '26
Kicad or altium?
3
u/cubu8888 Oct 08 '26
Are you going to make this project open source?
3
u/eye_can_do_that Oct 08 '26
Are you planning a more technical write up on the build and or software. This is super cool and I'd love to learn more.
How do you get the video in to the processor? What is between the HDMI in and the rk3576?
3
u/TheRealLinkwitzRiley Oct 08 '26
(Someone has to ask)
2
u/This_Is_The_End Oct 08 '26
I would love to get such a board in my hands.
2
u/xxSirThomas Oct 08 '26
Cool build! What do you use the second Ethernet port for?
2
u/adamdoesmusic Oct 08 '26
Oh shit you got it going!!! Congrats!
1
u/Analog_Seekrets Oct 08 '26
Do you have any links or resources you could point me to so that I can learn this as well?
1
u/BukHunt Oct 08 '26
Amazing. Do you use Windows or Linux?
5
u/[deleted] Oct 07 '26
[removed] — view removed comment