Jump to content

Google Pixel C (google-smaug): Difference between revisions

From postmarketOS Wiki
Jja2000 (talk | contribs)
m Update device status
Jenneron (talk | contribs)
No edit summary
Line 66: Line 66:
== Installation ==
== Installation ==


=== Installation keeping Android partition table ===
Easy way
<source lang="shell-session">
<source lang="shell-session">
$ pmbootstrap init
$ pmbootstrap init
Line 71: Line 73:
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_rootfs --partition userdata
$ pmbootstrap flasher flash_rootfs --partition userdata
</source>
=== Installation with repartition and booting from USB ===
{{Warning| WARNING This part is Work In Progress, ignore it for now}}
Recommended way.
==== Enable booting from USB ====
On PC:
<source lang="shell-session">
$ wget https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15183.78.0_trogdor_recovery_stable-channel_mp-v7.bin.zip
$ unzip chromeos_15183.78.0_trogdor_recovery_stable-channel_mp-v7.bin.zip
$ sudo losetup -Pf chromeos_15183.78.0_trogdor_recovery_stable-channel_mp-v7.bin
$ sudo cp $(findfs LABEL=ROOT-A) recovery.img
$ adb push recovery.img /sdcard/recovery.img
</source>
On device in <code>adb shell</code>:
<source lang="shell-session">
$ su # assuming you have root
# cd /sdcard
# mkdir rootdir
# mount -o ro,nosuid,nodev,relatime recovery.img rootdir
# cd rootdir
# mount --bind /sys sys
# mount --bind /proc proc
# mount --bind /dev dev
# mount -t tmpfs -o size=100M tmpfs tmp
# chroot . /bin/bash
# crossystem dev_boot_usb=1 dev_boot_signed_only=0 # this command enables booting from USB
</source>
Everything else is the same to [https://wiki.postmarketos.org/wiki/Chrome_OS_devices Chrome OS devices] except that we don't have prebuilt images yet.
==== Installation to USB storage ====
Use these commands:
<source lang="shell-session">
$ pmbootstrap init # select google-smaug
$ pmbootstrap install --sdcard /dev/sdX $ replace /dev/sdX with your storage
</source>
==== Installation to eMMC ====
Boot pmOS from USB, connect to WiFi and install pmOS on eMMC:
<source lang="shell-session">
# sudo apk add pmbootstrap
$ pmbootstrap init # select google-smaug
$ pmbootstrap install --sdcard /dev/sdX $ replace /dev/sdX with your storage
</source>
</source>

Revision as of 22:48, 9 August 2023

Google Pixel C
CHANGE_ME
CHANGE_ME
Manufacturer Google
Name Pixel C
Codename google-smaug
Released 2015
Hardware
Chipset Nvidia Tegra X1
CPU Quad-core 1.9 GHz Cortex-A57
GPU Maxwell
Display 2560x1800 IPS LCD
Storage 32/64 GB
Memory 3 GB
Architecture aarch64
Software
Original software Android 8.1.0
FOSS bootloader partial
postmarketOS
Category testing
Pre-built images no
Mainline yes
Features
Flashing
Works
USB Networking
Broken
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Works
Miscellaneous
FDE
No data
USB OTG
Partial
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data
Power Sensor
No data


Contributors

Users owning this device

  • Jja2000 (Notes: Currently trying to get this in a presentable state, have two of these (32GB/64GB))
  • Joshaspinall (Notes: Currently running Lineage Android)
  • Russanandres (Notes: ResurrectionRemix 9)


How to enter flash mode

When turned off press and hold the power button and volume down until the bootloader menu displays. Using the volume button select "Switch to fastboot mode" and press the power button.

Installation

Installation keeping Android partition table

Easy way

$ pmbootstrap init
$ pmbootstrap install --no-cgpt
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_rootfs --partition userdata

Installation with repartition and booting from USB

Warning WARNING: WARNING This part is Work In Progress, ignore it for now

Recommended way.

Enable booting from USB

On PC:

$ wget https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15183.78.0_trogdor_recovery_stable-channel_mp-v7.bin.zip
$ unzip chromeos_15183.78.0_trogdor_recovery_stable-channel_mp-v7.bin.zip
$ sudo losetup -Pf chromeos_15183.78.0_trogdor_recovery_stable-channel_mp-v7.bin
$ sudo cp $(findfs LABEL=ROOT-A) recovery.img
$ adb push recovery.img /sdcard/recovery.img

On device in adb shell:

$ su # assuming you have root
# cd /sdcard
# mkdir rootdir
# mount -o ro,nosuid,nodev,relatime recovery.img rootdir
# cd rootdir
# mount --bind /sys sys
# mount --bind /proc proc
# mount --bind /dev dev
# mount -t tmpfs -o size=100M tmpfs tmp
# chroot . /bin/bash
# crossystem dev_boot_usb=1 dev_boot_signed_only=0 # this command enables booting from USB

Everything else is the same to Chrome OS devices except that we don't have prebuilt images yet.

Installation to USB storage

Use these commands:

$ pmbootstrap init # select google-smaug
$ pmbootstrap install --sdcard /dev/sdX $ replace /dev/sdX with your storage

Installation to eMMC

Boot pmOS from USB, connect to WiFi and install pmOS on eMMC:

# sudo apk add pmbootstrap
$ pmbootstrap init # select google-smaug
$ pmbootstrap install --sdcard /dev/sdX $ replace /dev/sdX with your storage