Skip to contentSkip to conversation

linux-pmac 2.2.10: media bay panics on PBG3

DISCUSSION Albrecht Dre� 3 participants 4 messages Jul 8, 1999 – Jul 9, 1999 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 2 lines · Albrecht Dreß
Quoted 2 lines
Kernel panic: kernel access of bad area pc c00e7d9c lr c00e7c9c address

F5021070

This pointer looks weird !

mac-io controllers are usually at F3xxxxxx or F4xxxxxx (left bay), I don't think F5xxxxxx is a correct value.

OK, here's some more strange information:

o compiling linux-pmac-2.2.10 from ftp.linuxppc.org (in user/paulus), i get crashes upon inserting the cd drive into the media bay, but the nfs server stuff works;

o compiling linux-2.2.10 from kernel.org WITH EXACTLY THE SAME .config, the media bay works fine, but the nfs server dies with the nfssrv error.

?????????Where are the inconsistencies???????

Albrecht.

Signature · 16 lines
+-----------------------------------------------------------------------------+
| Dr.-Ing. Albrecht Dre\ss                                     ----           |
| Max-Planck-Institut f\"ur Radioastronomie   |\       /      /o  o\          |
| Abteilung f\"ur Infrarot-Interferometrie    |  \    /      |  /   |         |
| Auf dem H\"ugel 69                          |    \ |        \ ---/          |
| D-53121 Bonn (Germany)          ------------+------+-------------------     |
|                                             |    / |                        |
| Phone (+49) 228 525 319                     |  /  /                         |
| Fax   (+49) 228 525 411                     |/   /                          |
| Mail  [email protected]                                                  |
+-------------- electrical engineers do it with less resistance --------------+

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]
#2 lore raw
Quoted 4 lines · On Thu, 8 Jul 1999, Albrecht [iso-8859-1] Dre� wrote:

o compiling linux-2.2.10 from kernel.org WITH EXACTLY THE SAME .config, the media bay works fine, but the nfs server dies with the nfssrv error.

?????????Where are the inconsistencies???????

Looks like it's time to bust out "diff" ... You could write a quick /bin/sh script that does something like:

for DFILE in find /usr/src/linux-1 -name \* -print; do
diff $DFILE /usr/src/linux-2/$DFILE # > $DFILE.diff
done

(uncomment the > $DFILE.diff if you want the diffs in a file instead of to stdout)

...although I bet they're just different ac releases of 2.2.10.

Thanks,
Pete

Signature · 4 lines
Peter F. Handel          "[The anti-Christ] also forced everyone, small and
[email protected]      great ... to receive a mark [smart card?] on his
www.cise.ufl.edu/~phandel right hand or on his forehead, so that no one could
FAX: (561) 619-8051       buy or sell unless he had the mark"-Revelation13:16
Quoted 5 lines
Quoted 1 line

You are perfectly free to believe what you want to, and so am I.

Actually, this turns out not to be the case. God does not give us the freedom to believe anything we wish. We are morally obligated to believe the truth. Doing anything else is a sin. You are not free to interpret the Bible anyway you wish. -DFL (Pretty neat, huh?)

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]

#3 lore raw
Quoted 4 lines · Peter Handel

Looks like it's time to bust out "diff" ... You could write a quick /bin/sh script that does something like:

Quoted 9 lines

for DFILE in find /usr/src/linux-1 -name \* -print; do
diff $DFILE /usr/src/linux-2/$DFILE # > $DFILE.diff
done

(uncomment the > $DFILE.diff if you want the diffs in a file instead of to stdout)

...although I bet they're just different ac releases of 2.2.10.

Even easier, use diff -r for recursive. to get the kind of output we are used to in rcs and general patch files, use the -u switch also.

so to compare 2 kernels or dirs in general, use
diff -ru dir.orij dir.new > dir.patch

and if you feel the need to ever apply these changes to another similar directory (like your personal changes to a 2.2.10 and try to apply to a 2.2.11) ,just change to that kernel's dir, and type patch -p1 < dir.patch and it will apply it as best it can.

--

Joseph Garcia
Madison, WI
[email protected]

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]

#4 lore raw
In reply to Peter Handel

Peter Handel wrote:
[snip]

Quoted 2 lines

Looks like it's time to bust out "diff" ... You could write a quick /bin/sh script that does something like:

[snip]

Quoted 1 line

...although I bet they're just different ac releases of 2.2.10.

There are LOTS of differences... Unfortunately, I do not understand that much of the kernel...

As a response to Ben's comment about the io addresses: I added a printk to mediabay.c to check the ide base addresses, and comparing kernel.org's and paulus' dmesg output, it results in:

2.2.10 from kernel.org:
ide0 at 0xf3020000-0xf3020007,0xf3020160 on irq 13
...
mediabay: 0: base=0xf3021000 irq=14 idx=-1
mediabay: 1: base=0xd080a000 irq=78 idx=-1

2.2.10 form the paulus dir:
ide0 at 0xf5020000-0xf5020007,0xf5020160 on irq 13
...
mediabay: 0: base=0xf5021000 irq=14 idx=-1
mediabay: 1: base=0xd280a000 irq=78 idx=-1

Checking the diffs, I noticed that in arch/ppc/pmac_setup.c and drivers/block/ide_pmac.c some code was adden in the "paulus" versions, especially some adds of "_IO_BASE". Might this be a source of the problems?

Thanks, Albrecht.

Signature · 16 lines
+-----------------------------------------------------------------------------+
| Dr.-Ing. Albrecht Dre\ss                                     ----           |
| Max-Planck-Institut f\"ur Radioastronomie   |\       /      /o  o\          |
| Abteilung f\"ur Infrarot-Interferometrie    |  \    /      |  /   |         |
| Auf dem H\"ugel 69                          |    \ |        \ ---/          |
| D-53121 Bonn (Germany)          ------------+------+-------------------     |
|                                             |    / |                        |
| Phone (+49) 228 525 319                     |  /  /                         |
| Fax   (+49) 228 525 411                     |/   /                          |
| Mail  [email protected]                                                  |
+-------------- electrical engineers do it with less resistance --------------+

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]