AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070719131027.4a822da5@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<brian.stark@onstor.com>,<warren.gale@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E04936F56@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 19 Jul 2007 13:10:54 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Brian Stark" <brian.stark@onstor.com>
Cc: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: problem with first managment port on bobcat
Message-ID: <20070719131054.1ca8d047@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E04936F56@onstor-exch02.onstor.net>
References: <20070719105417.0b59afcb@ripper.onstor.net>
	<20070719105911.34e6bbb0@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E04936F56@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Only one small problem: it's difficult to upgrade the prom w/o the
first port working ~:^)  At least for me.  You hardware guys probably
have special tools and stuff like that.  Soldering irons and things.

Cheers,

a


On Thu, 19 Jul 2007 12:01:07 -0700 "Brian Stark"
<brian.stark@onstor.com> wrote:

> Geez Andy, I've only been back 1 day, and you've already managed to
> break a Bobcat!
> 
> I'm pretty sure that the PROM was written to only support transfers
> out of the first mgmt interface, but we might be able to trick the
> PROM into using the second.  During the PCI scan, if we program the
> port 0 dp83816 to have port 1's base address and vice versa, it may
> work using the second physical interface (port 1).  In the pci scan
> in pci-bobcat.c, the following code exists:
> 
> 	/*
> 	 *  Port 0 DP83816 PCI master cycle, BAR
> 	 */
> 	pci_cfg_write(PCI1_SEC_BUS, PCI1_DP0_DEV, 0, 0x04,
> 0x02a00006); pci_cfg_write(PCI1_SEC_BUS, PCI1_DP0_DEV, 0, 0x14,
> HW_DP83816_0_BASE);
> 
> 	/*
> 	 *  Port 1 DP83816 PCI master cycle, BAR
> 	 */
> 	pci_cfg_write(PCI1_SEC_BUS, PCI1_DP1_DEV, 0, 0x04,
> 0x02a00006); pci_cfg_write(PCI1_SEC_BUS, PCI1_DP1_DEV, 0, 0x14,
> HW_DP83816_1_BASE);
> 
> 
> We can try changing it to:
> 
> 
> 	/*
> 	 *  Port 0 DP83816 PCI master cycle, BAR
> 	 */
> 	pci_cfg_write(PCI1_SEC_BUS, PCI1_DP0_DEV, 0, 0x04,
> 0x02a00006); pci_cfg_write(PCI1_SEC_BUS, PCI1_DP0_DEV, 0, 0x14,
> HW_DP83816_1_BASE);
> 
> 	/*
> 	 *  Port 1 DP83816 PCI master cycle, BAR
> 	 */
> 	pci_cfg_write(PCI1_SEC_BUS, PCI1_DP1_DEV, 0, 0x04,
> 0x02a00006); pci_cfg_write(PCI1_SEC_BUS, PCI1_DP1_DEV, 0, 0x14,
> HW_DP83816_0_BASE);
> 
> 
> Plug a wire into the second port and then give it a shot.
> 
> Warren will put this change in, we'll test it out here, and then let
> you know.
> 
> 
> Brian
> 
>  
> 
> > -----Original Message-----
> > From: Andy Sharp 
> > Sent: Thursday, July 19, 2007 10:59 AM
> > To: Warren Gale
> > Cc: Brian Stark
> > Subject: Re: problem with first managment port on bobcat
> > 
> > On Thu, 19 Jul 2007 10:54:17 -0700 Andrew Sharp 
> > <andy.sharp@onstor.com>
> > wrote:
> > 
> > > Hi Warren,
> > > 
> > > Since your prom-man, I thought I would ask you this.  I've got a
> > > bc that seems to have a frelled ethernet port on the first
> > > management interface, so I thought I would try to use the second
> > > one, but the PROM code doesn't seem to be able to handle this.  I
> > > can 
> > set up an IP 
> > > address on it and whatnot, but when I try to send network traffic 
> > > through it, I get errors from the the box.  Can you confirm 
> > that the 
> > > PROM networking code makes assumptions about what port is 
> > being used 
> > > to tftp things?  Like, I was trying to tftp a new prom image or a 
> > > linux kernel, but it just spewed errors.
> > > 
> > > Cheers,
> > > 
> > > a
> > 
> > Just for reference, here is some of the output from the filer:
> > 
> > SSC-PROM> bsd ip show
> > Interface Table      
> > --------------------------------------------------------------
> > Name                Mac-Addr                Op-St   Adm-St    
> >   IP/Mask  
> > --------------------------------------------------------------
> >            
> > fp:0:0:0(NULL)      00-07-34-00-90-00       UP      DOWN       
> > fp:0:0:1(NULL)      00-07-34-00-90-01       UP      UP        
> >  10.0.0.53/24
> >                                                               
> >              
> > fp:0:0:2(NULL)      08-08-00-00-01-02       UP      DOWN      
> >  192.168.192.17/24
> >                                                               
> >                  
> > lo:0:0:0(NULL)      00-00-00-00-00-00       UP      UP         
> > SSC-PROM> bsd ping 10.0.0.53                                   
> > File: if_ether.c, Line: 879
> > arplookup 10.0.0.0 failed: host is not on local network
> >                                                        
> > File: if_ether.c, Line: 477
> > arpresolve: can't allocate llinfo for 10.0.0.0rt
> >                                                 
> > File: if_ether.c, Line: 879
> > arplookup 10.0.0.53 failed: host is not on local network
> >                                                         
> > File: if_ether.c, Line: 477
> > arpresolve: can't allocate llinfo for 10.0.0.53rt
> >                                                  
> > SSC-PROM> File: if_ether.c, Line: 879
> > arplookup 10.0.0.53 failed: host is not on local network
> >                                                         
> > File: if_ether.c, Line: 477
> > arpresolve: can't allocate llinfo for 10.0.0.53rt
> >                                                  
> > 
> > SSC-PROM> File: if_ether.c, Line: 879
> > arplookup 10.0.0.53 failed: host is not on local network
> >                                                         
> > File: if_ether.c, Line: 477
> > arpresolve: can't allocate llinfo for 10.0.0.53rt
> >                                                  
> > SSC-PROM> bsd rt show
> > Route Table          
> > --------------------------------------------------------------
> > ------------------
> > Dest                 Gateway               Flags    Intf      
> >             refc( 
> > --------------------------------------------------------------
> > ------------------
> > 10.0.0.0       /8    10.0.0.53             0x1000803 
> > fp:0:0:1(NULL)      1(8115)
> > 192.168.192.0  /24   00-00-00-00-00-00     0x101     
> > fp:0:0:2(NULL)      0(8115)
> > SSC-PROM> 
> > 
