CUSTOM MP860 PowerQuiccMH BOARD-Need help to program Flash

3 messages, 3 authors, 2000-02-09 · open the first message on its own page

CUSTOM MP860 PowerQuiccMH BOARD-Need help to program Flash

From: Sebastien Articlaux <hidden>
Date: 2000-02-09 09:13:31

Hello all PPC man,

I am a student working for MATRA SI in electronic
section
We want to run linuxppc on a custom MPC860
PowerQuiccMH board diskless,networless
with 64Mo DRAM and 4Mo Flash.

We use EST VisionProbe to debbug and download files
into Flash and RAM.

Sebastien Tadeoni who worked before me had built
vmlinuw.initrd with
embedded 2.2.5 and now my job is to download it to the
Flash and try to boot...

our Flash start at 0x0 to 0x3FFFFF
    RAM   start at 0x8000000

But my problem is that when I convert vmlinux.initrd
(1.11 Mega, ELF Format) to a  *.BIN
(Our emulator EST Vision Probe convert it to a BIN
format before downloading into the Flash)
there is only 26K of program code in the Flash which
start at 0x100000

I try to add some BIAS before download but it's the
same.

Do you know what?

How can be sure that my file vmlinux.initrd(ELF
Format) and my .BIN are correct ?

I think .BIN is not good but i'm not sure...

What do you think about that?

Thank you in advance for your help.

Sebastien ARTICLAUX


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: CUSTOM MP860 PowerQuiccMH BOARD-Need help to program Flash

From: sungyeon <hidden>
Date: 2000-02-09 09:27:55

I'v converted ELF -> s rec -> est bin format
and works fine!!

----- Original Message -----
From: "Sebastien Articlaux" <redacted>
To: <redacted>
Sent: Wednesday, February 09, 2000 6:13 PM
Subject: CUSTOM MP860 PowerQuiccMH BOARD-Need help to program Flash

Hello all PPC man,

I am a student working for MATRA SI in electronic
section
We want to run linuxppc on a custom MPC860
PowerQuiccMH board diskless,networless
with 64Mo DRAM and 4Mo Flash.

We use EST VisionProbe to debbug and download files
into Flash and RAM.

Sebastien Tadeoni who worked before me had built
vmlinuw.initrd with
embedded 2.2.5 and now my job is to download it to the
Flash and try to boot...

our Flash start at 0x0 to 0x3FFFFF
    RAM   start at 0x8000000

But my problem is that when I convert vmlinux.initrd
(1.11 Mega, ELF Format) to a  *.BIN
(Our emulator EST Vision Probe convert it to a BIN
format before downloading into the Flash)
there is only 26K of program code in the Flash which
start at 0x100000

I try to add some BIAS before download but it's the
same.

Do you know what?

How can be sure that my file vmlinux.initrd(ELF
Format) and my .BIN are correct ?

I think .BIN is not good but i'm not sure...

What do you think about that?

Thank you in advance for your help.

Sebastien ARTICLAUX


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: CUSTOM MP860 PowerQuiccMH BOARD-Need help to program Flash

From: Steve Rossi <hidden>
Date: 2000-02-09 15:35:28

Hi -
I'm no expert on embedded linux - just learning myself, but
I have been working with the EST system for some time.
You're right the *.BIN file will not work. It assumes that it
is reading an ELF file and tries to parse out certain sections
and disregards the rest.
The vmlinux image is indeed and ELF image, but it only
has a small program section - which loads the real image into
memory and then decompresses it and boots the kernel.
(This may not be 100% accurate, but its how I understand it.)
The point is, the real kernal image is contained in a data section
of the vmlinux binary which EST's convert ignores.
I believe that what you really need to do is to get that ENTIRE vmlinux
binary into FLASH, bit for bit, as is - without any mangling
by EST's convert. I think (from what I've heard, not from experience)
that the bootloader is smart enough to relocate the kernal
image to RAM when it boots.
I've written a really simple stupid program that takes any binary
file (i.e. vmlinux) and converts it to a BIN file that EST can
use.
All it really does is add a header to a binary file so the EST tools
can recognize it and knows where to put it. The header simply
specifies the starting address of the data. In your case - your
starting address will be the beginning of FLASH. I've attached
the code for that. This may not get you all the way there - there
may be other issues with FLASH booting that I don't understand,
but this may help.

Steve




Sebastien Articlaux wrote:
Hello all PPC man,

I am a student working for MATRA SI in electronic
section
We want to run linuxppc on a custom MPC860
PowerQuiccMH board diskless,networless
with 64Mo DRAM and 4Mo Flash.

We use EST VisionProbe to debbug and download files
into Flash and RAM.

Sebastien Tadeoni who worked before me had built
vmlinuw.initrd with
embedded 2.2.5 and now my job is to download it to the
Flash and try to boot...

our Flash start at 0x0 to 0x3FFFFF
    RAM   start at 0x8000000

But my problem is that when I convert vmlinux.initrd
(1.11 Mega, ELF Format) to a  *.BIN
(Our emulator EST Vision Probe convert it to a BIN
format before downloading into the Flash)
there is only 26K of program code in the Flash which
start at 0x100000

I try to add some BIAS before download but it's the
same.

Do you know what?

How can be sure that my file vmlinux.initrd(ELF
Format) and my .BIN are correct ?

I think .BIN is not good but i'm not sure...

What do you think about that?

Thank you in advance for your help.

Sebastien ARTICLAUX
--
-------------------------------------------------------
Steven K. Rossi                     srossi@ccrl.mot.com
Staff Engineer
Multimedia Communications Research Laboratory
Motorola Labs
-------------------------------------------------------

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help