From owner-freebsd-arm@FreeBSD.ORG Fri Apr 19 15:51:24 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D6AE162C for ; Fri, 19 Apr 2013 15:51:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-gg0-x22f.google.com (mail-gg0-x22f.google.com [IPv6:2607:f8b0:4002:c02::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB5E1D9 for ; Fri, 19 Apr 2013 15:51:24 +0000 (UTC) Received: by mail-gg0-f175.google.com with SMTP id l1so634874ggn.6 for ; Fri, 19 Apr 2013 08:51:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=taNvD58W12wRNQ+vkpUZqUhwwtnSkfzonRKn4Ef9Rqk=; b=hoEHrOAJIg+FK5A7M+6KqMWqMRoAOelHBdS7eFKNtKFsvBd7BJnk8Go6NDPY6Fm9K4 vyNybuo7xOX7bmocWH6RAY+aM6aTKx/MjCzUKz0KsPZKzxZWORo676Ma1Qmz5qrJlwE9 VvcwImnyhDfl9qUrquXUamd7mnuttnFZ3Nu4OdnV/kishVLHBgBnbihVuwtQzPP9/RYQ cnX4jg6pFoKFFo+rZkZAI19t5+qjk/5UQfyMyT+rFD8xpGW0bOEwcO6zIYPB65uScEvR j8d6ozPaBlOXwG/zMPmC4tH5Hy36Xct9SIQtxxM4FyGVP44tWvFmJCPrE5NRF7/c0a/3 OWqA== X-Received: by 10.236.203.35 with SMTP id e23mr11775510yho.123.1366386684114; Fri, 19 Apr 2013 08:51:24 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPS id 30sm25363584yhb.6.2013.04.19.08.51.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Apr 2013 08:51:22 -0700 (PDT) Sender: Warner Losh Subject: Re: FreeBSD in Pandaboard panics in boot Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <51711E08.7030904@semihalf.com> Date: Fri, 19 Apr 2013 09:51:19 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <632D0DCE-48B7-4A41-803B-E6207031E7BC@bsdimp.com> References: <51711E08.7030904@semihalf.com> To: Pablo Ribalta Lorenzo X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkyDxxeSZIJ/d8KB7DaM9Auc50lGYn5zqQCaLb/KOR+eDyEIcRrIE0xCF6mVxYr11dtgiI2 Cc: freebsd-arm@freebsd.org 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: Fri, 19 Apr 2013 15:51:24 -0000 I'm having big issues with WITNESS. Also the stack traceback code is = busterated lately, so try gcc instead of clang. Warner On Apr 19, 2013, at 4:35 AM, Pablo Ribalta Lorenzo wrote: > Hi guys, >=20 > I'm trying to boot FreeBSD over Pandaboard for one of my projects, but = I'm stuck with an issue that it's blocking me and > I'd like to see if someone can provide some insight. >=20 > My setup goes as it follows: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 > - Pandaboard with SD card. >=20 > - SD card correctly formated: >=20 > First partition: > o U-Boot > o MLO > o FreeBSD kernel image >=20 > - FreeBSD kernel image was built from: > o SVN Revision: 248896 > o Using: make buildkernel TARGET_ARCH=3Darm CPUTYPE=3Darmv6 = KERNCONF=3DPANDABOARD -j5 -DCLANG_IS_CC=3Dno >=20 > - U-Boot and MLO were built from: > o origin: git://git.linaro.org/boot/u-boot-linaro-stable.git > o Commit ID: 30dd996a40c7673258bd5743c0813230d92abc7c >=20 >=20 > The problem is the following: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >=20 > When Pandaboard is reseted I stop the autoboot and try to load the = kernel image from tftpboot, which succeeds. However, when I > try to run it in the address where it's loaded, it panics right at the = beginning of the kernel boot. >=20 > I also tried booting the kernel from the SD card, with identical = result. Also with different versions from the source tree, > and I always get the same panic in the same place. >=20 > Am I doing something wrong? Maybe somebody can give me a hand. >=20 >=20 > Here are some logs of what I see: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > /Panda # tftpboot 0x80200000 users/rlp/pandaboard/kernel.bin > Waiting for Ethernet connection... done. > Using sms0 device > TFTP from server 10.2.0.1; our IP address is 10.2.0.98 > Filename 'users/rlp/pandaboard/kernel.bin'. > Load address: 0x80200000 > Loading: = ################################################################# > = ################################################################# > = ################################################################# > = ################################################################# > ####################################### > done > Bytes transferred =3D 4380644 (42d7e4 hex) > Panda # go 0x80200000 > ## Starting application at 0x80200000 ... > 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 10.0-CURRENT #2 r+8cd94da: Thu Apr 18 16:23:24 CEST 2013 > = rlp@gilgamesh.semihalf.com:/home/rlp/obj-superpages/arm.arm/home/rlp/freeb= sd-arm-superpages/sys/PANDABOARD arm > FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 > CPU: Cortex A9-r1 rev 2 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB disabled EABT branch prediction enabled > LoUU:2 LoC:1 LoUIS:2 > Cache level 1: > 32KB/32B 4-way data cache WB Read-Alloc Write-Alloc > 32KB/32B 4-way instruction cache Read-Alloc > real memory =3D 1073741824 (1024 MB) > avail memory =3D 1034764288 (986 MB) > panic: Cannot allocate L1 KVM > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at kdb_enter+0x48: ldrb r15, [r15, r15, ror r15]! > db> bt > Tracing pid 0 tid 0 td 0xc064b460 > _end() at 0xc0660b34 > scp=3D0xc0660b34 rlv=3D0xc054e78c (db_trace_thread+0x34) > rsp=3D0xc0660b18 rfp=3D0xc064a4fc > Bad frame pointer: 0xc064a4fc > db>// > / >=20 > --=20 > Pozdrawiam, > Pablo Ribalta Lorenzo >=20 > _______________________________________________ > 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"