Skip to contentSkip to conversation

New boot attempts on a MVME2431

DISCUSSION Simone Piccardi 3 participants 6 messages Apr 19, 1999 – Apr 23, 1999 Network drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I'm still trying to boot LinucPPC on this board. Thanks to new kernel images provided by G. Paubert in his site I could obtain some new results (not a success but at least this time the boot is going a bit further).

The board has no drive, so I tried two versions of the kernel image: the initrd and the nfsroot, (this last try was to see if something different happens, becauase I do not have a NFS root tree for the PPC).

When I boot the zImage.initrd-2.2.4 kernel I get these messages:

------ CLIP HERE ------

Network Booting from: DEC21143, Controller 0, Device 0 Device Name: /pci@80000000/pci1011,19@e,0:0,0
Loading: zimage

Client IP Address      = 192.84.146.131
Server IP Address      = 192.84.146.24
Gateway IP Address     = 0.0.0.0

Subnet IP Address Mask = 255.255.255.0
Boot File Name = zimage
Argument File Name =

Network Boot File load in progress... To abort hit <BREAK>

Bytes Received =&1387916, Bytes Loaded =&1387916
Bytes/Second =&346979, Elapsed Time =4 Second(s)

Residual-Data Located at: $01F78000

Model: (e2)
Serial: MOT0359E66
Processor/Bus frequencies (Hz): 350006560/100001144 Time Base Divisor: 4000
Original MSR: 3040
Original HID0: 80a4
Original R31: 0

PCI: Probing PCI hardware

Linux/PPC load: console=ttyS0

Uncompressing the kernel...Kernel at 0x00000000, size=0x158ae4 Initrd at 0x00231000, size=0xb93a7
Residual data at 0x00159000
Command line at 0x00160000
done
Now booting...
PReP architecture
Total memory = 32MB; using 128kB for hash table (at c0160000) Linux version 2.2.4 (root@vcorr1) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2
release)) #32 Fri Apr 16 15:02:16 WET DST 1999
OpenPIC found at d1000000.
Boot arguments: console=ttyS0
OpenPIC Version ? (2 CPUs and 17 IRQ sources) at d1000000 OpenPIC timer frequency is 12500243 Hz
time_init: decrementer frequency = 998700000/60 (15MHz) Calibrating delay loop... 465.31 BogoMIPS
Memory: 30184k available (896k kernel code, 856k data, 88k init) [c0000000,c2000
000]
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Setting bridge 0
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Starting kswapd v 1.5

------ END CLIP ------

and here it freeze and I have t reset the board.

My questions are:
I have to give some parameter at the boot prompt?
And the ram disk image that the README said to be inside the file initrd.gz
is still inside the kernel image or it must be loade from this file?

It seems quite strange to me also the message:
OpenPIC Version ? (2 CPUs and 17 IRQ sources) at d1000000 Why 2 CPU?

The results of the zImage.nfsroot boot was obiuvsly different:

------ CLIP HERE ------

PPC4-Bug>nbo
Network Booting from: DEC21143, Controller 0, Device 0 Device Name: /pci@80000000/pci1011,19@e,0:0,0
Loading: zimage

Client IP Address      = 192.84.146.131
Server IP Address      = 192.84.146.24
Gateway IP Address     = 0.0.0.0

Subnet IP Address Mask = 255.255.255.0
Boot File Name = zimage
Argument File Name =

Network Boot File load in progress... To abort hit <BREAK>

Bytes Received =&469612, Bytes Loaded =&469612
Bytes/Second =&234806, Elapsed Time =2 Second(s)

Residual-Data Located at: $01F78000

Model: (e2)
Serial: MOT0359E66
Processor/Bus frequencies (Hz): 350002752/99999904 Time Base Divisor: 4000
Original MSR: 3040
Original HID0: 80a4
Original R31: 0

PCI: Probing PCI hardware

Linux/PPC load: console=ttyS0 root=/dev/nfs

