From owner-freebsd-arm@FreeBSD.ORG Sat Jul 9 12:15:55 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22E0D106566B for ; Sat, 9 Jul 2011 12:15:55 +0000 (UTC) (envelope-from marktinguely@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id DF5B78FC13 for ; Sat, 9 Jul 2011 12:15:54 +0000 (UTC) Received: by iwr19 with SMTP id 19so3184398iwr.13 for ; Sat, 09 Jul 2011 05:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=K1URWXL6z67yuvyj1/P9IVvPT4vM8P/Zin/9CTEU+g0=; b=nxWLBOnzLRS3wMvQzDqX1QeuDfr8HrOqDanWEfa9kyzZeDDdwM9CqpIUnexKOsqUfY Ua+RMLXbV7oRS3pRT4YrDyLJCFjqQRt41kTW9dTYYL1Vnst+njtVj6P91MaE+l9ym2IW Rt4EQIiXWydiDOmOv83xiogrzaE5F1MStIds0= Received: by 10.43.49.129 with SMTP id va1mr3243856icb.445.1310212163618; Sat, 09 Jul 2011 04:49:23 -0700 (PDT) Received: from [192.168.1.111] ([206.188.254.192]) by mx.google.com with ESMTPS id p15sm6551812ibh.63.2011.07.09.04.49.22 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 04:49:22 -0700 (PDT) Message-ID: <4E18403C.8010203@gmail.com> Date: Sat, 09 Jul 2011 06:49:16 -0500 From: Mark Tinguely User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "Brian J. McGovern" References: <20110708120025.5C94210656D9@hub.freebsd.org> <1310178351.5681.4.camel@bmcgover-laptop.beta.com> In-Reply-To: <1310178351.5681.4.camel@bmcgover-laptop.beta.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org Subject: Re: Suggestions for arm build for qemu? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jul 2011 12:15:55 -0000 On 7/8/2011 9:25 PM, Brian J. McGovern wrote: > While I'm waiting to get real HW, I wanted to play with qemu's arm > emulation. I've built binaries and a kernel with "make TARGET=arm > TARGET_ARCH=arm DESTDIR=/usr/tmp/armbuild" and the buildworld, > installworld, buildkernel, and installkernel targets. For the moment, > I'm trying to use the GUMSTIX kernel configuration file. > > I'm getting hung up, apparently, on turning the resulting binary set in > to something which can be booted. I've played with a number of settings > for mkimage, but can't seem to get it right. When I go to boot the > result, at best, I get a ":" in the emulation window. At worst, the > emulator crashes. > > Any pointers to web documents that does a good job of describing the > process? Google for obvious search terms (e.g. FreeBSD arm mkimage) > turns up some older pages, none of which seem to result in a working > kernel. > > _______________________________________________ > 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" > I had a problem starting the boot with GUMSTIX kernel and qemu. I finally traced it to the change in arm/arm/elf_trampoline.c revision *194609. * I kept a copy of that file with that change, but manually added the changes that followed it. Also you need to disable the "ARM_CACHE_LOCK_ENABLE" option in arm/xscale/std.h because qemu does not emulate every feature of the GUMSTIX. --Mark Tinguely. .