Difference between revisions of "ASUS MeMO Pad 7 (asus-me176c)"

From postmarketOS
Jump to navigation Jump to search
(Undo revision 8448 by Lazcode (talk))
(Explain new installation procedure)
Line 50: Line 50:
  
 
== Installation ==
 
== Installation ==
 
+
# Make sure that you are running Android 5.0 (Lollipop) - older versions did not have UEFI firmware.
0. !!! make sure you have UEFI firmware, which was supplied as part of official lollipop 5.0 update !!!
+
# Install [https://github.com/me176c-dev/me176c-boot#readme me176c-boot].
 
+
# Set up the <code>APD</code> partition as additional ESP (EFI System Partition), see [https://github.com/me176c-dev/me176c-boot#limitations me176c-boot - Setting up an additional ESP partition].
1. obtain a bootloader that doesn't suck (i.e. this one: https://forum.xda-developers.com/memo-pad-7/orig-development/bootloader-me176c-boot-asus-memo-pad-7-t3780225), but don't install it yet
+
# Follow the [[Installation guide]], but use <code>pmbootstrap install --split</code> to generate separate root and boot partition images.
 
+
# Navigate to the generated partition images (use <code>pmbootstrap export</code>).
2. obtain the rootfs image, the kernel and the initramfs by following [Installation_guide], but instead of running `$ pmbootstrap flasher`, run `$ pmbootstrap export`.
+
# The boot partition must be on internal storage. Use <code>fastboot flash APD asus-me176c-boot.img</code> to write it to the <code>APD</code> partition.
 
+
# Create a boot entry for postmarketOS. Create a file <code>pmos.conf</code>:
3.0 before flashing the bootloader, mount the esp.img partition image and copy /tmp/postmarketOS-export/initramfs-asus-me176c and /tmp/postmarketOS-export/vmlinuz-asus-me176c to the root (alongside e.g. EFI folder)
+
<nowiki>
 
 
3.1 create [esp.img]/loader/entries/postmarketOS.conf and change it's contents like so:
 
<syntaxhighlight lang="config">
 
 
title    postmarketOS
 
title    postmarketOS
 +
volume  80868086-8086-8086-8086-000000000007
 
linux    /vmlinuz-asus-me176c
 
linux    /vmlinuz-asus-me176c
initrd  /initramfs-asus-me176c  
+
initrd  /intel-ucode.img
options  console=tty0
+
initrd  /acpi-me176c.img
</syntaxhighlight>
+
initrd  /initramfs-asus-me176c</nowiki>
 
+
# 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>
you can add mmc_block.perdev_minors=XX to options if you have added any partitions beyond the original 16
+
# To boot into postmarketOS, select <code>postmarketOS</code> in the boot menu. You can make it the default by editing <code>/esp/loader/loader.conf</code>.
  
3.2 open [esp.img]/loader/loader.conf, and change "default  android" to "default  postmarketOS"
+
Now you can choose if you would like to install the root partition (<code>asus-me176c-root.img</code>) on internal storage or a SD card.
  
4. umount esp.img and flash it according to the xda guide
+
=== Internal Storage ===
 +
* System partition: <code>fastboot flash system asus-me176c-root.img</code>
 +
* Userdata partition: <code>fastboot flash userdata asus-me176c-root.img</code>
 +
* Alternatively, you can consider shrinking the data partition and create a new partition for postmarketOS.
  
5. while in droidboot, use <syntaxhighlight>fastboot flash data asus-me176c.img</syntaxhighlight> to flash rootfs to the device
+
=== SD card ===
 +
Write the root partition image to a partition on your SD card:
  
6. reboot - now you should be booted into postmarketOS
+
# Find the '''correct''' block device (usually <code>/dev/mmcblkXpY</code> but sometimes <code>/dev/sdXY</code>)
 
+
# Write the image to the partition ('''Warning:''' Existing data will be erased): <code>dd if=asus-me176c-root.img of=/dev/mmcblkXpY bs=4M</code>
note that charging will be done by whatever android ROM you had previously. I haven'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 (see below)
 
 
 
I will probably look into charging-sdl in the future
 
 
 
