<!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>&nbsp;&nbsp;&nbsp; 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>&nbsp;</DIV>
  <DIV><FONT face="Times New Roman" size=2>My platform is 
  OMAP5912osk.&nbsp;</FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2>The setps I create the bzip2 kernel 
  image&nbsp;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&nbsp;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>&nbsp;</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>&nbsp;&nbsp;CONFIG_BZIP2</FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Times New Roman" size=2>&nbsp;&nbsp;If this option is set, 
  support for bzip2 compressed<BR>&nbsp;&nbsp;images is included. If not, only 
  uncompressed and gzip<BR>&nbsp;&nbsp;compressed images are 
  supported.</FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face="Times New Roman" size=2>&nbsp;&nbsp;NOTE: the bzip2 algorithm 
  requires a lot of RAM, so<BR>&nbsp;&nbsp;the malloc area (as defined by 
  CFG_MALLOC_LEN) should<BR>&nbsp;&nbsp;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&nbsp;: </FONT></FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2>#define 
  CFG_MALLOC_LEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (CFG_ENV_SIZE + 
  128*1024)</FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2>#define 
  CONFIG_BZIP2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  1</FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2></FONT>&nbsp;</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>&nbsp;&nbsp; Image Name:&nbsp;&nbsp; 2.6.15&nbsp;<BR>&nbsp;&nbsp; Image 
  Type:&nbsp;&nbsp; ARM Linux Kernel Image (bzip2 compressed)<BR>&nbsp;&nbsp; 
  Data Size:&nbsp;&nbsp;&nbsp; 1159790 Bytes =&nbsp; 1.1 MB<BR>&nbsp;&nbsp; Load 
  Address: 10c08000<BR>&nbsp;&nbsp; Entry Point:&nbsp; 10c08000<BR>&nbsp;&nbsp; 
  Verifying Checksum ... OK<BR>&nbsp;&nbsp; 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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (CFG_ENV_SIZE + 
  4224*1024)</FONT></DIV>
  <DIV><FONT face="Times New Roman" size=2>#define 
  CONFIG_BZIP2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  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>&nbsp;&nbsp; Image Name:&nbsp;&nbsp; 2.6.15&nbsp;<BR>&nbsp;&nbsp; Image 
  Type:&nbsp;&nbsp; ARM Linux Kernel Image (bzip2 compressed)<BR>&nbsp;&nbsp; 
  Data Size:&nbsp;&nbsp;&nbsp; 1159790 Bytes =&nbsp; 1.1 MB<BR>&nbsp;&nbsp; Load 
  Address: 10c08000<BR>&nbsp;&nbsp; Entry Point:&nbsp; 10c08000<BR>&nbsp;&nbsp; 
  Verifying Checksum ... OK<BR>&nbsp;&nbsp; Uncompressing Kernel Image ... data 
  abort<BR>pc : 
  [&lt;1108d098&gt;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lr : 
  [&lt;0008da5c&gt;]<BR>sp : 10c3f9c8&nbsp; ip : 
  0000009d&nbsp;&nbsp;&nbsp;&nbsp; fp : 000000a3<BR>r10: e38771e7&nbsp; r9 : 
  10c3f9cd&nbsp;&nbsp;&nbsp;&nbsp; r8 : 10c3ffdc<BR>r7 : 003c8633&nbsp; r6 : 
  0000009d&nbsp;&nbsp;&nbsp;&nbsp; r5 : 00037981&nbsp; r4 : 00000001<BR>r3 : 
  e0b41de7&nbsp; r2 : 10c6fca3&nbsp;&nbsp;&nbsp;&nbsp; r1 : 000dbb8e&nbsp; r0 : 
  10c601a8<BR>Flags: Nzcv&nbsp; IRQs off&nbsp; FIQs off&nbsp; 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>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face="Times New Roman">Thanks for your patience~</FONT></DIV>
  <DIV><FONT face="Times New Roman"></FONT>&nbsp;</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 &amp; 
  business topics through brief surveys -- and earn 
  cash<BR>http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;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>