Subject: Re: trying to boot on ADI coyote
To: None <port-arm@NetBSD.org>
From: Franck Baudin <franck.baudin@6wind.com>
List: port-arm
Date: 12/18/2003 11:41:49
This is a multi-part message in MIME format.
--------------060207080408010604050206
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi port-arm,

Just a mail to sum up how to boot NetBSD current on ADI coyote: perhaps 
it could help someone else or it could be integrated later in the source 
tree. Currently,  NetBSD boots but the onboard peripherals are not 
supported (integrated NICs, ADSL, flash, ...).

I've attached the bootlog and the diff obtained with:
    cd src/sys/evbarm && cvs diff -cu

The kernel was compiled with:
    ./build.sh -a armeb -m evbarm kernel=IXDP425

Cheers, Franck

--------------060207080408010604050206
Content-Type: text/plain;
 name="diff.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diff.txt"

Index: conf/IXDP425
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/conf/IXDP425,v
retrieving revision 1.3
diff -u -c -r1.3 IXDP425
*** conf/IXDP425        2003/10/23 10:50:01     1.3
--- conf/IXDP425        2003/12/18 09:17:53
***************
*** 111,117 ****
 
  # Console options.  The default console is speed is 115200 baud.
  options       CONSPEED=115200         # Console speed
! options       CONUNIT=0               # Console port number
 
  # Miscellaneous kernel options
  options       KTRACE          # system call tracing, a la ktrace(1)
--- 111,117 ----
 
  # Console options.  The default console is speed is 115200 baud.
  options       CONSPEED=115200         # Console speed
! options       CONUNIT=1               # Console port number
 
  # Miscellaneous kernel options
  options       KTRACE          # system call tracing, a la ktrace(1)
Index: conf/mk.ixdp425
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/conf/mk.ixdp425,v
retrieving revision 1.2
diff -u -c -r1.2 mk.ixdp425
*** conf/mk.ixdp425     2003/05/24 01:55:56     1.2
--- conf/mk.ixdp425     2003/12/18 09:17:53
***************
*** 3,9 ****
  SYSTEM_FIRST_OBJ=     ixdp425_start.o
  SYSTEM_FIRST_SFILE=   ${THISARM}/ixdp425/ixdp425_start.S
 
! KERNEL_BASE_PHYS=0x10200000
  KERNEL_BASE_VIRT=0xc0200000
 
  SYSTEM_LD_TAIL_EXTRA+=; \
--- 3,9 ----
  SYSTEM_FIRST_OBJ=     ixdp425_start.o
  SYSTEM_FIRST_SFILE=   ${THISARM}/ixdp425/ixdp425_start.S
 
! KERNEL_BASE_PHYS=0x00200000
  KERNEL_BASE_VIRT=0xc0200000
 
  SYSTEM_LD_TAIL_EXTRA+=; \
Index: ixdp425/ixdp425_start.S
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/ixdp425/ixdp425_start.S,v
retrieving revision 1.3
diff -u -c -r1.3 ixdp425_start.S
*** ixdp425/ixdp425_start.S     2003/12/08 16:15:31     1.3
--- ixdp425/ixdp425_start.S     2003/12/18 09:17:54
***************
*** 169,175 ****
        mov     pc, r0                  /* leap to kernel entry point! */
 
  Ltable:
!       .word   0x10200000 - 0x4000
 
  Lstart:
        .word   start
--- 169,175 ----
        mov     pc, r0                  /* leap to kernel entry point! */
 
  Ltable:
!       .word   0x00200000 - 0x4000
 
  Lstart:
        .word   start


--------------060207080408010604050206
Content-Type: text/plain;
 name="bootlog.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bootlog.txt"

Ethernet eth0: MAC address 00:0e:0c:00:59:f6
IP: 10.16.18.219/255.255.255.0, Gateway: 10.16.18.1
Default server: 10.16.18.1, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROM]
Red Hat certified release, version 1.92 - built 13:56:07, Oct 20 2003

Platform: ADI Coyote (XScale)
IDE/Parallel Port CPLD Version: 1.0
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x04000000, 0x0001f960-0x03fd1000 available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
RedBoot> load -r -b 0x00200000 -h 10.16.18.145 netbsd.bin
Using default protocol (TFTP)
Raw file loaded 0x00200000-0x004b3cd7, assumed entry at 0x00200000
RedBoot> go

