Jump to content

Fairphone 4 (fairphone-fp4)

From postmarketOS Wiki
Fairphone 4
Framebuffer console on mainline kernel
Framebuffer console on mainline kernel
Manufacturer Fairphone
Name 4
Codename fairphone-fp4
Released 2021
Type handset
Hardware
Chipset Qualcomm Snapdragon 750G (SM7225)
CPU Octa-core Kryo 570
GPU Adreno 619
Display 1080x2340
Storage 128GB/256GB
Memory 6GB/8GB
Architecture aarch64
Software
Original software Android
Original version 11
postmarketOS
Category community
Pre-built images yes
Features
Flashing
Works
USB Networking
Works
Internal storage
Works
SD card
Works
Battery
Broken
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Broken
Camera
Broken
Camera Flash
Works
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Broken
NFC
Broken
Modem
Calls
Partial
SMS
Works
Mobile data
Works
Miscellaneous
FDE
Works
USB OTG
Works
HDMI/DP
Broken
Sensors
Accelerometer
Works
Magnetometer
Works
Ambient Light
Works
Proximity
Works
Haptics
Works


Contributors

Users owning this device


How to enter flash mode

For booting into fastboot, turn off the phone, hold volume down and plug in the USB cable.

Installation

Unlock the bootloader according to the official instructions.

UBports Installer

You can use UBports Installer v0.9.8 (or later) to flash a prebuilt image of postmarketOS onto your Fairphone 4. Just select postmarketOS in the OS selection and choose the desired UI and lean back!

postmarketOS web installer

You can use the postmarketOS web flasher to flash a prebuilt image of postmarketOS onto your Fairphone 4. Follow the instructions on the page.

Manually

You need to erase the dtbo partition for the current slot with fastboot erase dtbo, otherwise the device will not boot.

Hint You can always restore the original dtbo partition by downloading and extracting the dtbo.img from the factory package and then flashing it via fastboot flash dtbo <path/to/dtbo.img>. This works similar for the boot partition.

The rest of the installation is standard, but because the device contains A/B slots, you must watch out for the correct slot being active.

Note The device does not contain a system as you might be used to, it contains one super partition which contains system/system_ext/product/vendor/odm partitions, in _a and _b variant each. This concept is called Dynamic Partitions.

You have a few possibilities to flash the postmarketOS rootfs:

  • userdata partition (> 100 GB space): pmbootstrap flasher flash_rootfs --partition userdata
  • super partition (6 GB space): pmbootstrap flasher flash_rootfs --partition super
  • Subpartition of super using fastbootd.
  • SD card: pmbootstrap install --sdcard /dev/$blk_dev

See also Dual Booting if you want to run postmarketOS in parallel with another operating system.

SD card notes

In case you want to flash to SD card on a different computer, do the following:

1. Edit $(pmbootstrap config aports)/device/community/device-fairphone-fp4/deviceinfo and change the value of deviceinfo_rootfs_image_sector_size to 512 (the SD card sector size)

2. Run pmbootstrap install --no-sparse (we do not need a sparse image for the SD card)

3. Copy the newly created $(pmbootstrap config work)/chroot_native/home/pmos/rootfs/fairphone-fp4.img to the other computer and flash it there with your preferred flashing tool.

Resources

Partition layout

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sda

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdb

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdc

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdd

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sde

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdf

fairphone-fp4:~# fdisk -l -o Device,Start,End,Sectors,Size,Name /dev/sdg

See also