Subject: Re: 2.1 Kernels do not boot when booted with bootloader
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Alex Pelts <alexp@broadcom.com>
List: port-mips
Date: 11/22/2005 14:03:18
I will try it as soon as I get home.

My problem is that I can't build a kernel that would be loaded over the 
network with CoLo or builtin bootloader. Somehow the kernels that work 
from hard disk do not work when loaded over the network. The difference 
is that from hard disk they are booted with ntbsd bootloader and from 
the network with colo or builtin bootloader.

Kernel 1.6.1 that is on the restore cd can be booted with colo. Also all 
the GENERIC kernels I tryed including 3.0, 2.1, 1.6.2, booted with colo. 
Some to the root mounting others to some earlier point.

Is there any debug info I can enable in the kernel to help to pinpoint 
the problem?  Also is there any place I could read about kernel in more 
details? I am pretty familiar with linux kernel and embedded development 
, just need some pointers.


Thanks,
Alex


Izumi Tsutsui wrote:
> In article <43811843.9030806@broadcom.com>
> alexp@broadcom.com wrote:
> 
> 
>>Some additional information:
>>CoLo is able to execute generic 2.1, 2.0.1 and 3.0-RC1 kernels. They are 
>>too big for native bootloader. Unfortunately all of these kernels get 
>>stuck at "Kernelized RAIDframe activated" line, when booted over the 
>>network. I guess they would be not good for restore environment.
> 
> 
> I don't know about CoLo, but maybe it couldn't load NetBSD kernels
> properly. (because of too many sections or something else?)
> 
> Is your real problem is lack of a bootstrap kernel in 2.1 or 3.0_RC1
> distribution which can be loaded via network rather than failure
> on CoLo? If so, maybe we should add INSTALL to
> src/etc/etc.cobalt/Makefile.inc.
> 
> Could you try the following kernel? (it's -current though)
> http://www.ceres.dti.ne.jp/~tsutsui/netbsd/netbsd-cobalt-INSTALL-20051122.gz
> ---
> Izumi Tsutsui
> 
> 
> Cobalt Microserver Diagnostics - 'We serve it, you surf it'
> Built Tue May 25 15:58:41 PDT 1999
> 
>  1.LCD Test................................PASS
>  2.Controller Test.........................PASS
>  5.Bank 0:.................................64M
>  6.Bank 1:.................................64M
>  7.Bank 2:.................................64M
>  8.Bank 3:.................................64M
>  9.Serial Test.............................PASS
> 10.PCI Expansion Slot......................**EMPTY**
> 12.IDE Test................................PASS
> 13.Ethernet Test...........................PASS
> 16.RTC Test................................PASS
> 
> Cobalt: bfd /netbsd.gz nfsroot=/r/export/NetBSD/cobalt/root
> Decompressing done
> Executing bootloader kernel...
> Decompressing done.
> invalid bootinfo (standalone boot?)
> [ Kernel symbol table missing! ]
> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
>     The NetBSD Foundatn, Inc.  All rights reserved.
> Copyright (c) 1981986, 1989, 1991, 1993
>     The Regents of the Universit California.  All rights reserved.
> 
> NetBSD 3.99.11 (INTALL) #0: Wed Nov 23 05:31:25 JST 2005
> 	tsutsui@mirage:/usr/src/sys/arch/cobalt/compile/INSTALL
> total memory = 256 MB
> avail memory = 249 MB
> mainbus0 (root)
> com0 at mainbus0 addr 0x1c800000 level 3: st16650a, working fifo
> com0: console
> cpu0 at mainbus0: QED RM5200 CPU (0x28a0) Rev. 10.0 with built-in FPU Rev. 10.0
> cpu0: 32KB/32B 2-way set-associative L1 Instruction cache, 48 TLB entries
> cpu0: 32KB/32B 2-way set-associative write-back L1 Data cache
> panel0 at mainbus0 ddr 0x1f000000
> gt0 at mainbus0 addr 0x14000000
> pci0 at gt0
> pci0: i/o space, memy space enabled, rd/line, wr/inv ok
> pchb0 at pci0 dev 0 function 0: Galileo GT-64111 System Controller, rev 1
> tlp0 at pci0 dev 7 function 0: DECchip 21143 Ethernet, pass 4.1
> tlp0: interrupting at level 1
> tlp0: Ethernet address 00:10:e0:00:5e:95
> lxtphy0 at tlp0 phy 1: LXT970 10/100 media interface, rev. 3
> lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> vendor 0x1000 product 0x0006 (SCSI mass storage, revision 0x02) at pci0 dev 8 function 0 not configured
> pcib0 at pci0 dev 9 function 0
> pcib0: vendor 0x1106 product 0x0586, rev 37
> viaide0 at pci0 dev 9 function 1
> viaide0: VIA Technologies VT82C586 (Apollo VP) ATA33 controller
> viaide0: bus-mast DMA support present
> viaide0: primary cannel configured to compatibility mode
> viaide0: primary nnel interrupting at irq 14
> atabus0 at viaide0 hannel 0
> viaide0: secondary chael configured to compatibility mode
> viaide0: secondary annel interrupting at irq 15
> atabus1 at viaide0channel 1
> vendor 0x1106 product 0x3038 (USB serial bus, revision 0x02) at pci0 dev 9 function 2 not configured
> tlp1 at pci0 dev 12 function 0: DECchip 21143 Ethernet, pass 4.1
> tlp1: interrupting at level 2
> tlp1: Ethernet address 00:10:e0:00:5e:97
> lxtphy1 at tlp1 phy 1: LXT970 10/100 media interface, rev. 3
> lxtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> wd0 at atabus0 drive 0: <IBM-DTTA-351680>
> wd0: drive supports 16-sector PIO transfers, LBA addressing
> wd0: 16124 MB, 3260 cyl, 16 head, 63 sec, 512 bytes/sect x 33022080 sectors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
> wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
> boot device: wd0
> root on tlp0
> nfs_boot: trying DHCP/BOOTP
> nfs_boot: DHCP next-server: 192.168.20.17
> nfs_boot: my_domain=cres.dti.ne.jp
> nfs_boot: my_addr=192.168.20.28
> nfs_boot: my_mask=255.255.255.0
> nfs_boot: gateway=192.168.20.17
> root on eclipse:/r/export/NetBSD/cobalt/root
> /etc/rc.conf is not configured.  Multiuser boot aborted.
> Enter pathname of shell or RETURN for /bin/sh: 
> Terminal type is vt100.
> We recommend creating a non-root account and using su(1) for root access.
> # 
> 
> 
>