maggu2810

Asus Grouper (Google Nexus 7 2012)

postmarketOS related information

Author: Markus Rathgeb


General Notes

postmarketOS Wiki: Asus Grouper (Archive)

Ensure correct device is used:

adb shell
grep androidboot.baseband=unknown /proc/cmdline && echo grouper || echo tilapia

find /sys/devices/ | grep -c max776 && echo You have E1565

find /sys/devices/ | grep -c tps6591 && echo You have PM269

Example

~ # grep androidboot.baseband=unknown /proc/cmdline && echo grouper || echo tilapia
tegra_wdt.heartbeat=30 tegraid=30.1.3.0.0 mem=1022M@2048M android.commchip=0 vmalloc=512M androidboot.serialno=015d456d85381609 video=tegrafb no_console_suspend=1 console=none debug_uartport=hsport usbcore.old_scheme_first=1 lp0_vec=8192@0xbddf9000 tegra_fbmem=8195200@0xabe01000 core_edp_mv=0 audio_codec=rt5640 board_info=f41:a00:1:44:2 tegraboot=sdmmc gpt gpt_sector=30785535 androidboot.bootloader=4.23 androidboot.baseband=unknown
grouper

~ # find /sys/devices/ | grep -c max776 && echo You have E1565
451
You have E1565

~ # find /sys/devices/ | grep -c tps6591 && echo You have PM269
0

u-boot

dnf install swig

export PATH=/home/maggu2810/bin/pkgs/arm-gnu-toolchain/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin:"${PATH}"
export CROSS_COMPILE=arm-none-eabi-
make grouper_common_defconfig grouper_E1565.config
make
git clone --recursive https://github.com/tofurky/tegra30_debrick.git
cd tegra30_debrick
(cd fusee-launcher; make)

python -m venv venv
. venv/bin/activate
pip install pyusb

./fusee-launcher/fusee-launcher.py --tty ./fusee-launcher/dump-sbk-via-usb.bin

postmarketOS

build

install

Pre-requirement: u-boot

dd if=/home/maggu2810/.local/var/pmbootstrap/chroot_native/home/pmos/rootfs/nvidia-tegra-armv7.img of=/dev/sdc bs=1M

customize

rootfs size

SXMO deviceprofile

sudo apk add libgpiod
sudo gpuinfo
(

DEVNAME="$(tr '\0' '\n' < /proc/device-tree/compatible | head -n1)"

DPNAME="sxmo_deviceprofile_${DEVNAME}.sh"

DPPATH="/usr/bin/${DPNAME}"

sudo rm -rf "${DPPATH}"

echo '#!/bin/sh
export SXMO_POWER_BUTTON="0:168"
export SXMO_VOLUME_BUTTONS="0:130 0:131"
#export SXMO_TOUCHSCREEN_ID="6"' | sudo tee "${DPPATH}" > /dev/null

sudo chmod 0755 "${DPPATH}"
sudo chown 0:0 "${DPPATH}"

)