AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080111155707.6219c863@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<rick.lund@onstor.com>,<brian.stark@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	BB375AF679D4A34E9CA8DFA650E2B04E079AC5A9@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 11 Jan 2008 15:58:03 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Rick Lund" <rick.lund@onstor.com>
Cc: "Brian Stark" <brian.stark@onstor.com>
Subject: Re: startup from CF
Message-ID: <20080111155803.085474d9@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E079AC5A9@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E079AC3F6@onstor-exch02.onstor.net>
	<20080111135134.19dc1a54@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E079AC538@onstor-exch02.onstor.net>
	<20080111150950.1cb4ed32@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E079AC5A9@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

OK, so the failures in the case of only the top card inserted should not
be there. I will try it with just the top slot, but I expect it will
work on my machine.  I think that's how I had it when I tried card #2.

The panic is expected in the case of only the second slot populated.
This might be easier to fix in prom than kernel.  The kernel hands out
device assignments based on devices that are there, so if there is no
card in top slot, bottom slot will be /dev/sda to the kernel.  I can
fix this in user space with some udev rules, but those rules aren't
interpreted until after root is mounted by init. So maybe if there is no
upper card, then prom should set root=/dev/sda1. But I'm not sure about
that yet, I will have to test that idea.  udev might not be able to
change the name.


On Fri, 11 Jan 2008 15:47:26 -0800 "Rick Lund" <rick.lund@onstor.com>
wrote:

> It appears to boot OK if both CF are installed.  Gives failure shown
> in previous email if only top slot installed.  Kernel panic if only
> bottom slot installed.
> 
> -Rick
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Friday, January 11, 2008 3:10 PM
> To: Rick Lund
> Cc: Brian Stark
> Subject: Re: startup from CF
> 
> A copy of the image from a known working system is probably what I
> need so I can check out exactly what's on the card.
> 
> On Fri, 11 Jan 2008 14:48:47 -0800 "Rick Lund" <rick.lund@onstor.com>
> wrote:
> 
> > Sorry, IP is 10.1.1.124
> > 
> > -----Original Message-----
> > From: Rick Lund 
> > Sent: Friday, January 11, 2008 2:37 PM
> > To: Andy Sharp
> > Cc: Brian Stark; Larry Scheer
> > Subject: RE: startup from CF
> > 
> > You can use the system if you want to check it out.
> > 
> > SSC port on 10.1.1.100 2001
> > 
> > The IP addr is 10.1.1.125
> > 
> > -Rick
> > 
> > -----Original Message-----
> > From: Andy Sharp 
> > Sent: Friday, January 11, 2008 1:52 PM
> > To: Rick Lund
> > Cc: Brian Stark; Larry Scheer
> > Subject: Re: startup from CF
> > 
> > On Fri, 11 Jan 2008 12:07:37 -0800 "Rick Lund"
> > <rick.lund@onstor.com> wrote:
> > 
> > > Andy,
> > >   Here's the startup sequence with the new CF and my fixes for the
> > > autoload.  It hangs during runlevel 2 init for quite a while.
> > > 
> > > Do you expect that?
> > 
> > It didn't happen to me when I booted one of the CF cards I gave you.
> > Does it do this on both cards?  Basically, something is hosed with
> > the /var partition; the long delay is fsck being run on a hosed
> > filesystem.  Are you definitely using one of the cards I gave you?
> > If so, can you use dd to make a copy of it and send me a pointer to
> > it so I can check it out?
> > 
> > > -Rick
> > > 
> > > 
> > > 
> > > Linux version 2.6.22-cg (larrys@linux-compile.onstor.net) (gcc
> > > version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Tue Jan
> > > 8 15:45:51 PST 2008
> > > Booting Linux kernel...Mips64 Cougar
> > > cougar_pmon_init: argc=3, arg=ffffffff80bf4410,
> > > env=ffffffff80b7bbc8 prom_init: env[0] = 'cpuclock=4894967296'
> > > prom_init: env[1] = 'memsize=512'
> > > prom_init: env[2] = 'osloadoptions=mAt'
> > > prom_init: env[3] = 'boot=cold'
> > > prom_init: env[4] = 'busclock=600'
> > > prom_init: env[5] = 'ipaddr=10.1.1.124'
> > > prom_init: env[6] = 'netmask=255.255.0.0'
> > > prom_init: env[7] = 'macaddr0=00:07:34:10:04:00'
> > > prom_init: env[8] = 'macaddr1=00:07:34:10:04:01'
> > > prom_init: env[9] = 'bootdev=/dev/sda1'
> > > CPU revision is: 00040103
> > > FPU revision is: 000f0103
> > > Broadcom SiByte BCM1125H A4 @ 600 MHz (SB1 rev 3)
> > > Board type: ONStor Cougar
> > > This kernel optimized for ONStor Cougar board without CFE
> > > Determined physical RAM map:
> > >  memory: 0000000002000000 @ 0000000000000000 (ROM data)
> > >  memory: 000000000e000000 @ 0000000002000000 (usable)
> > >  memory: 000000000f000000 @ 0000000080000000 (usable)
> > >  memory: 0000000001000000 @ 000000008f000000 (reserved)
> > > Wasting 458752 bytes for tracking 8192 unused pages
> > > Built 1 zonelists.  Total pages: 577720
> > > Kernel command line: console=duart0,57600n8 ip=dhcp root=/dev/sda1
> > > ip=none
> > > Primary instruction cache 32kB, 4-way, linesize 32 bytes.
> > > Primary data cache 32kB, 4-way, linesize 32 bytes.
> > > Secondary cache 256kB, 4-way, linesize 32 bytes.
> > > Synthesized TLB refill handler (38 instructions).
> > > Synthesized TLB load handler fastpath (49 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/475136k available (2202k kernel code, 41556k
> > > reserved, 690k data, 112k init, 0k highmem)
> > > 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
> > > SCSI subsystem initialized
> > > PCI: Bus 1, cardbus bridge: 0000:00:07.0
> > >   IO window: 00008000-000080ff
> > >   IO window: 00008400-000084ff
> > >   PREFETCH window: 44000000-47ffffff
> > >   MEM window: 48000000-4bffffff
> > > PCI: Bus 5, cardbus bridge: 0000:00:07.1
> > >   IO window: 00008800-000088ff
> > >   IO window: 00008c00-00008cff
> > >   PREFETCH window: 4c000000-4fffffff
> > >   MEM window: 50000000-53ffffff
> > > Time: MIPS clocksource has been installed.
> > > NET: Registered protocol family 2
> > > IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
> > > TCP established hash table entries: 131072 (order: 9, 2097152
> > > bytes) TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
> > > TCP: Hash tables configured (established 131072 bind 65536)
> > > TCP reno registered
> > > io scheduler noop registered
> > > io scheduler anticipatory registered
> > > io scheduler deadline registered
> > > io scheduler cfq registered (default)
> > > SiByte Watchdog: timeout is 8.3 secs
> > > eth0: enabling TCP rcv checksum
> > > eth0: SiByte Ethernet at 0x10064000, address: 00:07:34:10:04:00
> > > eth1: enabling TCP rcv checksum
> > > eth1: SiByte Ethernet at 0x10065000, address: 00:07:34:10:04:01
> > > Yenta: CardBus bridge found at 0000:00:07.0 [0000:0000]
> > > Yenta: Enabling burst memory read transactions
> > > Yenta: Using INTVAL to route CSC interrupts to PCI
> > > Yenta: Routing CardBus interrupts to PCI
> > > Yenta TI: socket 0000:00:07.0, mfunc 0x00000022, devctl 0x60
> > > Yenta: ISA IRQ mask 0x0000, PCI irq 56
> > > Socket status: 30000059
> > > pcmcia: parent PCI bridge I/O window: 0x0 - 0x1ffffff
> > > cs: IO port probe 0x0-0x1ffffff: clean.
> > > pcmcia: parent PCI bridge Memory window: 0x41000000 - 0x5fffffff
> > > Yenta: CardBus bridge found at 0000:00:07.1 [0000:0000]
> > > Yenta: Using INTVAL to route CSC interrupts to PCI
> > > Yenta: Routing CardBus interrupts to PCI
> > > Yenta TI: socket 0000:00:07.1, mfunc 0x00000022, devctl 0x60
> > > Yenta: ISA IRQ mask 0x0000, PCI irq 57
> > > Socket status: 30000059
> > > pcmcia: parent PCI bridge I/O window: 0x0 - 0x1ffffff
> > > cs: IO port probe 0x0-0x1ffffff: clean.
> > > pcmcia: parent PCI bridge Memory window: 0x41000000 - 0x5fffffff
> > > pccard: PCMCIA card inserted into slot 0
> > > cs: memory probe 0x41000000-0x5fffffff: excluding
> > > 0x41000000-0x417fffff 0x44000000-0x53ffffff
> > > pcmcia: registering new device pcmcia0.0
> > > scsi0 : pata_pcmcia
> > > ata1: PATA max PIO0 cmd 0x90000000dc000000 ctl 0x90000000dc00000e
> > > bmdma 0x0000000000000000 irq 56
> > > ds1511 ds1511: rtc core: registered ds1511 as rtc0
> > > MGMTBUS: using irq 28
> > > MGMTBUS: registered net device mgmtbus @ 900000008f000000
> > > rcon device will be in the hizzy @ 900000008f0000e0
> > > TCP cubic registered
> > > NET: Registered protocol family 1
> > > NET: Registered protocol family 17
> > > NET: Registered protocol family 30
> > > ds1511 ds1511: setting the system clock to 2008-01-11 11:58:04
> > > (1200052684)
> > > ata1.00: CFA: CF 1GB, 06/07/29, max PIO2
> > > ata1.00: 2060352 sectors, multi 0: LBA
> > > ata1.00: configured for PIO0
> > > scsi 0:0:0:0: Direct-Access     ATA      CF 1GB           06/0
> > > PQ: 0 ANSI: 5
> > > sd 0:0:0:0: [sda] 2060352 512-byte hardware sectors (1055 MB)
> > > sd 0:0:0:0: [sda] Write Protect is off
> > > sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled,
> > > doesn't support DPO or FUA
> > > sd 0:0:0:0: [sda] 2060352 512-byte hardware sectors (1055 MB)
> > > sd 0:0:0:0: [sda] Write Protect is off
> > > sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled,
> > > doesn't support DPO or FUA
> > >  sda: sda1 sda2 sda3 sda4
> > > sd 0:0:0:0: [sda] Attached SCSI removable disk
> > > EXT3-fs: INFO: recovery required on readonly filesystem.
> > > EXT3-fs: write access will be enabled during recovery.
> > > pccard: PCMCIA card inserted into slot 1
> > > cs: memory probe 0x41000000-0x5fffffff: excluding
> > > 0x41000000-0x41ffffff 0x44000000-0x53ffffff
> > > pcmcia: registering new device pcmcia1.0
> > > scsi1 : pata_pcmcia
> > > ata2: PATA max PIO0 cmd 0x90000000dc000010 ctl 0x90000000dc00001e
> > > bmdma 0x0000000000000000 irq 57
> > > ata2.00: CFA: CF 512MB, 06/07/29, max PIO2
> > > ata2.00: 1028160 sectors, multi 0: LBA
> > > ata2.00: configured for PIO0
> > > scsi 1:0:0:0: Direct-Access     ATA      CF 512MB         06/0
> > > PQ: 0 ANSI: 5
> > > sd 1:0:0:0: [sdb] 1028160 512-byte hardware sectors (526 MB)
> > > sd 1:0:0:0: [sdb] Write Protect is off
> > > sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled,
> > > doesn't support DPO or FUA
> > > sd 1:0:0:0: [sdb] 1028160 512-byte hardware sectors (526 MB)
> > > sd 1:0:0:0: [sdb] Write Protect is off
> > > sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled,
> > > doesn't support DPO or FUA
> > >  sdb: sdb1 sdb2 sdb3 sdb4
> > > sd 1:0:0:0: [sdb] Attached SCSI removable disk
> > > kjournald starting.  Commit interval 5 seconds
> > > EXT3-fs: recovery complete.
> > > EXT3-fs: mounted filesystem with ordered data mode.
> > > VFS: Mounted root (ext3 filesystem) readonly.
> > > Freeing unused kernel memory: 112k freed
> > > 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...Unable to find swap-space signature
> > > failed.
> > > EXT3 FS on sda1, internal journal
> > > Setting the system clock..
> > > Cleaning up ifupdown....
> > > Loading kernel modules...done.
> > > Loading device-mapper support.
> > > Checking file systems...fsck 1.40-WIP (14-Nov-2006)
> > > done.
> > > Setting kernel variables...done.
> > > Mounting local filesystems...ext3: No journal on filesystem on
> > > sdb3 mount: wrong fs type, bad option, bad ext3: No journal on
> > > filesystem on sdb4
> > > superblock on /dev/sdb3,
> > >        missing codepage or other error
> > >        In some cases useful info is found in syslog - try
> > >        dmesg | tail  or so
> > > 
> > > mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
> > >        missing codepage or other error
> > >        In some cases useful info is found in syslog - try
> > >        dmesg | tail  or so
> > > 
> > > failed.
> > > Activating swapfile swap...Unable to find swap-space signature
> > > done.
> > > Starting ONStor initial configuration utility:Removing
> > > /var/log/initial-config.log file.
> > > rm: cannot remove `/var/log/initial-config.log': No such file or
> > > directory
> > > tee: /var/log/initial-config.log: No such file or directory
> > > 
> > > 
> > > 
> > > 
> > > Welcome to the ONStor NAS Gateway Initial Configuration Tool
> > > 
> > > 
> > > 
> > > [Then, after doing the config....]
> > > 
> > > 
> > > Are you sure you do want to exit without configuring
> > > these settings? (Yes or No) y
> > > .
> > > Setting up networking....
> > > Configuring network interfaces...done.
> > > Starting portmap daemon....
> > > /etc/rcS.d/S55bootmisc.sh: line 28: /var/run/utmp: No such file or
> > > directory
> > > INIT: Entering runlevel: 2
> > > Starting system log daemon: syslogd  [And it hangs here for quite
> > > a while, but then finishes after a few minutes]
> > > 
> > > 
> > > 