== DualBoot ==
 
 
 
1. remove rootfs from data partition
 
 
 
2. put rootfs 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)
 
 
 
5. 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 menu
 
  
 
== See also ==
 
== See also ==
lambdadroid's mainline based kernel tree - https://github.com/me176c-dev/me176c-kernel/tree/arch-4.19
+
* [https://github.com/me176c-dev/linux-me176c Linux on ASUS MeMO Pad 7 (ME176C(X))]
 
+
* [https://wiki.archlinux.org/index.php/ASUS_MeMO_Pad_7_(ME176C(X)) Arch Linux on ASUS MeMO Pad 7 (ME176C(X))]
GPS - https://github.com/me176c-dev/android_device_asus_K013/issues/48
+
* [https://forum.xda-developers.com/memo-pad-7/orig-development/rom-unofficial-lineageos-16-0-asus-memo-t3929600/ LineageOS 16.0 (Android) ROM] (uses the same kernel)
 
+
* Unsupported features: [https://github.com/me176c-dev/me176c/issues/3 GPS], [https://github.com/me176c-dev/me176c/issues/2 Camera]
Camera - https://github.com/me176c-dev/android_device_asus_K013/issues/47
 

Revision as of 18:15, 24 October 2019

ASUS MeMO Pad 7 (ME176C(X))
asus-me176cx running postmarketOS
asus-me176cx running postmarketOS
Manufacturer ASUS
Name MeMO Pad 7 (ME176C(X))
Codename asus-me176c
Released 2014
Category testing
Original software Android 4.4 KitKat (updated to 5.0 Lollipop + UEFI)
postmarketOS kernel 4.19 (LTS)
Hardware
Chipset Intel BayTrail T Z3745
CPU Intel® Atom™ CPU Z3745 @ 1.33GHz
GPU Atom Processor Z36xxx/Z37xxx Series Graphics & Display
Display 7" 800x1280 IPS LCD
Storage 8/16 GB
Memory 1 GB
Architecture x86_64
Features
USB Networking
Works
Flashing
Broken
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Works
FDE
Mainline
Works
Battery
Works
3D Acceleration
Works
Accelerometer
Works
Audio
Works
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Unavailable
SMS
Unavailable
Calls
Unavailable
USB OTG
Works



Contributors

Maintainer(s)

Users owning this device


Installation

  1. Make sure that you are running Android 5.0 (Lollipop) - older versions did not have UEFI firmware.
  2. Install me176c-boot.
  3. Set up the APD partition as additional ESP (EFI System Partition), see me176c-boot - Setting up an additional ESP partition.
  4. Follow the Installation guide, but use pmbootstrap install --split to generate separate root and boot partition images.
  5. Navigate to the generated partition images (use pmbootstrap export).
  6. The boot partition must be on internal storage. Use fastboot flash APD asus-me176c-boot.img to write it to the APD partition.
  7. Create a boot entry for postmarketOS. Create a file pmos.conf:
title    postmarketOS
volume   80868086-8086-8086-8086-000000000007
linux    /vmlinuz-asus-me176c
initrd   /intel-ucode.img
initrd   /acpi-me176c.img
initrd   /initramfs-asus-me176c
  1. Install the new boot entry: Boot into TWRP recovery, mount the ESP partition, and push the new configuration using ADB: adb push pmos.conf /esp/loader/entries/
  2. To boot into postmarketOS, select postmarketOS in the boot menu. You can make it the default by editing /esp/loader/loader.conf.

Now you can choose if you would like to install the root partition (asus-me176c-root.img) on internal storage or a SD card.

Internal Storage

  • System partition: fastboot flash system asus-me176c-root.img
  • Userdata partition: fastboot flash userdata asus-me176c-root.img
  • Alternatively, you can consider shrinking the data partition and create a new partition for postmarketOS.

SD card

Write the root partition image to a partition on your SD card:

  1. Find the correct block device (usually /dev/mmcblkXpY but sometimes /dev/sdXY)
  2. Write the image to the partition (Warning: Existing data will be erased): dd if=asus-me176c-root.img of=/dev/mmcblkXpY bs=4M

See also