Jump to navigation Jump to search
Explain new installation procedure
== Installation ==
 0. !!! make # Make sure that you are running Android 5.0 (Lollipop) - older versions did not have UEFI firmware, which was supplied as part of official lollipop 5.0 update !!! 1. obtain a bootloader that doesn't suck (i.e. this one: # Install [https://forumgithub.xdacom/me176c-developers.comdev/memome176c-padboot#readme me176c-7boot].# Set up the <code>APD</code> partition as additional ESP (EFI System Partition), see [ me176c-boot-asus-memo-pad-7-t3780225), but don't install it yetSetting up an additional ESP partition].2. obtain # Follow the rootfs image, the kernel and the initramfs by following [Installation_guide[Installation guide]], but instead of running `$ use <code>pmbootstrap flasher`, run `$ pmbootstrap export`install --split</code> to generate separate root and boot partition images3.0 before flashing # Navigate to the bootloader, mount the esp.img generated partition image and copy /tmp/postmarketOS-images (use <code>pmbootstrap export</initramfs-code>).# The boot partition must be on internal storage. Use <code>fastboot flash APD asus-me176c and /tmp/postmarketOS-exportboot.img</vmlinuz-asus-me176c code> to write it to the root (alongside e<code>APD</code> partition.g. EFI folder) 3# Create a boot entry for postmarketOS.1 create [espCreate a file <code>pmos.img]conf</loader/entries/postmarketOS.conf and change it's contents like socode>: <syntaxhighlight lang="config"nowiki>
title postmarketOS
volume 80868086-8086-8086-8086-000000000007
linux /vmlinuz-asus-me176c
initrd /intel-ucode.imginitrd /acpi-me176c.imginitrd /initramfs-asus-me176c </nowiki>options console=tty0# Install the new boot entry: Boot into TWRP recovery, mount the ESP partition, and push the new configuration using ADB: <code>adb push pmos.conf /esp/loader/entries/</code># To boot into postmarketOS, select <code>postmarketOS</syntaxhighlightcodeyou in the boot menu. You can add mmc_blockmake it the default by editing <code>/esp/loader/loader.conf</code>.perdev_minors=XX to options if you have added any partitions beyond the original 16
3.2 open [espNow you can choose if you would like to install the root partition (<code>asus-me176c-root.img]/loader</loadercode>) on internal storage or a SD card.conf, and change "default android" to "default postmarketOS"
4=== Internal Storage ===* System partition: <code>fastboot flash system asus-me176c-root. umount espimg</code>* Userdata partition: <code>fastboot flash userdata asus-me176c-root.img </code>* Alternatively, you can consider shrinking the data partition and flash it according to the xda guidecreate a new partition for postmarketOS.
5. while in droidboot, use <syntaxhighlight>fastboot flash data asus-me176c.img</syntaxhighlight> === SD card ===Write the root partition image to flash rootfs to the devicea partition on your SD card:
6. reboot - now you should be booted into postmarketOS note that charging will be done by whatever android ROM you had previously. I haven# Find the '''correct''t tested if the ROM tries to do anything with data partition at this stage. If you want to be sure, change the partlabel so android can't find it. You can also dualboot block device (see belowusually <code>/dev/mmcblkXpY</code> but sometimes <code>/dev/sdXY</code>I will probably look into charging-sdl in # Write the future == DualBoot == 1. remove rootfs from data partition 2. put rootfs image to system partition 3. boot into postmarketOS 4. using your favorite linux tools, shrink the data partition and add a new partition with any partlabel you like (e.g postmarketOS'''Warning:''' Existing data will be erased5: <code>dd if=asus-me176c-root. remove rootfs from system partition 6. put rootfs on the new partition 7. put android back on system partition 8. you can now boot into android by holding volume down on bootup and selecting it from the menuimg of=/dev/mmcblkXpY bs=4M</code>
== See also ==
lambdadroid's mainline based kernel tree - * [ on ASUS MeMO Pad 7 (ME176C(X))]* [ Arch Linux on ASUS MeMO Pad 7 (ME176C(X))]* [ LineageOS 16.190 (Android) ROM] (uses the same kernel) GPS - * Unsupported features: [ Camera - 3 GPS], [ Camera]


Navigation menu