Skip to content

rpi4: defconfig: use GKI base and fragment - #9

Closed
nguyenanhgiau wants to merge 1 commit into
raspberry-vanilla:android-17.0from
nguyenanhgiau:rpi4-gki-defconfig
Closed

nguyenanhgiau wants to merge 1 commit into
raspberry-vanilla:android-17.0from
nguyenanhgiau:rpi4-gki-defconfig

Conversation

@nguyenanhgiau

Copy link
Copy Markdown

Build the RPi4 kernel from gki_defconfig and apply bcm2711_gki.fragment before configuration.

This avoids maintaining a separate android_rpi4_defconfig across kernel merges. Add the required RPi4 modules to the Bazel build outputs.

Build the RPi4 kernel from gki_defconfig and apply
bcm2711_gki.fragment before configuration.

This avoids maintaining a separate android_rpi4_defconfig across
kernel merges. Add the required RPi4 modules to the Bazel build
outputs.

Signed-off-by: Giau Nguyen <nguyenanhgiau1008@gmail.com>
@KonstaT

KonstaT commented Nov 20, 2026

Copy link
Copy Markdown
Member

I'm guessing you didn't test the kernel binary you built after this?

{bcm2711_gki|bcm2712_gki}.fragment are kept in the same order as in .config - not in alphabetical order. This doesn't make it clear what you've actually changed in the fragment.

I attached a patch what this actually changes in the resulting .config. It's a lot more than you'd probably think. Also why I keep track of the complete .config as it makes things like this clear immediately.
0001-rpi4-defconfig-regenerate-after-use-GKI-base-and-fra.patch

Image binary size went from 54151680 bytes to 56429056 bytes because of the SUNXI/HISI/QCOM/TEGRA/etc platform specific stuff we don't need on this hardware (not that critical TBH).

This breaks at least bluetooth (modules are never loaded/copied anywhere) and video decoding (UBSAN from gki_defconfig needs to disabled for some reason f5c37fa).

Not going to go with this obviously and I'll do a write-up to justify my design choices in the issue report when I get around to it.

@nguyenanhgiau

Copy link
Copy Markdown
Author

I'm guessing you didn't test the kernel binary you built after this?

{bcm2711_gki|bcm2712_gki}.fragment are kept in the same order as in .config - not in alphabetical order. This doesn't make it clear what you've actually changed in the fragment.

I attached a patch what this actually changes in the resulting .config. It's a lot more than you'd probably think. Also why I keep track of the complete .config as it makes things like this clear immediately. 0001-rpi4-defconfig-regenerate-after-use-GKI-base-and-fra.patch

Image binary size went from 54151680 bytes to 56429056 bytes because of the SUNXI/HISI/QCOM/TEGRA/etc platform specific stuff we don't need on this hardware (not that critical TBH).

This breaks at least bluetooth (modules are never loaded/copied anywhere) and video decoding (UBSAN from gki_defconfig needs to disabled for some reason f5c37fa).

Not going to go with this obviously and I'll do a write-up to justify my design choices in the issue report when I get around to it.

Here are my steps: raspberry-vanilla/android_kernel_manifest#30
Could you review it?

@KonstaT

KonstaT commented Nov 20, 2026

Copy link
Copy Markdown
Member

Here are my steps: raspberry-vanilla/android_kernel_manifest#30 Could you review it?

I'll do a write-up to justify my design choices in the issue report when I get around to it.

Likely not until sometime next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants