netdemo and the mvme2604

rtwas rtwas at comcast.net
Mon Sep 25 19:43:32 UTC 2006


Hello,

I'm still have troubles with netdemo on the mvme2604. I worked with Till
on this almost exactly a year ago.
I was unable to spend any more time on it until now. I was using
rtems-4.6.2 at the time. I've upgraded to rtems-4.6.6
and tried again...

Basically I get a "Can't connect socket: Host is unreachable" error when
I type "t", which is supposed to cause it
to broadcast packets. Here's a dump of the console:


Copyright Motorola Inc. 1988 - 1997, All Rights Reserved

PPC1 Debugger/Diagnostics Release Version 3.5 - 01/30/98 RM01
COLD Start

Local Memory Found =02000000 (&33554432)

MPU Clock Speed =200Mhz

BUS Clock Speed =67Mhz

WARNING: Keyboard Not Connected

Reset Vector Location  : ROM Bank B
Mezzanine Configuration: Single-MPU
Current 60X-Bus Master : MPU0
Idle MPU(s)            : NONE

System Memory: 32MB, ECC Enabled (ECC-Memory Detected)
L2Cache:       256KB

PPC1-Bug>nbo
Network Booting from: DEC21140, Controller 0, Device 0
Device Name: /pci at 80000000/pci1011,9 at e,0:0,0
Loading: mvme2604-0/boot

Client IP Address      = 192.168.1.100
Server IP Address      = 192.168.1.60
Gateway IP Address     = 192.168.1.100
Subnet IP Address Mask = 255.255.255.0
Boot File Name         = mvme2604-0/boot
Argument File Name     =

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


Bytes Received =&263852, Bytes Loaded =&263852
Bytes/Second   =&263852, Elapsed Time =1 Second(s)

Residual-Data Located at: $01F78000

Model: 000000000000000000000000000(e2)
Serial: MOT0325F15
Processor/Bus frequencies (Hz): 199921872/66636044
Time Base Divisor: 4000
Memory Size: 2000000

PCI: Probing PCI hardware

RTEMS 4.x/PPC load:
Uncompressing the kernel...
done
Now booting...
-----------------------------------------
Welcome to rtems-4.6.6(PowerPC/PowerPC 604/mvme2307) on MVME 2600 with
MVME712M
-----------------------------------------
OpenPIC found at C1000000.
pci : Interrupt routing not available for this bsp
OpenPIC Version 1.2 (2 CPUs and 16 IRQ sources) at 0xC1000000
OpenPIC Vendor 0 (Unknown), Device 0 (Unknown), Stepping 1
OpenPIC timer frequency is 8329350 Hz
Please add code for PCI/ISA bridge init to
libbsp/powerpc/shared/irq/irq_init.c
If your card works correctly please add a test and set
known_cpi_isa_bridge to e
currentBoard = 15
Universe II PCI-VME bridge detected at 0xC1041000, IRQ 11
Universe Master Ports:
Port  VME-Addr   Size       PCI-Adrs   Mode:
0:    0x20000000 0x0F000000 0x10000000 A32, Dat, Sup
1:    0x00000000 0x00FF0000 0x1F000000 A24, Dat, Sup
2:    0x00000000 0x00010000 0x1FFF0000 A16, Dat, Sup
Universe Slave Ports:
Port  VME-Addr   Size       PCI-Adrs   Mode:
0:    0xC0000000 0x01FE0000 0x80000000 A32, Pgm, Dat, Sup, Usr
Overriding main IRQ line PCI info with 5
tdec21140 : found device 'dc1', bus 0x00, dev 0x0E, func 0x00
dec2114x : unit 1 base address C1042100.
dec2114x : driver attached
dec2114x : driver tasks created
dec2114x : 08:00:3E:28:83:EA   name 'dc1', io 11100, mem C1042100, int 10
dec2114x: Installing IRQ 10
Destination     Gateway/Mask/Hw    Flags     Refs     Use Expire Interface
127.0.0.1       127.0.0.1          UH          0        0      0 lo0
192.168.1.0     255.255.255.0      U           0        0      1 dc1
Create socket.
Create socket.
Bind socket.
Bind socket.
Listen.
Listen.
Accept.
Accept.
t
Create socket.
Bind socket.
Connect socket.
Can't connect socket: Host is unreachable
.....................................................................................................................................
Here's a dump of the PPCBug variables:

PPC1-Bug>env
Bug or System environment [B/S] = B?
Field Service Menu Enable [Y/N] = N?
Remote Start Method Switch [G/M/B/N] = B?
Probe System for Supported I/O Controllers [Y/N] = Y?
Auto-Initialize of NVRAM Header Enable [Y/N] = Y?
Network PReP-Boot Mode Enable [Y/N] = Y?
Negate VMEbus SYSFAIL* Always [Y/N] = N?
SCSI Bus Reset on Debugger Startup [Y/N]   = N?
Primary SCSI Bus Negotiations Type [A/S/N] = A?
Primary SCSI Data Bus Width [W/N]          = N?
Secondary SCSI Identifier                  = "07"?
NVRAM Bootlist (GEV.fw-boot-path) Boot Enable [Y/N]           = N?
NVRAM Bootlist (GEV.fw-boot-path) Boot at power-up only [Y/N] = N?
NVRAM Bootlist (GEV.fw-boot-path) Boot Abort Delay            = 5?
Auto Boot Enable [Y/N]           = N?
Auto Boot at power-up only [Y/N] = N?
Auto Boot Scan Enable [Y/N]      = Y?
Auto Boot Scan Device Type List  = FDISK/CDROM/TAPE/HDISK/?
Auto Boot Controller LUN   = 00?
Auto Boot Device LUN       = 00?
Auto Boot Partition Number = 00?
Auto Boot Abort Delay      = 7?
Auto Boot Default String [NULL for an empty string] = ?
ROM Boot Enable [Y/N]            = N?
ROM Boot at power-up only [Y/N]  = Y?
ROM Boot Enable search of VMEbus [Y/N] = N?
ROM Boot Abort Delay             = 5?
ROM Boot Direct Starting Address = FFF00000?
ROM Boot Direct Ending Address   = FFFFFFFC?
Network Auto Boot Enable [Y/N]           = N?
Network Auto Boot at power-up only [Y/N] = N?
Network Auto Boot Controller LUN = 00?
Network Auto Boot Device LUN     = 00?
Network Auto Boot Abort Delay    = 5?
Network Auto Boot Configuration Parameters Offset (NVRAM) = 00001000?
Memory Size Enable [Y/N]         = Y?
Memory Size Starting Address     = 00000000?
Memory Size Ending Address       = 02000000?
DRAM Speed in NANO Seconds       = 60?
ROM First Access Length (0 - 31) = 10?
ROM Next Access Length  (0 - 15) = 0?
DRAM Parity Enable [On-Detection/Always/Never - O/A/N]    = O?
L2Cache Parity Enable [On-Detection/Always/Never - O/A/N] = O?
PCI Interrupts Route Control Registers (PIRQ0/1/2/3) = 0A0B0E0F?
Serial Startup Code Master Enable [Y/N] = N?
Serial Startup Code LF Enable [Y/N] =     N?
VME3PCI Master Master Enable [Y/N] = Y?
PCI Slave Image 0 Control                = 00000000?
PCI Slave Image 0 Base Address Register  = 00000000?
PCI Slave Image 0 Bound Address Register = 00000000?
PCI Slave Image 0 Translation Offset     = 00000000?
PCI Slave Image 1 Control                = 00000000?
PCI Slave Image 1 Base Address Register  = 01000000?
PCI Slave Image 1 Bound Address Register = 20000000?
PCI Slave Image 1 Translation Offset     = 00000000?
PCI Slave Image 2 Control                = 00000000?
PCI Slave Image 2 Base Address Register  = 20000000?
PCI Slave Image 2 Bound Address Register = 22000000?
PCI Slave Image 2 Translation Offset     = D0000000?
PCI Slave Image 3 Control                = 00000000?
PCI Slave Image 3 Base Address Register  = 2FFF0000?
PCI Slave Image 3 Bound Address Register = 30000000?
PCI Slave Image 3 Translation Offset     = D0000000?
VMEbus Slave Image 0 Control                = E0F20000?
VMEbus Slave Image 0 Base Address Register  = 00000000?
VMEbus Slave Image 0 Bound Address Register = 02000000?
VMEbus Slave Image 0 Translation Offset     = 80000000?
VMEbus Slave Image 1 Control                = 00000000?
VMEbus Slave Image 1 Base Address Register  = 00000000?
VMEbus Slave Image 1 Bound Address Register = 00000000?
VMEbus Slave Image 1 Translation Offset     = 00000000?
VMEbus Slave Image 2 Control                = 00000000?
VMEbus Slave Image 2 Base Address Register  = 00000000?
VMEbus Slave Image 2 Bound Address Register = 00000000?
VMEbus Slave Image 2 Translation Offset     = 00000000?
VMEbus Slave Image 3 Control                = 00000000?
VMEbus Slave Image 3 Base Address Register  = 00000000?
VMEbus Slave Image 3 Bound Address Register = 00000000?
VMEbus Slave Image 3 Translation Offset     = 00000000?
PCI Miscellaneous Register       = 10000000?
Special PCI Slave Image Register = 00000000?
Master Control Register          = 80C00000?
Miscellaneous Control Register   = 52060000?
User AM Codes                    = 00000000?