NetBSD/evbarm (Intel IXDP425) booting ...
kernsize=0x2e6a38
physmemory: 16384 pages at 0x10000000 -> 0x13ffffff
Allocating page tables
physical_start = 0x10000000, physical_end = 0x14000000
IRQ stack: p0x1000f000 v0xc000f000
ABT stack: p0x10010000 v0xc0010000
UND stack: p0x10011000 v0xc0011000
SVC stack: p0x10012000 v0xc0012000
Creating L1 page table at 0x10000000
Mapping kernel
pmap_map_chunk: pa=0x10200000 va=0xc0200000 size=0x26b000 resid=0x26b000 prot=0x3
cache=1
SSLLLLLLPPPPPPPPPPP
pmap_map_chunk: pa=0x1046b000 va=0xc046b000 size=0x7c000 resid=0x7c000 prot=0x3 ca
che=1
PPPPPLLLLLLLPPPPPPP
Constructing L2 page tables
pmap_map_chunk: pa=0x1000f000 va=0xc000f000 size=0x1000 resid=0x1000 prot=0x3 cach
e=1
P
pmap_map_chunk: pa=0x10010000 va=0xc0010000 size=0x1000 resid=0x1000 prot=0x3 cach
e=1
P
pmap_map_chunk: pa=0x10011000 va=0xc0011000 size=0x1000 resid=0x1000 prot=0x3 cach
e=1
P
pmap_map_chunk: pa=0x10012000 va=0xc0012000 size=0x2000 resid=0x2000 prot=0x3 cach
e=1
PP
pmap_map_chunk: pa=0x10000000 va=0xc0000000 size=0x4000 resid=0x4000 prot=0x3 cach
e=2
PPPP
pmap_map_chunk: pa=0x10004000 va=0xc0004000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x10005000 va=0xc0005000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x10006000 va=0xc0006000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x10007000 va=0xc0007000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x10008000 va=0xc0008000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x10009000 va=0xc0009000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x1000a000 va=0xc000a000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x1000b000 va=0xc000b000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x1000c000 va=0xc000c000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
pmap_map_chunk: pa=0x1000d000 va=0xc000d000 size=0x1000 resid=0x1000 prot=0x3 cach
e=2
P
devmap: c8000000 -> c800ffff @ f0000000
pmap_map_chunk: pa=0xc8000000 va=0xf0000000 size=0x10000 resid=0x10000 prot=0x3 ca
che=0
L
devmap: c4000000 -> c4000fff @ f0010000
pmap_map_chunk: pa=0xc4000000 va=0xf0010000 size=0x1000 resid=0x1000 prot=0x3 cach
e=0
P
devmap: c0000000 -> c0000fff @ f0011000
pmap_map_chunk: pa=0xc0000000 va=0xf0011000 size=0x1000 resid=0x1000 prot=0x3 cach
e=0
P
devmap: cc000000 -> cc000fff @ f0200000
pmap_map_chunk: pa=0xcc000000 va=0xf0200000 size=0x1000 resid=0x1000 prot=0x3 cach
e=0
P
devmap: 48000000 -> 4bffffff @ f8000000
pmap_map_chunk: pa=0x48000000 va=0xf8000000 size=0x4000000 resid=0x4000000 prot=0x
3 cache=0
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
freestart = 0x104e7000, free_pages = 15129 (0x3b19)
switching to new L1 page table  @0x10000000...bootstrap done.
init subsystems: stacks vectors undefined page pmap irq
All initialize done!
Now Starting NetBSD, Hear we go!
[ Kernel symbol table missing! ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6ZG (IXDP425) #4: Tue Dec 16 15:27:46 CET 2003
        root@viper.dev.6wind.com:/usr/home/baudin/NetBSD/src5/sys/arch/evbarm/comp
ile/obj/IXDP425
total memory = 65536 KB
avail memory = 54904 KB
using 844 buffers containing 3376 KB of memory
mainbus0 (root)
cpu0 at mainbus0: IXP425 533MHz rev 1 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB/32B 32-way Instruction cache
cpu0: 32KB/32B 32-way write-back-locking Data cache
ixpsip0 at mainbus0
com0 at ixpsip0 addr 0xc8000000-0xc8000fff: ns16550a, working fifo
com1 at ixpsip0 addr : ns16550a, working fifo
com1: console
ixpclk0 at ixpsip0 addr 0xc8005000-0xc800502f
ixpclk0: IXP425 Interval Timer
ixdpled0 at ixpsip0 addr 0x52000000-0x52000fff
ixpio0 at mainbus0
ixpio0: configuring PCI bus
pci0 at ixpio0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
fxp0 at pci0 dev 15 function 0: i82559 Ethernet, rev 8
ixdp425_pci_intr_map: v=0xc117f9f4, tag=00007800 intrpin=1 line=0 dev=15
ixdp425_pci_intr_map: no mapping for 0/15/0
fxp0: couldn't map interrupt
clock: hz=100 stathz=0 profhz=0
boot device: <unknown>
root device:
--------------060207080408010604050206--