Series

OpenWrt-RPi4

3 posts · Raspberry Pi 4

  1. 1
    [OpenWrt-RPi4] 1. Building an OpenWrt image for the Raspberry Pi 4
    · Build OpenWrt from source for the Raspberry Pi 4 (bcm2711), preconfigure a static IP on eth0 so you can SSH and SCP into the board, then flash the image to an SD card with dd.
  2. 2
    [OpenWrt-RPi4] 2. Bringing up U-Boot on an OpenWrt image for the Raspberry Pi 4
    · Put U-Boot between the Raspberry Pi firmware and the OpenWrt Linux kernel on a Pi 4: edit config.txt, create a separate defconfig and device tree, write bootargs and bootcmd by hand instead of bootstd, and fix the MMC alias so U-Boot finds the SD card.
  3. 3
    [OpenWrt-RPi4] 3. Bringing up an SSD1306 in U-Boot on an OpenWrt image for the Raspberry Pi 4
    · Bring up an SSD1306 OLED over I2C inside U-Boot on the Raspberry Pi 4: trace i2c_master_send in Linux to find the BCM2835 I2C driver, port that driver to U-Boot, then add an SSD1306 driver.