How to Cross-Compile C Programs for ARM & x86
Cross-compile C code for embedded ARM and x86 targets: master gcc vs arm-linux-gnueabihf-gcc, set sysroot paths, and verify output via file command.
Lynxbee topic
Linux Kernel
Cross-compile C code for embedded ARM and x86 targets: master gcc vs arm-linux-gnueabihf-gcc, set sysroot paths, and verify output via file command.
Understand ARM ELF binary file structures: inspect section headers using readelf -S, analyze .text code, .data initialized variables, and .bss.
Compile a custom Linux kernel for Android AOSP on Ubuntu: setup ARCH=arm64 CROSS_COMPILE toolchain, configure defconfig, build Image.lz4-dtb.
boot: The boot partition contains a kernel image and a RAM disk combined via mkbootimg. In order to flash the … Read more
Master custom embedded Linux kernel compilation: configure defconfig, strip bloated subsystems, tune menuconfig, compile DTBs, and boot on ARM hardware.
Fix Yocto BitBake build warning "QA Issue: binary was already stripped": configure INSANE_SKIP += "already-stripped" or prevent premature binary stripping.
Cross-compile BusyBox for ARM embedded targets: configure defconfig, set ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-, build statically, and install.
Porting the Linux kernel to new embedded hardware is a complex but rewarding task. It allows you … Read more
Optimize C/C++ application performance on embedded Linux: profile CPU bottlenecks using perf, reduce RAM footprint, use static linking, and tune LTO.
In the world of Linux, sysfs and USB play crucial roles in system management and device interaction. … Read more
Set up an embedded Linux development environment on Ubuntu: install cross-compilers, QEMU, GDB, Yocto dependencies, and TFTP boot servers.
Explore top embedded Linux projects: build custom Yocto bootloaders, smart home IoT gateways, camera vision nodes, and real-time kernel controllers.
For this post, we assume that you already have a working root filesystem as we did in … Read more
Flash custom Yocto Linux build images to Raspberry Pi SD cards: identify /dev/sdX disk nodes, execute dd bs=4M status=progress, and verify boot partition.
A Device Tree Source (DTS) file is used in the context of the Linux kernel to describe … Read more
In Linux kernel or device drivers if you are using printk, by default every message we pass … Read more
We will try to understand the simple kernel driver, its compilation and ways to load the kernel … Read more
Configure Linux input event maximum axis bounds for ABS_X/ABS_Y and ABS_MT_POSITION_X/ABS_MT_POSITION_Y touchscreen drivers using evtest and libinput.
Understand Yocto Project package compilation stages: trace do_fetch, do_unpack, do_patch, do_configure, do_compile, and do_install in BitBake.
When you are working with Linux kernel internals or device driver programming, there are chances you see … Read more
Lets first try to understand what are the ways to mount the root file system, Altough the … Read more
When the kernel gets into a situation where it does not know how to proceed (most often … Read more
We will consider our hardware platform as ARM, so the kernel startup entry point code is at … Read more
DTB = Devicetree blob. Compact binary representation of the devicetree.DTC = Devicetree compiler. An open source tool … Read more