boot process
Aleksey V Fedorov
alexf at vsi.ru
Sat Feb 28 08:45:50 PST 2009
On Fri, 27 Feb 2009, Rafal Jaworowski wrote:
> I quickly looked at the manual and noticed the 8548 has a different number of
> local access windows than the default 8. Please try to set law_max to 10 in
> ocpbus_probe().
I make this changes:
Add in spr.h:
#define SVR_MPC8548 0x8031
#define SVR_MPC8548E 0x8039
ocpbus_probe():
if (ver == SVR_MPC8572E || ver == SVR_MPC8572)
law_max = 12;
else if (ver == SVR_MPC8548E || ver == SVR_MPC8548)
law_max = 10;
else
law_max = 8;
cpu_reset():
if (ver == SVR_MPC8572E || ver == SVR_MPC8572 || ver == SVR_MPC8548E || ver == SVR_MPC8548)
/* Systems with dedicated reset register */
ccsr_write4(OCP85XX_RSTCR, 2);
else {
law_getmax():
if (ver == SVR_MPC8572E || ver == SVR_MPC8572)
return (12);
else if (ver == SVR_MPC8548E || ver == SVR_MPC8548)
return (10);
else
return (8);
>> Is it normal that "decrementer" frequency is 0 ?
>
> This isn't good, are you sure a proper value is given to decr_config()?
Hmm. With decr_config(0) kernel is booted, but with actual CCB clock
533000000 kernel silently hang somethere in kdb_init() or "data storage
interrupt" occured.
With decr_config(0) kernel boot look like this now:
setting up elf image... OK
jumping to kernel code
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
L1 D-cache enabled
L1 I-cache enabled
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #13: Sat Feb 28 19:30:25 MSK 2009
root at servd.vsi.ru:/usr/obj/powerpc/usr/current/src/sys/MPC85XX
Timecounter "decrementer" frequency 0 Hz quality 0
cpu0: Freescale e500v2 core revision 2.0
cpu0: HID0 80000000<EMCP>
real memory = 520077312 (495 MB)
Physical memory chunk(s):
0x01000000 - 0x1f713fff, 510738432 bytes (124692 pages)
avail memory = 508682240 (485 MB)
null: <null device, zero device>
random: <entropy source, Software, Yarrow>
nfslock: pseudo-device
mem: <memory>
nexus0: <MPC85xx Nexus device>
ocpbus0: <On-Chip Peripherals bus> on nexus0
ocpbus0: PORDEVSR=82b9ea67, PORDEVSR2=8f000079
uart0: <Non-standard ns8250 class UART with FIFOs> iomem
0xfef04500-0xfef0450f irq 58 on ocpbus0
uart0: [FILTER]
uart0: fast interrupt
uart0: console (9600,n,8,1)
uart1: <Non-standard ns8250 class UART with FIFOs> iomem
0xfef04600-0xfef0460f irq 58 on ocpbus0
uart1: [FILTER]
uart1: fast interrupt
lbc0: <Freescale MPC85xx Local Bus Controller> iomem 0xfef05000-0xfef05fff
on ocpbus0
Wiring VA=ff800000 to PA=ff800000 (size=400000), using TLB1[2]
Wiring VA=ffc00000 to PA=ffc00000 (size=400000), using TLB1[3]
Wiring VA=ff000000 to PA=ff000000 (size=400000), using TLB1[4]
Wiring VA=ff400000 to PA=ff400000 (size=400000), using TLB1[5]
tsec0: <Enhanced Three-Speed Ethernet Controller> iomem
0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0
miibus0: <MII bus> on tsec0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 0 on miibus0
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
tsec0: bpf attached
tsec0: Ethernet address: 00:0c:42:20:99:03
tsec0: [MPSAFE]
tsec0: [ITHREAD]
tsec0: [MPSAFE]
tsec0: [ITHREAD]
tsec0: [MPSAFE]
tsec0: [ITHREAD]
tsec1: <Enhanced Three-Speed Ethernet Controller> iomem
0xfef25000-0xfef25fff irq 51,52,56 on ocpbus0
miibus1: <MII bus> on tsec1
rgephy1: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
tsec1: bpf attached
tsec1: Ethernet address: 00:0c:42:20:99:02
tsec1: [MPSAFE]
tsec1: [ITHREAD]
tsec1: [MPSAFE]
tsec1: [ITHREAD]
tsec1: [MPSAFE]
tsec1: [ITHREAD]
tsec2: <Enhanced Three-Speed Ethernet Controller> iomem
0xfef26000-0xfef26fff irq 47,48,49 on ocpbus0
miibus2: <MII bus> on tsec2
rgephy2: <RTL8169S/8110S/8211B media interface> PHY 2 on miibus2
rgephy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
tsec2: bpf attached
tsec2: Ethernet address: 00:0c:42:20:99:01
tsec2: [MPSAFE]
tsec2: [ITHREAD]
tsec2: [MPSAFE]
tsec2: [ITHREAD]
tsec2: [MPSAFE]
tsec2: [ITHREAD]
tsec3: <Enhanced Three-Speed Ethernet Controller> iomem
0xfef27000-0xfef27fff irq 53,54,55 on ocpbus0
miibus3: <MII bus> on tsec3
rgephy3: <RTL8169S/8110S/8211B media interface> PHY 3 on miibus3
rgephy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
tsec3: bpf attached
tsec3: Ethernet address: 00:0c:42:20:99:00
tsec3: [MPSAFE]
tsec3: [ITHREAD]
tsec3: [MPSAFE]
tsec3: [ITHREAD]
tsec3: [MPSAFE]
tsec3: [ITHREAD]
openpic0: <OpenPIC Interrupt Controller> iomem 0xfef40000-0xfef600b3 on
ocpbus0
openpic0: Version 1.2, supports 1 CPUs and 80 irqs
procfs registered
Timecounters tick every 1.000 msec
vlan: initialized, using hash tables with chaining
lo0: bpf attached
bootpc_init: wired to interface 'tsec0'
Sending DHCP Discover packet from interface tsec0 (00:0c:42:20:99:03)
tsec0: link state changed to DOWN
--
Aleksey V. Fedorov <alexf at vsi.ru> AVF12-RIPE
Phone: +7(4732)539880
Fax: +7(4732)531415 http://www.vsi.ru
CenterTelecom Voronezh ISP http://isp.vsi.ru
More information about the freebsd-ppc
mailing list