Uncompressing the kernel...Kernel at 0x00000000, size=0x1006a4 Initrd at 0x00000000, size=0x0
Residual data at 0x00101000
Command line at 0x00108000
done
Now booting...
PReP architecture
Total memory = 32MB; using 128kB for hash table (at c0120000) Linux version 2.2.4 (root@vcorr1) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2
release)) #33 Fri Apr 16 15:20:21 WET DST 1999
OpenPIC found at d1000000.
Boot arguments: console=ttyS0 root=/dev/nfs
OpenPIC Version ? (2 CPUs and 17 IRQ sources) at d1000000 OpenPIC timer frequency is 12500243 Hz
time_init: decrementer frequency = 998700000/60 (15MHz) Calibrating delay loop... 465.31 BogoMIPS
Memory: 31280k available (652k kernel code, 776k data, 60k init) [c0000000,c2000
000]
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Setting bridge 0
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Starting kswapd v 1.5
Serial driver version 4.27 with no serial options enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
eth0: DC21143 at 0x11100 (PCI bus 0, device 14), h/w address 08:00:3e:28:28:00,
and requires IRQ18 (provided by PCI BIOS).
de4x5.c:V0.543 1998/12/30 [email protected]
NIP: C000FDE0 XER: 00000000 LR: C000FDC4 REGS: c0197ce0 TRAP: 0300
MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0196000[1] 'swapper' mm->pgd c00ba000 Last syscall: 120 last math 00000000
GPR00: 00001032 C0197DD0 C0196000 00000001 00008000 00000000 00038C98 00000001
GPR08: 00000001 00007800 80000000 000001E0 0000001F 01F720A0 00000000 00000000
GPR16: 00000000 00000000 20000002 00000000 00000000 E0001FFE 00000000 00000000
GPR24: 00000000 00000000 C00E0000 000000FA 00000000 00009032 C011F76C C0197DD0
Call backtrace:
00000000 C009BFD4 C0095C38 C00945AC C00942E4 C0056300 C0057368 C00D5608 C00D6300 C00D4DE4 C00D678C C00CB714 C0004044 C000870C Instruction DUMP: 2c090000 912b0000 41820008 <91690004> 3b800001 48000008 3b
800000 73aa8000 38000000

Kernel panic: kernel access of bad area pc c000fde0 lr c000fdc4 address

7804 tsk
swapper/1

------ END CLIP ------

My question are:
Is the way I gave the boot parameter (root=/dev/nfs) right? I exported an empty /home/ppc directory on the same PC that I used as tftp server, but how the board can recognize just this directory? And what files I have to put in this directory?

Many thanks to everybody for the help!

Ciao

Signature · 8 lines
Simone Piccardi
Microsoft is NOT the answer. Microsoft is the Question.
The answer is: "NO!"

[[ 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.   ]]
#1 lore raw
Quoted 9 lines · Simone Piccardi

I'm still trying to boot LinucPPC on this board. Thanks to new kernel images provided by G. Paubert in his site I could obtain some new results (not a success but at least this time the boot is going a bit further).

The board has no drive, so I tried two versions of the kernel image: the initrd and the nfsroot, (this last try was to see if something different happens, becauase I do not have a NFS root tree for the PPC).

<initrd boot deleted>

Quoted 3 lines

------ END CLIP ------

and here it freeze and I have t reset the board.

Can't comment on this one, not using the same code base here.

Quoted 25 lines

The results of the zImage.nfsroot boot was obiuvsly different:

------ CLIP HERE ------

08:00:3e:28:28:00,
and requires IRQ18 (provided by PCI BIOS).
de4x5.c:V0.543 1998/12/30 [email protected]
NIP: C000FDE0 XER: 00000000 LR: C000FDC4 REGS: c0197ce0 TRAP: 0300
MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0196000[1] 'swapper' mm->pgd c00ba000 Last syscall: 120 last math 00000000
GPR00: 00001032 C0197DD0 C0196000 00000001 00008000 00000000 00038C98 00000001
GPR08: 00000001 00007800 80000000 000001E0 0000001F 01F720A0 00000000 00000000
GPR16: 00000000 00000000 20000002 00000000 00000000 E0001FFE 00000000 00000000
GPR24: 00000000 00000000 C00E0000 000000FA 00000000 00009032 C011F76C C0197DD0
Call backtrace:
00000000 C009BFD4 C0095C38 C00945AC C00942E4 C0056300 C0057368 C00D5608 C00D6300 C00D4DE4 C00D678C C00CB714 C0004044 C000870C Instruction DUMP: 2c090000 912b0000 41820008 <91690004> 3b800001 48000008 3b
800000 73aa8000 38000000

Quoted 3 lines
Kernel panic: kernel access of bad area pc c000fde0 lr c000fdc4 address

7804 tsk
swapper/1

Apply the following patch:

