From owner-freebsd-arm@FreeBSD.ORG Sun Dec 28 17:57:21 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09296E3 for ; Sun, 28 Dec 2014 17:57:21 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF70466627 for ; Sun, 28 Dec 2014 17:57:20 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Y5I5e-0009rj-Uk; Sun, 28 Dec 2014 17:57:19 +0000 Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sBSHvH0Q004627; Sun, 28 Dec 2014 10:57:17 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/Oy5Ey0HP1JkixfYK1kEed Message-ID: <1419789437.1018.207.camel@freebsd.org> Subject: Re: vm_fault during BBB-boot From: Ian Lepore To: Manuel =?ISO-8859-1?Q?St=FChn?= Date: Sun, 28 Dec 2014 10:57:17 -0700 In-Reply-To: <54A0376A.8080908@freenet.de> References: <54A0376A.8080908@freenet.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.8 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by ilsoft.org id sBSHvH0Q004627 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: Sun, 28 Dec 2014 17:57:21 -0000 On Sun, 2014-12-28 at 18:01 +0100, Manuel St=FChn wrote: > Hi, > actual current (r276328) fails to boot on my Beaglebone Black: >=20 > U-Boot SPL 2014.04 (Nov 24 2014 - 20:42:56) > reading args > spl_load_image_fat_os: error reading image args, err - -1 > reading bb-uboot.img > reading bb-uboot.img >=20 >=20 > U-Boot 2014.04 (Nov 24 2014 - 20:42:56) >=20 > I2C: ready > DRAM: 512 MiB > MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 > Using default environment >=20 > Net: not set. Validating first E-fuse MAC > cpsw, usb_ether > Hit any key to stop autoboot: 0 > mmc0 is current device > SD/MMC found on device 0 > reading bb-uEnv.txt > reading bbubldr > 251215 bytes read in 17 ms (14.1 MiB/s) > reading bboneblk.dtb > 16204 bytes read in 5 ms (3.1 MiB/s) > ## Starting application at 0x88000054 ... > Consoles: U-Boot console > Compatible U-Boot API signature found @9f635510 >=20 > FreeBSD/armv6 U-Boot loader, Revision 1.2 > (root@freebsd-vm, Sun Dec 28 16:56:49 CET 2014) >=20 > 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=3D0 slice=3D partition=3D... good. > Loading /boot/defaults/loader.conf > /boot/kernel/kernel data=3D0x502e48+0x951b8 syms=3D[0x4+0x6de90+0x4+0x5= 6361] > /boot/kernel/geom_label.ko text=3D0x4884 data=3D0x77c+0x4=20 > syms=3D[0x4+0xd20+0x4+0xe3e] >=20 > 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, 199= 4 > The Regents of the University of California. All rights reserv= ed. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #0 r276328: Sun Dec 28 16:52:19 CET 2014 > =20 > root@freebsd-vm:/root/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/BE= AGLEBONE=20 > arm > FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 2014051= 2 > 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:3 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 =3D 536870912 (512 MB) > avail memory =3D 512569344 (488 MB) > Texas Instruments AM335x Processor, Revision ES1.2 > random device not loaded/active; using insecure pseudo-random number=20 > 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=20 > simplebus0 > aintc0: Revision 5.0 > ti_scm0: mem 0x44e10000-0x44e11fff on simplebus0 > am335x_prcm0: mem=20 > 0x44e00000-0x44e012ff on simplebus0 > am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz > am335x_dmtimer0: mem=20 > 0x44e05000-0x44e05fff,0x44e31000-0x44e31fff,0x48040000-0x48040fff,0x480= 42000-0x48042fff,0x48044000-0x48044fff,0x48046000-0x48046fff,0x48048000-0= x48048fff,0x4804a000-0x4804afff=20 > irq 66,67,68,69,92,93,94,95 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 simple= bus0 > ti_adc0: scheme: 0x1 func: 0x730 rtl: 0 rev: 0.1 custom rev: 0 > ti_wdt0: mem 0x44e35000-0x44e35fff irq 91 on simple= bus0 > gpio0: mem=20 > 0x44e07000-0x44e07fff,0x4804c000-0x4804cfff,0x481ac000-0x481acfff,0x481= ae000-0x481aefff=20 > 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= =20 > simplebus0 > uart0: console (115384,n,8,1) > ti_edma30: mem=20 > 0x49000000-0x490fffff,0x49800000-0x498fffff,0x49900000-0x499fffff,0x49a= 00000-0x49afffff=20 > irq 12,13,14 on simplebus0 > ti_edma30: EDMA revision 40014c00 > sdhci_ti0: mem 0x48060000-0x48060fff irq 64 on=20 > simplebus0 > mmc0: on sdhci_ti0 > sdhci_ti1: mem 0x481d8000-0x481d8fff irq 28 on=20 > simplebus0 > mmc1: on sdhci_ti1 > cpsw0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a103fff irq= =20 > 40,41,42,43 on simplebus0 > cpsw0: CPSW SS Version 1.12 (0) > cpsw0: Initial queue size TX=3D128 RX=3D384 > miibus0: on cpsw0 > smscphy0: PHY 0 on miibus0 > smscphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > cpsw0: Ethernet address: d0:39:72:54:0a:ec > iichb0: mem 0x44e0b000-0x44e0bfff irq 70 on simpleb= us0 > 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 simpleb= us0 > iichb1: I2C revision 4.0 FIFO size: 32 bytes > iicbus1: on iichb1 > iic1: on iicbus1 > iichb2: mem 0x4819c000-0x4819cfff irq 30 on simpleb= us0 > iichb2: I2C revision 4.0 FIFO size: 32 bytes > iicbus2: on iichb2 > iic2: on iicbus2 > am335x_pwm0: mem=20 > 0x48300000-0x483000ff,0x48300100-0x4830017f,0x48300180-0x483001ff,0x483= 00200-0x4830025f=20 > irq 86,58 on simplebus0 > am335x_pwm1: mem=20 > 0x48302000-0x483020ff,0x48302100-0x4830217f,0x48302180-0x483021ff,0x483= 02200-0x4830225f=20 > irq 87,59 on simplebus0 > am335x_pwm2: mem=20 > 0x48304000-0x483040ff,0x48304100-0x4830417f,0x48304180-0x483041ff,0x483= 04200-0x4830425f=20 > irq 88,60 on simplebus0 > musbotg0: mem=20 > 0x47400000-0x47400fff,0x47401000-0x474012ff,0x47401300-0x474013ff,0x474= 01400-0x474017ff,0x47401800-0x47401aff,0x47401b00-0x47401bff,0x47401c00-0= x47401fff=20 > irq 17,18,19 on simplebus0 > musbotg0: TI AM335X USBSS v0.0.13 > usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM > usbus0 on musbotg0 > usbus1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM > usbus1 on musbotg0 > ti_pruss0: mem=20 > 0x4a300000-0x4a37ffff irq 20,21,22,23,24,25,26,27 on simplebus0 > ti_pruss0: AM33xx PRU-ICSS > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen1.1: at usbus1 > uhub0: = =20 > on usbus1 > ugen0.1: at usbus0 > uhub1: = =20 > on usbus0 > mmcsd0: 8GB at mmc0=20 > 48.0MHz/4bit/65535-block >=20 > vm_fault(0xc0788e48, 0, 1, 0) -> 1 > Fatal kernel mode data abort: 'Translation Fault (S)' > trapframe: 0xdd0cbc60 > FSR=3D00000005, FAR=3D00000010, spsr=3D00000113 > r0 =3D00000000, r1 =3D00000004, r2 =3D00003d2e, r3 =3D00000137 > r4 =3Dc2be4180, r5 =3Dc2be4180, r6 =3Dc078876c, r7 =3Dc0869a24 > r8 =3D028f5c28, r9 =3Dc0713d48, r10=3D00000000, r11=3Ddd0cbcb0 > r12=3D00000001, ssp=3Ddd0cbcb0, slr=3D00101010, pc =3Dc0377d64 >=20 > [ thread pid 12 tid 100006 ] > Stopped at _sx_assert+0x48: ldr r14, [r0, #0x010] > db> >=20 > I already tried different SD-Cards, but no difference. > Any ideas? I can't reproduce this on my BBB. I sync'd to the exact rev you used and rebuilt, installed it all on an sdcard and booted, and I boot all the way to the login prompt. I even diff'd my boot messages against the ones you posted and there are no significant differences other than pathnames and compile times. Maybe a stack backtrace would help... enter 'bt' at that db> prompt and post the output (everything from the vm_fault(...)-> 1 to the end of the backtrace). -- Ian