linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problems with MMU: address translation for 0xXXXXXXXX failed
@ 2003-05-13  4:19 Jeremy Bowen
  2003-05-13  5:07 ` Dan Malek
  2003-05-13  7:55 ` Wolfgang Denk
  0 siblings, 2 replies; 13+ messages in thread
From: Jeremy Bowen @ 2003-05-13  4:19 UTC (permalink / raw)
  To: 'Linux PPC'


I'm trying to get a BDI2000 (firmware v1.09) working in order to debug a
kernel module.
I'm using an Embedded Planet RPXlite MPC850 board running kernel v2.4.20
from kernel.org with CONFIG_BDI_SWITCH=y and CONFIG_COMPILE_OPTIONS="-g
-ggdb"
in my .config

I have compiled gdb v5.3 with --host=i686-pc-linux-gnu
--target=powerpc-linux.

The relevant bit of my BDI config file is here:
=====================================================================
WSPR    796             0x00000000      ;;M_TWB: invalibdate TWB
WM32    0x000000f0      0x00000000      ;;invalidate page table base
(PTBASE)

[TARGET]
CPUTYPE     MPC800
CPUCLOCK    50000000		;the CPU clock rate after processing the
init list
WORKSPACE   0x00000000		;workspace in target RAM for fast download
BDIMODE     AGENT       	;the BDI working mode (LOADONLY | AGENT)
BREAKMODE   SOFT	      	;SOFT or HARD, HARD uses PPC hardware
breakpoints
MMU XLAT                      ; Enable address translation
======================================================================

I have scanned the archives of this mailing list and have seen a number of
messages relating to getting the BDI working with the MMU but I don't seem
to be able to get this working on my system.

My kernel is stored in flash and booted by u-boot v0.3.0

I start the system by telneting into the BDI and issuing:
BDI>bi 0xc0000000 0xc00fffff
BDI>go

U-boot starts, loads the kernel and it is decompressed. At this point the
system stops. I then do the following:

BDI>ci
BDI>mm 0xf0 0xc014f000

(gdb) target remote 192.168.240.242:2001
Remote debugging using 192.168.240.242:2001
0xc00020f0 in start_here()
(gdb) c
Continuing.

Everything is OK until after I get a login prompt. After I log in, I don't
seem to be able to debug successfully. I'm wanting to break on a call from a
user-space program to a kernel function. On executing the program that
triggers the kernel breakpoint I get the following error in the telnet
session to the BDI

*** MMU: address translation for 0xC400E69C failed
...
*** MMU: address translation for 0xC0A05EF0 failed
etc..

and in dgb:

(gdb)
Cannot remove breakpoints because program is no longer writeable.
It might be running in another process.
Further execution is probably impossible.

Breakpoint 3, m8xx_cpm_dpalloc (size=16) at commproc.c:216
(gdb) bt
Cannot access memory at address 0xc0a05ef0

Am I missing something obvious ? Is this the right way to go about debugging
a loadable module ? Any help would be gratefully appreciated.

Cheers

Jeremy


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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Problems with MMU: address translation for 0xXXXXXXXX failed
@ 2003-05-14 21:15 Jeremy Bowen
  2003-05-14 21:46 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Jeremy Bowen @ 2003-05-14 21:15 UTC (permalink / raw)
  To: 'Linux PPC'


Success!! Thanks for the replies. Here's a brief summary of what was
necessary to get things working.

> > I'm trying to get a BDI2000 (firmware v1.09) working in
> > order to debug a kernel module.
> > I'm using an Embedded Planet RPXlite MPC850 board running
> > kernel v2.4.20
> ...
> > Am I missing something obvious ? Is this the right way to
> > go about debugging
> > a loadable module ? Any help would be gratefully appreciated.
>
> There were a couple of changes  /  extensions  to  the  MMU  support.
> Firmware version 1.09 is pretty old (Aug 2001). You might want to try
> a  more  recent one.

OK. I couldn't find any firmware on the Abatron web-site but fortunately
I've been sent v1.12 from a friend. This seems to make all the difference.

I was able to make some minor progress with the addition of "PTBASE 0xF0" to
my config file (as suggested by Dan) however the key seems to have been the
upgraded firmware in the BDI2000.

I'm not entirely sure the soft breakpoints are working correctly yet (I
suspect they probably are) but anyway I can make sufficient progress using
hard breakpoints for now.

Thanks for the assistance.


--
Jeremy Bowen
Senior Software Engineer
OPEN Networks Ltd
Wellington
New Zealand

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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Problems with MMU: address translation for 0xXXXXXXXX failed
@ 2003-05-14 23:33 Jeremy Bowen
  2003-05-14 23:45 ` Wolfgang Denk
  2003-05-14 23:52 ` Wolfgang Denk
  0 siblings, 2 replies; 13+ messages in thread
From: Jeremy Bowen @ 2003-05-14 23:33 UTC (permalink / raw)
  To: 'Wolfgang Denk'; +Cc: 'Linux PPC'


> Tell your friend that he did something illegal, and be aware that you
> are now using pirated software.

No! Hang on a minute. I object to your accusations of me being a pirate.

There is absolutely nothing anywhere that would indicate that upgrading the
firmware is illegal. There are no EULA's in the software or any mention of
this in any manuals and I can find nothing on the web-site. There is nothing
that I have to "click" to agree with when installing new firmware. The
firmware is distributed with no accompanying restrictions.

> The Abatron firmware is available only if you pay  for  the  license,
> then  you  will get one your of updates. After that, you can purchase
> an extension for the next year for 15% or the original price for  the
> license.

