Files
operating-system/Documentation/boards/raspberrypi.md
2019-07-23 14:28:22 +02:00

1.9 KiB

Raspberry PI

Supported Hardware:

Device Board
Raspberry Pi A+/B/B+ rpi
Raspberry Pi Zero rpi
Raspberry Pi Zero W rpi0-w
Raspberry Pi 2 B rpi2
Raspberry Pi 3 B/B+ rpi3 / rpi3-64
Raspberry Pi 4 B rpi4 / rpi4-64

Limitation 64bit

The 64bit version is under development by RPi-Team. It work very nice but it could have some impacts. Actual we see that the SDcard access with ext4 are a bit slower than on 32bit.

Serial console

For access to terminal over serial console, add console=ttyAMA0,115200 to cmdline.txt and enable_uart=1, dtoverlay=pi3-disable-bt into config.txt. GPIO pins are: 6 = GND / 8 = UART TXD / 10 = UART RXD.

I2C

Add dtparam=i2c1=on and dtparam=i2c_arm=on to config.txt. After that we create a module file on host with config usb stick or direct into /etc/modules-load.d.

rpi-i2c.conf:

i2c-dev
i2c-bcm2708

USB Boot

USB mass storage boot is available on Raspberry Pi 3B, 3B+, 3A+, and 2B v1.2. To enable USB boot, add program_usb_boot_mode=1 into config.txt. Note that this permanently alters the one-time programmable memory of the device.

For more information see RaspberryPi.

Caveats

  • All bootable SD cards must be removed.
  • Boot time can be significantly longer with USB. This is due to the boot process first attempting to boot from SD card, failing, and resorting to USB.
  • Many USB drives simply do not work for boot. This is likely due to minimal driver support in uboot and will not be fixed. If you can't get it to boot on one drive, try a different brand/model. SanDisk Cruzer drives seem to have a higher rate of issues.

Tweaks

If you don't need bluetooth, disabled it with add dtoverlay=pi3-disable-bt into config.txt.