drivers/net/de4x5.c +2 -0
diff -ud linux-2.1-bak/drivers/net/de4x5.c linux-2.1/drivers/net/de4x5.c
@@ -4794,6 +4794,7 @@
     if (lp->state == INITIALISED) {
         lp->ibn = 3;
         lp->active = *p++;
+	if (MOTO_SROM_BUG) lp->active = 0;
 	lp->phy[lp->active].gep = (*p ? p : 0); p += (2 * (*p) + 1);
 	lp->phy[lp->active].rst = (*p ? p : 0); p += (2 * (*p) + 1);
 	lp->phy[lp->active].mc  = TWIDDLE(p); p += 2;
@@ -4805,6 +4806,7 @@
     } else if ((lp->media == INIT) && (lp->timeout < 0)) {
         lp->ibn = 3;
 	lp->active = *p;
+	if (MOTO_SROM_BUG) lp->active = 0;
 	lp->infoblock_csr6 = OMR_MII_100;
 	lp->useMII = TRUE;
 	lp->infoblock_media = ANS;
drivers/net/de4x5.h +3 -0
diff -ud linux-2.1-bak/drivers/net/de4x5.h linux-2.1/drivers/net/de4x5.h
@@ -599,6 +599,11 @@
 #define BLOCK0_MC      0x3f        /* Media Code */
 
 /*
+** SROM fixup
+*/
+#define MOTO_SROM_BUG	((lp->active == 8) &&

((le32_to_cpu(get_unaligned((u32 *)dev->dev_addr))&0x00ffffff)==0x3e0008)) +
+/*
** DC21040 Full Duplex Register (DE4X5_FDR)
*/
#define FDR_FDACV 0x0000ffff /* Full Duplex Auto Configuration
Value */

Quoted 5 lines

My question are:
Is the way I gave the boot parameter (root=/dev/nfs) right? I exported an empty /home/ppc directory on the same PC that I used as tftp server, but how the board can recognize just this directory? And what files I have to put in this directory?

You need a rarp or bootp server set up on the machine so that it will
provide your board config info after it gets past the SROM bug in the
driver. You can build a quick base system by grabbing the Debian "potato" base tarball at ftp://ftp.debian/org/pub/debian/dists/potato/main/disks-powerpc/2.1.8-1999-02-24/base2_2.tgz Untar it into your nfsroot directory, remove the unconfigure.sh script
from /sbin (I believe), modify inittab to boot into single user mode, and reboot your system. You may also want to set up the sysvinit link in the rcS.d runlevel directory so that the nfsroot dir is remounted rw.

--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

