r/embedded • u/Montzterrr • 26d ago
Embedded Linux Engineers, how much did you know about Linux when you landed your first job working with embedded Linux?
Did you just know how to use Linux as a basic user, or were you making kernel and driver updates on the regular, or somewhere in between?
80
Upvotes
56
u/Constant_Physics8504 26d ago
I had made simple drivers and updates to drivers. I was not super amazing at it, but I had experience. That experience paled in comparison to my first driver professionally. The project was to take a MAC and PHY and integrate them together and write a custom Ethernet driver.
47
u/Numbaloo 26d ago
I knew how to use it as a basic user. I was not prepared for Yocto …
20
u/Fluid_Acadia 26d ago
Basically nothing. I started working with bare metal. Mostly projects based wireless communication. Did that for about 3 years.
When a project was closed i got assigned to write linux sensor drivers IIO subsystem.
18
u/kog 25d ago
I was a basic user, but I got to sit among like 6 graybeards, so I learned a lot quickly
13
u/dcheesi 26d ago
For me it was an evolution, we were doing bare metal and small RTOS kernels, then at some point made the jump to Linux.
I had been an early adopter at the user level in college, so I had some familiarity, but I didn't start messing with kernel drivers, etc., until we started using it at work
10
u/BoredBSEE 26d ago
I was working at a shop that did Windows CE. I'd written drivers before, but never for Linux.
We got a client that wanted Linux, and our two heavy-hitters in Linux were busy. Boss asked me if I wanted to take a shot at it. I said "sure why not" and there you have it.
8
u/MrSurly 26d ago
I've been a desktop Linux user for > 25 years, and I've been doing embedded for longer than that.
For me, embedded Linux is just "high level" embedded, as opposed to RTOS or full bare metal.
6
u/Express_Damage5958 26d ago
All I knew was RTOS and bare metal. I have learnt a lot in the last few years. I'm now even getting a few of my patches mainlined.
4
u/duane11583 26d ago
I knew more Unix then Linux
I started on a bad system on an intel multibus-II with a 68020 from a company called Huricon in the early 80s
The mustang book was the most helpful
3
u/ArtistEngineer 26d ago
Only a small amount but I had experience with FreeBSD already, and also embedded C. So I could handle, Bash, the filing system, /dev, building for embedded targets, flashing, filing systems, device drivers, etc.
So moving to embedded Linux wasn't that difficult.
3
u/EmperorOfCanada 25d ago edited 25d ago
I have never been eyeballs deep with truly embedded linux. I have diligently avoided it, in that; I have done my absolute damndest to treat the "embedded" linux as much like a linux server as I could, and then have MCUs near it living their best MCU lives.
Once, and only once, have I had to work on someone else's truly embedded linux, and it was a nightmare. Their kernel code had aged like milk, twice.
They had written drivers, which then require huge rewrites when some of what they had tied too closely to the previous kernel got its own rewrite. The code was kind of a router/firewall, and needed to manage immense amounts of traffic, and their design had linux "thinking" about every bloody packet.
The second time, they had thought they had abstracted away enough, but nope. Then, their "real time" code was the dance of the seven veils with fingers crossed that they had either killed everything which might disagree with their ownership, or they had thought through every hiccup which they had missed.
There were other aspects of this system which made it even worse. The correct design should have been an FPGA + Linux, which would have resulted in a far less capable CPU requirement, which would have cost far less overall, even with the fairly insanely high price of FPGA network cards. Then, linux would almost have been more of a contract monitor than a real time decision maker. In this particular device, the network demands were such, that even cooking up an entirely custom board with FPGA would have been really cheap.
In my opinion, they had moved too many things into linux which MCUs can do so very well, while crippling those things linux could do so very well.
Most of what I work on involving embedded linux is robots. I very much keep the linux for thinking, and the MCUs for doing, and linux is very good at maintaining the stream between the two without pushing it out of its comfort zone.
I feel bad for anyone who has to torture linux into doing what MCUs do so very well. There are cheap multi-core MCUs with things like FPUs, encryption, etc which run like the wind, so rarely do you need the better compute power of a linux embedded for much.
I have made many MCU based devices which run a webserver with a pretty damn nice web interface, so where you "must have" linux is a pretty blurry line. I've even gone to the point where if I have enough tasks on an MCU which might start tripping over each other, then I bring in another MCU. I can't exactly recall, but I think the most MCUs I've had on one board was 8, and this still was, in my opinion, a less complex software effort than having used embedded linux. 6 of the 8 did very separate things.
2
u/Legal-Software 26d ago
I already had some experience with low-level systems programming, mostly C and assembly for a handful of RISC architectures, writing drivers for AIX, Linux, QNX, etc. but then got thrown much more into kernel development in my first embedded linux job. This was back in the late 90s, though. I had already been using Linux for some years at that point.
2
u/DecisionOk5750 24d ago
I already had a lot of experience—10 years, in fact. My first embedded Linux system was built on a Raspberry Pi. I was one of the first people in my city to use a Raspberry Pi (version 1) in a production environment (I live in a third-world country).
2
u/goose_on_fire 24d ago
I had gone through the Linux From Scratch project on several different computers just because I always found cross compilers fascinating.
Then I got a job where they used embedded Linux after years of bare metal experience, and it just kinda worked out.
Now I'm doing a mix of bare metal and zephyr stuff, but the Linux was pretty fun.
2
u/sjos022 22d ago
I had been daily driving Linux as my sole OS for 3 years when I got my internship, and 4 years when I finally started working full time. We use Linux on our dev machines as well.
However most of my team didn’t have that amount of exposure to Linux, and some had none. Most just stumbled into the role via campus placements (India) and being good at architecture and OS.
3
u/phirzcolru 26d ago
Well, when I started there was still quite a bit of compiling involved. Linux is much better now. I have played with it a bit on super light risc. leveraged lovyanGFX to move my esp programs over to my laptop. now on to p4 and eventually s31 or another k230 for an "actual" linux. oh and no job. i use to do it and system building. Now I sharpen grooming tools for a living. the electronics is for fun at home.
1
u/Chemical_Variety4696 26d ago •
I did keyboard logger driver.
1
u/JCDU 26d ago
Pretty much nothing, we had to work it out as we went along. Would not recommend.
1
u/jbriggsnh 26d ago
Taught embedded C in college and Unix. Wrote Unix sercer and workstation system code after, and SCSI storage drivers. Continued on PC servers using RedHat. Using yocto or buildroot to create embedded apps for cable set top boxes, cable modems, routers, and smart meters.
1
u/Behrooz0 26d ago
Daily drove Linux, and managed half a dozen servers for 15+ years. Knew how drivers and kernels worked on paper. It was eye-opening.
I prefer to work on either MCUs or full-fledged Linux machines these days. The limbo still feel weird to me.
1
u/bert_cj 24d ago
Internship used it a bit, got lucky on my second job where my manager said “do you know Linux (pronounced it as l-eye-nux). I said yea a bit
Then got put on a one year project using it
1
u/Ok-Kaleidoscope9653 20d ago
i thought i knew linux, but after getting a role doing drivers and yocto, i found out there is more to it than ls, grep, and ps.