AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070912214830.5f287609@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	BB375AF679D4A34E9CA8DFA650E2B04E0579D766@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 12 Sep 2007 21:51:02 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Brian Stark" <brian.stark@onstor.com>
Cc: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: prom is doing something funky, not the chicken
Message-ID: <20070912215102.445060cb@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0579D766@onstor-exch02.onstor.net>
References: <20070912144955.7e04a73a@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0579D766@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

Yes, well, normally I would just blame it on the OS, but this one has a
very weird "PROM" like smell to it.

I go the memory working.  Along the way, I fixed some problems with
early_printk so now we are getting console output from the very
beginning of the boot process.  Nice.  And of course, we now have 512MB
of memory!  Whee!

COUGAR-PROM> g                       
This kernel optimized for ONStor Cougar board without CFE
Determined physical RAM map:
 memory: 0000000010000000 @ 0000000000000000 (usable)
 memory: 0000000010000000 @ 0000000080000000 (usable)
Built 1 zonelists.  Total pages: 581760
Kernel command line: console=duart0,57600n8 root=/dev/nfs nfsroot=10.0.0.42:/var/nfsroot/cougar,v3,tcp ip=10.1.1.121:10.0.0.42:10.1.1.1:255.255.255.0:couglette:eth0:none -s
Primary instruction cache 32kB, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (43 instructions).
Synthesized TLB load handler fastpath (54 instructions).
Synthesized TLB store handler fastpath (49 instructions).
Synthesized TLB modify handler fastpath (48 instructions).
PID hash table entries: 4096 (order: 12, 32768 bytes)
Using 1.000 MHz high precision timer.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Memory: 433408k/524288k available (2037k kernel code, 90660k reserved, 616k data, 104k init, 0k highmem)
SLUB: Genslabs=22, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 256
Checking for the multiply/shift bug... no.
Checking for the daddi bug... no.
Checking for the daddiu bug... no.
NET: Registered protocol family 16
registering PCI controller with io_map_base unset
PCI: device 0000:00:08.0 has unknown header type 2d, ignoring.
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
io scheduler noop registered
io scheduler cfq registered (default)
eth0: enabling TCP rcv checksum
eth0: SiByte Ethernet at 0x10064000, address: 40:00:00:00:01:00
eth1: enabling TCP rcv checksum
eth1: SiByte Ethernet at 0x10065000, address: 40:00:00:00:01:01
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: found phy 1, vendor 000818 part 0c
eth0: Link speed: 100BaseT HDX
IP-Config: Complete:
      device=eth0, addr=10.1.1.121, mask=255.255.255.0, gw=10.1.1.1,
     host=couglette, domain=, nis-domain=(none),
     bootserver=10.0.0.42, rootserver=10.0.0.42, rootpath=
Looking up port of RPC 100003/3 on 10.0.0.42
Looking up port of RPC 100005/3 on 10.0.0.42
VFS: Mounted root (nfs filesystem) readonly.
Freeing unused kernel memory: 104k freed
modprobe: FATAL: Could not load /lib/modules/2.6.22-cg-g68c4482d-dirty/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.22-cg-g68c4482d-dirty/modules.dep: No such file or directory

INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting parameters of disc: (none).
Activating swap...done.
Setting the system clock..
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Cleaning up ifupdown....
Loading kernel modules...FATAL: Could not load /lib/modules/2.6.22-cg-g68c4482d-dirty/modules.dep: No such file or directory
Loading device-mapper support.
Checking file systems...fsck 1.40-WIP (14-Nov-2006)
done.
Setting kernel variables...done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...done.
Starting portmap daemon....
Starting NTP server: ntpdmodprobe: FATAL: Could not load /lib/modules/2.6.22-cg-g68c4482d-dirty/modules.dep: No such file or directory

.
Starting system log daemon: syslogd.
Give root password for maintenance
(or type Control-D to continue): 
coolcat:~# cat /proc/meminfo 
MemTotal:       433732 kB
MemFree:        415692 kB
Buffers:             0 kB
Cached:           7976 kB
SwapCached:          0 kB
Active:           5724 kB
Inactive:         3628 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:        1388 kB
Mapped:           2396 kB
Slab:             2656 kB
SReclaimable:      640 kB
SUnreclaim:       2016 kB
PageTables:        148 kB
NFS_Unstable:        4 kB
Bounce:              0 kB
CommitLimit:    216864 kB
Committed_AS:     3748 kB
VmallocTotal: 1073741824 kB
VmallocUsed:         0 kB
VmallocChunk: 1073741824 kB
coolcat:~# cat /proc/iomem   
00000000-0fffffff : System RAM
  03000000-031fd557 : Kernel code
  031fd558-0329759f : Kernel data
40000000-5fffffff : SB1250 PCI MEM
80000000-8fffffff : System RAM
coolcat:~# cat /proc/ioports 
00000000-01ffffff : SB1250 PCI I/O
coolcat:~#






On Wed, 12 Sep 2007 17:29:21 -0700 "Brian Stark"
<brian.stark@onstor.com> wrote:

> OK, I think I know what's going on, but I could be wrong since I'm
> just a lowly hardware guy.  I do not believe the PROM is currently
> restricting itself to live in just the lower 48MB of space.  I
> remember Rick mentioning that this was something else he had to clean
> up, so maybe you're running into something from PROM.
> 
> So for now, go ahead and wipe out the PROM and take over all of
> memory.
> 
> 
> Brian
>  
> 
> > -----Original Message-----
> > From: Andy Sharp 
> > Sent: Wednesday, September 12, 2007 2:50 PM
> > To: Brian Stark; Warren Gale
> > Subject: prom is doing something funky, not the chicken
> > 
> > When I boot a kernel which wipes out the prom and takes over 
> > all memory, everything works fine.  When I boot a kernel 
> > which tries to leave the prom intact and not use that memory, 
> > the boot process stops at the same EA every time, can't be a 
> > coincidence.
> > 
> > Here is what I get:
> > 
> > COUGAR-PROM> g                       
> > This kernel optimized for ONStor Cougar board without CFE 
> > Determined physical RAM map:
> >  memory: 0000000003000000 @ 0000000000000000 (ROM data)
> >  memory: 0000000002000000 @ 0000000003000000 (usable)
> >  memory: 0000000003000000 @ 0000000000000000 (ROM data)
> >  memory: 000000000d000000 @ 0000000003000000 (usable)
> >  memory: 0000000010000000 @ 0000000080000000 (usable) Wasting 
> > 688128 bytes for tracking 12288 unused pages
> > 832a271c 0200000d break   512
> > COUGAR-PROM>
> > 
> > 
> > You guys can boot it yourselves and see what's going on, just 
> > load the kernel with these prom commands:
> > 
> > bsd rt add 10.0.0.0 255.255.0.0 10.1.1.1 load -a 
> > ffffffff83000000 10.0.0.42 vmlinux.cg-memprob
> > 
> > and then start it with 'g'
> > 
> > I can change the code all ways from sunday, so that there is 
> > something different at that address, but it always stops at 
> > that address.
> > 
> > Let me know what you think.
> > 
> > Cheers,
> > 
> > a
> > 
