From owner-freebsd-arm@FreeBSD.ORG Fri Jul 15 01:42:31 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 C30D31065670 for ; Fri, 15 Jul 2011 01:42:31 +0000 (UTC) (envelope-from mcgovern@beta.com) Received: from spoon.beta.com (spoon.beta.com [199.165.180.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCCB8FC0C for ; Fri, 15 Jul 2011 01:42:30 +0000 (UTC) Received: from [199.165.180.39] (dhcp9.beta.com [199.165.180.39]) by spoon.beta.com (8.14.4/8.14.4) with ESMTP id p6F1gSs7022913; Thu, 14 Jul 2011 21:42:28 -0400 (EDT) (envelope-from mcgovern@beta.com) From: "Brian J. McGovern" To: Mark Tinguely In-Reply-To: <4E1C48EE.3070905@gmail.com> References: <20110708120025.5C94210656D9@hub.freebsd.org> <1310178351.5681.4.camel@bmcgover-laptop.beta.com> <4E18403C.8010203@gmail.com> <1310344111.1455.3.camel@bmcgover-laptop.beta.com> <4E1A4F18.5000802@gmail.com> <1310412331.1466.41.camel@bmcgover-laptop.beta.com> <4E1B83F8.3070700@gmail.com> <1310439696.1438.6.camel@bmcgover-laptop.beta.com> <4E1C48EE.3070905@gmail.com> Content-Type: text/plain; charset="us-ascii" Date: Thu, 14 Jul 2011 16:21:05 -0400 Message-ID: <1310674865.1447.71.camel@bmcgover-laptop.beta.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.5 required=5.0 tests=DATE_IN_PAST_03_06,S25R_6, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on spoon.beta.com 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: Fri, 15 Jul 2011 01:42:31 -0000 [trimmed] > Thank-you for the information. You are attempting to execute in device > memory. > > Here is a link to steps that has been wisely given to me: > > http://lists.freebsd.org/pipermail/freebsd-arm/2009-July/001887.html > > As you can see from that file, there is also a problem with the console > detection that I mentioned to qemu group. > > I downloaded the GUMSTIX uboot binary file. I don't have a URL handy. > > After doing the "dd" commands, I believe 'bootelf 40000' should be the > correct start location since 0x40000 is hex for 256KB, which is the > location that we loaded the kernel in the "flash" file. > > You will get warnings to the kernel loadable modules that are require > for qemu to operate "aio" comes to mind. > > --Mark Tinguely. > > Good news... There is progress. Bad news... not there yet. The kernel starts to boot and then it hangs. The one question I have surrounds the patch to sys/arm/arm/elf_trampoline. The current version I have matches to version 194609. Is it possible you meant I needed the extra assembly code from the prior version (188019) to avoid the hang up? The diffs I have to date is (from a RELENG_8_2_0_RELEASE baseline): diff -r src.orig/sys/arm/conf/GUMSTIX src/sys/arm/conf/GUMSTIX 92a93,95 > > options MD_ROOT > options MD_ROOT_SIZE=4096 diff -r src.orig/sys/arm/xscale/pxa/uart_bus_pxa.c src/sys/arm/xscale/pxa/uart_bus_pxa.c 74a75,76 > #define QEMU 1 > #ifdef QEMU 76a79,81 > if (0x40100000 != (unsigned int)base) > return (ENXIO); > #else 80c85 < --- > #endif diff -r src.orig/sys/arm/xscale/std.xscale src/sys/arm/xscale/std.xscale 2c2 < options ARM_CACHE_LOCK_ENABLE --- > #options ARM_CACHE_LOCK_ENABLE The output to date is U-Boot 1.2.0 (May 10 2008 - 13:33:03) - 400 MHz - 1604 *** Welcome to Gumstix *** DRAM: 64 MB Flash: 16 MB Using default environment SMC91C1111-0 Net: SMC91C1111-0 Hit any key to stop autoboot: 0 Instruction Cache is ON Copying kernel to 0xa2000000 from 0x00f00000 (length 0x00100000)...done ## Booting image at a2000000 ... Bad Magic Number GUM> ^R GUM> GUM> bootelf 40000 bootelf 40000 Loading .text @ 0xa0200074 (13004 bytes) Loading .rodata @ 0xa0203340 (356 bytes) Loading .rodata.str1.4 @ 0xa02034a4 (46 bytes) Loading .data @ 0xa02044d4 (28 bytes) Loading .real_kernel @ 0xa02044f0 (1833541 bytes) Clearing .bss @ 0xa03c3f38 (34016 bytes) ## Starting application at 0xa0200074 ...