[[ 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
In reply to Simone Piccardi
Quoted 7 lines · Simone Piccardi

Hi,

I'm still trying to boot LinucPPC on this board. Thanks to new kernel images provided by G. Paubert in his site I could obtain some new results (not a success but at least this time the boot is going a bit further).

Ok, what does the SROM command under PPCBug return. There is a bug in the setup of these.

You have to type SROM, answer Y to the first question and list all the values until the the address 0x80. Then around address 0x20, there is probably a byte which is 0x08 and should be 0x00, but I can't tell you the exact address without the dump.

Quoted 3 lines

It seems quite strange to me also the message:
OpenPIC Version ? (2 CPUs and 17 IRQ sources) at d1000000 Why 2 CPU?

Because the OpenPIC in the Raven and Hawk support up to 2 CPUs. This does not mean that they are installed however...

Quoted 1 line

time_init: decrementer frequency = 998700000/60 (15MHz)

This is strange, it should be 25 MHz. I have got timing problems on my board too... Going to investigate since it seems constant when it should not.

Quoted 5 lines

My question are:
Is the way I gave the boot parameter (root=/dev/nfs) right? I exported an empty /home/ppc directory on the same PC that I used as tftp server, but how the board can recognize just this directory? And what files I have to put in this directory?

You have to setup you /etc/bootptab entries and /etc/exports. Don't forget to set the export as no_root_squash.

Gabriel.

[[ 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

A still not working, but cross-compiled kernel

Hi,

Thanks to all your suggestion and help I finally get out from the kernel cross-compilation; I obtained a zImage file that boot in the same manner of the Gabriel Paubert images (i.e. still crash on the ethernet deriver, but in the same way), so at least I can be confident that the cross-compilation procedure is going right.

Next problem is to get the ethernet working: I tries to change the ethernet setting as suggested; the output of the SROM command is this:

PPC4-Bug>srom

Device Address =$00007000 (N/Y)? y
Reading SROM into Local Buffer.....
$00 (&000) 0000?
$02 (&002) 0000?
$04 (&004) 0000?
$06 (&006) 0000?
$08 (&008) 0000?
$0A (&010) 0000?
$0C (&012) 0000?
$0E (&014) 0000?
$10 (&016) AF00?
$12 (&018) 0301?
$14 (&020) 0800?
$16 (&022) 3E28?
$18 (&024) 2800?
$1A (&026) 0E1E?
$1C (&028) 0000?
$1E (&030) 0008? <---- Is this one?
$20 (&032) 0193?
$22 (&034) 0308?
$24 (&036) 0003?
$26 (&038) 0108?
$28 (&040) 0000?
$2A (&042) 0100?
$2C (&044) 0078?
$2E (&046) E001?
$30 (&048) 0050?
$32 (&050) 0018?
$34 (&052) 0000?
$36 (&054) 0000?
$38 (&056) 0000?
$3A (&058) 0000?
$3C (&060) 0000?
$3E (&062) 0000?
$40 (&064) 0000?
$42 (&066) 0000?
$44 (&068) 0000?
$46 (&070) 0000?
$48 (&072) 0000?
$4A (&074) 0000?
$4C (&076) 0000?
$4E (&078) 0000?
$50 (&080) 0000?
$52 (&082) 0000?
$54 (&084) 0000?
$56 (&086) 0000?
$58 (&088) 0000?
$5A (&090) 0000?
$5C (&092) 0000?
$5E (&094) 0000?
$60 (&096) 0000?
$62 (&098) 0000?
$64 (&100) 0000?
$66 (&102) 0000?
$68 (&104) 0000?
$6A (&106) 0000?
$6C (&108) 0000?
$6E (&110) 0000?
$70 (&112) 0000?
$72 (&114) 0000?
$74 (&116) 0000?
$76 (&118) 0000?
$78 (&120) 0000?
$7A (&122) 0000?
$7C (&124) 0000?
$7E (&126) ADFF?

I tried to put on 1E location (that one marked above) the value 0 but the results were the same of before the changes, the kernel crash:

Linux/PPC load: console=ttyS0 root=/dev/nfs

Uncompressing the kernel...Kernel at 0x00000000, size=0x1026a4 Initrd at 0x00000000, size=0x0
Residual data at 0x00103000
Command line at 0x0010a000
done
Now booting...
PReP architecture
Total memory = 32MB; using 128kB for hash table (at c0120000) Linux version 2.2.6 (root@vcorr1) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2
release)) #11 Wed Apr 21 19:06:28 WET DST 1999
OpenPIC found at d1000000.
Boot arguments: console=ttyS0 root=/dev/nfs
OpenPIC Version ? (2 CPUs and 17 IRQ sources) at d1000000 OpenPIC timer frequency is 12500088 Hz
time_init: decrementer frequency = 998700000/60 (15MHz) Calibrating delay loop... 465.31 BogoMIPS
Memory: 31272k available (652k kernel code, 784k data, 60k init) [c0000000,c2000
000]
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Setting bridge 0
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
Starting kswapd v 1.5
Serial driver version 4.27 with no serial options enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
eth0: DC21143 at 0x11100 (PCI bus 0, device 14), h/w address 08:00:3e:28:28:00,
and requires IRQ18 (provided by PCI BIOS).
de4x5.c:V0.543 1998/12/30 [email protected]
NIP: C000FDF4 XER: 00000000 LR: C000FDD8 REGS: c0141ce0 TRAP: 0300
MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0140000[1] 'swapper' mm->pgd c00ba000 Last syscall: 120 last math 00000000
GPR00: 00001032 C0141DD0 C0140000 00000001 00008000 00000000 00038C98 00000001
GPR08: 00000001 00007800 80000000 000001E0 0000001F 01F72040 00000000 00000000
GPR16: 00000000 00000000 20000002 00000000 00000000 E0001FFE 00000000 00000000
GPR24: 00000000 00000000 C00E0000 000000FA 00000000 00009032 C011D76C C0141DD0
Call backtrace:
00000000 C009C1B8 C0095E1C C0094790 C00944C8 C005647C C00574E4 C00D560C C00D6304 C00D4DE8 C00D6790 C00CB714 C0004044 C0008720 Instruction DUMP: 2c090000 912b0000 41820008 <91690004> 3b800001 48000008 3b
800000 73aa8000 38000000

Kernel panic: kernel access of bad area pc c000fdf4 lr c000fdd8 address

7804 tsk
swapper/1

I tried also to apply the Matt Porter patch for dec21143 to my kernel tree, but it didn't work (probably because it's based on kernel 2.2.5 and I'm using a 2.2.6 patched kernel).

Still I'm working on setting up the bootp server and to build the root tree, but I don't think that this can cause the crash of the system.

Many thanks to everybody.

Bye

Signature · 8 lines
Simone Piccardi
Microsoft is NOT the answer. Microsoft is the Question.
The answer is: "NO!"

[[ 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

Re: A still not working, but cross-compiled kernel

Quoted 23 lines · Simone Piccardi

Hi,

Thanks to all your suggestion and help I finally get out from the kernel cross-compilation; I obtained a zImage file that boot in the same manner of the Gabriel Paubert images (i.e. still crash on the ethernet deriver, but in the same way), so at least I can be confident that the cross-compilation procedure is going right.

Next problem is to get the ethernet working: I tries to change the ethernet setting as suggested; the output of the SROM command is this:

PPC4-Bug>srom

Device Address =$00007000 (N/Y)? y
Reading SROM into Local Buffer.....
$00 (&000) 0000?
$02 (&002) 0000?
$04 (&004) 0000?
$06 (&006) 0000?
$08 (&008) 0000?
$0A (&010) 0000?
$0C (&012) 0000?
$0E (&014) 0000?

Quoted 8 lines

$10 (&016) AF00?
$12 (&018) 0301?
$14 (&020) 0800?
$16 (&022) 3E28?
$18 (&024) 2800?
$1A (&026) 0E1E?
$1C (&028) 0000?
$1E (&030) 0008? <---- Is this one?

No.

Quoted 2 lines

$20 (&032) 0193?
$22 (&034) 0308?

               ^^ 
               That one.
Quoted 8 lines

$24 (&036) 0003?
$26 (&038) 0108?
$28 (&040) 0000?
$2A (&042) 0100?
$2C (&044) 0078?
$2E (&046) E001?
$30 (&048) 0050?
$32 (&050) 0018?

The rest looks ok.

Quoted 2 lines

I tried to put on 1E location (that one marked above) the value 0 but the results were the same of before the changes, the kernel crash:

No that one means autonegotiation of link parameters.

Quoted 6 lines

I tried also to apply the Matt Porter patch for dec21143 to my kernel tree, but it didn't work (probably because it's based on kernel 2.2.5 and I'm using a 2.2.6 patched kernel).

Still I'm working on setting up the bootp server and to build the root tree, but I don't think that this can cause the crash of the system.

No. I can help you wit this too. And I hope we'll soon be wroking on the VME side of the board once all these problems are solved.

Regards,
Gabriel.

[[ 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. ]]

#5 lore raw

Re: A still not working, but cross-compiled kernel

In reply to Simone Piccardi
Quoted 15 lines · Simone Piccardi

Next problem is to get the ethernet working: I tries to change the ethernet setting as suggested; the output of the SROM command is this:

PPC4-Bug>srom

Device Address =$00007000 (N/Y)? y
Reading SROM into Local Buffer.....
$00 (&000) 0000?
$02 (&002) 0000?
$04 (&004) 0000?
$06 (&006) 0000?
$08 (&008) 0000?
$0A (&010) 0000?
$0C (&012) 0000?
$0E (&014) 0000?

Quoted 8 lines

$10 (&016) AF00?
$12 (&018) 0301?
$14 (&020) 0800?
$16 (&022) 3E28?
$18 (&024) 2800?
$1A (&026) 0E1E?
$1C (&028) 0000?
$1E (&030) 0008? <---- Is this one?

Nope, that's the conntion type location 0x800 is AutoSense...don't change that.

Quoted 2 lines

$20 (&032) 0193?
$22 (&034) 0308?

Use $22 (&034) 0300
This octet indicates PHY index and must start at zero.

Quoted 8 lines

$24 (&036) 0003?
$26 (&038) 0108?
$28 (&040) 0000?
$2A (&042) 0100?
$2C (&044) 0078?
$2E (&046) E001?
$30 (&048) 0050?
$32 (&050) 0018?

--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

[[ 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. ]]