Date: Thu, 14 Jul 2011 16:21:05 -0400 From: "Brian J. McGovern" <mcgovern@beta.com> To: Mark Tinguely <marktinguely@gmail.com> Cc: freebsd-arm@freebsd.org Subject: Re: Suggestions for arm build for qemu? Message-ID: <1310674865.1447.71.camel@bmcgover-laptop.beta.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
[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 ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1310674865.1447.71.camel>