AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:
CFG:
PT:0
S:andy.sharp@lsi.com
RQ:
SSV:mhbs.lsil.com
NSV:
SSH:
R:<David.Olien@lsi.com>
MAID:2
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/LSI/INBOX	0	6C678488C5CEE74F813A4D1948FD2DC7B7C5CC8C@cosmail02.lsi.com
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 8 Apr 2010 15:37:33 -0700
From: Andrew Sharp <andy.sharp@lsi.com>
To: "Olien, David" <David.Olien@lsi.com>
Subject: Re: what exactly are these kernels
Message-ID: <20100408153733.7cc68c5a@ripper.onstor.net>
In-Reply-To: <6C678488C5CEE74F813A4D1948FD2DC7B7C5CC8C@cosmail02.lsi.com>
References: <6C678488C5CEE74F813A4D1948FD2DC7B7C5C336@cosmail02.lsi.com>
	<20100406115808.2ac6b35a@ripper.onstor.net>
	<6C678488C5CEE74F813A4D1948FD2DC7B7C5C502@cosmail02.lsi.com>
	<20100408142404.0815eb00@ripper.onstor.net>
	<6C678488C5CEE74F813A4D1948FD2DC7B7C5CC8C@cosmail02.lsi.com>
Organization: LSI
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

Hi David,

They are all 64-bit: SSC and tuxstor.  They are all the same
processor, just one is 4-cores, and one is single core.  .32 doesn't
refer to 32-bit, it refers to ELF-32, which is the only ELF format
that various bin-utils understand.  The symbol table is not stripped out
of any kernels, it's there in all of them.

Where is the gdb 6.8 version "requirement" coming from?  If you have any
specific questions about the work that was done, feel free to email
Rendell, as he did all that.  It was a fair bit of work, with mixing
and matching of kernel code and gdb and all like that.

On Thu, 8 Apr 2010 16:20:21 -0600 "Olien, David" <David.Olien@lsi.com>
wrote:

> Andy,
> 
> Yes, I was interested in usage with gdb/kgdg to examine
> Kernels running on the txrx processors (the tuxrx kernel)
> I have rcon working, and have poked at memory for a running
> Txrx kernel now.
> 
> I think the kernel image with the symbols I want is
> the vmlinux file under .../tuxrx/linux/kernel/linux-mips-2.6
> 
> That seems to be the only 64-bit linux image that has symbols.
> The kernel running on the txrx processors IS a 64-bit kernel, right?
> Or did I just imagine that from somewhere.  Txrx/fp can have a large
> Physical memory, so 64bits is useful.
> 
> Unlike the kernel running on the ssc, which I think is a 32 bit one,
> Since physical memory on the ssc is small (~500 megabytes?)
> 64 bits would just waste physical memory.
> 
> Yeah, gdb doesn't know how to read the bootable images.
> The symbol information has been stripped, plus bootup code
> Prepended.
> 
> I'm looking over the modifications that were done to the
> Gdb we use for debugging the original cougars.
> I THINK that the debugger's understanding of the threads
> Model is in that code.  
> 
> But that's gdb version 5.1.1.  Now we want gdb 6.8.
> 
> It LOOKS like the checkin of the ONSTOR gdb code was done in
> One step... the first checkin includes the changes made
> For the threads. So I can't use the change history to
> Determine what was changed and why.  I am not expert with
> Perforce yet though, so I could be wrong.
> 
> Instead, I've located original source for that version  of
> Gdb I can compare with.
> 
> I'm also reading over GNU's gdb internals document.
> It's not complete, but it's a start.
> 
> dave
> 
> 
> -----Original Message-----
> From: Andrew Sharp [mailto:andy.sharp@lsi.com] 
> Sent: Thursday, April 08, 2010 2:24 PM
> To: Olien, David
> Subject: Re: what exactly are these kernels
> 
> Hi David,
> 
> Did this question ever get answered to your satisfaction?  I guess my
> question was, what do you want to do with the symbol table?  If your
> using it as an input file for kgdb, then probably the .32 one.
> The .bin (and, I'm guessing, the .tx and .cg) one(s) are the binary
> versions used for loading since we don't have an ELF loading PROM.
> But they still contain the symbol table.  I don't know if gdb knows
> how to read them or not.  The Symbol.map files are just the symbol
> table, dumped out in ASCII.
> 
> On Tue, 6 Apr 2010 13:22:54 -0600 "Olien, David" <David.Olien@lsi.com>
> wrote:
> 
> > Sorry, I guess I was tired last night.
> > 
> > Basic question was, which kernel file still
> > Has symbol table information for the tuxrx kernel?
> > 
> > 
> > 
> > -----Original Message-----
> > From: Andrew Sharp [mailto:andy.sharp@lsi.com] 
> > Sent: Tuesday, April 06, 2010 11:58 AM
> > To: Olien, David
> > Subject: Re: what exactly are these kernels
> > 
> > What's the larger question?
> > 
> > On Mon, 5 Apr 2010 21:15:31 -0600 "Olien, David"
> > <David.Olien@lsi.com> wrote:
> > 
> > > I could walk through the Make files (I probably should at some
> > > point).
> > > 
> > > But until I do that.  I thought I'd just ask what all the kernel
> > > versions are.
> > > 
> > > In the directory:
> > > 
> > > Builds/Build-tuxrx-1/tx/dbg/Release/boot
> > > 
> > > I see kernel files:
> > > 
> > > -rw-r--r-- 1 root root 37219909 2010-04-05 19:49 System.map
> > > -rw-r--r-- 1 root root  2084748 2010-04-05 19:27 System-ssc.map
> > > -rwxr-xr-x 1 root root 50427859 2010-04-05 19:49 vmlinux.32
> > > -rw-r--r-- 2 root root  3112528 2010-04-05 19:27 vmlinux.bin
> > > -rw-r--r-- 2 root root  3112528 2010-04-05 19:27 vmlinux.cg
> > > -rwxr-xr-x 1 root root  4697493 2010-04-05 19:27 vmlinux-ssc.32
> > > -rw-r--r-- 1 root root  3564232 2010-04-05 19:49 vmlinux.tx
> > > 
> > > vmlinux.32:     ELF 32-bit LSB executable, MIPS, MIPS64 version 1
> > > (SYSV), statically linked, not stripped vmlinux.bin:    data
> > > vmlinux.cg:     data
> > > vmlinux-ssc.32: ELF 32-bit LSB executable, MIPS, MIPS64 version 1
> > > (SYSV), statically linked, not stripped vmlinux.tx:     data
> > > 
> > > vmlinux.cg and vmlinux.bin are identical.
> > > These are the kernels bootable by the SSC?
> > > And vmlinux-ssc.32 holds the symbol table for this.
> > > And System-ssc.map is the map file.
> > > 
> > > Vmlinux.tx is of course the kernel for tuxrx.
> > > It's symbols can be found in vmlinux.32?
> > > 
> > > All of the kernels that have symbols are 32-bit kernels.
> > > So, all the kernels are 32-bit?
> > > 
> > > I notice that in
> > > 
> > > tuxrx/linux/kernel/linux-mips-2.6
> > > 
> > > there is a vmlinux file with symbols there, which is
> > > a 64-bit kernel.
> > > 
> > > Just trying to sort it all out.
> > > 
> > > dave
