AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080215173534.046f8841@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<larry.scheer@onstor.com>,<warren.gale@onstor.com>,<brian.stark@onstor.com>,<tim.gardner@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	BB375AF679D4A34E9CA8DFA650E2B04E056C93C1@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 15 Feb 2008 17:35:39 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>
Cc: "Warren Gale" <warren.gale@onstor.com>, "Brian Stark"
 <brian.stark@onstor.com>, "Tim Gardner" <tim.gardner@onstor.com>
Subject: Re: Check out this wild boot sequence when using rev 1.0.4 proms
Message-ID: <20080215173539.4836d78e@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E056C93C1@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E056C93C1@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

On Fri, 15 Feb 2008 17:05:44 -0800 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> CF 0 is /dev/sda1 and its fstab is set correctly
> CF 1 is /dev/sdb1 and its fstab is set correctly
> 
> The system boots the embedded images from CF 1 then switches
> to /dev/sda
> 
> 
> SSC-PROM> env view
> 
> Current Environment Settings:
>         autoload       = on         ( off on )
>         autoreboot     = off        ( off on )
>         load_src       = disk       ( disk network )
>         load_opts      = mAt        ( m/s|A/a|d|t )
>         boot_dev       = sdb1       ( sda1 sdb1 sc1 )
>         upgrade_prom   = yes        ( no yes )
>         env_reset      = no         ( no yes )
>         autolinkenable = 3          (SP.0 enabled, SP.1 enabled, SP.2
> disabled, SP.3 disabled)
>         hw_qt          = off        ( off on )
>         hw_ft          = off        ( off on )
>         hw_diag        = off        ( off on )
> 
> SSC-PROM> reboot
> Rebooting ...
>  
> 
> 
> PowerOn Self Test........OK
> 
> Initializing System......please wait
> 
> 
> 
> 
> 
> PMON [SSC,EL,FP,64]
> ONStor Inc. PROM_SIBYTE_CG : Cougar-prom-1.0.4 : Fri Feb  8 14:22:39
> 2008
> CPU type SB1125.  Rev 35  600 MHz
> module: SSC, Slot 0, CPU 0
> Memory size 512 MB.
> Icache size  32 KB, 32/line (4 way)
> Dcache size  32 KB, 32/line (4 way)
> Scache size 256 KB, 32/line (4 way)
> debug IP addr = 10.2.5.4
> debug IP mask = 255.255.0.0
> 
> 
> Initializing Autoloader, hit control-E to bypass
> ........................................................................
> ........
> 
> Type ctrl-e to stop autoload.
> Waiting for SSC to enter autoload init state...done.
>  ext2_load_file /dev/sdb1/boot/vmlinux.bin at location
> ffffffff82000000 disk model: CF 1GB                                  
> disk geometry: cylinders=2044 heads=16 sectors=63
> Type ctrl-e to stop autoload.
> Waiting for TXRX to enter autoload init state...done.
>  ext2_load_file /dev/sdb1/boot/txrx_cg.bin at location 42000000 
> disk model: CF 1GB                                  
> disk geometry: cylinders=2044 heads=16 sectors=63
> Type ctrl-e to stop autoload.
> Waiting for FP to enter autoload init state...done.
>  ext2_load_file /dev/sdb1/boot/fp_cg.bin at location 44000000 
> disk model: CF 1GB                                  
> disk geometry: cylinders=2044 heads=16 sectors=63
>  do_bsd_launch argc = 4 argv[4] = rootdelay=1 
> 
> env[0] = 0xffffffff80b8b938:.cpuclock=4894967296.
> env[1] = 0xffffffff80b8b988:.memsize=512.
> env[2] = 0xffffffff80b8b9d8:.osloadoptions=mAt.
> env[3] = 0xffffffff80b8ba28:.boot=cold.
> env[4] = 0xffffffff80b8ba78:.busclock=600.
> env[5] = 0xffffffff80b8bac8:.ipaddr=10.2.5.4.
> env[6] = 0xffffffff80b8bb18:.netmask=255.255.0.0.
> env[7] = 0xffffffff80b8bb68:.macaddr0=.00:07:34:07:3c:00.
> env[8] = 0xffffffff80b8bbb8:.macaddr1=.00:07:34:07:3c:01.
> env[9] = 0xffffffff80b8bc08:.bootdev=/dev/sdb1.
>  Load options and params for [g] 
>   Address 0xffffffff82000000 argc = 4 
>    argv [0] = g 
>    argv [1] = root=/dev/sda1 
>    argv [2] = ip=none 
>    argv [3] = rootdelay=1 
>  pointer to Prom Util routines = 0x0 
>  Command should be  (addr)(argc, argv, env_strings,
> ptr_prom_util_routines) 
> 
> 
> Linux version 2.6.22-cg (larrys@linux-compile.onstor.net) (gcc version
> 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Thu Feb 14 18:16:23
> PST 2008
> Booting Linux kernel...Mips64 Cougar
> cougar_pmon_init: argc=4, arg=ffffffff80c04300, env=ffffffff80b8b8b8
> 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.2.5.4'
> prom_init: env[6] = 'netmask=255.255.0.0'
> prom_init: env[7] = 'macaddr0=00:07:34:07:3c:00'
> prom_init: env[8] = 'macaddr1=00:07:34:07:3c:01'
> prom_init: env[9] = 'bootdev=/dev/sdb1'
> 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 rootdelay=1

That's not the only thing that's broken.  There should be no ip=dhcp in
the arguments either.

> 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:07:3C:00
> eth1: enabling TCP rcv checksum
> eth1: SiByte Ethernet at 0x10065000, address: 00:07:34:07:3C: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-02-16 00:55:56
> (1203123356)
> Waiting 1sec before mounting root device...
> 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
> 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 1GB, 06/07/29, max PIO2
> ata2.00: 2060352 sectors, multi 0: LBA 
> ata2.00: configured for PIO0
> scsi 1:0:0:0: Direct-Access     ATA      CF 1GB           06/0 PQ: 0
> ANSI: 5
> sd 1:0:0:0: [sdb] 2060352 512-byte hardware sectors (1055 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] 2060352 512-byte hardware sectors (1055 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: 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...Adding 30232k swap on /dev/sda2.  Priority:-1
> extents:1 across:30232k
> done.
> 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...done.
> Activating swapfile swap...done.
> Starting ONStor initial configuration utility:.
> Setting up networking....
> Configuring network interfaces...SIOCADDRT: Network is unreachable
> run-parts: /etc/network/if-up.d/addroutes exited with return code 7
> SIOCADDRT: File exists
> run-parts: /etc/network/if-up.d/addroutes exited with return code 7

What happened with addroutes?

