2009-08-15 22:20:15 How to boot the kernel compressed with BZIP2?
Zhi Qiang Zhang (CHINA)
Message: 78924
Hi,
I check out the most updated kernel(REV:8693) and u-boot, and compiled it for bf537-stamp, I upgrade the u-boot to bf537-stamp board and download uImage.bz2.initramfs to board,
tftp 0x1000000 uImage.bz2.initramfs; bootm
the uboot said it does not support, then I added CONFIG_BZIP2 to the configuration file and re-compiled again, now boot the kernel again, it will reset everytime to run 'tftp 0x1000000 uImage.bz2.initramfs; bootm'
What is the wrong?
Thanks.
Regards,
ZhangZQ
QuoteReplyEditDelete
2009-08-16 02:54:07 Re: How to boot the kernel compressed with BZIP2?
Mike Frysinger (UNITED STATES)
Message: 78926
please show actual output like the commands you ran and the output you saw
QuoteReplyEditDelete
2009-08-16 09:13:07 Re: How to boot the kernel compressed with BZIP2?
Zhi Qiang Zhang (CHINA)
Message: 78927
Mike,
This is the output, please help me to check what is the problem, thanks,
bfin> tftp 0x1000000 uImage.bz2.initramfs
Using Blackfin EMAC device
TFTP from server 192.168.1.100; our IP address is 192.168.1.15
Filename 'uImage.bz2.initramfs'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
##########################
done
Bytes transferred = 3240382 (3171be hex)
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: bf537-2.6.30.3-ADI-2010R1-pre-sv
Created: 2009-08-13 15:12:41 UTC
Image Type: Blackfin Linux Kernel Image (bzip2 compressed)
Data Size: 3240318 Bytes = 3.1 MB
Load Address: 00001000
Entry Point: 00207844
Verifying Checksum ... OK
Uncompressing Kernel Image ... BUNZIP2: uncompress or overwrite error -3 - must RESET board to recover
The u-boot version is,
U-Boot 2009.06-svn1987 (ADI-2009R2-pre) (Aug 13 2009 - 22:15:06)
and the uclinux version is,
Revision: 8693
the attachments are the configuration file for building linux and uclinux.
Regards,
ZhangZQ
linux.config
uclinux.config
QuoteReplyEditDelete
2009-08-24 18:51:14 Re: How to boot the kernel compressed with BZIP2?
Mike Frysinger (UNITED STATES)
Message: 79162
if you read the u-boot source, -3 is out-of-mem error. your malloc is probably too small. why dont you use lzma instead ... it's smaller and faster.