ouya-ouya boot fails on edge, boot.img is too large.
Describe your issue
What's the expected behaviour?
I had PostmarketOS on this device a few years ago, and it worked with mainline kernel and console with HDMI and USB keyboard minus a few features (WiFi, GPU). I built a new image expecting it to at least work as well as it did.
What's the current behaviour?
Ouya boot menu fails to chain-load PostmarketOS boot.img because it is now too large (~12MB) due to additional initramfs. The mainline kernel is actually smaller than downstream. The same boot.img will boot the device just fine if it is loaded with fastboot boot
.
How to reproduce your issue?
pmbootstrap init
pmbootstrap install
pmbootstrap flasher flash_rootfs --partition userdata
- Boot up the Ouya and select "Bootloader" from the menu. Wait for flash to finish.
pmbootstrap export
- Reboot Ouya and select "Recovery" from the menu.
- Mount
/system
within Recovery. adb push /tmp/postmarketOS-export/boot.img /system/boot.img
- Reboot Ouya with "Normal Boot" selected. Boot will fail and the device will go into fastboot mode.
At this point you're stuck. It is possible to boot the system successfully using:
fastboot boot /tmp/postmarketOS-export/boot.img
What device are you using?
ouya-ouya
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
Other: console
Which init system are you using?
-
OpenRC
How did you get postmarketOS image?
-
I built it using pmbootstrap
What's the build date of the image? (in yyyy-mm-dd format)
2025-02-06
Additional information
Contents of /system
, note the size of the current boot.img
vs oldboot.img
~ # ls -l /system/
drwxr-xr-x 2 root root 4096 Dec 14 2013 app drwxr-xr-x 2 root shell 4096 Dec 14 2013 bin -rw-rw-rw- 1 root root 12449792 Feb 6 2025 boot.img -rw-r--r-- 1 root root 1851 Aug 1 2008 build.prop drwxr-xr-x 10 root root 4096 Dec 14 2013 etc drwxr-xr-x 2 root root 4096 Dec 14 2013 fonts drwxr-xr-x 2 root root 4096 Dec 14 2013 framework drwxr-xr-x 9 root root 8192 Dec 14 2013 lib drwxr-xr-x 2 root root 4096 Jan 1 1970 lost+found drwxr-xr-x 4 root root 4096 Dec 14 2013 media -rw-r--r-- 1 root root 7475200 Nov 13 2020 oldboot.img -rw-r--r-- 1 root root 927786 Aug 1 2008 recovery-from-boot.bak drwxr-xr-x 7 root root 4096 Dec 14 2013 usr drwxr-xr-x 4 root shell 4096 Dec 14 2013 vendor drwxr-xr-x 2 root shell 4096 Dec 14 2013 xbin