<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hi all,</FONT></DIV>
<DIV><FONT size=2> I am a newbie about u-boot , who have a
good journal ? thanks very much ! </FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 9pt งบส^">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 9pt งบส^; font-color: black"><B>From:</B>
<A title=cmhuang.eic93g@nctu.edu.tw
href="mailto:cmhuang.eic93g@nctu.edu.tw">Clare Huang</A> </DIV>
<DIV style="FONT: 9pt งบส^"><B>To:</B> <A
title=u-boot-users@lists.sourceforge.net
href="mailto:u-boot-users@lists.sourceforge.net">u-boot-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 9pt งบส^"><B>Sent:</B> Wednesday, August 02, 2006 4:30
PM</DIV>
<DIV style="FONT: 9pt งบส^"><B>Subject:</B> [U-Boot-Users] U-boot 1.1.3 support
Bzip2 compression?</DIV>
<DIV><BR></DIV>
<DIV><FONT face="Times New Roman" size=2>Hi all,</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2></FONT> </DIV>
<DIV><FONT face="Times New Roman" size=2>My platform is
OMAP5912osk. </FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>The setps I create the bzip2 kernel
image are :</FONT></DIV>
<DIV><FONT face="Times New Roman"
size=2>************************************************************</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>arm-linux-objcopy -O binary -R .note
-R .comment -S arch/arm/boot/compressed/vmlinux
linux.bin<BR>bzip2 linux.bin</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>mkimage -A arm -O linux -T kernel -C
bzip2 -a 0x10c08000 -e 0x10c08000 -n "2.6.15 " -d linux.bin.bz2
uImage</FONT></DIV>
<DIV><FONT face="Times New Roman"
size=2>************************************************************</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>Then I put kernel image at
0x10000000.</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2></FONT> </DIV>
<DIV><FONT face="Times New Roman" size=2>According to the README of u-boot
1.1.3 :</FONT></DIV>
<DIV><FONT face="Times New Roman"
size=2>----------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>- Compression
support:<BR> CONFIG_BZIP2</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2></FONT> </DIV>
<DIV><FONT face="Times New Roman" size=2> If this option is set,
support for bzip2 compressed<BR> images is included. If not, only
uncompressed and gzip<BR> compressed images are
supported.</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2></FONT> </DIV>
<DIV><FONT face="Times New Roman" size=2> NOTE: the bzip2 algorithm
requires a lot of RAM, so<BR> the malloc area (as defined by
CFG_MALLOC_LEN) should<BR> be at least 4MB.</FONT></DIV>
<DIV>
<DIV><FONT face="Times New Roman"
size=2>----------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face="Times New Roman"><FONT size=2>In
/u-boot-1.1.3/include/configs/omap5912osk.h, i</FONT><FONT size=2>f I use the
original config : </FONT></FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>#define
CFG_MALLOC_LEN (CFG_ENV_SIZE +
128*1024)</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>#define
CONFIG_BZIP2
1</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2></FONT> </DIV>
<DIV><FONT face="Times New Roman" size=2>The result when u-boot decompress the
image is :</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT face="Times New Roman"
size=2>************************************************************</FONT></DIV></FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>## Booting image at 10000000
...<BR> Image Name: 2.6.15 <BR> Image
Type: ARM Linux Kernel Image (bzip2 compressed)<BR>
Data Size: 1159790 Bytes = 1.1 MB<BR> Load
Address: 10c08000<BR> Entry Point: 10c08000<BR>
Verifying Checksum ... OK<BR> Uncompressing Kernel Image ...
BUNZIP2 ERROR -3 - must RESET board to recover</FONT></DIV><FONT size=2>
<DIV><FONT face="Times New Roman"
size=2>************************************************************</FONT></DIV></FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>But I change the setting according to
README :</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT face="Times New Roman" size=2>#define
CFG_MALLOC_LEN (CFG_ENV_SIZE +
4224*1024)</FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>#define
CONFIG_BZIP2
1</FONT></DIV></DIV>
<DIV><BR>
<DIV><FONT face="Times New Roman" size=2>The result when u-boot decompress the
image is still fail:</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT face="Times New Roman"
size=2>************************************************************</FONT></DIV></FONT></DIV>
<DIV><FONT face="Times New Roman" size=2>## Booting image at 10000000
...<BR> Image Name: 2.6.15 <BR> Image
Type: ARM Linux Kernel Image (bzip2 compressed)<BR>
Data Size: 1159790 Bytes = 1.1 MB<BR> Load
Address: 10c08000<BR> Entry Point: 10c08000<BR>
Verifying Checksum ... OK<BR> Uncompressing Kernel Image ... data
abort<BR>pc :
[<1108d098>] lr :
[<0008da5c>]<BR>sp : 10c3f9c8 ip :
0000009d fp : 000000a3<BR>r10: e38771e7 r9 :
10c3f9cd r8 : 10c3ffdc<BR>r7 : 003c8633 r6 :
0000009d r5 : 00037981 r4 : 00000001<BR>r3 :
e0b41de7 r2 : 10c6fca3 r1 : 000dbb8e r0 :
10c601a8<BR>Flags: Nzcv IRQs off FIQs off Mode
SVC_32<BR>Resetting CPU ...</FONT></DIV><FONT size=2>
<DIV><FONT face="Times New Roman"
size=2>************************************************************</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">Any one has any suggestion on how to solve
this ?</FONT></DIV>
<DIV><FONT face="Times New Roman">Anything wrong in my modification
???</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">Thanks for your patience~</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">Best Regards,</FONT></DIV>
<DIV><FONT face="Times New Roman">Clare</FONT></DIV></FONT></DIV></FONT>
<P>
<HR>
<P></P>-------------------------------------------------------------------------<BR>Take
Surveys. Earn Cash. Influence the Future of IT<BR>Join SourceForge.net's
Techsay panel and you'll get the chance to share your<BR>opinions on IT &
business topics through brief surveys -- and earn
cash<BR>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<P>
<HR>
<P></P>_______________________________________________<BR>U-Boot-Users mailing
list<BR>U-Boot-Users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/u-boot-users<BR></BLOCKQUOTE></BODY></HTML>