All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] bzip2 compression
@ 2004-08-05  8:57 Marc Leeman
  2004-08-05 10:14 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Leeman @ 2004-08-05  8:57 UTC (permalink / raw)
  To: u-boot


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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] bzip2 compression
  2004-08-05  8:57 [U-Boot-Users] bzip2 compression Marc Leeman
@ 2004-08-05 10:14 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2004-08-05 10:14 UTC (permalink / raw)
  To: u-boot

In message <20040805085746.GL14511@smtp.barco.com> you wrote:
> 
> Did anyone get the bzip2 compression working for an 8245 processor?

Didn't try that yet...

> 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 :)

Also be prepared that your software will run some 10...20% slower in 2.6.

Guess why we're sticking with 2.4 for at least the rest of the year.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"A dirty mind is a joy forever."                       - Randy Kunkee

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-05 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05  8:57 [U-Boot-Users] bzip2 compression Marc Leeman
2004-08-05 10:14 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.