From owner-freebsd-arm@FreeBSD.ORG Thu Oct 24 06:53:44 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C83D898 for ; Thu, 24 Oct 2013 06:53:44 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 311A62E40 for ; Thu, 24 Oct 2013 06:53:44 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id w62so1834698wes.21 for ; Wed, 23 Oct 2013 23:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=X6ZHJr8cRJF/7lxf9qNdU39fstphGinWj0BAMb2Fkfk=; b=pnGxo4X0CJjP4Nz++Tk6lg7w1Ifq4HYq+y+/MYTIu5drs4XD1RTzv9s+i4TXwqay4O b+A6DGVCKR0rD8AGUUq1t6gGXTnV7U+VcHX1R6CROozNmwgiKiEesS4bpN4RY7Oa2y2O 1ywbweBXPSvz73DSdNgpa45b8Vsa7xhjuEYSNG8zFH5JBmisuliwAUQSkqtWeBxkqcvO IkTz8f/MUvn7l8LeYt9V80GojpQT+Wg8Y17Nf9s4clUUobxUIWukkVuetnLkndYEPnFF eIplKYFaDIEslBHV95CkjaU6CdZF9NL+VLN9MQniybGFGjcX+7CqSqSzQYZpKhc7LAuh 1d+g== MIME-Version: 1.0 X-Received: by 10.180.126.103 with SMTP id mx7mr691699wib.39.1382597621443; Wed, 23 Oct 2013 23:53:41 -0700 (PDT) Received: by 10.217.141.3 with HTTP; Wed, 23 Oct 2013 23:53:41 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Oct 2013 08:53:41 +0200 Message-ID: Subject: Re: AVILA kernel From: Berislav Purgar To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 06:53:44 -0000 On Wed, Oct 16, 2013 at 7:46 PM, Berislav Purgar wrote: > Hello .. > > finally i got gatewroks GW2345 board but now i got stuck on loading > kernel. it stops on copyright message: > > RedBoot> ip -h 10.42.1.1 -l 10.42.1.11 > IP: 10.42.1.11/255.255.255.0, Gateway: 0.0.0.0 > Default server: 10.42.1.1 > RedBoot> load -b 0x200000 kernel > Using default protocol (TFTP) > Address offset = 0x40000000 > Entry point: 0x00200100, address range: 0x00200000-0x007817c8 > RedBoot> go > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 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 11.0-CURRENT #0 r256593M: Wed Oct 16 19:14:51 CEST 2013 > root@brzi:/usr/obj/arm.armeb/usr/src/sys/AVILA arm > gcc version 4.2.1 20070831 patched [FreeBSD] > > on stock AVILA conf. file i got panic : > > RedBoot> ip > IP: 192.168.3.2/255.255.255.0, Gateway: 0.0.0.0 > Default server: 192.168.3.1 > RedBoot> ip -h 10.42.1.1 -l 10.42.1.11 > IP: 10.42.1.11/255.255.255.0, Gateway: 0.0.0.0 > Default server: 10.42.1.1 > RedBoot> load -b 0x200000 kernel > Using default protocol (TFTP) > Address offset = 0x40000000 > Entry point: 0x00200100, address range: 0x00200000-0x006a9808 > RedBoot> go > panic: mtx_lock() of spin mutex pmap @ /usr/src/sys/arm/arm/pmap.c:3676 > Uptime: 1s > > > tnx > Ok .. i manage to do something but still i got problem .. first of all i have to disable ARM_EABI in src.conf WITHOUT_ARM_EABI=yes after that i have to build kernel-toolchain make TARGET=arm TARGET_ARCH=armeb kernel-toolchain and kernel make TARGET=arm TARGET_ARCH=armeb KERNCONF=AVILA buildkernel result is here : RedBoot> ip -h 10.42.1.1 -l 10.42.1.11 IP: 10.42.1.11/255.255.255.0, Gateway: 0.0.0.0 Default server: 10.42.1.1 RedBoot> load -b 0x200000 kernel Using default protocol (TFTP) Address offset = 0x40000000 Entry point: 0x00200100, address range: 0x00200000-0x006ad228 RedBoot> go KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 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 11.0-CURRENT #1 r256953:257039M: Thu Oct 24 08:47:18 CEST 2013 root@brzi:/usr/obj/arm.armeb/usr/src/sys/AVILA arm gcc version 4.2.1 20070831 patched [FreeBSD] CPU: IXP425 533MHz rev 1 (ARMv5TE) (XScale core) Big-endian DC enabled IC enabled WB enabled LABT branch prediction enabled 32KB/32B 32-way instruction cache 32KB/32B 32-way write-back-locking data cache real memory = 67108864 (64 MB) avail memory = 57012224 (54 MB) random device not loaded; using insecure entropy random: initialized ixp0: ixp0: 37fff pcib0: on ixp0 pci0: on pcib0 ath0: irq 27 at device 2.0 on pci0 ath0: AR9220 mac 128.2 RF5133 phy 13.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 ixpclk0: on ixp0 ixpiic0: on ixp0 iicbb0: on ixpiic0 iicbus0: on iicbb0 master-only iic0: on iicbus0 ad74180: at addr 0x50 on iicbus0 ds1672_rtc0: at addr 0xd0 on iicbus0 ixpwdog0: on ixp0 uart0: on ixp0 uart0: console (115200,n,8,1) uart1: on ixp0 ixpqmgr0: on ixp0 npe0: on ixp0 npe0: MAC at 0xc8009000 npe0: MII at 0xc8009000 npe0: load fw image IXP425.NPE-B Func 0x2 Rev 2.1 miibus0: on npe0 ukphy0: PHY 2 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto npe0: Ethernet address: 00:d0:12:03:59:23 npe1: on ixp0 npe1: MAC at 0xc800a000 npe1: MII at 0xc8009000 npe1: load fw image IXP425.NPE-C Func 0x5 Rev 2.1 miibus1: on npe1 ukphy1: PHY 5 on miibus1 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto npe1: Ethernet address: 00:d0:12:13:59:23 ata_avila0: on ixp0 ata0: on ata_avila0 led_avila0: on ixp0 gpio_avila0: on ixp0 gpioc0: on gpio_avila0 gpiobus0: on gpio_avila0 Timecounter "IXP4XX Timer" frequency 66666600 Hz quality 1000 Timecounters tick every 10.000 msec Fatal kernel mode data abort: 'Alignment Fault 3' trapframe: 0xc00facd8 FSR=00000003, FAR=c00faed4, spsr=a00000d3 r0 =c06b4110, r1 =c0e89000, r2 =c00faebc, r3 =10000280 r4 =c06b4110, r5 =c0e89000, r6 =c06c5c94, r7 =c06cc6c0 r8 =c06b4110, r9 =00000000, r10=00000104, r11=c00fad5c r12=c00fad0c, ssp=c00fad2c, slr=c03c8b34, pc =c057a1d0 [ thread pid 0 tid 100019 ] Stopped at cpu_switch+0x28: und 0xe1c281f8 db> db> bt Tracing pid 0 tid 100019 td 0xc0e89000 db_trace_self() at db_trace_self+0xc scp=0xc0569430 rlv=0xc0569480 (db_trace_thread+0x3c) rsp=0xc00fa9c8 rfp=0xc00fa9d4 db_trace_thread() at db_trace_thread+0xc scp=0xc0569450 rlv=0xc022b93c (db_command_init+0x648) rsp=0xc00fa9d8 rfp=0xc00fa9f4 db_command_init() at db_command_init+0x570 scp=0xc022b864 rlv=0xc022afe4 (db_skip_to_eol+0x49c) rsp=0xc00fa9f8 rfp=0xc00faa9c r5=0x00000000 r4=0xc066d1f4 db_skip_to_eol() at db_skip_to_eol+0x1d0 scp=0xc022ad18 rlv=0xc022b150 (db_command_loop+0x60) rsp=0xc00faaa0 rfp=0xc00faaac r10=0x600000d3 r8=0x00000003 r7=0x00000000 r6=0xc00faed4 r5=0xc066d4c4 r4=0xc00faab8 db_command_loop() at db_command_loop+0xc scp=0xc022b0fc rlv=0xc022d630 (X_db_sym_numargs+0xf4) rsp=0xc00faab0 rfp=0xc00fabcc X_db_sym_numargs() at X_db_sym_numargs+0x14 scp=0xc022d550 rlv=0xc03d5f9c (kdb_trap+0xa8) rsp=0xc00fabd0 rfp=0xc00fabf4 r4=0xc00facd8 kdb_trap() at kdb_trap+0xc scp=0xc03d5f00 rlv=0xc057a83c (badaddr_read+0x280) rsp=0xc00fabf8 rfp=0xc00fac14 r10=0x00000104 r8=0xc00facd8 r7=0xc0e89000 r6=0xc00faed4 r5=0x00000003 r4=0xc00facd8 badaddr_read() at badaddr_read+0xfc scp=0xc057a6b8 rlv=0xc057ac98 (prefetch_abort_handler+0x404) rsp=0xc00fac18 rfp=0xc00fac30 r6=0xc06c5c94 r5=0xc00facd8 r4=0xc0e89000 prefetch_abort_handler() at prefetch_abort_handler+0x3bc scp=0xc057ac50 rlv=0xc057adec (data_abort_handler+0x118) rsp=0xc00fac34 rfp=0xc00facd4 r5=0xffff1004 r4=0xc06cc008 data_abort_handler() at data_abort_handler+0xc scp=0xc057ace0 rlv=0xc056accc (exception_exit) rsp=0xc00facd8 rfp=0xc00fad5c r10=0x00000104 r9=0x00000000 r8=0xc06b4110 r7=0xc06cc6c0 r6=0xc06c5c94 r5=0xffff1004 r4=0xffffffff sched_switch() at sched_switch+0xc scp=0xc03c8990 rlv=0xc03aa6bc (mi_switch+0x204) rsp=0xc00fad60 rfp=0xc00fad88 r6=0x5ab0dd5d r5=0x00000000 r4=0x5ab0dd5d mi_switch() at mi_switch+0xc scp=0xc03aa4c4 rlv=0xc03e2d30 (sleepq_type+0x1d4) rsp=0xc00fad8c rfp=0xc00fadac r10=0xc0689c2c r9=0xffffe980 r8=0x00000000 r7=0xc05ec068 r6=0xc06c5c90 r5=0xc0689c2c r4=0xc06b4110 sleepq_type() at sleepq_type+0x80 scp=0xc03e2bdc rlv=0xc03e33a4 (sleepq_timedwait+0x6c) rsp=0xc00fadb0 rfp=0xc00fadcc r8=0xffffe9bb r7=0x00000000 r6=0xc06b4110 r5=0xc05ec068 r4=0xc0689c2c sleepq_timedwait() at sleepq_timedwait+0xc scp=0xc03e3344 rlv=0xc03aaf54 (_sleep+0x340) rsp=0xc00fadd0 rfp=0xc00fae18 r7=0x00000000 r6=0xc06c4098 r5=0x00000000 r4=0x00000000 _sleep() at _sleep+0xc scp=0xc03aac20 rlv=0xc03c8de0 (__stack_chk_fail+0x1ac) rsp=0xc00fae1c rfp=0xc00faea0 r10=0xffffe980 r9=0x0000003b r8=0x00000000 r7=0xc0689c2c r6=0x0000003c r5=0xc06c4098 r4=0x00000000 __stack_chk_fail() at __stack_chk_fail+0x114 scp=0xc03c8d48 rlv=0xc0359cf8 (mi_startup+0xf8) rsp=0xc00faea4 rfp=0xc00faeb8 r10=0x0000000a r9=0x00200100 r8=0x00000001 r7=0x002001b0 r6=0x00000000 r5=0x002001bc r4=0xc061f25c mi_startup() at mi_startup+0xc scp=0xc0359c0c rlv=0xc0200274 (btext+0x174) rsp=0xc00faebc rfp=0x00000000 r5=0x002001bc r4=0x002002b4 db> and what's the problem now? Beri