From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQZhf-0000YN-2o for qemu-devel@nongnu.org; Tue, 02 Feb 2016 07:05:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQZha-0001po-VB for qemu-devel@nongnu.org; Tue, 02 Feb 2016 07:05:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQZha-0001pQ-QZ for qemu-devel@nongnu.org; Tue, 02 Feb 2016 07:04:58 -0500 Message-ID: <1454414695.9300.57.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 02 Feb 2016 13:04:55 +0100 In-Reply-To: <1454411187.9300.54.camel@redhat.com> References: <1454065944-15887-1-git-send-email-markmb@redhat.com> <1454411187.9300.54.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v4] Add optionrom compatible with fw_cfg DMA version List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc =?ISO-8859-1?Q?Mar=ED?= Cc: Marc =?ISO-8859-1?Q?Mar=ED?= , "Gabriel L. Somlo" , qemu-devel@nongnu.org, Kevin O'Connor , Stefan Hajnoczi , Paolo Bonzini , Laszlo On Di, 2016-02-02 at 12:06 +0100, Gerd Hoffmann wrote: > Hi, >=20 > > %.img: %.o > > - $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -Ttext 0 -e _start -s -o = $@ $<," Building $(TARGET_DIR)$@") > > + $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m elf_i386 -Ttext 0 -e _= start -s -o $@ $<," Building $(TARGET_DIR)$@") >=20 > Hmm, that breaks the windows cross build: >=20 > make: Entering directory `/home/kraxel/projects/qemu/build-win32' > Building optionrom/linuxboot_dma.img > i686-w64-mingw32-ld: unrecognised emulation mode: elf_i386 > Supported emulations: i386pe > make[1]: *** [linuxboot_dma.img] Error 1 Testing shows two more problems: (1) initrd loading is broken, kernel complains it finds only gibberish: [ 0.934582] Unpacking initramfs... [ 1.166983] Initramfs unpacking failed: junk in compressed archive [ 1.168458] Freeing initrd memory: 32812k freed (2) going back to non-dma boot via -M pc-$old doesn't work, appearently fw_cfg dma is enabled even for old machine types. cheers, Gerd