hexdump0815 / imagebuilder

velvet os - simple script framework to build ubuntu 22.04 lts jammy (in older versions also 20.04 lts focal) and debian 12 bookworm (in older versions also 11 bullseye) bootable usb / sd card images for some arm and intel devices - lots of prebuilt images as well
GNU General Public License v3.0
300 stars 44 forks source link

Waydroid issues #220

Open nonameCCC opened 3 months ago

nonameCCC commented 3 months ago

After several attempts, I finally give up with constructing own system, but problems occur when I try to make Waydroid work on my wormdingler. Is there any instruction on how to get Waydroid properly work?

hexdump0815 commented 3 months ago

not sure if anyone else tried so far - no idea from my side ...

thenameisluk commented 3 months ago

i tried few times but lxc doesn't feel like collaborating and the whole thing crashes after booting logo not sure why but i kinda gave up for now

nonameCCC commented 3 months ago

i tried few times but lxc doesn't feel like collaborating and the whole thing crashes after booting logo not sure why but i kinda gave up for now

same on my device lxc-net just stop working even with ipv6 enabled and the initialize of Waydroid crashed after showing up the Lineage OS icon

thenameisluk commented 3 months ago

ye i haven't really looked into it that much further

i know that someone actually got it to work

maybe you can try looking into his kelner build configuration and compare it with default one or ask him directly

if u find anything let me know i might create a guide for setting it up for other ppl if we figure out how

WesleyVanNeck commented 2 months ago

ye i haven't really looked into it that much further

i know that someone actually got it to work

maybe you can try looking into his kelner build configuration and compare it with default one or ask him directly

if u find anything let me know i might create a guide for setting it up for other ppl if we figure out how

Even updating the kernel from hexdumps kernel repo doesn't work

thenameisluk commented 2 months ago

the kelner from repo has apparmor disabled which is needed for waydroid to work that is already figured out

now the mystery is why lxc-net doesn't work

thenameisluk commented 2 months ago

so i was looking at things and i noticed that running debian trixie we r expected to be on kernel 6.8 image so there is a possibility the kelner version is what's causing an issue

WesleyVanNeck commented 2 months ago

so i was looking at things and i noticed that running debian trixie we r expected to be on kernel 6.8 image so there is a possibility the kelner version is what's causing an issue

thats not i run a older version of the kernel fine on my pc with waydroid

thenameisluk commented 2 months ago

@WesleyVanNeck what version of debian r u on?

linsyking commented 1 month ago

I am able to run waydroid on my trogdor machine.

You need to enable PSI and several netfilter config when building the kernel.

thenameisluk commented 1 month ago

@linsyking that's great news could you diff your config against https://github.com/hexdump0815/linux-mainline-and-mali-generic-stable-kernel/blob/master/config.cbq-6.6.23-stb-cbq+ so i can try to replicate it? also provide the config itself?

hexdump0815 commented 1 month ago

@linsyking @LukIsHere - thanks a lot for your investigations - if you have a clean list of what is needed beyond https://github.com/hexdump0815/kernel-config-options/blob/main/additional-options-generic.cfg then i cann add it there for the future ...

thenameisluk commented 1 month ago

@hexdump0815 there is also a problem of cmdline waydroid (at least on trixie, likely on bookworm too) requires the apparmor also ipv6 too (afaik)

thenameisluk commented 1 month ago

@hexdump0815 got the thing working too obraz it requires

CONFIG_PSI=y
CONFIG_CHECKPOINT_RESTORE=y
CONFIG_RELR=y
CONFIG_PACKET_DIAG=m
CONFIG_UNIX_DIAG=y

CONFIG_NFT_NUMGEN=m
CONFIG_NFT_CT=m
CONFIG_NFT_FLOW_OFFLOAD=m
CONFIG_NFT_CONNLIMIT=m
CONFIG_NFT_LOG=m
CONFIG_NFT_LIMIT=m
CONFIG_NFT_MASQ=m
CONFIG_NFT_REDIR=m
CONFIG_NFT_NAT=m
CONFIG_NFT_TUNNEL=m
CONFIG_NFT_QUEUE=m
CONFIG_NFT_QUOTA=m
CONFIG_NFT_REJECT=m
CONFIG_NFT_REJECT_INET=m
CONFIG_NFT_COMPAT=m
CONFIG_NFT_HASH=m
CONFIG_NFT_XFRM=m
CONFIG_NFT_SOCKET=m
CONFIG_NFT_OSF=m
CONFIG_NFT_TPROXY=m
CONFIG_NFT_SYNPROXY=m
CONFIG_NFT_DUP_NETDEV=m
CONFIG_NFT_FWD_NETDEV=m
CONFIG_NFT_REJECT_NETDEV=m
CONFIG_NFT_REJECT_IPV4=m
CONFIG_NFT_REJECT_IPV6=m
CONFIG_NETLINK_DIAG=m
CONFIG_PROC_CHILDREN=y

also likely AppArmor and IPv6 enabled (and for sure PSI=1 if CONFIG_PSI_DEFAULT_DISABLED is enabled) still testing stuff so might edit this

