[Skiboot] [PATCH] Produce XZ compressed skiboot.lid as part of build
stewart at linux.vnet.ibm.com
Mon Jul 4 14:03:43 AEST 2016
Andrew Donnellan <andrew.donnellan at au1.ibm.com> writes:
> On 04/07/16 13:27, Stewart Smith wrote:
>> With a recent HostBoot change, we can have an XZ compressed PAYLOAD
>> that's automagically detected (looking at magic numbers).
>> This gives us three great benefits:
>> 1) it's transparent, uncompressed skiboot.lid works everywhere
>> 2) it lets us grow greater than 1MB binary, as long as we compress
>> down to <1MB
>> 3) It speeds up boot. We currently compress down to 230kb rather than
>> 922kb, which is much quicker to read off flash.
>> This patch produces skiboot.lid.xz alongside standard skiboot.lid.
>> Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
>> +$(TARGET).lid.xz: $(TARGET).lid
>> + $(call Q,XZ, cat $^ | xz -9 -C crc32 > $@, $@)
> Is crc32 the only check algorithm supported by Hostboot? *searches
> hostboot source code...*
> A quick look at the relevant Hostboot source code seems to indicate that
> crc64 can be enabled but is disabled by default. Mention this in commit
Done. I also mentioned this means we get error *detection* in the
PAYLOAD partition, which is something that we previously did not have.
OPAL Architect, IBM.
More information about the Skiboot