Suggestions for arm build for qemu?
Brian J. McGovern
mcgovern at beta.com
Fri Jul 15 01:42:31 UTC 2011
[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 ...
More information about the freebsd-arm
mailing list