From owner-freebsd-arm@FreeBSD.ORG Fri Dec 5 17:14:33 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A297D67E for ; Fri, 5 Dec 2014 17:14:33 +0000 (UTC) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 396DC957 for ; Fri, 5 Dec 2014 17:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1417799646; l=10198; s=domk; d=ulrich-grey.de; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References: In-Reply-To:Subject:Cc:To:From:Date; bh=BtzefVWGjMO7GunztH0Ckb+3U0o=; b=PKnEi26vyNP7gnn5q8FU/V9VydHPtnqiEygj8zkGr9tgSa9Nafp0QKPL5/+aq4XDIbE kRDhWobayHSzA0NDpLnHTmm1o10VVWh562wJX3BOiWXmTd0nePpgqYN3JO9JIAkywjXKY qlgg1o/smn5IF8gX0C+QWCk16CqkDqgif+8= X-RZG-AUTH: :OX8Be0W8W+pMC3rDLL/lo2xV/LZTbZkYhOcjg8suic3iYr/B8J9Lzp3TJg47uMv/Cr/Q X-RZG-CLASS-ID: mo00 Received: from quad (p54868294.dip0.t-ipconnect.de [84.134.130.148]) by smtp.strato.de (RZmta 36.2 DYNA|AUTH) with ESMTPSA id f01b36qB5HDu1FE (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate); Fri, 5 Dec 2014 18:13:56 +0100 (CET) Date: Fri, 5 Dec 2014 17:13:55 +0000 From: Ulrich Grey To: Svatopluk Kraus Subject: Re: Booting Beagle Board Black fails. Message-Id: <20141205171355.6a18710d8dbd7af9c8fa02bf@ulrich-grey.de> In-Reply-To: References: <20141204180208.7f1f05ca30e779e1a859abda@ulrich-grey.de> Organization: - X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; armv6-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2014 17:14:33 -0000 I tried it with current, revision 275482: # FreeBSD/armv6 U-Boot loader, Revision 1.2 (root@noname.privat, Thu Dec 4 23:55:39 CET 2014) DRAM: 512MB Number of U-Boot devices: 2 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=0 slice= partition=... good. Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x483348+0x94cb8 syms=[0x4+0x87620+0x4+0x514ff] /boot/kernel/geom_label.ko text=0x4ce4 data=0x76c+0x4 syms=[0x4+0xee0+0x4+0xe36] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by U-Boot at address 0x80000100. Kernel entry at 0x80200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2014 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 r275482M: Thu Dec 4 23:48:42 CET 2014 root@noname.privat:/usr/home/gwg/00-TRANSIT/crochet-freebsd-NEU/trunk/work/o bj/arm.armv6/usr/SRC/head/sys/BEAGLEBONE arm FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 WARNING: WITNESS option enabled, expect reduced performance. CPU: Cortex A8-r3 rev 2 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:2 LoUIS:1 Cache level 1: 32KB/64B 4-way data cache WT WB Read-Alloc 32KB/64B 4-way instruction cache Read-Alloc Cache level 2: 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc real memory = 536870912 (512 MB) avail memory = 513007616 (489 MB) Texas Instruments AM3358 Processor, Revision ES1.1 random device not loaded/active; using insecure pseudo-random number generator random: entropy device infrastructure driver random: selecting highest priority adaptor random: SOFT: yarrow init() random: selecting highest priority adaptor ofwbus0: simplebus0: on ofwbus0 aintc0: mem 0x48200000-0x48200fff on simplebus0 aintc0: Revision 5.0 ti_scm0: mem 0x44e10000-0x44e11fff on simplebus0 am335x_prcm0: mem 0x44e00000-0x44e012ff on s implebus0 am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz am335x_dmtimer0: mem 0x44e05000-0x44e05fff,0x44e31000-0x44e31ff f,0x48040000-0x48040fff,0x48042000-0x48042fff,0x48044000-0x48044fff,0x48046000-0 x48046fff,0x48048000-0x48048fff,0x4804a000-0x4804afff irq 66,67,68,69,92,93,94,9 5 on simplebus0 Timecounter "AM335x Timecounter" frequency 24000000 Hz quality 1000 Event timer "AM335x Eventtimer" frequency 24000000 Hz quality 1000 ti_adc0: mem 0x44e0d000-0x44e0efff irq 16 on simplebus0 ti_adc0: scheme: 0x1 func: 0x730 rtl: 0 rev: 0.1 custom rev: 0 ti_wdt0: mem 0x44e35000-0x44e35fff irq 91 on simplebus0 gpio0: mem 0x44e07000-0x44e07fff,0x4804c0 00-0x4804cfff,0x481ac000-0x481acfff,0x481ae000-0x481aefff irq 96,97,98,99,32,33, 62,63 on simplebus0 gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 53 on gpiobus0 gpioled1: at pin(s) 54 on gpiobus0 gpioled2: at pin(s) 55 on gpiobus0 gpioled3: at pin(s) 56 on gpiobus0 uart0: mem 0x44e09000-0x44e09fff irq 72 on simplebu s0 uart0: console (115384,n,8,1) ti_edma30: mem 0x49000000-0x490fffff,0x49800000-0x498fffff, 0x49900000-0x499fffff,0x49a00000-0x49afffff irq 12,13,14 on simplebus0 ti_edma30: EDMA revision 40014c00 sdhci_ti0: mem 0x48060000-0x48060fff irq 64 on simplebus0 mmc0: on sdhci_ti0 sdhci_ti1: mem 0x481d8000-0x481d8fff irq 28 on simplebus0 mmc1: on sdhci_ti1 cpsw0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a103fff irq 40,41,42 ,43 on simplebus0 cpsw0: CPSW SS Version 1.12 (0) cpsw0: Initial queue size TX=128 RX=384 miibus0: on cpsw0 smscphy0: PHY 0 on miibus0 smscphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cpsw0: Ethernet address: c8:a0:30:bf:08:b1 iichb0: mem 0x44e0b000-0x44e0bfff irq 70 on simplebus0 iichb0: I2C revision 4.0 FIFO size: 32 bytes iicbus0: on iichb0 iic0: on iicbus0 am335x_pmic0: at addr 0x48 on iicbus0 iichb1: mem 0x4802a000-0x4802afff irq 71 on simplebus0 iichb1: I2C revision 4.0 FIFO size: 32 bytes iicbus1: on iichb1 iic1: on iicbus1 iichb2: mem 0x4819c000-0x4819cfff irq 30 on simplebus0 iichb2: I2C revision 4.0 FIFO size: 32 bytes iicbus2: on iichb2 iic2: on iicbus2 am335x_pwm0: mem 0x48300000-0x483000ff,0x48300100-0x4830017f,0x4830 0180-0x483001ff,0x48300200-0x4830025f irq 86,58 on simplebus0 am335x_pwm1: mem 0x48302000-0x483020ff,0x48302100-0x4830217f,0x4830 2180-0x483021ff,0x48302200-0x4830225f irq 87,59 on simplebus0 am335x_pwm2: mem 0x48304000-0x483040ff,0x48304100-0x4830417f,0x4830 4180-0x483041ff,0x48304200-0x4830425f irq 88,60 on simplebus0 musbotg0: mem 0x47400000-0x47400fff,0x 47401000-0x474012ff,0x47401300-0x474013ff,0x47401400-0x474017ff,0x47401800-0x474 01aff,0x47401b00-0x47401bff,0x47401c00-0x47401fff irq 17,18,19 on simplebus0 musbotg0: TI AM335X USBSS v0.0.13 Fatal kernel mode data abort: 'External Non-Linefetch Abort (S)' trapframe: 0xc0816d08 FSR=00001008, FAR=ffa00010, spsr=40000193 r0 =00000000, r1 =ffa00000, r2 =00000010, r3 =c054bd10 r4 =c29b1e80, r5 =c2ad4000, r6 =c2ad63d0, r7 =c2ad63ec r8 =c0680a30, r9 =c0709680, r10=00000020, r11=c0816d98 r12=c054bd28, ssp=c0816d58, slr=c056b484, pc =c054bd10 [ thread pid 0 tid 100000 ] Stopped at generic_bs_r_4: ldr r0, [r1, r2] db> bt Tracing pid 0 tid 100000 td 0xc0708a50 db_trace_self() at db_trace_self pc = 0xc05501b4 lr = 0xc0231b44 (db_stack_trace+0xf4) sp = 0xc08169f8 fp = 0xc0816a10 r10 = 0xc0707aac db_stack_trace() at db_stack_trace+0xf4 pc = 0xc0231b44 lr = 0xc02314b4 (db_command+0x270) sp = 0xc0816a18 fp = 0xc0816ab8 r4 = 0x00000000 r5 = 0x00000000 r6 = 0x00000000 db_command() at db_command+0x270 pc = 0xc02314b4 lr = 0xc0231218 (db_command_loop+0x60) sp = 0xc0816ac0 fp = 0xc0816ad0 r4 = 0xc0598d57 r5 = 0xc05b40dd r6 = 0xc0707a98 r7 = 0xc0653d88 r8 = 0xc06a3a24 r9 = 0xc06a3a20 r10 = 0x00000000 db_command_loop() at db_command_loop+0x60 pc = 0xc0231218 lr = 0xc0233c8c (db_trap+0xd8) sp = 0xc0816ad8 fp = 0xc0816bf8 r4 = 0x00000000 r5 = 0xc0707aa4 r6 = 0xc06a3a48 db_trap() at db_trap+0xd8 pc = 0xc0233c8c lr = 0xc03a20f4 (kdb_trap+0xbc) sp = 0xc0816c00 fp = 0xc0816c20 r4 = 0x00000000 r5 = 0x00001008 r6 = 0xc06a3a48 r7 = 0xc0653d88 kdb_trap() at kdb_trap+0xbc pc = 0xc03a20f4 lr = 0xc0565be8 (dab_fatal+0x174) sp = 0xc0816c28 fp = 0xc0816c40 r4 = 0xc0816d08 r5 = 0x00001008 r6 = 0x200001d3 r7 = 0xffa00010 r8 = 0x00000013 r9 = 0xc0708a50 r10 = 0x00000000 dab_fatal() at dab_fatal+0x174 pc = 0xc0565be8 lr = 0xc05660b0 (dab_buserr+0x60) sp = 0xc0816c48 fp = 0xc0816c58 r4 = 0xc0816d08 r5 = 0xc0708a50 r6 = 0xc0816c88 r7 = 0x00001008 dab_buserr() at dab_buserr+0x60 pc = 0xc05660b0 lr = 0xc05656dc (data_abort_handler+0x150) sp = 0xc0816c60 fp = 0xc0816d00 r4 = 0xc0816eb0 r5 = 0xc0816d08 r6 = 0xc0566050 data_abort_handler() at data_abort_handler+0x150 pc = 0xc05656dc lr = 0xc0551f74 (exception_exit) sp = 0xc0816d08 fp = 0xc0816d98 r4 = 0xc29b1e80 r5 = 0xc2ad4000 r6 = 0xc2ad63d0 r7 = 0xc2ad63ec r8 = 0xc0680a30 r9 = 0xc0709680 r10 = 0x00000020 exception_exit() at exception_exit pc = 0xc0551f74 lr = 0xc056b484 (musbotg_attach+0x108) sp = 0xc0816d58 fp = 0xc0816d98 r0 = 0x00000000 r1 = 0xffa00000 r2 = 0x00000010 r3 = 0xc054bd10 r4 = 0xc29b1e80 r5 = 0xc2ad4000 r6 = 0xc2ad63d0 r7 = 0xc2ad63ec r8 = 0xc0680a30 r9 = 0xc0709680 r10 = 0x00000020 r12 = 0xc054bd28 generic_bs_r_4() at generic_bs_r_4 pc = 0xc054bd10 lr = 0xc056b484 (musbotg_attach+0x108) sp = 0xc0816d58 fp = 0xc0816d98 Unwind failure (no registers changed) db> show all pcpu Current CPU: 0 cpuid = 0 dynamic pcpu = 0x18ea40 curthread = 0xc0708a50: pid 0 "swapper" curpcb = 0xc0816eb0 fpcurthread = none idlethread = 0xc297e330: tid 100002 "idle" spin locks held: db> # -------------------------------------------------------------------------- On Fri, 5 Dec 2014 16:57:48 +0100 Svatopluk Kraus wrote: > Michal tested it a few months ago and it worked. With last BBB current > snapshot from freebsd ftp, it hangs on same place. Unfortunately, JTAG is > not on BBB by default, so it takes a while to deal with it. However, we > will fix it certainly. > > Svatopluk Kraus > > > On Thu, Dec 4, 2014 at 7:02 PM, Ulrich Grey wrote: > > > I have built an image for Beagle Bone Black with crochet from the > > alternate source tree > > from Svatopluk Kraus and Michal Meloun. If I try to boot the board (I have > > pressed the > > button etc.), I get this on the serial console: > > > > Hit [Enter] to boot immediately, or any other key for command prompt. > > Booting [/boot/kernel/kernel]... > > Using DTB provided by U-Boot at address 0x80000100. > > Kernel entry at 0x80200100... > > Kernel args: (null) > > > > There it hangs. > > Can anyone give me advice? > > > > Regards > > > > Ulrich > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >