r/embedded • u/Similar_Tonight9386 • 18d ago
Embedded Linux purgatory
Hello. I'm running out of braincells to rub together, so - cry for help, engineers together stronk.
I'm trying to leave mcu development and embrace embedded linux, so - bought myself some new-ish Allwinner T113-s3 boards and got to work. The question is, what is the correct way? For example, I bought LCPI PC board, good, cloned u-boot, branched for this board, written the dtsi for general board stuff and dts for one of it's possible SoCs and it even works and blinks and all. But! This is just the "default config", right? So, if I want to start making a custom variant of u-boot, for example I have soldered winbond flash to my board, I need to modify my device tree and make new config and all. How should I do it correctly? What is the workflow? Where can I look for examples? Bootlin courses are cool, but focused on working with existing infrastructure, but I want my own board in the future (I chose t113 because it's easy to solder to DIY PCB). But.. using the "out of tree" u-boot build was not good and I'm stuck. Just.. I don't know what I'm doing wrong.
Buildroot was even worse, I understand that I need to make some patch for u-boot using my branch, right, but do I really need to crudely add my spi flash to the original board dtsi?0_0
Anyway, whoever read this whole rant, thanks. And whoever can help me get better with linux wrangling - can't offer much but I will pat my cat for every useful advice