edit: IPv6 doesn't seam to be required still it's something that would be nice to enable it cause of mcbe issue Same with AppArmor despite the fact it displayed warning about it being required still ^ edit2: turns out without IPv6 there is no wifi on android side :3

hexdump0815 commented 1 month ago

fyi: i'll soon try to merge those kernel config changes into the kernel-config-options repo

WesleyVanNeck commented 1 month ago

fyi: i'll soon try to merge those kernel config changes into the kernel-config-options repo

Will you release a new kernel for trogdor

WesleyVanNeck commented 1 month ago

@hexdump0815 got the thing working too obraz it requires

CONFIG_PSI=y
CONFIG_CHECKPOINT_RESTORE=y
CONFIG_RELR=y
CONFIG_PACKET_DIAG=m
CONFIG_UNIX_DIAG=y

CONFIG_NFT_NUMGEN=m
CONFIG_NFT_CT=m
CONFIG_NFT_FLOW_OFFLOAD=m
CONFIG_NFT_CONNLIMIT=m
CONFIG_NFT_LOG=m
CONFIG_NFT_LIMIT=m
CONFIG_NFT_MASQ=m
CONFIG_NFT_REDIR=m
CONFIG_NFT_NAT=m
CONFIG_NFT_TUNNEL=m
CONFIG_NFT_QUEUE=m
CONFIG_NFT_QUOTA=m
CONFIG_NFT_REJECT=m
CONFIG_NFT_REJECT_INET=m
CONFIG_NFT_COMPAT=m
CONFIG_NFT_HASH=m
CONFIG_NFT_XFRM=m
CONFIG_NFT_SOCKET=m
CONFIG_NFT_OSF=m
CONFIG_NFT_TPROXY=m
CONFIG_NFT_SYNPROXY=m
CONFIG_NFT_DUP_NETDEV=m
CONFIG_NFT_FWD_NETDEV=m
CONFIG_NFT_REJECT_NETDEV=m
CONFIG_NFT_REJECT_IPV4=m
CONFIG_NFT_REJECT_IPV6=m
CONFIG_NETLINK_DIAG=m
CONFIG_PROC_CHILDREN=y

also likely AppArmor and IPv6 enabled (and for sure PSI=1 if CONFIG_PSI_DEFAULT_DISABLED is enabled) still testing stuff so might edit this

edit: IPv6 doesn't seam to be required still it's something that would be nice to enable it cause of mcbe issue Same with AppArmor despite the fact it displayed warning about it being required still ^ edit2: turns out without IPv6 there is no wifi on android side :3

Can you share your kernel

thenameisluk commented 1 month ago

@WesleyVanNeck he is busy with irl stuff so it might take a while if you want i can give you my config so you can recompile it yourself on your device

WesleyVanNeck commented 1 month ago

@WesleyVanNeck he might be busy with irl stuff so it might take a while if you want i can give you my config so you can recompile it yourself on your device

Sure

thenameisluk commented 1 month ago

@WesleyVanNeck here is config for latest kernel version released by hexdump (v6.6.23) config-6.6.23-stb-cbq+.txt and here is newer kernel version i currently use config-6.9.9-stb-cbq+.txt both work also i use this cmdline

console=tty1 root=LABEL=rootemmc rootwait ro fsck.fix=yes fsck.repair=yes net.ifnames=0 quiet splash deferred_probe_timeout=30 clk_ignore_unused=1

important diffrence is removal of ipv6.disable=1 and apparmor=0 rest can stay as it was on your side

WesleyVanNeck commented 2 weeks ago

@WesleyVanNeck here is config for latest kernel version released by hexdump (v6.6.23) config-6.6.23-stb-cbq+.txt and here is newer kernel version i currently use config-6.9.9-stb-cbq+.txt both work also i use this cmdline

console=tty1 root=LABEL=rootemmc rootwait ro fsck.fix=yes fsck.repair=yes net.ifnames=0 quiet splash deferred_probe_timeout=30 clk_ignore_unused=1

important diffrence is removal of ipv6.disable=1 and apparmor=0 rest can stay as it was on your side

I got trouble compiling the kernel don't you got a pre built kernel for me I have issues setting up the dirs

thenameisluk commented 2 weeks ago

@WesleyVanNeck not home rn i can get u prebuild version in like 2 hours you want 6.9.9 or 6.6.23?

WesleyVanNeck commented 2 weeks ago

@WesleyVanNeck not home rn i can get u prebuild version in like 2 hours you want 6.9.9 or 6.6.23?

6.9.9 @thenameisluk

WesleyVanNeck commented 2 weeks ago

@thenameisluk sorry for the late reply

thenameisluk commented 2 weeks ago

@WesleyVanNeck github has file size limit at 25mb for issues so i uploaded it to mediafire https://www.mediafire.com/file/9xbhr9086m6xjba/waydroid-6.9.9-stb-cbq+.tar.gz/file the cmdline is console=tty1 rootwait ro fsck.fix=yes fsck.repair=yes net.ifnames=0 quiet splash deferred_probe_timeout=30 clk_ignore_unused=1 root=PARTUUID=%U/PARTNROFF=3 if you want to modify it or add splash screen you can try out tool i've been making for sometime https://github.com/thenameisluk/velvettools for rebuilding and flashing images