Re: [Qemu-devel] [5/6] Fix floppy controller issues v3

2008-03-03 Thread Natalia Portillo
Uh. Can you test with BeOS? It had a problem writing and reading with floppy. Just 1 bytes transferred then BeOS complains floppy error. Regards El 03/03/2008, a las 10:46, Hervé Poussineau escribió: Attached patch fixes some issues in the floppy disk controller: - Enhance reset support (ext

[Qemu-devel] [PATCH] e1000: fix endianness issues

2008-03-03 Thread Aurelien Jarno
This patches fixes endianness issues in the e1000 nic emulation, which currently only works on little endian hosts with little endian targets. Byte swapping is only needed on big endian targets, as PCI is always little endian. cpu_to_le32 and le32_to_cpu functions do not work in that case as they

[Qemu-devel] [PATCH] -chroot and -su options.

2008-03-03 Thread Rob Landley
Quick and dirty patch to teach qemu application emulation how to chroot (and drop privs), so you don't have to pollute a target filesystem with host code, and/or figure out how to build qemu static in order to run a dynamic binary. diff --git a/linux-user/main.c b/linux-user/main.c index 124b98c..

[Qemu-devel] qemu/linux-user signal.c

2008-03-03 Thread Edgar E. Iglesias
CVSROOT:/sources/qemu Module name:qemu Changes by: Edgar E. Iglesias08/03/03 22:23:53 Modified files: linux-user : signal.c Log message: CRIS signals: * Save $mof across signals. * Cleaned up frame accesses. CVSWeb URLs: http://cvs.savanna

[Qemu-devel] multi-partition block driver

2008-03-03 Thread Aleksandar Kanchev
Hello, recently I was looking for a way to boot a xen linux guest in qemu in order to upgrade it with a cdrom. I've posted my problem on the forum and since there wasn't any answer until couple of hours ago I  programmed a qemu block driver myself. Following the FAQ about booting from partitio

Re: [Qemu-devel] sysroot

2008-03-03 Thread Edgar E. Iglesias
Apologies, this was the correct sysroot patch. Best regards -- Edgar E. Iglesias Axis Communications AB diff --git a/darwin-user/qemu.h b/darwin-user/qemu.h index 41b57f8..2147da3 100644 --- a/darwin-user/qemu.h +++ b/darwin-user/qemu.h @@ -106,7 +106,7 @@ void write_dt(void *ptr, unsigned long

[Qemu-devel] sysroot

2008-03-03 Thread Edgar E. Iglesias
Hello, >From my experience, many times when one cross compiles software for linux at >some point one ends up creating a directory which contains a root filesystem >for the target. A nice thing with qemu is the ability to cross run programs >within that target dir with the linux-user -L option.

[Qemu-devel] [4bis/6] New ds1225y.c file

2008-03-03 Thread Hervé Poussineau
This file is meant to replace the current one in the hw/ directory /* * QEMU NVRAM emulation for DS1225Y chip * * Copyright (c) 2007-2008 Hervé Poussineau * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t

[Qemu-devel] [6/6] Increase max floppy drives to 4

2008-03-03 Thread Hervé Poussineau
I suppose this patch will be highly controversial... Feel free to commit it or not. It is required to successfully pass POST in the firmware, but the firmware will work without this patch. Index: hw/fdc.h === RCS file: /sources/qemu/

[Qemu-devel] [5/6] Fix floppy controller issues v3

2008-03-03 Thread Hervé Poussineau
Attached patch fixes some issues in the floppy disk controller: - Enhance reset support (external and software) - Use MAX_FD constant when possible - Support up to 4 drives if MAX_FD is set to 4 - Fix DOR register, which should be writable at any time - Let MSR return 0x20 when non-DMA transfer is

[Qemu-devel] [4/6] ds1225y nvram: Fix some bugs

2008-03-03 Thread Hervé Poussineau
Attached files fixes some problems with nvram emulation: - whole nvram was erased in some conditions - fix out of range accesses - improve speed by keeping contents in memory Sorry to not provide a patch for ds1225y.c, but it contains mixed line-endings and my diff/patch tools doesn't like that.

[Qemu-devel] [3/6] PS/2: Add KBD_CMD_SCANCODE command

2008-03-03 Thread Hervé Poussineau
PS/2 controller emulation lacks the KBD_CMD_SCANCODE command, which gets/sets the scancode set (1, 2 or 3). Scancode sets 1 and 2 are still not supported. (This patch was already sent on 20080224) Index: hw/ps2.c === RCS file: /sourc

[Qemu-devel] [2/6] Add MIPS Magnum R4000 machine

2008-03-03 Thread Hervé Poussineau
Attached patch adds support for a 'magnum' machine. Firmware can start and show POST screen. Index: Makefile.target === RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.247 diff -u -r1.247 Makefile.target --- Makef

[Qemu-devel] [1/6] Add g364 framebuffer device

2008-03-03 Thread Hervé Poussineau
Attached patch adds emulation for the G364 framebuffer Index: hw/g364fb.c === --- hw/g364fb.c Thu Jan 1 00:00:00 1970 +++ hw/g364fb.c Mon Mar 3 07:54:47 2008 @@ -0,0 +1,408 @@ +/* + * QEMU G364 framebuffer Emulator. + * + * Copyrigh

[Qemu-devel] [0/6] Add MIPS Magnum R4000 machine

2008-03-03 Thread Hervé Poussineau
This serie of patches adds the MIPS Magnum R4000 machine. It has been tested with the official Magnum R4000 firmware, and is able to run programs on floppy. SCSI adapter (in esp.c) still needs some more work to be usable. After these patches are applied, I'll send a patch to fix MIPS PICA 61 em