DieterReuter / image-builder-rpi64

Build SD card image for Raspberry Pi 3 64bit
MIT License
156 stars 38 forks source link

Raspberry Pi 4 Support with upgrade to buster #113

Closed lucashalbert closed 4 years ago

lucashalbert commented 4 years ago

Raspberry Pi 4 support added via sakaki-'s bcm2711 64-bit kernel.

Upgraded to buster release using new HypriotOS rootfs v2.2.1.

asleeis commented 4 years ago

Fantastic! I’ll be giving this a try this weekend. I was just about to try the steps to make the prior image work on the couple new RPi 4’s I got. Thank you!!

aatchison commented 4 years ago

Also stoked, may have to pick up a few more!

On Sat, Oct 12, 2019, 10:39 AM Alex S notifications@github.com wrote:

Fantastic! I’ll be giving this a try this weekend. I was just about to try the steps to make the prior image work on the couple new RPi 4’s I got. Thank you!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DieterReuter/image-builder-rpi64/pull/113?email_source=notifications&email_token=ACBE4O7T54GDPQYDH5HRIPLQOIDUNA5CNFSM4JACXUG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCES6Q#issuecomment-541346170, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBE4OYX5PRBAZHPL5U45TLQOIDUNANCNFSM4JACXUGQ .

lucashalbert commented 4 years ago

Be aware that there seems to be an issue with cloud-init processing and applying the /boot/user-data file. The user "debian" is created on first boot without a password which means that you have to manually mount the filesystem on another system to copy a password hash to /etc/shadow.

I haven't had enough time to track down the origin of that problem at this time. If anyone else figures it out, please share.

StefanScherer commented 4 years ago

@lucashalbert This is awesome!

I tried to pick all relevant commits in the 32bit image-builder-rpi repo for updating to buster:

I've created #114 to switch to CircleCI to have build artifacts for PR's, so it would be easier to share the current status with the corresponding sd-card images. @DieterReuter PTAL

jmatsushita commented 4 years ago

Got it working here as well. And also figured out why the debian user was created as mentionned here by @lucashalbert

The image-builder-rpi repo diverged a bit from this repo, in particular regarding how the user is created. Simply adding the cloud.cfg file from hypriot/image-builder-rpi in builder/files/etc/cloud to this repo did the trick.

The difference with the stock cloud.cfg are these two lines for the default_user key.

@StefanScherer maybe it's time to provide these arm64 images with the hypriot releases?

lucashalbert commented 4 years ago

Sorry for the lack of responses lately everyone. It's been a busy few months.

@StefanScherer, the switch to CircleCI was a great idea to break out each step of the build process and preserve all of the build artifacts.

The fixes that @jmatsushita has put together in PR #116 look very promising. I'm going to close this PR in favor of that one.