Thanks for the effort in getting this to work.
HDMI works, though I was trying to get the Raspberry Pi touchscreen to work.
Has anyone been successful in getting the Raspberry pi official display working?
It seems that the needed changes in the raspberry pi kernel were not added to this android kernel.
I added all that I think were relevant for the touchscreen, but still only HDMI works.
The changes I added all apply cleanly to the android kernel.
See below for a kernel that cherry-picks the touchscreen changes, and adds the kernel config options.
---
repo init -u
https://android.googlesource.com/platform/manifest -b android-9.0.0_r33 --depth=1
mkdir -pv device/brobwind
[ -d device/brobwind/rpi3 ] || git clone git://github.com/brobwind/pie-device-brobwind-rpi3 device/brobwind/rpi3
mkdir -p .repo/local_manifests
ln -snfv ../../device/brobwind/rpi3/local_manifest.xml .repo/local_manifests/
repo sync -j$(nproc)
( cd kernel-v4.14; git fetch
https://github.com/raspberrypi/linux.git rpi-4.14.y )
( cd kernel-v4.14; git reset --hard 1856689bc155; \
for c in \
c486cc038e0a \
f2ba7d21a347 \
9cd543527b03 \
8cc0290d28c4 \
8b95e3e5250a \
285cd814f018 \
7a95d43804a7 \
82afe061b073 \
7791d2b93c6d \
e08252e9eb97 \
f1f172ace5f5 \
; do git cherry-pick $c; done )
echo CONFIG_FB_BCM2708=y >> kernel-v4.14/arch/arm64/configs/bcmrpi3_defconfig
echo CONFIG_TOUCHSCREEN_RPI_FT5406=y >> kernel-v4.14/arch/arm64/configs/bcmrpi3_defconfig
echo CONFIG_BCM2835_SMI_DEV=y >> kernel-v4.14/arch/arm64/configs/bcmrpi3_defconfig
echo CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=y >> kernel-v4.14/arch/arm64/configs/bcmrpi3_defconfig
echo CONFIG_BACKLIGHT_RPI=y >> kernel-v4.14/arch/arm64/configs/bcmrpi3_defconfig
export USE_CCACHE=1
( \
cd kernel-v4.14; \
export INSTALL_ROOT=`pwd`/../device/brobwind/rpi3/boot/kernel-v4.14; \
export CROSS_COMPILE=`pwd`/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-androidkernel-; \
INSTALL_PATH=${INSTALL_ROOT} INSTALL_MOD_PATH=${INSTALL_ROOT} ARCH=arm64 make bcmrpi3_defconfig; \
INSTALL_PATH=${INSTALL_ROOT} INSTALL_MOD_PATH=${INSTALL_ROOT} ARCH=arm64 make -j 4; \
INSTALL_PATH=${INSTALL_ROOT} INSTALL_MOD_PATH=${INSTALL_ROOT} ARCH=arm64 make -j 4 dtbs; \
INSTALL_PATH=${INSTALL_ROOT} INSTALL_MOD_PATH=${INSTALL_ROOT} ARCH=arm64 make dtbs_install; \
INSTALL_PATH=${INSTALL_ROOT} INSTALL_MOD_PATH=${INSTALL_ROOT} ARCH=arm64 make install; \
)
. build/envsetup.sh
lunch rpi3-eng
make -j$(nproc)