From owner-freebsd-arm@FreeBSD.ORG Fri Apr 19 15:45:51 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 5500CAE1 for ; Fri, 19 Apr 2013 15:45:51 +0000 (UTC) (envelope-from rlp@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id 8AAD8CC1 for ; Fri, 19 Apr 2013 15:45:50 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 8BE2EEBDCE; Fri, 19 Apr 2013 12:35:53 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id LXlL-HM-6VpK; Fri, 19 Apr 2013 12:35:52 +0200 (CEST) Received: from [10.0.2.212] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 53E73EBD4D; Fri, 19 Apr 2013 12:35:52 +0200 (CEST) Message-ID: <51711E08.7030904@semihalf.com> Date: Fri, 19 Apr 2013 12:35:52 +0200 From: Pablo Ribalta Lorenzo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: FreeBSD in Pandaboard panics in boot Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 19 Apr 2013 15:45:51 -0000 Hi guys, 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. My setup goes as it follows: ============================ - Pandaboard with SD card. - SD card correctly formated: First partition: o U-Boot o MLO o FreeBSD kernel image - FreeBSD kernel image was built from: o SVN Revision: 248896 o Using: make buildkernel TARGET_ARCH=arm CPUTYPE=armv6 KERNCONF=PANDABOARD -j5 -DCLANG_IS_CC=no - U-Boot and MLO were built from: o origin: git://git.linaro.org/boot/u-boot-linaro-stable.git o Commit ID: 30dd996a40c7673258bd5743c0813230d92abc7c The problem is the following: ============================= 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. 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. Am I doing something wrong? Maybe somebody can give me a hand. Here are some logs of what I see: ================================= /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 = 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/freebsd-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 = 1073741824 (1024 MB) avail memory = 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=0xc0660b34 rlv=0xc054e78c (db_trace_thread+0x34) rsp=0xc0660b18 rfp=0xc064a4fc Bad frame pointer: 0xc064a4fc db>// / -- Pozdrawiam, Pablo Ribalta Lorenzo