# postmarketOS and mainline kernel on F(x)tec Pro¹ Below are the steps required to flash postmarketOS (port made by Danct12 based on earlier work by Notkit) and mainline kernel (work done by Kholk and the github.com/somainline group) on the Pro1 msm8998: *2022-03-10. As of today, Danct12's port has not been merged yet, hence there are a couple extra steps to manually apply patches to `pmaports`. Beware that this is all work in progress and there will be bugs and missing functionality.* *2022-03-12. `device-fxtec-qx1000-nonfree-firmware` added to the port, meaning support for model, WLAN and GPU.* 1. `pip3 install --user pmbootstrap` 2. `pmbootstrap init` and choose `edge` and whatever device (I chose `qemu` and `aarch64`, but it should not matter, we'll redo it later). 3. `cd /path/to/work/directory/you/chose/above/cache_git/pmaports` 4. `wget https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2984.patch && git apply 2984.patch` Don't worry about the warnings. 5. `pmbootstrap init` and select `fxtec` and `qx1000`. I tested `gnome` and `i3wm` as WM, they both worked. 6. `pmbootstrap install` (optionally, use `pmbootstrap install --fde` to enable full disk encryption). 7. Connect Pro1 in bootloader/fastboot mode (`Volume Down` + `Power`) to USB2 port. 8. `pmbootstrap flasher flash_rootfs` 9. `pmbootstrap flasher flash_kernel` 10. `fastboot set_active b` 11. `fastboot erase dtbo_b` 12. Boot, type in your FDE passphrase (with keyboard, touchscreen is crazy), and you'll quickly see the touchscreen is mad at you. Use `sudo modprobe -r goodix_ts` to disable it temporarily (it'll be back after a reboot). If you can't open a terminal before disabling the touchscreen, you can still `ssh` into the device while it's connected to USB. For me the IP was 172.16.42.1, I assume it will be the same for others; in any case it is shown in the terminal output at the end of step 9 above. 13. Optional: to clear up space on your computer afterwards, use `pmbootstrap -y zap -hc -d -p -m -o -r`. ![FNcfpfSX0AE41Yr](https://user-images.githubusercontent.com/7107523/157562292-693549da-8615-4fcf-a46e-43b4b5b31fc3.jpg) ![20220310_020907](https://user-images.githubusercontent.com/7107523/157567160-c3a8d3ec-a0e7-4f5c-8030-35b7e6f5aeb9.jpg) ![20220310_020847](https://user-images.githubusercontent.com/7107523/157567162-2e3a3854-15d0-437b-9ce8-e9158e31afbe.jpg) --- Relevant tweets from developers: Angelo (Kholk) [some months ago](https://twitter.com/kholk/status/1353762359534374923) and Danct12 [a few days ago](https://twitter.com/RealDanct12/status/1500701325444939776).