image-builder-rpi64
image-builder-rpi64 copied to clipboard
Raspberry Pi 4 Support
Hi! I wanted to let you know that I was able to use your image on my Raspberry Pi 4b with the kernel and config.txt tweak provided here: https://github.com/sakaki-/bcm2711-kernel-bis
The current build there does have an issue with WiFi, but there's an open PR (new as of a few hours ago) to fix that here: https://github.com/raspberrypi/linux/pull/3159
These changes will likely go upstream pretty quickly, but you could probably build with it manually in the meantime if you'd like!
@skylartaylor, this is pretty great to hear. Have to test this kernel build, too. Let's see if we could use this kernel to fully automatically create a SD card image...
Just want to confirm, it's pretty easy to manually create a SD card for booting a 64bit kernel on the Pi4.
- flash the latest 64bit image from releases of this repo
- this will flash the SD card with a 64bit OS (rootfs is Debian Stretch), with 64bit kernel for Pi3
$ flash hypriotos-rpi64-v20190720-125849.img.zip
$ umount /dev/mmcblk0p2
$ umount /dev/mmcblk0p1
- follow the instructions at https://github.com/sakaki-/bcm2711-kernel-bis
- this will install the 64bit kernel for Pi4 on the SD card
$ mkdir -pv /mnt/piroot
$ mount -v /dev/mmcblk0p2 /mnt/piroot
$ mount -v /dev/mmcblk0p1 /mnt/piroot/boot
$ wget https://github.com/sakaki-/bcm2711-kernel-bis/releases/download/4.19.67.20190827/bcm2711-kernel-bis-4.19.67.20190827.tar.xz
$ tar xvf bcm2711-kernel-bis-4.19.67.20190827.tar.xz -C /mnt/piroot/
- append these settings to "confix.txt" to boot the new Pi4 kernel
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
arm_64bit=1
# differentiate from Pi3 64-bit kernels
kernel=kernel8-p4.img
$ vi /mnt/piroot/boot/config.txt
$ umount -v /mnt/piroot/{boot,}
- insert the prepared SD card into your Pi4, you can also attach a serial console cable because serial UART is enabled. Login with username=
pirate
and password=hypriot
RESULT:
64bit kernel for Pi4 is running:
HypriotOS/arm64: pirate@black-pearl in ~
$ uname -a
Linux black-pearl 4.19.67-v8-174fcab91765-p4-bis+ #2 SMP PREEMPT Tue Aug 27 13:58:09 GMT 2019 aarch64 GNU/Linux
4x CPU's:
HypriotOS/arm64: pirate@black-pearl in ~
$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
4 GByte of Memory available:
HypriotOS/arm64: pirate@black-pearl in ~
$ cat /proc/meminfo
MemTotal: 3948868 kB
MemFree: 3525024 kB
MemAvailable: 3729996 kB
Buffers: 26680 kB
Cached: 214040 kB
SwapCached: 0 kB
Active: 136376 kB
Inactive: 166360 kB
Active(anon): 62384 kB
Inactive(anon): 10388 kB
Active(file): 73992 kB
Inactive(file): 155972 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 16 kB
Writeback: 0 kB
AnonPages: 62120 kB
Mapped: 65640 kB
Shmem: 10752 kB
Slab: 59644 kB
SReclaimable: 24412 kB
SUnreclaim: 35232 kB
KernelStack: 2128 kB
PageTables: 1072 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1974432 kB
Committed_AS: 423728 kB
VmallocTotal: 263061440 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
Percpu: 928 kB
CmaTotal: 262144 kB
CmaFree: 222544 kB
This is awesome. Any ETA on when a proper release will have this?