U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Leeman <marc.leeman@barco.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] bzip2 compression
Date: Thu, 5 Aug 2004 10:57:46 +0200	[thread overview]
Message-ID: <20040805085746.GL14511@smtp.barco.com> (raw)


Did anyone get the bzip2 compression working for an 8245 processor?

I think I am having a bit of a problem here :-/

I changed the board configuration to include the following

#define CFG_MONITOR_LEN         0x00030000
#define CFG_MONITOR_BASE        TEXT_BASE
#define CFG_INIT_RAM_ADDR CFG_SDRAM_BASE + CFG_MONITOR_LEN
#define CFG_INIT_RAM_END   0x2F00  
#define CFG_GBL_DATA_SIZE  128  
#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
#define CFG_INIT_SP_OFFSET  CFG_GBL_DATA_OFFSET

(copied from another 8245 board) and set 
#define CONFIG_BZIP2

I also set the size of the MALLOC section to

#ifdef CONFIG_BZIP2
#define CFG_MALLOC_LEN ( 2500 * 1024)  
#else
#define CFG_MALLOC_LEN (512 << 10)    
#endif

Even though my requested malloc size (2500) falls in the 12M
(CFG_INIT_RAM_END), booting a gzip compressed file works fine; while a
dump after trying to boot a bzip2 compressed file shows nothing (memory
is empty).

The same with 4 MB (unless I am mistaking, the 'slower' alg bzip2
algorithm works?).

I am certain that I am doing something stupid :) but still, ... Any
pointers?

Btw, I need the bzip2 compression because I only get 768 M in the kernel
partition and repartitioning the flash would break backwards
compatiblity.

The 2.6.7 kernel jumped to some 800 M (up from 550 or so when compared
to the 2.4.24). After all the warm encouragements over the last weeks
towards the 2.6; I decided to take the jump :)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040805/3b9be9fc/attachment.pgp 

             reply	other threads:[~2004-08-05  8:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05  8:57 Marc Leeman [this message]
2004-08-05 10:14 ` [U-Boot-Users] bzip2 compression Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040805085746.GL14511@smtp.barco.com \
    --to=marc.leeman@barco.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox