Closed usatenko closed 10 months ago
I suspect it fails after you removed this
Please follow the steps in the instruction on how to compile i.e.
make bootimage systemimage vendorimage -j$(nproc)
Passing VINTF compatibility tests are currently not in the scope but you can of course work towards this if this is requirement for you for some reason (pull requests are welcome). You would at least need to add DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE
for
android.hardware.media.c2
and implement thermal HAL (there's a mock HAL in https://android.googlesource.com/platform/hardware/interfaces/+/refs/tags/android-13.0.0_r67/thermal/2.0/default/) as suggested in the check_vintf_compatible.log. I know there's also some kernel options I've enabled that won't pass so you would need to work through those as well. You can use make check-vintf-all
to check.
hardware/interfaces was previously forked because broadcom vendor bluetooth stack needed two external patches on Pi 4. These patches are no longer needed since I've switched to using btlinux bluetooth stack.
thank you very much, now I see what I was missing
@KonstaT BTW, is there any way to run the build in some emulation without writing to a flash card? This would speed up the dev. I saw qemu has raspi4 support in some of dev commits, but they are not yet merged to master ... Please advise.
What dev commits are you referring to exactly? I could have a look.
I'm not aware of any way you could run the Pi 4 image in any emulator. You can of course build AOSP for the Android emulator (https://source.android.com/docs/setup/create/avd).
I tried to apply the commits from this branch to qemu master (to some commit close to 20230726 by date) branch and after building qemu I was able to run raspbian in qemu as raspi4b8g machine type. However, I was not able to run it in graphic mode.
./build/qemu-system-aarch64 -M raspi4b8g -serial stdio -kernel ../android_device_brcm_rpi4-kernel/Image -append "rw earlyprintk loglevel=8 dwc_otg.lpm_enable=0 root=/dev/mmcblk1p2 rootdelay=1" -dtb ../android_device_brcm_rpi4-kernel/bcm2711-rpi-4-b.dtb -device virtio-keyboard-pci -device virtio-mouse-pci -drive id=mydrive,if=none,format=raw,bus=0,index=0,file=/Users/a/Downloads/2023-05-03-raspios-bullseye-arm64-lite.img -display cocoa -device sd-card,drive=mydrive
So, something works:
Ah ok, I still doubt you'd have much luck with that.
If you need to work with some higher level things (apps, etc), I'm sure the Android emulator will work just fine for that. For lower level stuff that's closer to the hardware, use the real hardware of course.
When compiling aosp_rpi4_car I get this error (the reduced size option).
Can you please direct me to what the problem may be?