Image download problem with gdb and DBI
Hi,
When I tried to download the kernel image it gives me the "bad gzipped data" error, I know that this is caused because the image is not there or the bootloader has an invalid address.
When I perform a "load" on gdb the output is:
Quoted 5 lines
Loading section .text, size
0x742clma0x800000Loading section .rodata, size0x175clma0x807430Loading section .data, size0x1b6clma0x809000Start address0x800000, load size 42740 Transfer rate: 170960 bits/sec, 502 bytes/write.
So the image area is not downloaded, I am assuming this is the cause of the error.
This are the steps I am executing:
- start gdb using arch/ppc/boot/zvmlinux
- set gdb to work with a remote target (bdi2000)
- load the program (produced the above messages)
- run the program
Other info:
custom board running on a MPC750
What I am doing wrong??
Does the image (vmlinux) should be downloaded apart from the bootloader? How I told gdb or bdi2000 to download the image area? Is there is a common recipe for this procedure?
Thanks in advance,
Freddy Lugo
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · In message <[email protected]> you wrote:
So the image area is not downloaded, I am assuming this is the cause of the error.
At least it's part of the problem. Another problem might be missing hardware initialization and parameter passing. Usually I let the firmware initialize the box and load the linux kernel...
Quoted 4 lines
What I am doing wrong??
Does the image (vmlinux) should be downloaded apart from the bootloader? How I told gdb or bdi2000 to
No.
Quoted 1 line
download the image area? Is there is a common recipe
The BDI2000 understands the Linux image format. Use the "load" command (with the telnet interface) and the "image" format type (see section 3.2.3 Part [HOST] of the BDI2000 manual).
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The only way to get rid of a temptation is to yield to it.
- Oscar Wilde
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 7 lines
At least it's part of the problem. Another problem might be missing
hardware initialization and parameter passing. Usually I let the
firmware initialize the box and load the linux kernel...
The FORMAT was already set to IMAGE on the bdi2000. Also I tried to make an autoload (LOAD AUTO) from the BDI and still the image is not downloaded or could not be found. On the gdb, the load doesn't download the image.
I let the MPC750 used the standard initialization provided on boot/head.S.
Since the kernel image is not found yet, the MMU is not set (AFAIK), what other initialization could be needed in order to permit the image download?
Sorry for all the bothering. I checked the list but I didn't find information on the issue.
Thanks,
Freddy Lugo
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/