AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080702141833.73d33076@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<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	BB375AF679D4A34E9CA8DFA650E2B04E0ABCF039@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 2 Jul 2008 14:18:42 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: Linux ?? Cougar ?? SSC prom??
Message-ID: <20080702141842.0ae2b169@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0ABCF039@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E0ABCF039@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

BTW, I have no cell phone these days.  ~:^(

On Wed, 2 Jul 2008 14:13:27 -0700 "Warren Gale"
<warren.gale@onstor.com> wrote:

> Andy,
> 
>  
> 
>   I am trying to get the SSC to program it's own PROM under Linux
> (nfxsh prom upgrade).
> 
> The existing code doesn't work, (surprise surprise ).
> The  "(void)mknod("/dev/proma1", 0660 | S_IFCHR, makedev(54, 1)); "
> in file 
>   dev/nfx-tree/code/ssc-prom-upgrade/prom-upgrade.c,   does not create
> the dev in /dev.
> 
> 
> 
> So I went looking for something in the linux devices.. 
> 
> Found a file that seems like it should work.  But it's not compiled.
> 
>   drivers/ssc-mgmt-bus/prom.c  
> 
>    
> 
> Maybe it's a loadable module?   ( even after make it =y in config
> file? )
> 
> Looked at man pages for modprobe.  Cool..  well we don't have modprobe
> on cougar.
> 
> Looked at insmod ...  Ok we have that   but I don't have the "prom.ko"
> file ??
> 
>  
> 
> Ok, looks like I need to build the Linux kernel..   So this is what I
> did.
> 
>  
> 
> When to my work space ,  to linux  did a "p4 sync ... " then did a
> build.   (Oh I did the install-toolchain too)
> 
> /n/users/warreng/private/p4/work/cougar/dev/linux/kernel/
> 
>  
> 
> make clean
> 
>  
> 
> edit
> /n/users/warreng/private/p4/work/cougar/dev/linux/kernel/linux-mips-2.6/
> cougar-config
> 
>  change
> 
> # CONFIG_PROM is not set
> 
>  to
> 
> CONFIG_PROM=y
> 
>  
> 
> make kernel PROD=cg
> 
>  
> 
> 1st time i did this i got vmlinux and vmlinux.32
> 
> also near the end of make
> 
>   Building modules, stage 2.
> 
>   MODPOST 38 modules
> 
>  
> 
> now its
> 
>   Building modules, stage 2.
> 
>   MODPOST 83 modules
> 
>  
> 
>  
> 
> I did see it compile the file I wanted :
> 
>  
> 
>     kernel/linux-mips-2.6/drivers/ssc-mgmt-bus/prom.c
> 
>  
> 
> Why no vmlinux.32
> 
>  
> 
> what does the "M" in   CC [M]  drivers/ssc-mgmt-bus/prom.o  mean?
> (LKM ??)
> 
> and does
> 
>   CC      drivers/ssc-mgmt-bus/prom.mod.o
> 
>   LD [M]  drivers/ssc-mgmt-bus/prom.ko
> 
> mean?
> 
>  
> 
> How do I get this on the CF ?  Just copy vmlinux  to /boot
> 
>  or do I need to do a "make release" and then do "system upgrade" to
> new tar ball?
> 
>  
> 
> wiki pages don't seem to help me, or I'm in left field (again :-() ...
> 
> help please?
> 
>  
> 
>  
> 
> Thanks,
> 
> Warren
> 
