<Adrian[m]>
there are a bunch of cmdline parameters that the android kernel expects to be set by the bootloader
<Adrian[m]>
notably your panel name
<Adrian[m]>
you'll have to pass them to the Android kernel from U-Boot
<soupborsh[m]>
<Adrian[m]> "> <@soupborsh:matrix.org> Here..." <- Hello, is that my attempt somewhat correct? If I add every cmdline from /proc/cmdline should it work?
<soupborsh[m]>
I will be glad if you could tell the correct way to boot Android kernel.
<Adrian[m]>
the correct way to boot Android is to build your Android so it can be booted by grub or systemd-boot and use that instead
<Adrian[m]>
that's what the virtio targets in LineageOS do at the moment and is the most standard you can get with an Android boot process
<soupborsh[m]>
I would like to utilize big amount of already built android ROM's for surya. Is there a way to boot them with minimal changes?
<soupborsh[m]>
Also I found that /proc/iomem is the memory map
<soupborsh[m]>
* minimal changes? Maybe some kernel changes.
<soupborsh[m]>
<Adrian[m]> "the correct way to boot Android..." <- Sorry, I meant by correct way to boot is working way to boot not the perfect/preferrable one. No matter how hacky it will be now, it is just for proof of concept, it can be improved later.
<soupborsh[m]>
* minimal changes? Maybe some kernel changes. Rebuilding whole Android is horrible.
<z1r343l2[m]>
<Adrian[m]> "that's what the virtio targets..." <- Are those virtio targets a separate device? Never saw them when building los for sweet
<soupborsh[m]>
cust is ext4, my sd card is pmos rootfs and boot partition left from old installation
<z1r343l2[m]>
Ooh
<soupborsh[m]>
I can format it if needed.
<soupborsh[m]>
* if needed, but I think it should work in U-Boot as is no matter what is on it.
<z1r343l2[m]>
If I just knew how to build pmos for swee
<z1r343l2[m]>
The generic one does not work for sweet
<z1r343l2[m]>
Well maybe with u-boot?
<z1r343l2[m]>
Since the only problem seems that boot doesn't fit on the partition
<soupborsh[m]>
From U-boot I plan to boot LineageOS from phone emmc and PostmarketOS from SD card.
<z1r343l2[m]>
Makes sense I only booted pmos from userdata yet, what falls flat alongside android ofc
<z1r343l2[m]>
Any idea yet how to start pmos with u-boot
<soupborsh[m]>
I need Android for camera, gps, microphone and some android game. I will probably boot into GNU/Linux when I am at home.
<soupborsh[m]>
<z1r343l2[m]> "Any idea yet how to start pmos..." <- IDK exactly but maybe modify that bootpartition to include your dtb and flash it to cache or cust. And flash userdata to userdata. Maybe something needs to be modified to load your dtb.