Skip to content

alexander-pav/MultiBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instruction to make Multi Boot on Pocophone F1 Linux + Android + Windows

This instuction for (64GB version)!

WARNING! YOU CAN BRICK YOUR PHONE! USE IT AT YOUR OWN RISK!

PARTITIONING

For partitioning we need to Boot the phone from TWRP recovery

So first of all we need to copy parted for android (https://pwdx.lanzoux.com/iUgSEmkrlmh) to the phone's sbin directory

# host
adb push parted /sdcard/
adb shell

# phone
cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted

Stock partitions should look like this

Screenshot from 2022-04-27 16-31-10

Next, we need to remove userdata partition and create new partitions

/sbin/parted /dev/block/sda
rm 21
mkpart esp fat32 1611MB 1900MB
mkpart userdata ext4 1900MB 25GB
mkpart win ntfs 25GB 50GB 
mkpart lnx ext4 50GB 58.1GB
mkpart pe fat32 58.1GB 59.1GB
set 21 esp on

Modified partitions should look like this

Screenshot from 2022-04-27 16-32-38

Next, we need to reboot the phone to TWRP again

Format created partions

mkfs.fat -F32 -s1 /dev/block/by-name/esp
mkfs.ntfs -f /dev/block/by-name/win
mke2fs -t ext4 /dev/block/by-name/userdata
mke2fs -t ext4 /dev/block/by-name/lnx
mkfs.fat -F32 -s1 /dev/block/by-name/pe

Reboot

OS INSTALATIONS

To install OSes follow the guides bellow

  1. Android on userdata partition (https://wiki.lineageos.org/devices/beryllium/install)
  2. Windows on win partition (https://renegade-project.org/#/en/windows/Installation-guide)
  3. PostmarketOS on lnx partition (https://wiki.postmarketos.org/wiki/Xiaomi_Poco_F1_(xiaomi-beryllium) pmbootstrap flasher flash_rootfs --partition lnx

Rename the boot files as (android_boot.img, postmarketos_boot.img and windows_boot.img) and put them at boot dir

OS SWITCHES

Android (root required)

  1. Install TERMUX & TERMUX WIDGETS (FDROID)
  2. Run from host computer
cd android
install.sh
  1. Create termux widgets (windows.sh, pmos.sh)

PostmarketOS

Copy instalation files to postmarketos and run

cd linux
sudo ./install.sh

Windows

WARNING! CHECK IF YOUR BOOT PARTITION AT

\?\Device\Harddisk4\Partition45

Download dd for Windows http://www.chrysocome.net/downloads/ddrelease64.exe copy to windows dir

Copy instalation files to windows and run

cd windows

As administrator
install.bat 

About

Poco F1 Multiboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published