[U-Boot] LZMA support

Luigi Mantellini luigi.mantellini.ml at gmail.com
Sat Sep 12 09:09:14 CEST 2009


Hi Prafulla,

This is my code to create the uimage:

# create flat binary
$(CROSS)objcopy -O binary -S $(LINUX_DIR)/vmlinux $(KDIR)/vmlinux.bin

# compress
$(TOOLS)/bin/lzma e $(KDIR)/vmlinux.bin $(KDIR)/vmlinux.lzma

# create uimage
export KERNEL_ENTRY=`$(CROSS)objdump -x $(LINUX_DIR)/vmlinux |grep -i
kernel_entry|cut -d " " -f 1` ;\
          mkimage -A mips -O linux -T kernel -C lzma -a 0x80010000 -e
$$$$KERNEL_ENTRY \
           -n 'IDF ONU BOARD Image-$(LINUX_VERSION)' \
           -d $(KDIR)/vmlinux.lzma $(KDIR)/uImage

I use everyday this script (picked from OpenWRT) to build my firmware image.

best regards,

luigi

On Wed, Sep 9, 2009 at 7:44 PM, Prafulla Wadaskar <prafulla at marvell.com> wrote:
> Hi all
>
> Has anybody used LZMA compression with u-boot?
> If yes, can you pls share your experience?
>
> Regards..
> Prafulla . .
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>



-- 
Luigi 'Comio' Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI), Italy

Tel.: +39 02 5167 2813
Fax: +39 02 5167 2459
web: www.idf-hit.com
mail: luigi.mantellini at idf-hit.com


More information about the U-Boot mailing list