[ipxe-devel] How to reduce the image size

Michael Brown mcb30 at ipxe.org
Fri Sep 18 12:53:36 UTC 2020


On 18/09/2020 02:10, 丰立波 wrote:
> I am testing the iPxe on a MIPS platform, the final image of snponly is 
> about 900kB, and the network driver of the UEFI has some problem, it is 
> very slow when downloading the iPxe image, and always fails with 
> timeout. And even worse, the UEFI is already deployed, can't be changed. 
> So, I think it could work to make a small iPxe image with the minimal 
> functionalities for the defective UEFI.

There is no existing MIPS port of iPXE.  I am assuming that you may have 
modified the build process to support MIPS.  In doing so, you would have 
needed to provide implementations for several per-CPU-architecture 
functions.

My guess is that you have probably chosen to link in an external C 
library in order to achieve this, and that the bulk of your code size is 
coming from this external library.

Without seeing your modified code, we cannot sensibly help you.  You 
will need to publish the code in accordance with the GPL at some point 
anyway, so you may as well publish it now.

Thanks,

Michael



More information about the ipxe-devel mailing list