ouya-ouya boot fails on edge, boot.img is too large.
<!-- Thank you for using postmarketOS! In order to speed up process of resolving your issue, we would like you to fill in the following form. *** NOTE FOR CONFIDENTIAL ISSUES: *** A lot of people can read confidential pmaports issues! If you want to submit something that only the postmarketOS Core Team can see, write to team@postmarketos.org instead of opening an issue here! --> ### 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](https://github.com/milaq/ouya_bootmenu/blob/master/bootmenu.c#L29) (~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? 1. `pmbootstrap init` 2. `pmbootstrap install` 3. `pmbootstrap flasher flash_rootfs --partition userdata` 4. Boot up the Ouya and select "Bootloader" from the menu. Wait for flash to finish. 5. `pmbootstrap export` 6. Reboot Ouya and select "Recovery" from the menu. 7. Mount `/system` within Recovery. 8. `adb push /tmp/postmarketOS-export/boot.img /system/boot.img` 9. 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? * [x] edge (`master` branch) * [x] I confirm that the issue still is present after running `sudo apk upgrade -a` ### On what environment did you encounter the issue? #### Environments * [x] Other: console ### Which init system are you using? * [x] OpenRC ### How did you get postmarketOS image? * [x] I built it using pmbootstrap ### What's the build date of the image? (in yyyy-mm-dd format) 2025-02-06 ### Additional information <!-- logs, etc. -- make use <details> for long listings If your device displays an error message on boot or drops to the debug shell, attaching it to your PC with a USB cable may show a removable USB drive. You can drag and drop the .tar.gz file or otherwise upload it here. Refer to the README file on the device for more information. --> Contents of `/system`, note the size of the current `boot.img` vs `oldboot.img` `~ # ls -l /system/` <details> <pre> 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 </pre> </details>
issue