HomeKitADK icon indicating copy to clipboard operation
HomeKitADK copied to clipboard

Installing on Rasberry Pi

Open coc opened this issue 5 years ago • 4 comments

If I want install ADK on a Rasberry Pi, docker must be installed on Mac, not on Raspberry Pi, right?

coc avatar Nov 17 '20 05:11 coc

Docker must be installed on mac to compile for Raspi on your mac. You could also compile on the Raspi directly by copying the code over to Raspi.

aajain-com avatar Nov 17 '20 16:11 aajain-com

@aajain-com Thanks for info! When running raspi_sdcard_setup.sh, the sleep times before the reboots must be increased if using a Raspberry PI zero.

coc avatar Nov 17 '20 16:11 coc

Is it possible to install the HomeKitADK on an existing raspbian installation instead of creating a new SD card image from scratch? How? Yes, I found out myself: SETUP_SKIP_SD=1 SETUP_SKIP_BASE_SETUP=1 SETUP_HOSTNAME=myServer SETUP_PASSWORD=XXXXX Tools/raspi_sdcard_setup.sh will ssh into existing myServer.local, install a bunch of dependencies there, ... and fail when avahi is stopped and mdnsresponder started instead. After manually switching back to avahi I can

make DOCKER=0 TARGET=Raspi
mkdir  .HomeKitStore
Tools/provision_raspi.sh --category 5 .HomeKitStore
Output/Raspi-armv6k-unknown-linux-gnueabihf/Debug/IP/Applications/Lock.OpenSSL

and it works! (shouldn't all this be in the docs? Still looking for instructions for cross-compilation with docker...)

g-mocken avatar Feb 18 '21 23:02 g-mocken

this should definitely be in the docs if it's not already.

wolfspyre avatar Oct 27 '22 20:10 wolfspyre