X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C87328.8F8829B6@onstor-exch02.onstor.net>; Tue, 19 Feb 2008 11:52:22 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: Check out this wild boot sequence when using rev 1.0.4 proms
Date: Tue, 19 Feb 2008 11:52:22 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E08627AE6@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E056C93C2@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Check out this wild boot sequence when using rev 1.0.4 proms
Thread-Index: AchwPDzPZvTQ3oESR1OPhGtwchUt8AC4fy/wAAIQLgAAAEu/QA==
References: <BB375AF679D4A34E9CA8DFA650E2B04E08627A9E@onstor-exch02.onstor.net> <BB375AF679D4A34E9CA8DFA650E2B04E056C93C2@onstor-exch02.onstor.net>
From: "Brian Stark" <brian.stark@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>,
	"Andy Sharp" <andy.sharp@onstor.com>
Cc: "Warren Gale" <warren.gale@onstor.com>,
	"Tim Gardner" <tim.gardner@onstor.com>

Larry,

Excellent, thanks to both you and Warren for jumping on this.  We will
make this fix part of 1.0.5.


Andy,

Let us know how you'd like to proceed with ip=3Ddhcp and any other =
command
line args.


Thanks,
Brian


> -----Original Message-----
> From: Larry Scheer=20
> Sent: Tuesday, February 19, 2008 10:45 AM
> To: Brian Stark; Andy Sharp
> Cc: Warren Gale; Tim Gardner
> Subject: RE: Check out this wild boot sequence when using rev=20
> 1.0.4 proms
>=20
> Brian,
>    This system has compact flashes in both slots. Warren=20
> called me on Friday and as we were trouble shooting the=20
> problem he found a mistake in the prom code. He corrected the=20
> error and sent me a new build which I loaded into the SSC prom.=20
>=20
> This build seems to be working.
>=20
> I have been running with the kernel's CONFIG_CMDLINE set with=20
> ip=3Ddhcp and this kernel has been booting fine whether I am=20
> boot with an NFS root or from compact flash.
>=20
> Just FYI,
>=20
> Larry
> -----Original Message-----
> From: Brian Stark
> Sent: Tuesday, February 19, 2008 10:19 AM
> To: Andy Sharp; Larry Scheer
> Cc: Warren Gale; Tim Gardner
> Subject: RE: Check out this wild boot sequence when using rev=20
> 1.0.4 proms
>=20
> A couple of comments:
>=20
> - Is only 1 CF installed in the bottom slot?  If so, then I=20
> thought we were supposed to pass in sda1 as the boot device. =20
> This is because Linux would mount the root fs on sda1=20
> regardless of physical slot if only 1 CF is installed. =20
>=20
> - I also remember discussing that the arguments should be=20
> consistent whether booting from CF or network, which is why=20
> ip=3Ddhcp is appearing.  Should this be removed if booting from CF?
>=20
> If changes are needed, let's get this straightened out for 1.0.5.
>=20
>=20
> Brian
>=20
>=20
>=20
>=20
> > -----Original Message-----
> > From: Andy Sharp
> > Sent: Friday, February 15, 2008 5:36 PM
> > To: Larry Scheer
> > Cc: Warren Gale; Brian Stark; Tim Gardner
> > Subject: Re: Check out this wild boot sequence when using rev
> > 1.0.4 proms
> >=20
> > On Fri, 15 Feb 2008 17:05:44 -0800 "Larry Scheer"
> > <larry.scheer@onstor.com> wrote:
> >=20
> > > CF 0 is /dev/sda1 and its fstab is set correctly CF 1 is
> > /dev/sdb1 and
> > > its fstab is set correctly
> > >=20
> > > The system boots the embedded images from CF 1 then switches to=20
> > > /dev/sda
> > >=20
> > >=20
> > > SSC-PROM> env view
> > >=20
> > > Current Environment Settings:
> > >         autoload       =3D on         ( off on )
> > >         autoreboot     =3D off        ( off on )
> > >         load_src       =3D disk       ( disk network )
> > >         load_opts      =3D mAt        ( m/s|A/a|d|t )
> > >         boot_dev       =3D sdb1       ( sda1 sdb1 sc1 )
> > >         upgrade_prom   =3D yes        ( no yes )
> > >         env_reset      =3D no         ( no yes )
> > >         autolinkenable =3D 3          (SP.0 enabled, SP.1=20
> > enabled, SP.2
> > > disabled, SP.3 disabled)
> > >         hw_qt          =3D off        ( off on )
> > >         hw_ft          =3D off        ( off on )
> > >         hw_diag        =3D off        ( off on )
> > >=20
> > > SSC-PROM> reboot
> > > Rebooting ...
> > > =20
> > >=20
> > >=20
> > > PowerOn Self Test........OK
> > >=20
> > > Initializing System......please wait
> > >=20
> > >=20
> > >=20
> > >=20
> > >=20
> > > PMON [SSC,EL,FP,64]
> > > ONStor Inc. PROM_SIBYTE_CG : Cougar-prom-1.0.4 : Fri Feb =20
> 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 =3D 10.2.5.4
> > > debug IP mask =3D 255.255.0.0
> > >=20
> > >=20
> > > Initializing Autoloader, hit control-E to bypass
> > >=20
> > ..............................................................
> > ..........
> > > ........
> > >=20
> > > 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                        =20
> >         =20
> > > disk geometry: cylinders=3D2044 heads=3D16 sectors=3D63 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=20
> > > disk model: CF 1GB                                 =20
> > > disk geometry: cylinders=3D2044 heads=3D16 sectors=3D63 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=20
> > > disk model: CF 1GB                                 =20
> > > disk geometry: cylinders=3D2044 heads=3D16 sectors=3D63
> > do_bsd_launch argc
> > > =3D 4 argv[4] =3D rootdelay=3D1
> > >=20
> > > env[0] =3D 0xffffffff80b8b938:.cpuclock=3D4894967296.
> > > env[1] =3D 0xffffffff80b8b988:.memsize=3D512.
> > > env[2] =3D 0xffffffff80b8b9d8:.osloadoptions=3DmAt.
> > > env[3] =3D 0xffffffff80b8ba28:.boot=3Dcold.
> > > env[4] =3D 0xffffffff80b8ba78:.busclock=3D600.
> > > env[5] =3D 0xffffffff80b8bac8:.ipaddr=3D10.2.5.4.
> > > env[6] =3D 0xffffffff80b8bb18:.netmask=3D255.255.0.0.
> > > env[7] =3D 0xffffffff80b8bb68:.macaddr0=3D.00:07:34:07:3c:00.
> > > env[8] =3D 0xffffffff80b8bbb8:.macaddr1=3D.00:07:34:07:3c:01.
> > > env[9] =3D 0xffffffff80b8bc08:.bootdev=3D/dev/sdb1.
> > >  Load options and params for [g]=20
> > >   Address 0xffffffff82000000 argc =3D 4=20
> > >    argv [0] =3D g=20
> > >    argv [1] =3D root=3D/dev/sda1=20
> > >    argv [2] =3D ip=3Dnone=20
> > >    argv [3] =3D rootdelay=3D1
> > >  pointer to Prom Util routines =3D 0x0  Command should be =20
> > > (addr)(argc, argv, env_strings,
> > > ptr_prom_util_routines)
> > >=20
> > >=20
> > > 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=3D4, arg=3Dffffffff80c04300,=20
> env=3Dffffffff80b8b8b8
> > > prom_init: env[0] =3D 'cpuclock=3D4894967296'
> > > prom_init: env[1] =3D 'memsize=3D512'
> > > prom_init: env[2] =3D 'osloadoptions=3DmAt'
> > > prom_init: env[3] =3D 'boot=3Dcold'
> > > prom_init: env[4] =3D 'busclock=3D600'
> > > prom_init: env[5] =3D 'ipaddr=3D10.2.5.4'
> > > prom_init: env[6] =3D 'netmask=3D255.255.0.0'
> > > prom_init: env[7] =3D 'macaddr0=3D00:07:34:07:3c:00'
> > > prom_init: env[8] =3D 'macaddr1=3D00:07:34:07:3c:01'
> > > prom_init: env[9] =3D 'bootdev=3D/dev/sdb1'
> > > CPU revision is: 00040103
> > > FPU revision is: 000f0103
> > > Broadcom SiByte BCM1125H A4 @ 600 MHz (SB1 rev 3) Board=20
> type: ONStor=20
> > > Cougar This kernel optimized for ONStor Cougar board without CFE=20
> > > Determined physical RAM map:
> > >  memory: 0000000002000000 @ 0000000000000000 (ROM data)
> > >  memory: 000000000e000000 @ 0000000002000000 (usable)
> > >  memory: 000000000f000000 @ 0000000080000000 (usable)
> > >  memory: 0000000001000000 @ 000000008f000000 (reserved) Wasting=20
> > > 458752 bytes for tracking 8192 unused pages Built 1 zonelists. =20
> > > Total pages: 577720 Kernel command line: console=3Dduart0,57600n8=20
> > > ip=3Ddhcp root=3D/dev/sda1 ip=3Dnone rootdelay=3D1
> >=20
> > That's not the only thing that's broken.  There should be=20
> no ip=3Ddhcp=20
> > in the arguments either.
> >=20
> > > 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=20
> > > MHz high precision timer.
> > > Dentry cache hash table entries: 524288 (order: 10,=20
> 4194304 bytes)=20
> > > 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)=20
> > > TCP established hash table entries: 131072 (order: 9,=20
> 2097152 bytes)=20
> > > TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
> > > TCP: Hash tables configured (established 131072 bind=20
> 65536) TCP reno=20
> > > registered io scheduler noop registered io scheduler anticipatory=20
> > > registered io scheduler deadline registered io scheduler cfq=20
> > > 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=20
> > > 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=20
> > > 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=20
> > > 0x41000000-0x417fffff 0x44000000-0x53ffffff
> > > pcmcia: registering new device pcmcia0.0 scsi0 : pata_pcmcia
> > > ata1: PATA max PIO0 cmd 0x90000000dc000000 ctl 0x90000000dc00000e=20
> > > bmdma 0x0000000000000000 irq 56
> > > ds1511 ds1511: rtc core: registered ds1511 as rtc0
> > > MGMTBUS: using irq 28
> > > MGMTBUS: registered net device mgmtbus @ 900000008f000000 rcon=20
> > > device will be in the hizzy @ 900000008f0000e0 TCP cubic=20
> 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          =20
> 06/0 PQ: 0
> > > ANSI: 5
> > > sd 0:0:0:0: [sda] 2060352 512-byte hardware sectors (1055 MB) sd=20
> > > 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda]=20
> Write cache:=20
> > > disabled, read cache:
> > enabled, doesn't
> > > support DPO or FUA
> > > sd 0:0:0:0: [sda] 2060352 512-byte hardware sectors (1055 MB) sd=20
> > > 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda]=20
> Write cache:=20
> > > 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=20
> > > 0x41000000-0x41ffffff 0x44000000-0x53ffffff
> > > pcmcia: registering new device pcmcia1.0
> > > scsi1 : pata_pcmcia
> > > ata2: PATA max PIO0 cmd 0x90000000dc000010 ctl 0x90000000dc00001e=20
> > > 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          =20
> 06/0 PQ: 0
> > > ANSI: 5
> > > sd 1:0:0:0: [sdb] 2060352 512-byte hardware sectors (1055 MB) sd=20
> > > 1:0:0:0: [sdb] Write Protect is off sd 1:0:0:0: [sdb]=20
> Write cache:=20
> > > disabled, read cache:
> > enabled, doesn't
> > > support DPO or FUA
> > > sd 1:0:0:0: [sdb] 2060352 512-byte hardware sectors (1055 MB) sd=20
> > > 1:0:0:0: [sdb] Write Protect is off sd 1:0:0:0: [sdb]=20
> Write cache:=20
> > > 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=20
> starting. =20
> > > 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=20
> return code 7
> > > SIOCADDRT: File exists
> > > run-parts: /etc/network/if-up.d/addroutes exited with=20
> return code 7
> >=20
> > What happened with addroutes?
> >=20
> >=20
>=20
