Can anyone tell me how the initramfs is configured? The gemian wiki Kernel Compilation pages talks about it containing an "init script forked from hybris-boot, which is currently configured to boot system from /dev/mmcblk0p29 partition" but I can't find reference to this partition. Unless the partition is passed as a variable from little kernel bootloader?
If anyone familiar with halium can explain a little about what is going on I would appreciate. I want to understand so I can not use it!
PS It made me chuckle how the halium documentation explicitly warns people from porting to mediatek devices! Lulz
I think that information is a bit outdated. Current version looks for "linux" partition by label. See mountroot() in the /scripts/geminipda of ramdisk (
http://pastebin.ws/5q6xzp). It's possible to specify stowaways_os= kernel parameters and then it will mount /.stowaways/{$stowaways_os} of that partition as system root.
Basically initramfs mounts system root and starts systemd, which in turn later starts Android/Halium LXC container.
Heh, that piece of documentation needs to be adjusted, I think. It's not a problem with MediaTek itself, but that lots of cheap MediaTek phones are made by Chinese vendors who don't care about providing even Linux kernel source code under GPLv2, which is no go for Halium, as you can't enable devtmpfs, namespaces and other kernel options needed.