apple / HomeKitADK

Apache License 2.0
2.57k stars 233 forks source link

Installing on Rasberry Pi #76

Open coc opened 3 years ago

coc commented 3 years ago

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

aajain-com commented 3 years ago

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.

coc commented 3 years ago

@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.

g-mocken commented 3 years ago

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...)

wolfspyre commented 2 years ago

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