Posts

Showing posts from April, 2024

Building custom image for Raspberry Pi 4 using Buildroot | RPi4 | bash | nginx | openSSH | nmap

Image
Introduction to Buildroot Buildroot is a popular tool for building embedded Linux systems. It simplifies the process of creating custom Linux images for embedded devices by automating the build process and managing dependencies. To learn more about Buildroot and its capabilities, refer to the Buildroot manual and clone the Buildroot source files from the  Buildroot GitHub repository . What we are going to do is, we will first build a default image for the Raspberry Pi 4 using Buildroot along with the OpenSSH package. Then, we will inspect the image after booting it up. Later, we will rebuild the image with additional packages like bash, nginx, and nmap. Generating the .config file for Raspberry Pi 4 The Buildroot tool already has default configurations for widely used platforms. So, we will start off by listing the default configurations available for the Raspberry Pi boards. make list-defconfigs | grep raspberrypi Now, we have to generate the .config file for our Raspberry Pi 4, usin

Capturing images using the Digital Camera Interface | STM32L4 | DCMI | CMSIS

Image
Digital Camera Interface The DCMI (Digital Camera Interface) is a synchronous parallel interface designed to receive a high-speed data stream from an external CMOS camera module. It offers compatibility with 8-bit, 10-bit, 12-bit, or 14-bit camera modules.  The DCMI peripheral supports Embedded Line and Frame synchronization methods in addition to the Hardware Synchronisation from the CMOS Camera Module. It has two operating mode, namely Continuous or Snapshot mode. Additionally, it offers a crop feature and supports various data formats, including 8/10/12/14-bit progressive video (Monochrome or Raw Bayer), YCbCr 4:2:2 Progressive Video, RGB 565 Progressive Video, and Compressed Data in JPEG format.   For more information on the DCMI peripheral, read the Training material for DCMI on STM32L4 from STMicroelectronics . DCMI Registers The DCMI peripheral has Control and Status registers for the DCMI Core and Interrupts. It also has a few registers for handling Data synchronization, Croppi