Jump to content

Fairphone 4 (fairphone-fp4): Difference between revisions

From postmarketOS Wiki
No edit summary
Update installation section and minor things in sidebar
Line 11: Line 11:
| gpu = Adreno 619
| gpu = Adreno 619
| storage = 128GB/256GB
| storage = 128GB/256GB
| display = 1080 by 2340
| display = 1080x2340
| memory = 6GB/8GB
| memory = 6GB/8GB
| architecture = aarch64
| architecture = aarch64
Line 23: Line 23:
| status_mainline = Y
| status_mainline = Y
| status_battery = N
| status_battery = N
| status_3d = N
| status_3d = Y
| status_accel =
| status_accel =
| status_magnet =  
| status_magnet =  
Line 66: Line 66:
== Users owning this device ==
== Users owning this device ==
{{Device owners}}
{{Device owners}}
<!-- autogenerated, use {{Owns device|devicepage|notes}} on your profile page -->
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|HTC_Desire_(htc-bravo)|custom notes}}-->
<!-- you may need to purge page cache to see changes (more->purge cache)-->
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->


== How to enter flash mode ==
== How to enter flash mode ==
Line 77: Line 73:
== Installation ==
== Installation ==


Unlock the bootloader how "https://support.fairphone.com/hc/en-us/articles/360048646311-FP3-Manage-the-bootloader" describes, and install postmarketOS how "https://wiki.postmarketos.org/wiki/Installation_guide" describes, by invoking:
Unlock the bootloader according to the [https://support.fairphone.com/hc/en-us/articles/4405858258961-FP4-Manage-the-bootloader official instructions].
 
You also need to erase the dtbo partition for the current slot with <code>fastboot erase dtbo</code> when using the mainline kernel.


pmbootstrap init
adb reboot bootloader
su
fastboot oem unlock
fastboot flashing unlock
fastboot flashing unlock_critical
fastboot erase dtbo
exit
pmbootstrap install
pmbootstrap flasher flash_rootfs --partition userdata
pmbootstrap flasher flash_kernel
<!-- https://gitlab.com/BEEDELLROKEJULIANLOCKHART/30741832/-/blob/1/A%20JIXKONFIGYR%20C/A%20JIXMODIF%20C.BIN.TXT.PS1 -->
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.
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.
Please do not that the device doesn't contain a <code>system</code> as you might be used to, it contains one <code>super</code> partition which contains <code>system</code>/<code>system_ext</code>/<code>product</code>/<code>vendor</code>/<code>odm</code> partitions, in _a and _b variant each. This concept is called [https://source.android.com/devices/tech/ota/dynamic_partitions/implement Dynamic Partitions].
So it is suggested you flash the rootfs to either <code>userdata</code> or <code>super</code> partition on the internal storage (<code>pmbootstrap flasher flash_rootfs --partition $partition</code>) or onto an SD card (<code>pmbootstrap flasher flash_rootfs --sdcard /dev/$blk_dev</code>).
While postmarketOS already supports dynamic partitions built-in, this still needs to be configured in the device package, afterwards it should be possible to flash to e.g. <code>system</code> partition via [https://source.android.com/devices/bootloader/fastbootd fastbootd].

Revision as of 07:24, 1 August 2022

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


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.

You also need to erase the dtbo partition for the current slot with fastboot erase dtbo when using the mainline kernel.

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.

Please do not that the device doesn't 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.

So it is suggested you flash the rootfs to either userdata or super partition on the internal storage (pmbootstrap flasher flash_rootfs --partition $partition) or onto an SD card (pmbootstrap flasher flash_rootfs --sdcard /dev/$blk_dev).

While postmarketOS already supports dynamic partitions built-in, this still needs to be configured in the device package, afterwards it should be possible to flash to e.g. system partition via fastbootd.