.........................................................................................................
Here's a dump of an niot session:
PPC1-Bug>niot
Controller LUN =00?
Device LUN     =00?
Node Control Memory Address =01F9E000?
Client IP Address      =192.168.1.100?
Server IP Address      =192.168.1.60?
Subnet IP Address Mask =255.255.255.0?
Broadcast IP Address   =192.168.1.255?
Gateway IP Address     =192.168.1.100?
Boot File Name ("NULL" for None)     =mvme2604-0/boot?
Argument File Name ("NULL" for None) =?
Boot File Load Address         =001F0000?
Boot File Execution Address    =001F0000?
Boot File Execution Delay      =00000000?
Boot File Length               =00000000?
Boot File Byte Offset          =00000000?
BOOTP/RARP Request Retry       =00?
TFTP/ARP Request Retry         =00?
Trace Character Buffer Address =00000000?
BOOTP/RARP Request Control: Always/When-Needed (A/W)=W?
BOOTP/RARP Reply Update Control: Yes/No (Y/N)       =Y?

..........................................................................................................
Here's a dump of networkconfig.h:
/*
* Network configuration
*
************************************************************
* EDIT THIS FILE TO REFLECT YOUR NETWORK CONFIGURATION     *
* BEFORE RUNNING ANY RTEMS PROGRAMS WHICH USE THE NETWORK! *
************************************************************
*
*  $Id: networkconfig.h,v 1.8 2001/08/31 18:11:43 joel Exp $
*/

#ifndef _RTEMS_NETWORKCONFIG_H_
#define _RTEMS_NETWORKCONFIG_H_

/*
*  The following will normally be set by the BSP if it supports
*  a single network device driver.  In the event, it supports
*  multiple network device drivers, then the user's default
*  network device driver will have to be selected by a BSP
*  specific mechanism.
*/


/* static char ethernet_address[6] = { 0x08, 0x00, 0x3e, 0x12, 0x28,
0xb1 }; */
//static char ethernet_address[6] = { 0x00, 0x80, 0x7F, 0x22, 0x61, 0x77 };
extern int rtems_dec21140_driver_attach();
extern int rtems_bsdnet_loopattach();

#define  RTEMS_BSP_NETWORK_DRIVER_NAME    "dc1"
#define  RTEMS_BSP_NETWORK_DRIVER_ATTACH  rtems_dec21140_driver_attach



//..............................................................................
/*
* Loopback interface
*/
static struct rtems_bsdnet_ifconfig loopback_config = {
        "lo0",                          /* name */
        rtems_bsdnet_loopattach,        /* attach function */

        NULL,                           /* link to next interface */

        "127.0.0.1",                    /* IP address */
        "255.0.0.0",                    /* IP net mask */
};

//..............................................................................
/*
* Default network interface
*/
static struct rtems_bsdnet_ifconfig netdriver_config = {
        "dc1",                          // name */
        rtems_dec21140_driver_attach,   // attach function */

        &loopback_config,               // No more interfaces */
        "192.168.1.100",                // IP address */
        "255.255.255.0",                // IP net mask */

        NULL,                           // Ethernet hardware address */
        0                               // Use default driver parameters */
};
//..............................................................................

/*
* Network configuration
*/
struct rtems_bsdnet_config rtems_bsdnet_config = {
        &netdriver_config,

        NULL,
        0,                      /* Default network task priority */
        0,                      /* Default mbuf capacity */
        0,                      /* Default mbuf cluster capacity */

        "rtems_host",           /* Host name */
        "nodomain.com",         /* Domain name */
        0,                      /* Gateway */
        0,                      /* Log host */
        {0},                    /* Name server(s) */
        {0},                    /* NTP server(s) */

        /*
         *  A real example -- DO NOT USE THIS YOURSELF!!!
         */

#if 0
        "dy4",                  /* Host name */
        "NOT_oarcorp.com",      /* Domain name */
        "192.168.1.2",          /* Gateway */
        "192.168.1.2",          /* Log host */
        {"192.168.1.2" },       /* Name server(s) */
        {"192.168.1.2" },       /* NTP server(s) */
#endif

};
//...........................................................................................

/*
* For TFTP test application
*/
#if (defined (RTEMS_USE_BOOTP))
#define RTEMS_TFTP_TEST_HOST_NAME "BOOTP_HOST"
#define RTEMS_TFTP_TEST_FILE_NAME "BOOTP_FILE"
#else
#define RTEMS_TFTP_TEST_HOST_NAME "XXX.YYY.ZZZ.XYZ"
#define RTEMS_TFTP_TEST_FILE_NAME "tftptest"
#endif

#endif /* _RTEMS_NETWORKCONFIG_H_ */

....................................................................................................................
rtems-4.6.6 was configured with:

<../rtems-4.6.5/configure --target=powerpc-rtems --enable-rtemsbsp=mvme2307


Thanks.

Robert W.






More information about the users mailing list