Open dpnkrg opened 4 years ago
I would recommend getting familiar with Yocto first. Yocto has a raspberry pi support layer. The Porting Guide may help you get a rough idea of what it takes to port AsteroidOS to a different device https://asteroidos.org/wiki/porting-guide/ it mostly targets watches running Android through libhybris but it is also possible to run AsteroidOS on a more standard Linux system, this is, for instance, what we do in QEMU. I would recommend grepping our Yocto layers for qemux86 to see how this would work.
Any update?
Any update?
Not to my knowledge. You asked for instructions and @FlorentRevest gave you some starting points. If you didn't do anything, probably no one has.
@jrtberlin, I will try and update you all.
Any update?
OK finally an update :smile:
Getting AsteroidOS to work on a Raspberry Pi 4 can be done by following these steps:
/src
(git clone --branch scarthgap https://github.com/agherzan/meta-raspberrypi.git
)build/bblayers.conf
:
BBLAYERS = " \
${SRCDIR}/meta-raspberrypi \
...
raspberrypi4-64
platform to prepare-build.sh
:
declare -a devices=("raspberrypi4-64" ...)
dsme
from IMAGE_INSTALL
in asteroid-image.bblass
to avoid bootloops (https://github.com/AsteroidOS/meta-asteroid/blob/master/classes/asteroid-image.bbclass#L12).input
group to the ceres
user to fix permission issues when opening a touchscreen device (https://github.com/AsteroidOS/meta-asteroid/blob/master/classes/asteroid-image.bbclass#L20).raspberrypi4-64
platform/MACHINE.meta-raspberrypi
uses a tool named bmaptool
(https://github.com/yoctoproject/bmaptool/). build/tmp-glibc/deploy/images/raspberrypi4-64
bmaptool copy --bmap asteroid-image-raspberrypi4-64.rootfs.wic.bmap asteroid-image-raspberrypi4-64.rootfs.wic.bz2 <SD CARD>
.
SD CARD
with your target device (often /dev/sda
or /dev/mmcblk0
).Now you should have AsteroidOS running on a Raspberry Pi!
For some reason it's suffering from a weird issue where launching any apps show up garbled with a GPU related message (vc4-drm gpu: swiotlb buffer is full
). Increasing the GPU/CPU memory split doesn't seem to do anything.
It is possible to install AsteroidOS in any of the Raspberry Pi based boards?
My idea is to make/build AsteroidOS for the raspberry pi based board and for the touch screen, I will use any of the GPIO based raspberry pi compatible touch screens.
If anyone knows, How to start or any instructions?