U-boot 1.1.3 support Bzip2 compression?
Hi all,
My platform is OMAP5912osk.
The setps I create the bzip2 kernel image are :
************************************************************
arm-linux-objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin bzip2 linux.bin
mkimage -A arm -O linux -T kernel -C bzip2 -a 0x10c08000 -e 0x10c08000 -n "2.6.15 " -d linux.bin.bz2 uImage
************************************************************
Then I put kernel image at 0x10000000.
According to the README of u-boot 1.1.3 :
----------------------------------------------------------------------------------------
- Compression support:
CONFIG_BZIP2
If this option is set, support for bzip2 compressed images is included. If not, only uncompressed and gzip compressed images are supported.
NOTE: the bzip2 algorithm requires a lot of RAM, so
the malloc area (as defined by CFG_MALLOC_LEN) should
be at least 4MB.
----------------------------------------------------------------------------------------
In /u-boot-1.1.3/include/configs/omap5912osk.h, if I use the original config :
#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
#define CONFIG_BZIP2 1
The result when u-boot decompress the image is :
************************************************************
## Booting image at 10000000 ...
Image Name: 2.6.15 Image Type: ARM Linux Kernel Image (bzip2 compressed) Data Size: 1159790 Bytes = 1.1 MB
Load Address: 10c08000
Entry Point: 10c08000
Verifying Checksum ... OK
Uncompressing Kernel Image ... BUNZIP2 ERROR -3 - must RESET board to recover
************************************************************
But I change the setting according to README :
#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 4224*1024)
#define CONFIG_BZIP2 1
The result when u-boot decompress the image is still fail:
************************************************************
## Booting image at 10000000 ...
Image Name: 2.6.15 Image Type: ARM Linux Kernel Image (bzip2 compressed) Data Size: 1159790 Bytes = 1.1 MB Load Address: 10c08000 Entry Point: 10c08000 Verifying Checksum ... OK Uncompressing Kernel Image ... data abort pc : [<1108d098>] lr : [<0008da5c>]
sp : 10c3f9c8 ip : 0000009d fp : 000000a3
r10: e38771e7 r9 : 10c3f9cd r8 : 10c3ffdc
r7 : 003c8633 r6 : 0000009d r5 : 00037981 r4 : 00000001
r3 : e0b41de7 r2 : 10c6fca3 r1 : 000dbb8e r0 : 10c601a8
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
************************************************************
Any one has any suggestion on how to solve this ?
Anything wrong in my modification ???
Thanks for your patience~
Best Regards,
Clare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060802/020da91a/attachment.htm
Quoted 2 lines · In message <00bf01c6b60d$f644c550$c9010165@ClareHuang> you wrote:
My platform is OMAP5912osk.
...
Quoted 1 line
In /u-boot-1.1.3/include/configs/omap5912osk.h, if I use the original > config :
Please try using current code, i. e. top of git repository.
Quoted 4 lines
------=_NextPart_000_00BC_01C6B650.FE532AA0
Content-Type: text/html; charset="big5"Content-Transfer-Encoding: quoted-printable
And NEVER post HTML on this list!!
Best regards,
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is a nanocentury.
- Tom Duff, Bell LabsHi Denk,
I use the current code from u-boot.git.
But the result is the same :
--------------------------------------------------------------------
U-Boot 1.1.4 (Aug 1 2006 - 07:40:21)
CPU: OMAP1611b at 96.0 MHz (DPLL1=96.0 MHz) Board: OSK5912 DRAM: 32 MB Flash: 32 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0
OMAP5912 OSK # tftpboot 0x10000000 uImage
Using MAC Address 00:00:00:11:22:33
TFTP from server 123.1.1.1; our IP address is 123.1.1.100 Filename 'uImage'.
Load address: 0x10000000
Loading: #################################################################
#################################################################
#################################################################
################################done
Bytes transferred = 1159854 (11b2ae hex)
OMAP5912 OSK # imi
## Checking Image at 10000000 ...
Image Name: 2.6.15 Image Type: ARM Linux Kernel Image (bzip2 compressed) Data Size: 1159790 Bytes = 1.1 MB
Load Address: 10c08000
Entry Point: 10c08000
Verifying Checksum ... OK
OMAP5912 OSK # run nfscmd_q
## Booting image at 10000000 ...
Image Name: 2.6.15 Image Type: ARM Linux Kernel Image (bzip2 compressed) Data Size: 1159790 Bytes = 1.1 MB Load Address: 10c08000 Entry Point: 10c08000 Verifying Checksum ... OK Uncompressing Kernel Image ... data abort pc : [<1108fc88>] lr : [<000841a9>]
sp : 10c3f948 ip : 00000056 fp : 000000bd
r10: 0ae90c29 r9 : 10c3f94d r8 : 10c3ffdc
r7 : 007c86b3 r6 : 00000056 r5 : 00037901 r4 : 00000001
r3 : 21dc2629 r2 : 10c6fcbd r1 : 000dbb8e r0 : 10c601a8
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
--------------------------------------------------------------------
Any kindly response is appreciated ~
Best Regards,
Clare
----- Original Message -----
From: "Wolfgang Denk" <[email protected]>
To: "Clare Huang" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, August 02, 2006 4:45 PM
Subject: Re: [U-Boot-Users] U-boot 1.1.3 support Bzip2 compression?
Quoted 2 lines · In message <00bf01c6b60d$f644c550$c9010165@ClareHuang> you wrote:
My platform is OMAP5912osk.
...
Quoted 2 lines
In /u-boot-1.1.3/include/configs/omap5912osk.h, if I use the original > config :
Please try using current code, i. e. top of git repository.
Quoted 4 lines
------=_NextPart_000_00BC_01C6B650.FE532AA0
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
And NEVER post HTML on this list!!
Best regards,
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is a nanocentury.
- Tom Duff, Bell Labs Quoted 2 lines · In message <00f401c6b638$e54a6680$c9010165@ClareHuang> you wrote:
I use the current code from u-boot.git.
Thanks.
Quoted 1 line
But the result is the same :
:-(
Quoted 5 lines
## Checking Image at 10000000 ...
Image Name: 2.6.15 Image Type: ARM Linux Kernel Image (bzip2 compressed) Data Size: 1159790 Bytes = 1.1 MBLoad Address:
10c08000
-------------------^^^^^^^^
Quoted 1 line
pc : [<1108fc88>] lr : [<000841a9>]
-------^^^^^^^^^^^^
What's your memory map?
Where exactly is your TEXT_BASE, and where is stack and the malloc arena?
The PC at the time of the crash was 0x1108fc88, so TEXT_BASE is somewhat lower. You wrote that you have CFG_MALLOC_LEN defined to be somewhat greater than 4224*1024 = 4.125 MB. The malloc arena is located below TEXT_BASE, so at least the area starting at
0x1108fc88 - 4224*1024 = 0x10c6fc88
is in use by U-Boot.
You uncompress the image to 0x10c08000 ==> BINGO! The areas overlap. When decompression starts, you start overwriting U-Boot data.
Try a lower image address.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Q: How many DEC repairman does it take to fix a flat ? A: Five; four to hold the car up and one to swap tires.
Hi Denk,
Thanks for your reply....
The memory map and other configures are all kept default of omap5912osk in u-boot. I only change two items in /include/configs/omap5912osk.h :
#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 4224*1024)
#define CONFIG_BZIP2 1
I try to lower the image address....
But it still fail :(
-----------------------------------------------------------------------
U-Boot 1.1.4 (Aug 1 2006 - 07:40:21)
CPU: OMAP1611b at 96.0 MHz (DPLL1=96.0 MHz) Board: OSK5912 DRAM: 32 MB Flash: 32 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 OMAP5912 OSK # bootm ## Booting image at 10000000 ... Image Name: 2.6.15 Image Type: ARM Linux Kernel Image (bzip2 compressed) Data Size: 1159790 Bytes = 1.1 MB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... BUNZIP2 ERROR -4 - must RESET board to
recover
-----------------------------------------------------------------------
Any suggestion about this error ?
Thanks and Best Regards,
Clare
hi all,
I am a newbie about u-boot , who have a good journal ? thanks very much !
----- Original Message -----
From: Clare Huang
To: u-boot-users at lists.sourceforge.net
Sent: Wednesday, August 02, 2006 4:30 PM
Subject: [U-Boot-Users] U-boot 1.1.3 support Bzip2 compression?
Hi all,
My platform is OMAP5912osk.
The setps I create the bzip2 kernel image are :
************************************************************
arm-linux-objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin bzip2 linux.bin
mkimage -A arm -O linux -T kernel -C bzip2 -a 0x10c08000 -e 0x10c08000 -n "2.6.15 " -d linux.bin.bz2 uImage
************************************************************
Then I put kernel image at 0x10000000.
According to the README of u-boot 1.1.3 :
----------------------------------------------------------------------------------------
- Compression support:
CONFIG_BZIP2
If this option is set, support for bzip2 compressed images is included. If not, only uncompressed and gzip compressed images are supported.
NOTE: the bzip2 algorithm requires a lot of RAM, so
the malloc area (as defined by CFG_MALLOC_LEN) should
be at least 4MB.
----------------------------------------------------------------------------------------
In /u-boot-1.1.3/include/configs/omap5912osk.h, if I use the original config :
#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
#define CONFIG_BZIP2 1
The result when u-boot decompress the image is :
************************************************************
## Booting image at 10000000 ...
Image Name: 2.6.15
Image Type: ARM Linux Kernel Image (bzip2 compressed)
Data Size: 1159790 Bytes = 1.1 MB Load Address: 10c08000
Entry Point: 10c08000
Verifying Checksum ... OK
Uncompressing Kernel Image ... BUNZIP2 ERROR -3 - must RESET board to recover
************************************************************
But I change the setting according to README :
#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 4224*1024)
#define CONFIG_BZIP2 1
The result when u-boot decompress the image is still fail:
************************************************************
## Booting image at 10000000 ...
Image Name: 2.6.15
Image Type: ARM Linux Kernel Image (bzip2 compressed)
Data Size: 1159790 Bytes = 1.1 MB
Load Address: 10c08000
Entry Point: 10c08000
Verifying Checksum ... OK
Uncompressing Kernel Image ... data abort
pc : [<1108d098>] lr : [<0008da5c>]
sp : 10c3f9c8 ip : 0000009d fp : 000000a3
r10: e38771e7 r9 : 10c3f9cd r8 : 10c3ffdc
r7 : 003c8633 r6 : 0000009d r5 : 00037981 r4 : 00000001
r3 : e0b41de7 r2 : 10c6fca3 r1 : 000dbb8e r0 : 10c601a8
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
************************************************************Any one has any suggestion on how to solve this ? Anything wrong in my modification ???
Thanks for your patience~
Best Regards,
Clare
------------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------------
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060802/f1e9bcbe/attachment.htm