Is this like MicroSoft Licensing V6 ?? "You've bought the product but now
you have to keep paying us so you can use it!!"

This is a piece of hardware that I've bought and paid for. I cannot operate
the hardware that I own, without the firmware so the firmware is integral to
the device. If the firmware has bugs in it, should I have to pay for
bug-fixes ?

If that is, in fact, Abatron's business model then I think it sucks.

Upgrading the firmware/BIOS is commonplace in virtually any electronic
device these days. 98% of manufacturers make their BIOS updates available
free. Upgrading the firmware here allowed the product to work correctly.

As it turns out, my company does recieve updates from Abatron which I simply
hadn't applied, but again there is nothing in either the zip file or the
email that indicates anything about any restrictions on the use of the
firmware.

I don't believe I've done anything wrong and I would do the same thing next
time.

If you have any evidence to the contrary, please provide it before spreading
accusations.

Jeremy

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

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <DEA23DB61B62D4118B5900508B323B84012CC7D7@OPENMAIL>]
[parent not found: <DEA23DB61B62D4118B5900508B323B84012CC7D8@OPENMAIL>]
* RE: Problems with MMU: address translation for 0xXXXXXXXX failed
@ 2003-05-15  3:43 Jeremy Bowen
  2003-05-15  6:34 ` Dan Malek
  0 siblings, 1 reply; 13+ messages in thread
From: Jeremy Bowen @ 2003-05-15  3:43 UTC (permalink / raw)
  To: 'Linux PPC'


> You may be wrong again.
> Are you absolutely sure that it's  a  bug  in  the  firmware?

The old firmware doesn't work. The new firmware does. I'd call that a bug.

> Please
> consider  the possibility that the firware was designed for a version
> of the Linux kernel which showed a  different  behaviour.  You  might
> want  to  check  when  the PTBASE support first appeared in the Linux
> kernel and relate this to BDI2000 firmware releases.

>From the BDI release notes it appears that this was corrected in BDI2000
firmware v1.10 (2 Nov 2001) - clearly listed as a bug-fix. This corresponds
approximately with the release of Linux kernel v2.4.13

BDI v1.09 (11 Aug 2001) release notes indicates support for changed Linux
MMU behaviour coinciding with Linux kernel v2.4.7/8

Therefore, as v1.09 doesn't work on my kernel and v1.12 does, this fix in
v1.10 was made to correct behaviour that has been present in kernels since
v2.4.12 if not before.

I suspect that had I upgraded only to v1.10 I would also have solved the
issues as the release notes do not indicate any bug-fixes since v1.10

> Let's put it straight: either you (or  your  company)  payed  for  an
> extension  of  your  software  support,  or  your  copy of the bdiGDB
> software version 1.12 is illegal. Period.

Wrong. You have been unable to demonstrate anything illegal.
I still believe I'm completely and entirely innocent here. I have acted in
good faith and cannot find any evidence of a license agreement you say I've
breached.

* I can find no documentation anywhere about what the "software support"
consists of or what it entitles me to. Email ? 24 hour phone ? Feature
requests ? Updates ?

* There is nothing to indicate that firmware upgrades are time limited to
only 1 year. Nor on the other hand is there anything to indicate that I'm
entitled to any firmware updates at all. There is simply no information
whatsoever.

* The only licensing agreement anywhere was apparently on the "packaging" of
the original floppy (long since discarded), which could easily be argued
applied only to the software on that floppy. (Shrinkwrap licenses are a
whole other issue anyway)

* There is nothing to indicate that the firmware updates are licensed
software items nor that they are only available to purchasers of extended
licenses.

* There is nothing on the Abatron web-site which indicates that extended
support is even available to be purchased. We received no information to
this effect when we purchased the BDI2000's either.

* I have received firmware updates in their original form and without
modification and there is nothing either accompanying them nor contained
within to suggest that their use is restricted.

* Driver/BIOS/firmware updates are standard industry practices and, without
a single exception I can think of, are provided free and unencumbered by
restrictive licenses. I had no reason (nor any evidence) to think that this
should be any different for the BDI.

* Wolfgang, you even told me to use a newer version of the firmware without
indicating any issues with licenses.

All of the above may well be an oversight by Abatron but for you to suggest
that what I have done is illegal is just plain wrong. All we have is your
un-supported opinion that I'm not supposed to be running v1.12 firmware
(which I reject).

It is Abatron's responsibility to ensure that, if their software has license
restrictions, these are distributed with the software, but as there are no
such restrictions, I fail to see what you're complaining about.

Jeremy Bowen


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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-15  6:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-13  4:19 Problems with MMU: address translation for 0xXXXXXXXX failed Jeremy Bowen
2003-05-13  5:07 ` Dan Malek
2003-05-13  8:08   ` Wolfgang Denk
2003-05-13  7:55 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-05-14 21:15 Jeremy Bowen
2003-05-14 21:46 ` Wolfgang Denk
2003-05-14 23:33 Jeremy Bowen
2003-05-14 23:45 ` Wolfgang Denk
2003-05-14 23:52 ` Wolfgang Denk
     [not found] <DEA23DB61B62D4118B5900508B323B84012CC7D7@OPENMAIL>
2003-05-15  0:19 ` Wolfgang Denk
     [not found] <DEA23DB61B62D4118B5900508B323B84012CC7D8@OPENMAIL>
2003-05-15  0:23 ` Wolfgang Denk
2003-05-15  3:43 Jeremy Bowen
2003-05-15  6:34 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).