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