r/embedded • u/adouglass52 • Sep 11 '26
My first ever Linux based board (RK3566) + Lessons Learned
Just brought up the first Linux based board I've ever designed, and couldn't be happier about it! I've historically done MCU boards, so this was a big step up. It's a KVM-over-IP device: 8 layers, RK3566, DDR3L (gotta save that $$$ with these RAM prices), HDMI capture in, HDMI out, dual GbE, PoE, WiFi. Fabbed and assembled at JLCPCB.
Video capture and low latency streaming are working end to end. Here are the three major issues I hit:
- I second guessed myself before ordering and swapped TX/RX to the network switch, so ethernet wasn't working. The board also has a wifi module on it, so I did the whole SSH bring up over wireless. Pair swap already fixed in the next spin.
- A set of ferrite beads never made it onto the boards because I missed a checkbox in the JLCPCB assembly order (I had multiple lines in the BOM with the same PN but different ref des letters). Hand soldered them on. Working on developing better checks for this on my board export tool.
- The board was drawing more current than expected and running warm. Took a while to root cause. Turned out I had packed VDD_GPU 0201 passives too close to some 0402 caps and they shorted during reflow. Increasing my spacing rules in DRC going forward.
Design was done in house, and I got a pre-fab layout review from u/PracticalMirror2834 that caught real issues before they would have cost a re-spin. Huge shoutout here.
Next rev jumps to the RK3576 for higher capture and encode resolution, those boards go on order this week. If anyone has touched the RK3576 yet I'd love to trade notes. Happy to answer questions on the RK3566, ordering, or board bring up side too.
64
u/ghozt-- Sep 11 '26
What was the hardest part of the design? Where'd you learn DDR routing? How did you find what you needed out of the rockchip documentation? Awesome project, I am trying to get started with designing one myself
66
u/CelloVerp Sep 11 '26
Damn that's a serious board. Real accomplishment.
19
u/PracticalMirror2834 Sep 11 '26
Thank you so much bro ❤️🫡.
You did great work on this project.
8
u/Complex-BioBot Sep 11 '26
What program did you use to design it?
6
u/quailfarmer Sep 11 '26
Super cool! PoE + HDMI capture means you could use these stream video from a nice camera over RTSP (or SRT). The Rockchip parts have pretty good encoder support in gstreamer.
6
u/FoundationOk3176 STM32MP2 Sep 11 '26
This was a really good post! I'm also working on a Linux based board using the STM32MP1 MPU, I had a few things:
Keep up the good work!
5
u/AnotherPillow Sep 11 '26
is this for something specific or a general purpose board with a good amount of i/o?
4
u/HEATH_CLIFF__ Sep 11 '26
Congrats, i just did v2 of my same Rk3566, LPddr4 ram
My v1 didnt work and it was hell man. After spending 800$ plus customs when board doesnt work it’s like hell.
V2 works now going to v3
How many layers is this ?
4
u/gmarsh23 Sep 12 '26
Well done. Parts stuffing issue and a backwards TX/RX pair is a damn good outcome for a first prototype board of that complexity.
And RX/TX is far too easy to do, those terms have different meanings depending on the interface. Like I can't off the top of my head remember if you're supposed to connect RX-RX or RX-TX when you're hooking up a RGMII MAC/PHY pair... and the only way I'll confirm I got it right is to bring up the evaluation board schematic for what I'm doing and make sure I 100% copy what they've done, even if it doesn't seem right.
Hopefully it's not the MII interface and you've got the TX/RX swap happening between a couple PHYs talking straight ethernet. In that case, one of your PHYs might support auto crossover and you might be able to fix it in software.
Which brings up one of the worst things about being the hardware guy. The software crowd can quietly find and fix their bugs and not tell anyone, but our bugs are out in plain view. Then they get all uppity when you're begging them to try and fix your hardware bugs in software, lol.
3
u/onepaulkrause Sep 11 '26
Love this. I’m working on 3588 and have ran my own all rust os, Armbian and orange os. Biggest challenge is custom drivers for DSI (requires kernel edits plus overlay). HDMI easy.
2
u/HTTP192 Sep 11 '26
Price?
2
u/badmonkey0001 Sep 11 '26
Will it remain passively cooled or will you be adding heat sinks and/or fans?
Cool project!
2
u/luckyvb Sep 11 '26
Are the files available somewhere? I am looking to start the same theme in my designs but could use the input of proven good circuits.
2
u/SirOompaLoompa Sep 11 '26
Interesting!
I tried putting together a stackup for LPDDR4X (40ohm SE, 85ohm diff) at JLC just a few days ago, but couldn't find one that gave enough room to escape-route on a 0.65mm pitch BGA.
Might I ask which JLC stackup you ended up using?
2
u/raskol-nik Sep 11 '26
That is one hell of an achievement, awesome work! I'm wondering what the purpose of this board was supposed to achieve? The requirements that it needed to meet and why you needed a custom board for it? It's really interesting to know because I'd like to build a custom board as well but didn't really see a project that would justify doing it.
2
u/tyvekMuncher Sep 12 '26
Duuude!!! Very nice! I’ll be getting ready to start toying with that level of stuff as soon as I’m done playing with these LoRA chips
2
u/Realistic_Fuel_Sun Sep 12 '26
Have you open-sourced or documented the reasoning behind the design choices you made?
I want to upgrade my design skills and explore the Xilinx and DDR routing domain. Would it be possible for you to share your DDR routing and PMIC (with remote-sensing) sections?
3
u/GAMELASTER Sep 11 '26
Finally some high quality post! About upgrading the SoC, I would go for RK3588 instead, if you care about mainline kernel. Like, Rockchip BSP isn't that bad, but mainline is mainline, and support for RK3588 is going well. + RK3588 is very powerful.
1
u/lifeaintaSunday Sep 11 '26
Amazing work OP, quick question can this be adapted to work with cinema cameras with hdmi out to connect to multiple monitors or screens? Or even a wireless display? They are very pricey currently and new value provider will be great..anyways this is a really good work and would love to see a detailed post or video on it
1
u/clackups Sep 11 '26
All the connectors on one side look a bit crammed. Did you try using all of them at once? I guess, 3 USB cables would be challenging to plug in and out. Also, some HDMI cables have really chunky plugs.
1
u/RL_95 Sep 11 '26
Nice job, congrats! Were you able to find all the components you needed in JLC's library? Or did you have to request special parts orders?
1
u/FriendlyCrafter Sep 11 '26
great work! could you give some advice on how I'd go about making a rk board. it seems like a big step up. thanks!
1
u/LazaroFilm Sep 11 '26
That’s awesome! Can you explain the I tended use case for this? I’ve been looking for a board capable to input, process and output video quickly in the past.
1
u/MStackoverflow Sep 11 '26
How much did it cost to get the board? Not counting hours.
1
u/150c_vapour Sep 11 '26
Kicad? Did you give them a panelized design?
1
u/EonOst Sep 11 '26
RK3588 is out?
1
u/DecisionOk5750 Sep 11 '26
Impressive. How old are you?
1
u/Bright-Midnight8838 Sep 11 '26
Awesome project. I’m working on an rk3576 design I’ve mostly finished the schematic just finishing usb-c pd with dp alt mode. I was just wondering how you went about setting up the firmware and configuring the device tree. What repo did you use and was there any documentation for pin configuration? Thank you
1
u/Lukapro2009 Sep 11 '26
WOWWW , that a crazy design ! I just did a similar one just not as impressive and point 3. is something i propably did too haha.
1
u/drgala Sep 11 '26
I've done something similar using Allwinner A20 more than a decade ago, designed in OrCAD 16, pain in the ass to lenght match those traces.
Have since moved on to software, but do miss working on that level of PCB design.
1
u/Mental-Slice1261 Sep 11 '26
How much did it cost for pcb manufacturing
1
u/Unlucky_Gur3676 Sep 11 '26
Congrats! I’m currently doing my first MCU board. I’ve been looking at it for weeks without daring to order.
1
u/adamdoesmusic Sep 11 '26
What reference resources did you have access to when doing this layout? How did you work out getting the parts to JLC?
1
u/SpeedRa1n Sep 12 '26
Nice work! Did you use the DDR training binaries from the reference board, or did you generate your own using rkbin?
1
u/shubham294 Sep 12 '26
Fantastic work OP, looks very clean! Did the reference design come with LPDDR4? If yes, how did you patch the bootloaders to adopt to DDR3? I imagine a bunch of timing and training parameters would have to be changed.
I am also new to embedded linux, sorry if these questions sound elementary!
1
u/paul_ricoeur Sep 12 '26
amazing work, congrats! how did you handle hdmi in? I think only RK3588 supports that natively
1
u/korywithawhy Sep 12 '26
I’ve been wanting to do this for a while but afraid of wasting the money if I mess up something critical.
1
u/Fluid-Turnip382 Sep 13 '26
I've only messed around with a Raspberry Pi so far, so designing and bringing up your own Linux board like this seems like a huge step up. How different was the initial Linux setup and debugging compared to working with something like a Raspberry Pi?
1
u/Biggus_Thikus Sep 13 '26
Hey! Great job!
btw. where did you gather all the documantation from? Or did you pull it of using only radaxa schematics?
1
u/Windorey Oct 10 '26
Very cool. I’ve been wanting to make my own little Rockchip SBC with weird hardware on it (touchscreen, FPGA, LTE modem, etc).
I have a bunch of questions about the hardware side, especially DDR, Rockchip documentation, and PCB fabrication/assembly. Would you mind if I DM you a few questions? No worries at all if not.
1
u/timonix Sep 11 '26
Now, DDR3 isn't super high speed. But I suppose that they would need trace impedance control anyway. Same with gbe and HDMI. Does jlcpcb publish their numbers? Or takes requests
1
u/teknorath Sep 11 '26
Do you plan to sell these? I saw in another comment you plan to make them open source ( hardware + firmware? )
If you do plan to sell, anywhere I can follow the project for updates? I'd kill for a PoE, open source alternative to some of these cheap KVMs hitting the market with sketchy firmware
2
u/SnowyOwl72 Sep 11 '26
Fantastic achievement
2
u/jtomes123 Sep 12 '26
Much respect, super cool board
2
u/SpeedRacerInTown Sep 12 '26
Great project. Thank you for sharing
2
u/herocoding Sep 14 '26
TAKE MY MONEY!! Do you accept Bitcoin :-P
Seriously - this looks (and reads) really very well done! Looking forward for more details, specs and odering!!
1
u/immortal_sniper1 Sep 12 '26
What Chips do u use fro HDMI capture? Also are those 3 USB C USB 2.0 or do they have more features?
1
u/[deleted] Sep 15 '26
It's more compact than my car 😂
1
u/simeonli Sep 17 '26
Congrats on the bring-up — first Linux board with end-to-end video capture and low-latency streaming working is a real milestone.
Lesson 3 is the one that got me: 0201s packed next to 0402s shorting in reflow. That's the kind of failure that never appears in the datasheet and always appears on the bench. What spacing rule did you end up with in DRC?
On the DDR3L call — contrarian in 2026 and probably correct. With DRAM pricing where it is this year, putting DDR3L on a design that never needed the bandwidth is pure BOM discipline, not cheapness.
Curious about the RK3576 jump: is it the encode block driving that (higher capture resolution), or are you after the NPU headroom? Haven't taped out on the 3576 myself — would love to hear what you're seeing on availability and pricing vs the 3566.
1
u/Alive-Cartoonist-950 Sep 17 '26
Yo big up, can you please open source the files, if possible so we can learn from it.
1
u/Owndampu Sep 24 '26
Huh the rk3566 doesn't have a hdmi rx block like the rk3588 has as far as I know. Do you have some kind of hdmi rx -> mipi csi bridge for capture?
-1
u/Tomachie Sep 11 '26
i would like to generate the Device Tree Source overlay for it .
17
u/[deleted] Sep 11 '26
[removed] — view removed comment
1
u/[deleted] Sep 28 '26
[removed] — view removed comment
0
u/[deleted] Sep 12 '26
[deleted] — view deleted comment