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

From postmarketOS
Jump to navigation Jump to search
m (Drop maintainers, meh)
(Refactor installation instructions for pre-built images)
Line 48: Line 48:
  
 
== Installation ==
 
== Installation ==
1. Make sure that you are running Android 5.0 (Lollipop) - older versions did not have UEFI firmware.<br />
+
=== Preparation ===
2. Install [https://github.com/me176c-dev/me176c-boot#readme me176c-boot].<br />
+
The device has a locked Android bootloader. To boot other operating systems, you need to replace the bootloader entirely with a custom one.
3. 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].<br />
+
 
4. Follow the [[Installation guide]].<br />
+
# Make sure that you are running Android 5.0 (Lollipop) - older versions did not have UEFI firmware.
6. The boot partition must be on internal storage. Use <code>pmbootstrap flasher flash_kernel</code> to write it to the <code>APD</code> partition.<br />
+
# Install [https://github.com/me176c-dev/me176c-boot#readme me176c-boot].
7. Create a boot entry for postmarketOS. Create a file <code>pmos.conf</code>:<br />
+
# 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].
 +
 
 +
=== Pre-built image ===
 +
There are pre-built images that can be easily installed without [[pmbootstrap]]. Currently, there is only an image with the [[Phosh]] UI. If you want more control about the installation (e.g. no proprietary firmware, different UI, extra packages, ...) consider using the [[pmbootstrap]] installation method instead (documented further below).
 +
 
 +
{{note|'''Note:''' sshd is currently enabled by default in the pre-built images ({{issue|85|build.postmarketos.org}})!}}
 +
 
 +
First, download an image for your device:
 +
 
 +
* '''[https://images.postmarketos.org/bpo/edge/asus-me176c/ edge]''' bleeding edge version (has latest features, but may break more often).
 +
* '''[https://images.postmarketos.org/bpo/v21.03/asus-me176c/ v21.03]''' (TBD) stable version, less updates, more stability
 +
 
 +
Download 2 files:
 +
# <code><date>-...-asus-me176c-bootpart.img.xz</code> (boot partition)
 +
# <code><date>-...-asus-me176c.img.xz</code> (rootfs)
 +
 
 +
Unpack them using <code>unxz *.xz</code>.
 +
 
 +
{{note|'''Note:''' The default username is <code>user</code>, and the default password is <code>147147</code>.}}
 +
 
 +
=== pmbootstrap ===
 +
# Follow the [[Installation guide]].
 +
# Use <code>pmbootstrap export</code> to get the same files as in the [[#Pre-built_images|pre-built images]] section.
 +
 
 +
=== Flashing boot partition ===
 +
The bootloader cannot boot directly from a SD card, therefore the boot partition must be always on internal storage.
 +
 
 +
Boot into Fastboot mode, and use <code>fastboot flash APD asus-me176c-bootpart.img</code> (or <code>pmbootstrap flasher flash_kernel</code> with pmbootstrap) to flash the boot partition. Then you need to create a boot entry for postmarketOS. Create a file <code>pmos.conf</code>:
 +
 
 
  <nowiki>
 
  <nowiki>
 
title    postmarketOS
 
title    postmarketOS
Line 63: Line 91:
 
# Comment this out to get more output on screen while booting
 
# Comment this out to get more output on screen while booting
 
options  console=null</nowiki>
 
options  console=null</nowiki>
8. 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><br />
 
9. 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>.<br />
 
  
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.
+
To 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>
 +
 
 +
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.
  
 
=== Internal Storage ===
 
=== Internal Storage ===
* System partition: <code>pmbootstrap flasher flash_rootfs</code>
+
Normally you should be also able to flash the rootfs using Fastboot:
* Userdata partition: <code>pmbootstrap flasher flash_rootfs --partition=userdata</code>
+
 
* Alternatively, you can consider shrinking the data partition and create a new partition for postmarketOS. It's best to use a Linux system not located on the data partition for this purpose, for example a postmarketOS install on the system partition or on an SD card.
+
* System partition: <code>fastboot flash system asus-me176c.img</code> (<code>pmbootstrap flasher flash_rootfs</code>)
 +
* Userdata partition (larger): <code>fastboot flash userdata asus-me176c.img</code> (<code>pmbootstrap flasher flash_rootfs --partition=userdata</code>)
 +
 
 +
However, if you get an error you may need to flash it using <code>dd</code> via the TWRP recovery instead:
 +
 
 +
$ gzip -c ...-asus-me176c.img.gz | adb shell "zcat | dd of=/dev/block/by-name/system bs=4m"
  
 
=== SD card ===
 
=== SD card ===
Line 77: Line 110:
  
 
# Find the '''correct''' block device (usually <code>/dev/mmcblkXpY</code> but sometimes <code>/dev/sdXY</code>)
 
# Find the '''correct''' block device (usually <code>/dev/mmcblkXpY</code> but sometimes <code>/dev/sdXY</code>)
# <code>pmbootstrap export</code>, navigate to exported files
 
 
# 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>
 
# 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>
  

Revision as of 20:03, 20 March 2021

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 community
Original software Android 4.4 KitKat (updated to 5.0 Lollipop + UEFI)
postmarketOS kernel 5.4 (LTS)
Hardware
Chipset Intel Bay Trail 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
Unixbench Whet/Dhry score 1664.4
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Works
FDE
Works
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

Users owning this device


Installation

Preparation

The device has a locked Android bootloader. To boot other operating systems, you need to replace the bootloader entirely with a custom one.

  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.

Pre-built image

There are pre-built images that can be easily installed without pmbootstrap. Currently, there is only an image with the Phosh UI. If you want more control about the installation (e.g. no proprietary firmware, different UI, extra packages, ...) consider using the pmbootstrap installation method instead (documented further below).

Note: sshd is currently enabled by default in the pre-built images (build.postmarketos.org#85)!

First, download an image for your device:

  • edge bleeding edge version (has latest features, but may break more often).
  • v21.03 (TBD) stable version, less updates, more stability

Download 2 files:

  1. <date>-...-asus-me176c-bootpart.img.xz (boot partition)
  2. <date>-...-asus-me176c.img.xz (rootfs)

Unpack them using unxz *.xz.

Note: The default username is user, and the default password is 147147.

pmbootstrap

  1. Follow the Installation guide.
  2. Use pmbootstrap export to get the same files as in the pre-built images section.

Flashing boot partition

The bootloader cannot boot directly from a SD card, therefore the boot partition must be always on internal storage.

Boot into Fastboot mode, and use fastboot flash APD asus-me176c-bootpart.img (or pmbootstrap flasher flash_kernel with pmbootstrap) to flash the boot partition. Then you need to 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
# Comment this out to get more output on screen while booting
options  console=null

To 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/

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

Normally you should be also able to flash the rootfs using Fastboot:

  • System partition: fastboot flash system asus-me176c.img (pmbootstrap flasher flash_rootfs)
  • Userdata partition (larger): fastboot flash userdata asus-me176c.img (pmbootstrap flasher flash_rootfs --partition=userdata)

However, if you get an error you may need to flash it using dd via the TWRP recovery instead:

$ gzip -c ...-asus-me176c.img.gz | adb shell "zcat | dd of=/dev/block/by-name/system bs=4m"

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