Re: MBX boot loader on a MPC8260 custom board

2 messages, 2 authors, 2002-03-21 · open the first message on its own page

Re: MBX boot loader on a MPC8260 custom board

From: Wolfgang Denk <hidden>
Date: 2002-03-21 11:18:02

Dear Julien,

in message [off-list ref] you wrote:
the kernel we have build is based on the ADS8260 board which is quite
similar to our board.
Well, is your firmware also similar  to  that  on  the  ADS8260?  The
bootstrap loader provides the interface between firmware and kernel -
so it must match BOTH sides for a given board.
the boot-loader we use is the "mbx" boot loader which come with the
Linux kernel tree.
Ummm... did you adap this for your board?
- at some point in this function "serial_init" , the PC (program
counter) begins to count downwards !!! for exemple ( 0x400000 ...
0x3ffffc ... 0x3fff8 ...  )
This just means you crashed the CPU.
another point is: when debugging C source code (in emacs + gdb),
we can see that the programms jumps from one point to another (some
times backward) , not following the logical flow of the C source code
.Is that normal ????
With optimized code, yes.  The  compiler  does  several  things  when
optimizing  which  can change the order of the assembler instructions
from what you might expect when reading/writing  C  code.  The  "jump
around" is the consequence.
what could be the reason of such behaviour ???
Optimization performed by the compiler.
does someone here have an idea for our problem ?????
Well, my recommendation is to get rid of all this stuff in the mbxbot
directory and use PPCBoot as  firmware  instead;  but  I'm  obviously
biased, and YMMV.

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"He was so narrow minded he could see through  a  keyhole  with  both
eyes ..."

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

Re: MBX boot loader on a MPC8260 custom board

From: Julien Eyries <hidden>
Date: 2002-03-21 15:30:58

Dear Wolfgang,


first let me thank you for your help
we have found the reason for our problem :
it was some specific ADS8260 code which crashe the CPU
on our board . we just had to removed it to have the kernel booting.
even if we see the kernel hanging up a few time latter,
while initializing the FEC , we are now very very happy to see some log
messages from the kernel on the console !!!

Well, my recommendation is to get rid of all this stuff in the mbxbot
directory and use PPCBoot as  firmware  instead;  but  I'm  obviously
biased, and YMMV.
Yes  :-) . i had a look at PPCboot which i m sure is very cool ;
and seems to support a lot of commercial boards.

anyway for the moment, it is just O.K. for us if we can do all the
things we have to do, like loading our code via TFTP, debugging and so
on by using our BDI-2000 probe.


Greetings,

Julien.




--
Julien Eyries
R&D engineer
Thales Broadcast & Multimedia (ex-thomcast)
email: julien.eyries@thales-bm.com
fax: 33(0) 1 34 90 31 10
tel: 33(0) 1 34 90 31 01


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help