Files
infix/board/arm/raspberrypi-rpi2
Joachim Wiberg e5b5b6203b legal: add missing hash files and fix date-cpp hash filename
Add missing *.hash files for all board packages using the ix-board macro;
they declare LICENSE_FILES = LICENSE but had no hash file, producing a
warning during make legal-info.

Fix the date-cpp package where the hash file was named date.hash instead
of date-cpp.hash (package name is derived from the directory, not the mk
filename), causing Buildroot to skip the hash check entirely.

Add hash files for local-site packages confd-test-mode, netd, and
onieprom that declared LICENSE_FILES but provided no hash.

Also, rename package/date-cpp/date.mk to date-cpp.mk.  Buildroot derives
the package name from the directory name, so the mk file must match. To
handle the archive name different we set DATE_CPP_SOURCE.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2026-04-10 11:19:34 +02:00
..

Raspberry Pi 2 Model B

The Raspberry Pi 2 Model B is a 32-bit ARM single-board computer, powered by the Broadcom BCM2836 quad-core Cortex-A7 processor @ 900 MHz with 1 GB RAM.

The board features:

  • 4x USB 2.0 ports
  • Fast Ethernet (100 Mbps)
  • microSD card slot for storage
  • HDMI port
  • GPIO header (40-pin)

Note

Revision 1.2 of the Pi 2B actually uses a BCM2837 (Cortex-A53) underclocked and without WiFi, making it very similar to the Pi 3B hardware-wise but running in 32-bit mode. This revision is not supported.

How to Build

Since there are no pre-built images for ARM 32-bit, you need to build both Infix and the bootloader from source.

  1. Clone the repository

     git clone https://github.com/kernelkit/infix.git
     cd infix
    
  2. Build the bootloader (in separate tree)

     make O=x-boot rpi2_boot_defconfig
     make O=x-boot
    
  3. Build Infix (in another tree)

     make O=x-arm arm_defconfig
     make O=x-arm
    
  4. Create the SD card image

     ./utils/mkimage.sh -b x-boot -r x-arm raspberrypi-rpi2
    

The resulting image can be found in x-boot/images/infix-arm-sdcard.img

Flashing to SD Card

Flash the image to a microSD card (at least 4 GB):

sudo dd if=x-boot/images/infix-arm-sdcard.img of=/dev/mmcblk0 \
        bs=1M status=progress oflag=direct

You can also use bmaptool:

sudo bmaptool copy x-boot/images/infix-rpi2-sdcard.img /dev/mmcblk0

Warning

Ensure /dev/mmcblk0 is the correct device for your SD card and not used by the host system! Use lsblk to verify.

Booting the Board

  1. Insert the flashed SD card into the Raspberry Pi
  2. Connect an Ethernet cable (DHCP will be used to get an IP address)
  3. Power up the board using a 5V/2.5A micro-USB power supply

The board will boot and obtain an IP address via DHCP on the Ethernet port. Find the assigned IP and SSH in with the default login credentials, user/pass: admin / admin.

Console Port (Optional)

A serial console can be useful for debugging. Connect a USB-to-TTL serial adapter (3.3V) to GPIO pins:

  • GND → Pin 6, ground
  • TxD → Pin 8, GPIO 14
  • RxD → Pin 10, GPIO 15

Serial settings: 115200 8N1

Warning

Use only 3.3V serial adapters. 5V adapters will damage your Raspberry Pi!