Hi Jun,
On Thu, Feb 09, 2017 at 10:05:50PM +0800, Jun Nie wrote:
2017-02-09 21:44 GMT+08:00 Jun Nie jun.nie@linaro.org:
I am new to UEFI and trying to boot Linux with LinuxLoader app. But I cannot find detail information for below questions. Could anyone point out where I can find related information or example code? Thanks for your time!
- How to feed command line to this app so that ProcessAppCommandLine() can
process it?
I know this app support parsing command line from shell. I am seeking method to launch this app from BDS directly without shell but cannot find where to specify value to LoadedImage->LoadOptions so that this app can get command line from it.
The LinuxLoader was a severely unreliable non-UEFI-compliant component which was deleted from the edk2 repository in November last year. Unless your Linux kernel is older than version 3.16 (64-bit) or 4.5 (32-bit), there is no reason to use it.
And if it is, it is worth looking for alternative solutions.
- And how should I generate device path string for raw blockIO
device with specified offset/size? UEFI 2.6 spec does not provide much information in 9.4.5 Media Device Path Rules.
You say raw blockIO device - what does this mean? If the system produces a raw block device from something like an eMMC, then I would recommend putting a partition table on it, and finding the desired offset from this.
Best Regards,
Leif