Date: Thu, 13 Mar 2008 14:54:30 +0200 From: "Jacques Fourie" <jacques.fourie@gmail.com> To: "Rafal Jaworowski" <raj@semihalf.com> Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board Message-ID: <be2f52430803130554u49bb3dd6u59915e56df7b2e7d@mail.gmail.com> In-Reply-To: <47D91CAF.9010000@semihalf.com> References: <be2f52430803120811rf734af3ubf8fff00f253a71d@mail.gmail.com> <47D7FA35.30204@semihalf.com> <be2f52430803130138n5d667b9vef2f8c1f2c5bb128@mail.gmail.com> <47D905E8.5020608@semihalf.com> <be2f52430803130452m522e1875y496fc090911fc741@mail.gmail.com> <47D91CAF.9010000@semihalf.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 13, 2008 at 2:23 PM, Rafal Jaworowski <raj@semihalf.com> wrote: > Jacques Fourie wrote: > > Thanks! After changing the patch to 'if (phy != 4 && phy != 7)' the > > kernel boots. > > I see some lock order reversals but it looks like a generic issue in current. > > > > Thanks again for the excellent work in porting FreeBSD to this platform. > > > > Great, please send a booting log :) I'm interested as I don't have access to > 8540 right now and it's good to know it worked on this variation too without > major problems. Please CC the group as previously so that other people can > learn from your experience if anyone else approaches runninig this on 8540. > > Rafal Sorry, I forgot to cc the list in my previous mail. I'll write up a small howto describing how I got FreeBSD to boot and post it to the list. Here is my dmesg for 'boot -v' L1 D-cache enabled L1 I-cache enabled Copyright (c) 1992-2008 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: Thu Mar 13 13:28:28 SAST 2008 jacques@jf70.test.com:/usr/home/jacques/fbsd8_src/usr/src/sys/powerpc/compile/MPC85XX WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "/boot/kernel/kernel" at 0xc0441000. Timecounter "decrementer" frequency 33000000 Hz quality 0 cpu0: Freescale e500v1 core revision 2.0 cpu0: HID0 80004000<EMCP,TBEN> real memory = 251658240 (240 MB) Physical memory chunk(s): 0x00000000 - 0x00ffffff, 16777216 bytes (4096 pages) 0x02000000 - 0x0fb4ffff, 229965824 bytes (56144 pages) avail memory = 245501952 (234 MB) null: <null device, zero device> random: <entropy source, Software, Yarrow> mem: <memory> nfslock: pseudo-device nexus0: <MPC85xx Nexus device> ocpbus0: <On-Chip Peripherals bus> on nexus0 ocpbus0: PORDEVSR=80030107, PORDEVSR2=cf040001 uart0: <16550 or compatible> iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0 uart0: [FILTER] uart0: fast interrupt uart0: console (115384,n,8,1) uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0 uart1: [FILTER] uart1: fast interrupt tsec0: <Three-Speed Ethernet Controller> iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0 miibus0: <MII bus> on tsec0 e1000phy0: <Marvell 88E1000 Gigabit PHY> PHY 4 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto e1000phy1: <Marvell 88E1000 Gigabit PHY> PHY 7 on miibus0 e1000phy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto tsec0: bpf attached tsec0: Ethernet address: 00:01:af:07:9b:8a tsec0: [MPSAFE] tsec0: [ITHREAD] tsec0: [MPSAFE] tsec0: [ITHREAD] tsec0: [MPSAFE] tsec0: [ITHREAD] tsec1: <Three-Speed Ethernet Controller> iomem 0xfef25000-0xfef25fff irq 51,52,56 on ocpbus0 miibus1: <MII bus> on tsec1 e1000phy2: <Marvell 88E1000 Gigabit PHY> PHY 4 on miibus1 e1000phy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto e1000phy3: <Marvell 88E1000 Gigabit PHY> PHY 7 on miibus1 e1000phy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto tsec1: bpf attached tsec1: Ethernet address: 00:01:af:07:9b:8b tsec1: [MPSAFE] tsec1: [ITHREAD] tsec1: [MPSAFE] tsec1: [ITHREAD] tsec1: [MPSAFE] tsec1: [ITHREAD] tsec2: <Three-Speed Ethernet Controller> iomem 0xfef26000-0xfef26fff irq 47,48,49 on ocpbus0 miibus2: <MII bus> on tsec2 e1000phy4: <Marvell 88E1000 Gigabit PHY> PHY 4 on miibus2 e1000phy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto e1000phy5: <Marvell 88E1000 Gigabit PHY> PHY 7 on miibus2 e1000phy5: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto tsec2: bpf attached tsec2: Ethernet address: 00:01:af:07:9b:8c tsec2: [MPSAFE] tsec2: [ITHREAD] tsec2: [MPSAFE] tsec2: [ITHREAD] tsec2: [MPSAFE] tsec2: [ITHREAD] openpic0: <OpenPIC Interrupt Controller> iomem 0xfef40000-0xfef600b3 on ocpbus0 openpic0: Version 1.2, supports 1 CPUs and 56 irqs procfs registered Timecounters tick every 10.000 msec lo0: bpf attached bootpc_init: wired to interface 'tsec1' Sending DHCP Discover packet from interface tsec1 (00:01:af:07:9b:8b) Received DHCP Offer packet on tsec1 from 10.7.146.1 (accepted) (no root path) Received DHCP Offer packet on tsec1 from 10.7.146.1 (ignored) (no root path) Sending DHCP Request packet from interface tsec1 (00:01:af:07:9b:8b) Received DHCP Ack packet on tsec1 from 10.7.146.1 (accepted) (got root path) tsec1 at 10.7.140.53 server 10.7.146.1 boot file /tftpboot/kernel.mpc8540 subnet mask 255.255.255.0 router 10.7.140.1 rootfs 10.7.140.99:/usr/home/jacques/fbsd8_e500_world Adjusted interface tsec1 WARNING: WITNESS option enabled, expect reduced performance. lock order reversal: 1st 0xc2fe4e94 devfs (devfs) @ kern/vfs_subr.c:2063 2nd 0xc2faed94 devfsmount (devfsmount) @ fs/devfs/devfs_vnops.c:201 KDB: stack backtrace: 0xca667bc8: at kdb_backtrace+0x4c 0xca667bd8: at witness_checkorder+0x704 0xca667c28: at _sx_xlock+0x8c 0xca667c48: at devfs_allocv+0x13c 0xca667c88: at devfs_root+0x5c 0xca667cb8: at set_rootvnode+0x44 0xca667ce8: at vfs_mountroot+0x344 0xca667d48: at start_init+0x88 0xca667da8: at fork_exit+0xb4 0xca667dc8: at fork_trampoline+0xc Trying to mount root from nfs:10.7.140.99:/usr/home/jacques/fbsd8_e500_world NFS ROOT: 10.7.140.99:/usr/home/jacques/fbsd8_e500_world lock order reversal: 1st 0xc2fe4b4c nfs (nfs) @ kern/vfs_subr.c:2063 2nd 0xc3086000 vfslock (vfslock) @ kern/vfs_subr.c:364 KDB: stack backtrace: 0xca667998: at kdb_backtrace+0x4c 0xca6679a8: at witness_checkorder+0x704 0xca6679f8: at _lockmgr_args+0x200 0xca667a58: at vfs_busy+0x190 0xca667a78: at lookup+0x820 0xca667b08: at namei+0x368 0xca667b88: at kern_unlink+0x8c 0xca667c38: at vfs_mountroot_try+0x430 0xca667ce8: at vfs_mountroot+0x428 0xca667d48: at start_init+0x88 0xca667da8: at fork_exit+0xb4 0xca667dc8: at fork_trampoline+0xc start_init: trying /sbin/init lock order reversal: 1st 0xc2d8a048 user map (user map) @ vm/vm_map.c:3111 2nd 0xc2fe491c nfs (nfs) @ kern/vfs_subr.c:2063 KDB: stack backtrace: 0xca667a10: at kdb_backtrace+0x4c 0xca667a20: at witness_checkorder+0x704 0xca667a70: at _lockmgr_args+0x200 0xca667ad0: at vop_stdlock+0x3c 0xca667ae0: at VOP_LOCK1_APV+0xec 0xca667b00: at _vn_lock+0xfc 0xca667b50: at vget+0x104 0xca667b90: at vnode_pager_lock+0x1c8 0xca667bd0: at vm_fault+0x20c 0xca667ce0: at trap_pfault+0x13c 0xca667d10: at trap+0xb0 0xca667dd0: user ISI trap by 0x1815c2c: srr1=0x2d000 r1=0x7fffdee0 cr=0x24000048 xer=0 ctr=0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?be2f52430803130554u49bb3dd6u59915e56df7b2e7d>