phoenix-rtos / phoenix-rtos-hostutils

Phoenix-RTOS supporting daemon
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

phoenixd: Allow calling phoenixd without initrd argument #19

Closed MaciejPurski closed 3 years ago

MaciejPurski commented 3 years ago

Since syspage programs are already a part of kernel image, there is no need for appending them using phoenixd. Calling phoenixd with 'output' and 'kernel' parameters should be used in order to set syspage programs physical address and kernel arguments. This is still used in imx6ull target.

An example of a call to phoenixd, which is allowed thanks to this commit: $PREFIX_BOOT/phoenixd --plugin --kernel $KERNEL_IMG="Ximx6ull-uart Ximx6ull-flash;-p;64;64;-r;jffs2;0;-p;128;64;-p;192;1856;-p;4032;16 Xpsh;-i;/etc/rc.psh" --output $PREFIX_BOOT/primary.img

It generates a new kernel image containing a kernel plugin needed by the imx6ull bootloader and a valid syspage structure with given kernel command line arguments.