redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

alpine无法启动

Open aogg opened this issue 2 years ago • 3 comments

没有对应的可执行

## install required kernel modules
apt install linux-modules-extra-`uname -r`
modprobe binder_linux devices="binder,hwbinder,vndbinder"
modprobe ashmem_linux

但https://github.com/budtmo/docker-android都能成功

aogg avatar Aug 21 '23 09:08 aogg

Not tested on Alpine, possible need customized Linux kernel (enable binderfs etc.).

BTW, docker-android (the project you mentioned) is a totally different solution (Qemu + KVM based, Android Emulator like).

zhouziyang avatar Aug 22 '23 09:08 zhouziyang

I started an alpine vm in android termux.

qemu-system-aarch64 -machine virt -m 4096 -smp cpus=4 -cpu cortex-a76 -drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/edk2-aarch64-code.fd -netdev user,id=n1,dns=8.8.8.8,hostfwd=tcp::2222-:22 -device virtio-net,netdev=n1 -cdrom alpine-standard-3.20.2-aarch64.iso -nographic -vnc :1 alpine_binder.img

the standard alpine vm kernel include binder support. I then started the redroid container, which seems failed to run normally.

docker run -itd --privileged \
    -v ~/data:/data \
    -p 5555:5555 \
    redroid/redroid:12.0.0-latest \
    androidboot.use_memfd=1

logs was attached. Would you be kind to point out the key point of the problem?

redroid-debug.XXkngbiI.zip

chairwa avatar Jan 06 '25 06:01 chairwa

vi /etc/default/grub, add psi=1 grub-mkconfig -o /boot/grub/grub.cfg

chairwa avatar Jan 09 '25 08:01 chairwa