Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Power PC bootloader - issue in calling function from other files

There are 2 messages in this thread.

You are currently looking at messages 0 to 2.

Power PC bootloader - issue in calling function from other files - jagan_cp - 10:12 20-08-07



Hi,

I am developing a bootloader for Power PC.
1. The bootloader is comprised of bootstrap and bootloader application.
2. The bootstrap runs from the flash, copies the bootlaoder to the RAM and
runs the bootloader from the RAM.
3. The bootloader needs to uncompress the Main Image in the flash and run
the main image from RAM.

I am sucessful in the bootstrap and the bootloader to some extent.

I have an issue while executing the zlib inflate routines from the Vxworks
tool chain.

The bootloader is made of 2 object files bootloader.c and inflate.c.
The bootloader.c calls infalte() in inflate.c
I am able to link and run the bootloader, but the call to inflate fails.
The execution does not reach the inflate() on calling it.

I tried a work around, move the inflate()definition in the inflate.c as
the first function definition in inflate.c. 
This works !!!. But further call from infalte() to other functions in
infalte.c() have the same issue.

I am using the VxWorks GNU compiler for compiling and building my
sources.

Please help me in this regard.


Regards,
Jagan 






Re: Power PC bootloader - issue in calling function from other files - ratemonotonic - 04:28 21-08-07

On Aug 20, 3:12 pm, "jagan_cp" <jagan...@hotmail.com> wrote:
> Hi,
>
> I am developing a bootloader for Power PC.
> 1. The bootloader is comprised of bootstrap and bootloader application.
> 2. The bootstrap runs from the flash, copies the bootlaoder to the RAM and
> runs the bootloader from the RAM.
> 3. The bootloader needs to uncompress the Main Image in the flash and run
> the main image from RAM.
>
> I am sucessful in the bootstrap and the bootloader to some extent.
>
> I have an issue while executing the zlib inflate routines from the Vxworks
> tool chain.
>
> The bootloader is made of 2 object files bootloader.c and inflate.c.
> The bootloader.c calls infalte() in inflate.c
> I am able to link and run the bootloader, but the call to inflate fails.
> The execution does not reach the inflate() on calling it.
>
> I tried a work around, move the inflate()definition in the inflate.c as
> the first function definition in inflate.c.
> This works !!!. But further call from infalte() to other functions in
> infalte.c() have the same issue.
>
> I am using the VxWorks GNU compiler for compiling and building my
> sources.
>
> Please help me in this regard.
>
> Regards,
> Jagan

Hi ,
With info provided by you it looks like a linker script file error
i.e. Virtual load address /logical load address problem.

BR
Rate