Commit Graph

15 Commits

Author SHA1 Message Date
Konsta
aae877dbf2 mkimg: adjust flashable image size
* It's been reported that 14848MiB = 15569256448 bytes is still too
  large to fit some 16GB storage devices.
* 15360000000 bytes is dividable by 16384, 4096, 2048, 1024, 512, ...
* Fixes 0151cc35c1.
2025-06-08 12:26:43 +03:00
Konsta
855377ee7b mkimg: detach loop device 2025-06-08 12:26:35 +03:00
Konsta
57db924c6f increase system partition size
* Make room for unspecified add-ons.
2025-05-08 15:58:50 +03:00
Konsta
85f42d2b4d mkimg: improve error message 2025-04-04 15:39:48 +03:00
Konsta
0151cc35c1 mkimg: increase image size to fit 16GB storage device
* This will create a flashable image that is 15569256448 bytes.
* I checked several 16GB sdcards and USB storage devices and the
  actual byte size ranged from 15646851072 to 16008609792.
2025-03-03 17:18:24 +02:00
Konsta
e8e50c8c90 mkimg: use fallocate to create the image
* This is much faster than creating a file by filling it with zeroes.
* Remove unnecessary quotes for consistency.
2025-03-03 17:18:14 +02:00
Konsta
7c4843cf48 mkimg: set image owner 2025-01-30 20:05:34 +02:00
Konsta
20c58262fd mkimg: minor cleanups 2025-01-30 20:05:34 +02:00
Konsta
edafb8762a mkimg: check partition images exist 2025-01-30 18:49:55 +02:00
Konsta
827581e630 mkimg: strip aosp_ from build target 2025-01-30 18:49:55 +02:00
MinnieTheMoocher
357c27c66a mkimg: use existing env variables instead of hardcoded strings
* this requires to run "lunch" before, the script checks for that
2025-01-30 18:49:55 +02:00
Konsta
5193e6ce38 readme: mkimg: Raspberry Vanilla AOSP 14 2023-10-09 15:46:26 +03:00
Konsta
3ca55b2c31 fstab: remove option to use FDE
* Full-disk encryption (FDE) has been deprecated for devices launching
  with Android 10 or higher but now it's been removed in Android 13.
* File-based encryption (FBE) i.e. replacing this with
  'fileencryption=aes-256-xts' works but there's some performance
  issues with it especially when running from slow storage devices
  such as sdcards that are used on Raspberry Pi. Recovery also can't
  decrypt FBE which is another issue.
* There's no longer need to resize userdata partition to leave space
  for crypto footer.
2022-09-17 13:58:59 +03:00
Konsta
c76b23f21e readme: mkimg: Raspberry Vanilla AOSP 13 2022-09-17 13:58:59 +03:00
Konsta
bbdbc45eea initial Raspberry Vanilla AOSP 12 commit
* Audio
  - Based on AOSP hikey audio HAL:
    https://android.googlesource.com/device/linaro/hikey/+/refs/heads/master/audio/
  - ALSA based on Android-x86
  - ALSA loop is used to support HDMI audio on Pi 4 because VC4 HDMI
    audio devices use SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE that is not
    supported on Android
    https://github.com/raspberrypi/linux/issues/4651
    https://github.com/raspberrypi/linux/issues/4654

* Bluetooth
  - AOSP Broadcom vendor stack with some additional fixes from android-rpi

* Camera
  - libcamera for official Raspberry Pi CSI camera modules based on GloDroid
  - AOSP external camera HAL for UVC USB webcams:
    https://source.android.com/docs/core/camera/external-usb-cameras

* Graphics
  - OpenGL & Vulkan: upstream Mesa with GloDroid patches
  - Upstream drm_hwcomposer with force resolution patch from Android-x86 and
    my additional fixes
  - minigbm based on GloDroid

* Health
  - Based on AOSP cuttlefish health HAL

* Kernel
  - Merge of Raspberry Pi and AOSP common kernel with my additional fixes
    and configurations
    https://github.com/raspberrypi/linux
    https://android.googlesource.com/kernel/common/

* Lights
  - Based on LineageOS Xiaomi msm8996-common lights HAL

* suspend_blocker
  - Based on AOSP cuttlefish

* v4l2_codec2
  - Based on AOSP with my Raspberry Pi 4 specific fixes

* Wifi
  - AOSP Broadcom vendor stack with my additional fixes
2022-09-17 13:57:57 +03:00