Thread: DIY - KeK
View Single Post
Old 08-11-2012, 07:42 AM   #246
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
There is no dark side, It's all dark

And it died again.

Code:
me@dev ~/BLDS/buildroot $ qemu-system-arm -M versatilepb -kernel /home/me/BLDS/buildroot/images/zImage -hda ./images/rootfs.ext2 -nographic
oss: Could not initialize DAC
oss: Reason: No such file or directory
audio: Failed to create voice `lm4549.out'
Uncompressing Linux... done, booting the kernel.
pflash_write: Unimplemented flash cmd sequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf000f0)
pflash_write: Unimplemented flash cmd sequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf0)
qemu: terminating on signal 15 from pid 3243
I think this may be a known issue... reading around.

Spoiler:
http://www.spinics.net/lists/arm-kernel/msg177442.html <-- this one perhaps
OR:
(err it's in Chinese so perhaps just trust me http://www.eetop.cn/blog/html/49/t-224249.html)

here's and autotranslation of 3 very helpful techniques I thought
http://translate.google.com/translat...Ft-224249.html

and here http://lists.gnu.org/archive/html/qe.../msg03452.html


looks like I need to patch qemu for versatile flash support.

now just need to find the right patch.
EDIT:
http://thomas.enix.org/pub/qemu-vers...-flash-support
versatilepb-add-flash-support | patch-p1

from the list here: http://thomas.enix.org/pub/qemu-vers...ash-emulation/ but I'm not sure if this is still current yet

It's never simple ey : )

now where did you leave that building Qemu from source there AH HERE

Code:
diff --git a/arch/arm/mach-versatile/pci.c b/arch/arm/mach-versatile/pci.c
index 4ae4fc8..aeb7b60 100644
--- a/arch/arm/mach-versatile/pci.c
+++ b/arch/arm/mach-versatile/pci.c
@@ -305,7 +305,7 @@ int __init pci_versatile_setup(int nr, struct pci_sys_data *sys)
 
 void __init pci_versatile_preinit(void)
 {
-	pcibios_min_io = 0x44000000;
+	pcibios_min_io = 0x100;
 	pcibios_min_mem = 0x50000000;
 
 	__raw_writel(VERSATILE_PCI_MEM_BASE0 >> 28, PCI_IMAP0);

And:

Quote:
On Thursday 31 May 2012, Rob Herring wrote:
> I've resurrected your patch from ~2 years ago and that does fix it. Any
> reason it was never merged? I could go with a more simple fix which just
> restore IO_SPACE_LIMIT to ~0, but yours is more in the direction we want
> to go with PCI mappings.

It was only my fault for not pushing the patches enough. I think they should
really go in now.

Arnd
So I'm not going mad.

Happy days

Last edited by twobob; 08-11-2012 at 08:55 AM. Reason: Chinese auto translation link
twobob is offline   Reply With Quote