From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 16:40:22 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7023C1065707 for ; Fri, 27 Aug 2010 16:40:22 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 53A898FC16 for ; Fri, 27 Aug 2010 16:40:22 +0000 (UTC) X-ASG-Debug-ID: 1282927221-506165d40001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id jwJNjRe5FlarTNhQ for ; Fri, 27 Aug 2010 09:40:21 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Fri, 27 Aug 2010 09:40:21 -0700 Message-ID: <4C77EB9F.4020705@adaranet.com> X-Barracuda-BBL-IP: nil Date: Fri, 27 Aug 2010 09:45:19 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: "freebsd-mips@freebsd.org" X-ASG-Orig-Subj: Now partially booting on our CN58XX eval board Content-Type: multipart/mixed; boundary="------------040107090108070808070506" X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282927221 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Subject: Now partially booting on our CN58XX eval board X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 16:40:22 -0000 --------------040107090108070808070506 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Okay, We have it now starting to boot on our eval board with the 1.8.1 SDK bootloader. It panic's on a bad address during a device attach, perhaps in the ethernet driver setup? I am attaching the output from the console below. I do see in the console output 'Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312' Which I am assuming is the cavium SDK pieces being included as part of the mips kernel. Warner, is this what you would see on happen on under 1.8.1? I am attaching (again) my kernel config. Is anything else needed? Patrick Adara Networks ======================================================================= FreeBSD 9.0 (HEAD) MIPS o32 kernel image with an embedded root filesystem - U-Boot 1.1.1 (Development build) (Build time: Feb 6 2009 - 12:34:20) EBT5800 board revision major:2, minor:0, serial #: 2008-2.0-00308 OCTEON CN5860-NSP pass 2.0, Core clock: 750 MHz, DDR clock: 400 MHz (800 Mhz data rate) DRAM: 2048 MB Flash: 8 MB Clearing DRAM........ done BIST check passed. Net: octeth0, octeth1, octeth2, octeth3 Bus 0 (CF Card): OK ide 0: Model: CF 1GB Firm: 20071116 Ser#: TSS25014080506093731 Type: Removable Hard Disk Capacity: 967.6 MB = 0.9 GB (1981728 x 512) Octeon ebt5800# tftp 20000000 mahan/kern.mips90 Interface 1 has 4 ports (RGMII) Using octeth0 device TFTP from server 10.10.29.252; our IP address is 10.10.21.80 Filename 'mahan/kern.mips90'. Load address: 0x20000000 Loading: ################################################octeth0: Up 1000 Mbps Full duplex (port 16) ################# ################################################################# ################################################################# ################################################################# #################### done Bytes transferred = 40081218 (2639742 hex), 12406 Kbytes/sec Octeon ebt5800# bootoctlinux 20000000 ELF file is 32 bit Skipping non LOAD program header (type 0x6) Skipping non LOAD program header (type 0x3) Skipping non LOAD program header (type 0x70000000) Allocated memory for ELF segment: addr: 0x1000000, size 0x259e6c0 Loading .text @ 0x810000d4 (2760492 bytes) Loading .MIPS.stubs @ 0x812a2000 (16 bytes) Loading .rodata @ 0x812a4000 (46304 bytes) Loading .reginfo @ 0x812af4e0 (24 bytes) Loading .rodata.str1.4 @ 0x812af4f8 (151424 bytes) Loading set_sysctl_set @ 0x812d4478 (3744 bytes) Loading set_sysinit_set @ 0x812d5318 (1944 bytes) Loading set_sysuninit_set @ 0x812d5ab0 (1040 bytes) Loading .interp @ 0x812d5ec0 (13 bytes) Loading .dynsym @ 0x812d5ed0 (79632 bytes) Loading .dynstr @ 0x812e95e0 (75807 bytes) Loading .hash @ 0x812fbe00 (36312 bytes) Loading set_kdb_dbbe_set @ 0x81304bd8 (8 bytes) Loading set_modmetadata_set @ 0x81304be0 (552 bytes) Loading set_cons_set @ 0x81304e08 (8 bytes) Loading .data @ 0x81304e10 (36178576 bytes) Loading set_pcpu @ 0x835858c0 (3328 bytes) Loading .got @ 0x835865c0 (7604 bytes) Loading .rld_map @ 0x83588374 (4 bytes) Loading .sdata @ 0x83588378 (8 bytes) Clearing .bss @ 0x83588380 (90944 bytes) ## Loading Linux kernel with entry point: 0x810000e0 ... Bootloader: Done loading app on coremask: 0x1 Boot Descriptor Ver: 6 -> 1/2 CPU clock: 750MHz Core Mask: 0 Board Type: 15 Revision: 2/0 Mac Address 00.0F.B7.10.50.22 (14) Board: EBT5800 Model: CN5860p2.0-750-NSP Cache info: picache_stride = 4096 picache_loopcount = 8 pdcache_stride = 128 pdcache_loopcount = 64 cpu0: Cavium processor v8.3 MMU: Standard TLB, 64 entries L1 i-cache: 4 ways of 64 sets, 128 bytes per line L1 d-cache: 64 ways of 1 sets, 128 bytes per line Config1=0xfe3303da Config3=0x1080 Physical memory chunk(s): 0x359f000 - 0xff9efff, 211812352 bytes (51712 pages) 0x20000000 - 0x7fffffff, 1610612736 bytes (393216 pages) Maxmem is 0x80000000 KDB: debugger backends: ddb KDB: current backend: ddb Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312 Available Octeon features: SAAD ZIP CRYPTO KEY_MEMORY LED_CONTROLLER TRA DFA Copyright (c) 1992-2010 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 9.0-CURRENT #1: Thu Aug 26 18:10:29 PDT 2010 mahan@mycroft.adaranet.com:/home/mahan/src/FreeBSD.org/sources/HEAD/mips32/obj/mips.mips/home/mahan/src/FreeBSD.org/sources/HEAD/hes real memory = 1822425088 (1779712K bytes) Physical memory chunk(s): 0x0362b000 - 0x0ff9efff, 211238912 bytes (51572 pages) 0x20000000 - 0x7dddffff, 1574830080 bytes (384480 pages) avail memory = 1782566912 (1699MB) null: random: mem: nexus0: clock0: on nexus0 clock0: [FILTER] Timecounter "MIPS32" frequency 750000000 Hz quality 800 Event timer "MIPS32" frequency 750000000 Hz quality 800 rnd0: on nexus0 ciu0: on nexus0 ciu0: [FILTER] obio0 on ciu0 uart1: on obio0 uart1: [FILTER] uart1: fast interrupt uart1: console (115200,n,8,1) uart0: on obio0 uart0: [FILTER] uart0: fast interrupt uart0: console (115200,n,8,1) octebus0: on ciu0 cavium-ethernet: Cavium Networks Octeon SDK version 1.9.0, build 312 octebus0: [MPSAFE] octebus0: [FILTER] Interface 1 has 4 ports (RGMII) panic: cvmx_phys_to_ptr: mapping high address (0x2090a880) not yet supported. Tracing pid 0 tid 100000 td 0x8358bb90 db_trace_thread+30 (?,?,?,?) ra 810058c4 sp 835b05e0 sz 24 810057a8+11c (810e6ee8,?,ffffffff,?) ra 81005208 sp 835b05f8 sz 32 81004e74+394 (?,?,?,?) ra 81005398 sp 835b0618 sz 168 db_command_loop+78 (?,?,?,?) ra 81007b28 sp 835b06c0 sz 24 81007a20+108 (?,?,?,?) ra 810e6c60 sp 835b06d8 sz 424 kdb_trap+108 (?,?,?,?) ra 8125e018 sp 835b0880 sz 32 trap+efc (?,?,?,?) ra 81254ba8 sp 835b08a0 sz 176 MipsKernGenException+13c (0,a,835aefe4,2) ra 810e6ee8 sp 835b0950 sz 200 kdb_enter+50 (?,?,?,?) ra 810ac9b8 sp 835b0a18 sz 24 panic+f8 (?,812af1f4,0,2090a880) ra 81283f94 sp 835b0a30 sz 40 cvmx_cmd_queue_initialize+418 (?,?,?,?) ra 812969dc sp 835b0a58 sz 64 cvmx_pko_config_port+554 (0,10,?,?) ra 81286520 sp 835b0a98 sz 96 cvmx_helper_initialize_packet_io_global+5d8 (?,?,?,?) ra 8127af40 sp 835b0af8 sz 208 cvm_oct_init_module+40c (c581c880,?,?,?) ra 8128363c sp 835b0bc8 sz 96 8128361c+20 (?,?,?,?) ra 810e0028 sp 835b0c28 sz 24 device_attach+348 (?,?,?,?) ra 810e18d4 sp 835b0c40 sz 64 device_probe_and_attach+3c (?,?,?,?) ra 810e190c sp 835b0c80 sz 24 bus_generic_attach+20 (?,?,?,?) ra 81272b74 sp 835b0c98 sz 24 812729e0+194 (?,?,?,?) ra 810e0028 sp 835b0cb0 sz 80 device_attach+348 (?,?,?,?) ra 810e18d4 sp 835b0d00 sz 64 device_probe_and_attach+3c (?,?,?,?) ra 810e190c sp 835b0d40 sz 24 bus_generic_attach+20 (?,?,?,?) ra 8126cc98 sp 835b0d58 sz 24 8126cc74+24 (?,?,?,?) ra 810e0028 sp 835b0d70 sz 24 device_attach+348 (?,?,?,?) ra 810e18d4 sp 835b0d88 sz 64 device_probe_and_attach+3c (?,?,?,?) ra 810e1b94 sp 835b0dc8 sz 24 bus_generic_new_pass+10c (?,?,?,?) ra 810dced0 sp 835b0de0 sz 40 bus_set_pass+c0 (?,?,?,?) ra 810dcf2c sp 835b0e08 sz 40 root_bus_configure+14 (?,?,?,?) ra 81253d7c sp 835b0e30 sz 24 81253d6c+10 (?,?,?,?) ra 8104f200 sp 835b0e48 sz 24 mi_startup+110 (?,?,?,?) ra 81000178 sp 835b0e60 sz 32 _start+98 (?,?,?,?) ra 0 sp 835b0e80 sz 0 pid 0 --------------040107090108070808070506 Content-Type: text/plain; name="OCTEON1-32" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="OCTEON1-32" # OCTEON1 -- Configuration kernel for all Octeon1 SoCs from Cavium Networks # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD$ machine mips cpu CPU_CNMIPS ident OCTEON1 # Don't build any modules yet. makeoptions MODULES_OVERRIDE="" makeoptions TARGET_BIG_ENDIAN=defined makeoptions ARCH_FLAGS="-march=octeon" makeoptions LDSCRIPT_NAME=ldscript.mips.octeon1.32 makeoptions KERNLOADADDR=0x81000000 include "../cavium/std.octeon1" hints "OCTEON1.hints" #Default places to look for devices. makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options ISA_MIPS32 options DDB options KDB options SCHED_4BSD #4BSD scheduler options PREEMPTION options INET #InterNETworking #options NFSCLIENT #Network Filesystem Client #options NFS_ROOT #NFS usable as /, requires NFSCLIENT options PSEUDOFS #Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions #options ROOTDEVNAME=\"ufs:ad0s1a\" # Original options NO_SWAPPING options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories # Debugging for use in -current #options DEADLKRES #Enable the deadlock resolver #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed #options SMP # Board-specific support that cannot be auto-detected at runtime. #options OCTEON_VENDOR_LANNER # Support for Lanner boards. #options OCTEON_BOARD_CAPK_0100ND # Support for CAPK-0100nd. device loop device ether device md device uart nodevice uart_ns8250 device pty device miibus device octe #options VERBOSE_SYSINIT device bpf device random # # Use the following for Compact Flash file-system #device cf #options ROOTDEVNAME=\"ufs:cf0s2a\" # Unmask if compact flash is needed as RFS # # Use the following for RFS in mem-device options MD_ROOT options ROOTDEVNAME=\"ufs:md0\" options MD_ROOT_SIZE = 35184 --------------040107090108070808070506--