Re: [Qemu-devel] OpenSPARC OBP source code available
The Hypervisor and OBP source code is released under BSD license. The rest of the OpenSPARC project is GPL. I guess that there is no problem. On Sep 1, 2006, at 11:30 PM, Blue Swirl wrote: This may be useful for the openbios/qemu SPARC64 project. On the latest release (1.3), SUN has included the source code for the OpenBios for the Niagara (sunv) http://opensparc-t1.sunsource.net/download_hw.html That is very good news! OpenBIOS is very nice, but there are some 64-bit issues that make the Forth part crash. Having a reference boot prom would be nice. But before downloading that 195,508,750 bytes package, would you happen to know what is the licence for OBP source, and would there be problems working with both OBP and OpenBIOS (GPL)? _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- You are as good as the tools that you have. - Unknown ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] SPARC not booting
I updated qemu to the lastest CVS version. I have some problems (Linux and OS X) trying to run the spart-test-0.2. When I run the following command. I just get a blank screen. ./sparc-softmmu/qemu-system-sparc -L pc-bios -kernel ./sparc-test/vmlinux-2.6.11+tcx -initrd ./sparc-test/linux.img -append root=/dev/ram -nographic Anyone with the same problem? -- Someone flame me quickly or I'll feel left out. - Gnome mailing list ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] SPARC not booting
Thanks, it works fine now. On Aug 29, 2006, at 9:47 AM, Paul Brook wrote: On Tuesday 29 August 2006 17:40, Jose Renau wrote: I updated qemu to the lastest CVS version. I have some problems (Linux and OS X) trying to run the spart-test-0.2. When I run the following command. I just get a blank screen. ./sparc-softmmu/qemu-system-sparc -L pc-bios -kernel ./sparc-test/vmlinux-2.6.11+tcx -initrd ./sparc-test/linux.img -append root=/dev/ram -nographic Anyone with the same problem? I think this is a bios bug when no cdrom is present. Try adding -cdrom anything.iso . Paul -- You are as good as the tools that you have. - Unknown ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] SPARC not booting (SMP)
I tried to boot using a 2.4 (debian) kernel that it is SMP ready. It goes ahead quite a bit, but still fails. It never finish the Initializing RT netlink socket step. I tried the non-smp kernel (debian distributionn), and works fine. Any hints? __ SMP BOOT ./sparc-softmmu/qemu-system-sparc -smp 2 -L pc-bios -kernel ./sparc-test/vmlinux-2.4.27-2-sparc32-smp -initrd ./sparc-test/sun4m.img -append root=/dev/ram ramdisk=8192 -cdrom ./sparc-test/aurora-1.0-sparc-disc1.iso -nographic starting qemu... (qemu) Nvram id QEMU_BIOS, version 1 CPUs: 2 nvram error detected, zapping pram Welcome to OpenBIOS v1.0RC1 built on Aug 12 2006 01:31 Type 'help' for detailed information [sparc] Kernel already loaded PROMLIB: obio_ranges 1 bootmem_init: Scan sp_banks, init_bootmem(spfn[271],bpfn[271],mlpfn[7f8b]) free_bootmem: base[0] size[7f8b000] reserve_bootmem: base[80] size[7d] reserve_bootmem: base[0] size[271000] reserve_bootmem: base[271000] size[ff4] Booting Linux... mem_init: Calling free_all_bootmem(). PROMLIB: Sun Boot Prom Version 3 Revision 2 Linux version 2.4.27-2-sparc32-smp ([EMAIL PROTECTED]) (gcc version 3.3.6 (Debian 1:3.3.6-12)) #2 SMP Sat Dec 31 14:44:25 PST 2005 ARCH: SUN4M TYPE: SPARCstation 5 Ethernet address: 52:54:0:12:34:56 Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek ([EMAIL PROTECTED]). Patching kernel for srmmu[Fujitsu Swift]/iommu On node 0 totalpages: 30025 zone(0): 32651 pages. zone(1): 0 pages. zone(2): 0 pages. Found CPU 0 node=ffd50e9c,mid=0 Found CPU 1 node=ffd511e0,mid=8 Found 2 CPU prom device tree node(s). Power off control detected. Kernel command line: root=/dev/ram ramdisk=8192 Calibrating delay loop... 69.42 BogoMIPS Memory: 116488k available (1648k kernel code, 232k data, 148k init, 0k highmem) [f000,07f8b000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX Entering SMP Mode... Starting CPU 1 at f01e46e4 Processor 1 is stuck. Error: only one Processor found. Waiting on wait_init_idle (map = 0x0) All processors have done init_idle IOMMU: impl 0 vers 4 page table at f7f0 of size 262144 bytes sbus0: Clock 21.1250 MHz dma0: Revision 2 dma1: Revision 2 Sparc Zilog8530 serial driver version 1.68.2.2 Sun Mouse-Systems mouse driver version 1.00 tty00 at 0xffe70004 (irq = 44) is a Zilog8530 tty01 at 0xffe7 (irq = 44) is a Zilog8530 tty02 at 0xffe71004 (irq = 44) is a Zilog8530 tty03 at 0xffe71000 (irq = 44) is a Zilog8530 Sun TYPE 5 keyboard detected without keyclick Console: ttyS0 (Zilog8530) Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket - NON-SMP Boot ./sparc-softmmu/qemu-system-sparc -smp 2 -L pc-bios -kernel ./sparc-test/vmlinux-2.4.27-2-sparc32 -initrd ./sparc-test/sun4m.img -append root=/dev/ram ramdisk=8192 -cdrom ./sparc-test/aurora-1.0-sparc-disc1.iso -nographic starting qemu... (qemu) Nvram id QEMU_BIOS, version 1 CPUs: 2 nvram error detected, zapping pram Welcome to OpenBIOS v1.0RC1 built on Aug 12 2006 01:31 Type 'help' for detailed information [sparc] Kernel already loaded PROMLIB: obio_ranges 1 bootmem_init: Scan sp_banks, init_bootmem(spfn[20a],bpfn[20a],mlpfn[7f8b]) free_bootmem: base[0] size[7f8b000] reserve_bootmem: base[80] size[7d] reserve_bootmem: base[0] size[20a000] reserve_bootmem: base[20a000] size[ff4] Booting Linux... mem_init: Calling free_all_bootmem(). PROMLIB: Sun Boot Prom Version 3 Revision 2 Linux version 2.4.27-2-sparc32 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Tue Feb 15 00:11:41 PST 2005 ARCH: SUN4M TYPE: SPARCstation 5 Ethernet address: 52:54:0:12:34:56 Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek ([EMAIL PROTECTED]). Patching kernel for srmmu[Fujitsu Swift]/iommu On node 0 totalpages: 30128 zone(0): 32651 pages. zone(1): 0 pages. zone(2): 0 pages. Found CPU 0 node=ffd50e9c,mid=0 Found CPU 1 node=ffd511e0,mid=8 Found 2 CPU prom device tree node(s). Power off control detected. Kernel command line: root=/dev/ram ramdisk=8192 Calibrating delay loop... 65.33 BogoMIPS Memory: 116900k available (1436k kernel code, 220k data, 128k init, 0k highmem) [f000,07f8b000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX IOMMU: impl 0 vers 4 page table at f05c of size 262144 bytes sbus0: Clock 21.1250 MHz dma0: Revision 2 dma1: Revision 2 Sparc Zilog8530 serial driver version 1.68.2.2 Sun
[Qemu-devel] block-raw.c
I updated to the latest qemu, but it does not work with OS X (powerpc). The problem is that aio.h does not exist. gcc -Wall -O2 -g -fno-strict-aliasing -D__powerpc__ -I. -I.. -I/Users/renau/projs/qemu/target-sparc -I/Users/renau/projs/qemu -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/Users/renau/projs/qemu/sesc -I/Users/renau/projs/qemu/fpu -I/Users/renau/projs/qemu/slirp -c -o block-raw.o /Users/renau/projs/qemu/block-raw.c block-raw.c:28:17: aio.h: No such file or directory Any hints? A scientist builds in order to learn; an engineer learns in order to build. - Fred Brooks ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] block-raw.c COCOA patch
--- block-raw.c 24 Aug 2006 18:58:29 - 1.9 +++ block-raw.c 28 Aug 2006 15:41:38 - @@ -25,7 +25,11 @@ #include block_int.h #include assert.h #ifndef _WIN32 +#ifdef CONFIG_COCOA +#include sys/aio.h +#else #include aio.h +#endif #ifndef QEMU_TOOL #include exec-all.h -- Many receive advice, few profit by it. -- Publilius Syrus ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] ENOMEDIUM OS X patch
OS X does not include ENOMEDIUM on the error list (I think that the same is true for Solaris). This patch solves the problem. --- vl.h19 Aug 2006 12:37:52 - 1.144 +++ vl.h28 Aug 2006 15:44:08 - @@ -84,6 +84,10 @@ #endif /* !defined(QEMU_TOOL) */ +#ifdef CONFIG_COCOA +#define ENOMEDIUM 4097 +#endif + #ifndef glue #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y) -- All men dream, but only that dream during the daytime are the dangerous. - T. E. Lawrence ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] pc-bios/proll.patch (sun4m)
The OpenBIOS part sounds interesting/promising. Once it is close to ready, let me know and I'll test/try it. On May 19, 2006, at 10:28 AM, Blue Swirl wrote: I noticed that the proll.patch on the pc-bios directory is not the latest patch. It does not include the SMP support. How to get the latest version? For example: http://marc.theaimsgroup.com/?l=qemu-develm=113480779129317w=2 and http://marc.theaimsgroup.com/?l=qemu-develm=113480643124728w=2 I'm currently working on OpenBIOS, and Linux/Sparc32 is very close to booting. There are better chances to get Sparc64 supported in the future, compared to Proll. _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -- Never underestimate the power of human stupidity. - Lazarus Long ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] simple cocoa patch
There is an extra parenthesis, and it does not compile. *** cocoa.m 9 Apr 2006 01:06:34 - 1.7 --- cocoa.m 14 Apr 2006 16:28:22 - *** *** 432,436 break; } - } } else { /* handle standard key events */ --- 432,435 ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] SPARC docs
Hi, Yesterday, SUN released the code for OpenSparc (http://opensparc.sunsource.net/) Part of the release includes their full system simulator (SAM) and proms. The proms are only included in binary form, but SAM can be recompiled. I hope that this information is useful to solve/enhance the problems that we have with sparc64. The SAM simulator and the documentation is mostly for sun4v. Since Linux already boots on sun4v, maybe adding support for SPARC/sun4v to qemu is easier than sparcV9/sun4u. Seems like Linus is going to add the Niagara patch on 2.6.17. Meanwhile, we can obtain information from the Dave Miller branch: git clone rsync://rsync.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6.git linux-2.6 http://vger.kernel.org/%7Edavem/cgi-bin/blog.cgi -- There are enough bad moments for not enjoying the good ones. - Unknown ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] sparc32/sparc64 patch
Without this patch I could not compile qemu for sparc64 on OS X (PPC). qemu.patch Description: Binary data --- Never take life seriously. Nobody gets out alive, anyway. - Bumper Sticker___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] sun4u patch
The following patch is to make sparc64-softmmu compilable (tested on OS X). Index: target-sparc/op.c === --- target-sparc/op.c (revision 71) +++ target-sparc/op.c (working copy) @@ -851,6 +851,7 @@ void OPPROTO op_wrtick(void) { + do_op_not_supported(op_wrtick); // XXX write cycle counter and bit 31 } @@ -1428,6 +1429,17 @@ { do_fitod(); } +#ifdef TARGET_SPARC64 +void OPPROTO op_fxtos(void) +{ + do_fxtos(); +} + +void OPPROTO op_fxtod(void) +{ + do_fxtod(); +} +#endif #else void OPPROTO op_fitos(void) { @@ -1545,8 +1557,8 @@ void OPPROTO op_sir(void) { -// XXX - + do_op_not_supported(op_sir); + // XXX } void OPPROTO op_ld_asi_reg() Index: target-sparc/exec.h === --- target-sparc/exec.h (revision 71) +++ target-sparc/exec.h (working copy) @@ -73,6 +73,7 @@ void do_ldd_user(target_ulong addr); void do_ldd_raw(target_ulong addr); void do_interrupt(int intno); +void do_op_not_supported(const char *str); void raise_exception(int tt); void memcpy32(target_ulong *dst, const target_ulong *src); target_ulong mmu_probe(CPUState *env, target_ulong address, int mmulev); Index: target-sparc/op_helper.c === --- target-sparc/op_helper.c(revision 71) +++ target-sparc/op_helper.c(working copy) @@ -3,6 +3,11 @@ //#define DEBUG_PCALL //#define DEBUG_MMU +void do_op_not_supported(const char *str) +{ + fprintf(logfile, %s not supported\n, str); +} + void raise_exception(int tt) { env-exception_index = tt; @@ -19,6 +24,16 @@ { DT0 = (double) *((int32_t *)FT1); } + +void do_fxtos(void) +{ +FT0 = (float) *((int32_t *)FT1); +} + +void do_fxtod(void) +{ +DT0 = (double) *((int32_t *)FT1); +} #endif void do_fabss(void) Index: target-sparc/translate.c === --- target-sparc/translate.c(revision 71) +++ target-sparc/translate.c(working copy) @@ -1361,7 +1361,8 @@ } else if (xop == 0x2b) { /* rdtbr / V9 flushw */ #ifdef TARGET_SPARC64 -gen_op_flushw(1); + // gen_op_flushw(1); + gen_op_flushw(); #else if (!supervisor(dc)) goto priv_insn; ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] SPARC boot problems (same on smp)
Hello, I am trying to install the debian sparc, but it crashes when the kernel boots. ./sparc-softmmu/qemu-system-sparc -smp 1 -L ./pc-bios/ -cdrom ./sparc-test/debian-31r0a-sparc-netinst.iso -nographic starting qemu... (qemu) PROLL ID18 QEMU 128 MB total IOMMU: impl 0 vers 0 page table at 0xFFD2 of size 32768 bytes NVRAM: id QEMU_BIOS version 1 Prom console: serial dma0: Revision 0 le0: LANCE 52:54:0:12:34:56 le0: using TPE. dma1: Revision 2 Boot device: d Loading partition table from target 2: hw sector: 2048, CHS: 2048/1/640, partitions: a: 0 + 226560, id 4, flags 10 b: 0 + 226560, id 2, flags 10 c: 0 + 226560, id 2, flags 10 d: 0 + 226560, id 2, flags 10 e: 0 + 226560, id 2, flags 10 f: 0 + 226560, id 2, flags 10 g: 0 + 226560, id 2, flags 10 h: 0 + 226560, id 2, flags 10 booting sd(0,2,0):d (offset 1) Memory used: virt 0xFFD0:0xFFD37000[220K] iomap 0xFFD3C000:0xFFD4B000 Kernel loaded at 0x4000, size 0K, command line = '' SILO Version 1.4.9 \ boot: Uncompressing image... Loaded kernel version 2.4.27 Loading initial ramdisk (3041649 bytes at 0x300 phys, 0x6000 virt)... PROMLIB: obio_ranges 1 bootmem_init: Scan sp_banks, init_bootmem(spfn[20a],bpfn[20a],mlpfn[7fc4]) free_bootmem: base[0] size[7fc4000] reserve_bootmem: base[300] size[2e6971] reserve_bootmem: base[0] size[20a000] reserve_bootmem: base[20a000] size[ffc] Booting Linux... mem_init: Calling free_all_bootmem(). PROMLIB: Sun Boot Prom Version 3 Revision 77 Linux version 2.4.27-2-sparc32 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Tue Feb 15 00:11:41 PST 2005 ARCH: SUN4M TYPE: SparcStation Ethernet address: 52:54:0:12:34:56 Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek ([EMAIL PROTECTED]). Patching kernel for srmmu[Fujitsu Swift]/iommu On node 0 totalpages: 31442 zone(0): 32708 pages. zone(1): 0 pages. zone(2): 0 pages. Found CPU 0 node=000c,mid=84 Found 1 CPU prom device tree node(s). Power off control detected. Kernel command line: root=/dev/rd/0 cdrom ramdisk_size=16384 devfs=mount rw Calibrating delay loop... 115.91 BogoMIPS Memory: 122152k available (1436k kernel code, 220k data, 128k init, 0k highmem) [f000,07fc4000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) POSIX conformance testing by UNIFIX IOMMU: impl 0 vers 4 page table at f05c of size 262144 bytes sbus0: Clock 25.0 MHz dma0: Revision 2 dma1: Revision 2 Sparc Zilog8530 serial driver version 1.68.2.2 Sun Mouse-Systems mouse driver version 1.00 tty00 at 0xffd4a004 (irq = 44) is a Zilog8530 tty01 at 0xffd4a000 (irq = 44) is a Zilog8530 tty02 at 0xffd49004 (irq = 44) is a Zilog8530 tty03 at 0xffd49000 (irq = 44) is a Zilog8530 Sun TYPE 5 keyboard detected without keyclick Console: ttyS0 (Zilog8530) Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 devfs: v1.12c (20020818) Richard Gooch ([EMAIL PROTECTED]) devfs: boot_options: 0x1 pty: 256 Unix98 ptys configured Floppy drive(s): fd0 is 1.44M ioremap: done with statics, switching to malloc FDC 0 is a S82078B RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. RAMDISK: Compressed image found at block 0 Freeing initrd memory: 2970k freed VFS: Mounted root (ext2 filesystem). Mounted devfs on /dev VFS: Mounted root (ext2 filesystem). Trying to move old root to /initrd ... okay Mounted devfs on /dev Freeing unused kernel memory: 128k freed Segmentation fault If I try with -smp 2 it detects the 2 cpus, but it freezes on the same place: Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek ([EMAIL PROTECTED]). Patching kernel for srmmu[Fujitsu Swift]/iommu On node 0 totalpages: 31442 zone(0): 32708 pages. zone(1): 0 pages. zone(2): 0 pages. Found CPU 0 node=0019,mid=0 Found CPU 1 node=001a,mid=1 Found 2 CPU prom device tree node(s). Power off control detected. If I try the aurora (aurora-1.0-sparc-disc1.iso), it goes further, but it is not able start the installation (when I set the esp driver to install the cdrom it crashes badly) RAMDISK: Compressed image found at block 0 Freeing initrd memory: 696k freed VFS: Mounted root (ext2 filesystem). Greetings. Aurora install init version 7.2 starting mounting /proc filesystem... done mounting /proc/openprom filesystem... done mounting /dev/pts (unix98 pty) filesystem... done Aurora install init version 7.2 using a serial console remember, cereal is an important part of a nutritionally balanced
[Qemu-devel] SPARC unimplemented system call 188
Booting a -smp 2, I get the following message: VFS: Mounted root (ext2 filesystem). Trying to move old root to /initrd ... okay Mounted devfs on /dev Freeing unused kernel memory: 128k freed uname[10]: Unimplemented SPARC system call 188 Segmentation fault init[9]: Unimplemented SPARC system call 188 umount: Cannot open /proc/mounts umount: Cannot open /proc/mounts umount: /proc: Invalid argument umount[15]: Unimplemented SPARC system call 188 umount: /proc: Invalid argument umount[16]: Unimplemented SPARC system call 188 ls[20]: Unimplemented SPARC system call 188 chroot: cannot execute /bin/busybox: No such file or directory chroot[26]: Unimplemented SPARC system call 188 umount: Cannot open /proc/mounts umount: /proc: Invalid argument Segmentation fault Booting a -smp 4, I get this other one: VFS: Mounted root (ext2 filesystem). Mounted devfs on /dev VFS: Mounted root (ext2 filesystem). Trying to move old root to /initrd ... okay Mounted devfs on /dev Freeing unused kernel memory: 128k freed uname[10]: Unimplemented SPARC system call 188 Segmentation fault Suggestions? (Some structure overflow?) The results also change from execution to execution, so it may be a problem with interrupts or timing. Sometimes (either -smp 4 and smp 2) It gets stuck: VFS: Mounted root (ext2 filesystem). Mounted devfs on /dev VFS: Mounted root (ext2 filesystem). Trying to move old root to /initrd ... okay Mounted devfs on /dev Freeing unused kernel memory: 128k freed -- Real programmers confuse Christmas and Halloween because DEC 25 = OCT 31. - Popular saying ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] SPARC patch for OS X (big endian machines)
The new patch is clearly nicer (I did not know the interface), it solved the bug that I reported, but It still crashes booting Linux. Hopefully one of my students will take a look. On Oct 30, 2005, at 12:53 PM, Fabrice Bellard wrote: Jose Renau wrote: Without the following patch, I was unable to start the Linux boot process on OS X (powerPC bigendian). I tried on ia64 (Linux) and works fine too. I made a more generic patch. Tell me if it still works... Fabrice. -- Excellence is not a skill. It is an attitude. - Ralph Marston ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] SPARC patch for OS X (big endian machines)
Without the following patch, I was unable to start the Linux boot process on OS X (powerPC bigendian). I tried on ia64 (Linux) and works fine too. --- target-sparc/op_helper.c23 Jul 2005 14:27:54 - 1.15 +++ target-sparc/op_helper.c27 Sep 2005 23:54:52 - @@ -225,4 +225,5 @@ void helper_ld_asi(int asi, int size, int sign) { + uint32_t ret = 0; @@ -258,8 +259,12 @@ case 0x20 ... 0x2f: /* MMU passthrough */ cpu_physical_memory_read(T0, (void *) ret, size); - if (size == 4) - tswap32s(ret); -else if (size == 2) - tswap16s((uint16_t *)ret); + + tswap32s(ret); + if (size == 2) { + ret = ret 16; + }else if (size == 1) { + ret = ret 24; + } + break; default: ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] Re: Proll updates
(qemu) PROLL ID18 QEMU 128 MB total IOMMU: impl 0 vers 0 page table at 0xFFD2 of size 32768 bytes NVRAM: id QEMU_BIOS version 1 Prom console: serial dma0: Revision 0 le0: LANCE 52:54:0:12:34:56 le0: using TPE. dma1: Revision 0 Boot device: d Loading partition table from target 2: hw sector: 512, CHS: 2048/1/640, partitions: a: 0 + 640, id 4, flags 10 b: 1 + 1130880, id 2, flags 10 c: 1768 + 5120, id 0, flags 0 d: 1776 + 5120, id 0, flags 0 e: 1784 + 5120, id 0, flags 0 f: 1792 + 5120, id 0, flags 0 g: 0 + 0, id 0, flags 0 h: 0 + 0, id 0, flags 0 booting sd(0,2,0):d (offset 1) Memory used: virt 0xFFD0:0xFFD37000[220K] iomap 0xFFD3C000:0xFFD4B000 Kernel loaded at 0x4000, size 0K, command line = '' obp_nextnode(0) = 1 obp_proplen(1, name) = 20 obp_getprop(1, name) = SUNW,SparcStation-5 obp_devopen(sd(0,2,0):d) obp_devseek: fd 2, hi 0, lo 8192 obp_devread: fd 2, nbytes 8192 obp_devseek: fd 2, hi 0, lo 32768 obp_devread: fd 2, nbytes 8192 obp_devclose 2 obp_nextnode(0) = 1 obp_proplen(1, compatible) = 6 obp_getprop(1, compatible) = sun4m obp_devopen(sd(0,2,0):d) obp_devseek: fd 2, hi 0, lo 8192 obp_devread: fd 2, nbytes 8192 obp_devseek: fd 2, hi 0, lo 32768 obp_devread: fd 2, nbytes 8192 obp_devclose 2 obp_devopen(sd(0,2,0):d) obp_devseek: fd 2, hi 0, lo 8192 obp_devread: fd 2, nbytes 8192 obp_devseek: fd 2, hi 0, lo 32768 obp_devread: fd 2, nbytes 8192 obp_devclose 2 obp_devopen(sd(0,2,0):d) obp_devseek: fd 2, hi 0, lo 8192 obp_devread: fd 2, nbytes 8192 obp_devseek: fd 2, hi 0, lo 32768 obp_devread: fd 2, nbytes 8192 obp_devclose 2 obp_devwrite: fd 1, buf b, nbytes 1 bobp_devwrite: fd 1, buf o, nbytes 1 oobp_devwrite: fd 1, buf o, nbytes 1 oobp_devwrite: fd 1, buf t, nbytes 1 tobp_devwrite: fd 1, buf b, nbytes 1 bobp_devwrite: fd 1, buf l, nbytes 1 lobp_devwrite: fd 1, buf k, nbytes 1 kobp_devwrite: fd 1, buf :, nbytes 1 :obp_devwrite: fd 1, buf , nbytes 1 obp_devwrite: fd 1, buf c, nbytes 1 cobp_devwrite: fd 1, buf a, nbytes 1 aobp_devwrite: fd 1, buf n, nbytes 1 nobp_devwrite: fd 1, buf ', nbytes 1 'obp_devwrite: fd 1, buf t, nbytes 1 tobp_devwrite: fd 1, buf , nbytes 1 obp_devwrite: fd 1, buf f, nbytes 1 fobp_devwrite: fd 1, buf i, nbytes 1 iobp_devwrite: fd 1, buf n, nbytes 1 nobp_devwrite: fd 1, buf d, nbytes 1 dobp_devwrite: fd 1, buf , nbytes 1 obp_devwrite: fd 1, buf t, nbytes 1 tobp_devwrite: fd 1, buf h, nbytes 1 hobp_devwrite: fd 1, buf e, nbytes 1 eobp_devwrite: fd 1, buf , nbytes 1 obp_devwrite: fd 1, buf b, nbytes 1 bobp_devwrite: fd 1, buf o, nbytes 1 oobp_devwrite: fd 1, buf o, nbytes 1 oobp_devwrite: fd 1, buf t, nbytes 1 tobp_devwrite: fd 1, buf , nbytes 1 obp_devwrite: fd 1, buf p, nbytes 1 pobp_devwrite: fd 1, buf r, nbytes 1 robp_devwrite: fd 1, buf o, nbytes 1 oobp_devwrite: fd 1, buf g, nbytes 1 gobp_devwrite: fd 1, buf r, nbytes 1 robp_devwrite: fd 1, buf a, nbytes 1 aobp_devwrite: fd 1, buf m, nbytes 1 , nbytes 1ite: fd 1, buf obp_devwrite: fd 1, buf , nbytes 1 halt, power off On Aug 15, 2005, at 12:52 PM, Blue Swirl wrote: Hi, Here's a new version of Proll. Now that I've fixed a bug with ESP, Proll can boot from the following CDs: Aurora 1.0 Debian 3.0r2 Debian 3.0r4 Debian-3.1r0 mini Debian sarge mini NetBSD_1.6 NetBSD_1.6.1 Debian sarge businesscard Suse 7.3 Red Hat 4.0 'Zoot' Kernels hang/crash very soon. For some reason, NetBSD 2.0.2 doesn't boot. The attached image is compiled with DEBUG_OBP in openprom.c enabled. This version of Proll can detect the hardware SCSI sector size, because soon Qemu should be using 2k sectors for SCSI CDs. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ proll.elf.bz2proll.patch-14b.bz2 -- Frankly, when everybody is in charge of an issue, nobody is in charge of the issue. - H.N. Miller ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] bug in Sparc part ?
I don't know if it has already been said on this list. Forgive me if so. I've already reported this some time ago. The impression I get is that not too many developers are using 64-bit machines... The following patch works fine on 64 and 32 bit machines (Linux and OS X). diff -c -2 -r1.40 dyngen.c *** dyngen.c27 Apr 2005 19:55:58 - 1.40 --- dyngen.c11 Aug 2005 16:14:49 - *** *** 1195,1205 snprintf(name, name_size, gen_labels[param%s], p); } else { ! #ifdef HOST_SPARC if (sym_name[0] == '.') ! snprintf(name, sizeof(name), (long)(__dot_%s), sym_name + 1); else ! #endif snprintf(name, name_size, (long)(%s), sym_name); } --- 1195,1205 snprintf(name, name_size, gen_labels[param%s], p); } else { ! //#ifdef HOST_SPARC if (sym_name[0] == '.') ! snprintf(name, name_size, (long)(__dot_%s), sym_name + 1); else ! //#endif snprintf(name, name_size, (long)(%s), sym_name); } *** *** 1591,1595 !strstart(sym_name, __op_jmp, NULL) !strstart(sym_name, __op_gen_label, NULL)) { ! #if defined(HOST_SPARC) if (sym_name[0] == '.') { fprintf(outfile, --- 1591,1595 !strstart(sym_name, __op_jmp, NULL) !strstart(sym_name, __op_gen_label, NULL)) { ! //#if defined(HOST_SPARC) if (sym_name[0] == '.') { fprintf(outfile, *** *** 1598,1602 continue; } ! #endif #if defined(__APPLE__) /* set __attribute((unused)) on darwin because we wan't to avoid warning when we don't use the symbol */ --- 1598,1602 continue; } ! //#endif #if defined(__APPLE__) /* set __attribute((unused)) on darwin because we wan't to avoid warning when we don't use the symbol */ ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel