From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=yong.b.li@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42wXtq3QC9zF3bw for ; Thu, 15 Nov 2018 18:24:49 +1100 (AEDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2018 23:24:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,235,1539673200"; d="scan'208,217";a="108421159" Received: from yongli3-mobl.ccr.corp.intel.com (HELO yongli3MOBL) ([10.239.196.0]) by orsmga001.jf.intel.com with ESMTP; 14 Nov 2018 23:24:45 -0800 From: "Yong Li" To: Cc: "Li, Yong B" Subject: qemu does not work for the latest image? Date: Thu, 15 Nov 2018 15:24:40 +0800 Message-ID: <000201d47cb4$495ee3e0$dc1caba0$@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0003_01D47CF7.57838370" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdR8s/uqUaGfk68LTvK3NyD7nMAi/w== Content-Language: en-us x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWY5OGM2ODUtN2VmNy00ZjVjLWI0NjItZDk2NTEzZGE5ODlkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZVMzdFFwd2NjZitQRGE5amp0d3dDcjh2WU5vek5KeUVlaThEQmdJd0QyT2RGNUVIT1wvejRud0IyN3JSQ3ZVYWsifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: request-justification,no-action X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 07:24:52 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0003_01D47CF7.57838370 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All, Previously I can use qemu to test these built images, but it does not work now and get the below error messages: Just want to know if there is any command/options changes? Or it does not support now? qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive file=tmp/deploy/images/witherspoon/obmc-phosphor-image-poon.ubi.mtd,format=r aw,if=mtd qemu-system-arm: Aspeed iBT has no chardev backend U-Boot 2016.07 (Nov 15 2018 - 06:18:37 +0000) Watchdog enabled DRAM: 240 MiB Flash: 32 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: aspeednic#0 Error: aspeednic#0 address not set. Hit any key to stop autoboot: 0 ubi0: attaching mtd1 ubi0: scanning is finished UBI init error 12 Error, no UBI device/partition selected! Wrong Image Format for bootm command ERROR: can't get kernel image! Thanks, Yong ------=_NextPart_000_0003_01D47CF7.57838370 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

 

Previously I = can use qemu to test these built images, but it does not work now and = get the below error messages:

 

Just want to = know if there is any command/options changes? Or it does not support = now?

 

qemu-system-arm -m 256 -M witherspoon-bmc -nographic = -drive = file=3Dtmp/deploy/images/witherspoon/obmc-phosphor-image-poon.ubi.mtd,for= mat=3Draw,if=3Dmtd

qemu-system-arm: = Aspeed iBT has no chardev backend

 

 

U-Boot = 2016.07 (Nov 15 2018 - 06:18:37 +0000)

 

       Watchdog = enabled

DRAM:  240 = MiB

Flash: 32 MiB

*** Warning - bad CRC, using default = environment

 

In:    serial

Out:   serial

Err:   serial

Net:   aspeednic#0

Error: aspeednic#0 address not set.

 

Hit any key = to stop autoboot:  0

ubi0: = attaching mtd1

ubi0: scanning is = finished

UBI init error = 12

Error, no UBI device/partition = selected!

Wrong Image Format for = bootm command

ERROR: can't get kernel = image!

 

 

Thanks,

Yong

------=_NextPart_000_0003_01D47CF7.57838370-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::241; helo=mail-oi1-x241.google.com; envelope-from=geissonator@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ILzLqjJH"; dkim-atps=neutral Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42wjyp3F7fzF3bs for ; Fri, 16 Nov 2018 01:13:54 +1100 (AEDT) Received: by mail-oi1-x241.google.com with SMTP id a202-v6so8703160oib.1 for ; Thu, 15 Nov 2018 06:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w8mII/NKavrFtejuODjyPx1ghebQt+L4YmvqRN9vmFc=; b=ILzLqjJHLwzeDIPYmZdBN6lgv3RJ1lV9a2ridAdWCVZp5BIUKJA15iehQj6FSF2P1k Fz3zGNvH18nGwoO0QgUZV7REN5qfirzQn4JOWTxPowMsxmoQhYLPzqIf8tP4M7ZH85N3 qUicyvTicDr/PhoFKSLdtGUuW7orsqGnzpyX3EWDkPJAqPlIea3rNB+DijwflfM4nmCK /64hyqRlVLa6Ny/MZyBdNV0+tXgdstpYikFL9JwMQxmE0TW2NJSe6U89HgtLOpxc/luV DeMqD89DOAJ74NMjppes73ld+slEYQX/YIGisarSmXC3BqlwOlR7iqgYK6rn+2X5iwZ1 xJ6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w8mII/NKavrFtejuODjyPx1ghebQt+L4YmvqRN9vmFc=; b=U+dZzvyoA1wJ57WEuCv9MsewEmwlfbVL+eJTwc/8qgs6NlQChYkrOZrE5WfXnGiol2 qf6kH7s4Mba25i0ahLupQ+nMSBUHWVOPb4pLKyMZG/A12FLes/6qGjollL13gX/j+Y6c XAgxuIcrjAx7gNmRUR7cXP+eUOW166zgBj5/EXFKvKwr3mWFSoXrvwGR3yBn2jkiK8zp A//Folm2ZNTftbpwooW+zc+uaDzT7hIhy1y6rtRH0LbWFQWcURV2OYF/2wmDPpCHXUTT ir7IjHO0k9c9uZ2VwA8x1dz8Ae9cTLCr/G7h3AWuaDp1IlEODyQT9oRyPOlbGAT+zP3u xJJQ== X-Gm-Message-State: AGRZ1gLhF0s7TCOoIMdWkAhLubbH9u0nivA9Vp3ToBwGRxfbBKhFUAYd IOzDZCRxpzv3Rxg5aP/flgx/jpBa2eIBZJqC7QRBcu5p+Js= X-Google-Smtp-Source: AJdET5eV/EdPZjCxGASZP41UeHqRIGkP/TP7qOKvPvCLmeoha62BXIdoDo+doKPINl8muyk6Z1EFf7xOtPKHkB6FLFw= X-Received: by 2002:aca:bed6:: with SMTP id o205-v6mr3513122oif.294.1542291232101; Thu, 15 Nov 2018 06:13:52 -0800 (PST) MIME-Version: 1.0 References: <000201d47cb4$495ee3e0$dc1caba0$@linux.intel.com> In-Reply-To: <000201d47cb4$495ee3e0$dc1caba0$@linux.intel.com> From: Andrew Geissler Date: Thu, 15 Nov 2018 08:13:35 -0600 Message-ID: Subject: Re: qemu does not work for the latest image? To: Yong Li Cc: OpenBMC Maillist , yong.b.li@intel.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2018 14:13:55 -0000 On Thu, Nov 15, 2018 at 1:25 AM Yong Li wrote: > > Hi All, > > > > Previously I can use qemu to test these built images, but it does not work now and get the below error messages: > Just want to know if there is any command/options changes? Or it does not support now? Hey Yong, I pulled down the latest qemu binary and witherspoon image and it booted up fine for me. Here were my commands: wget https://openpower.xyz/job/openbmc-qemu-build-merge-x86/lastSuccessfulBuild/artifact/qemu/arm-softmmu/qemu-system-arm wget https://openpower.xyz/job/openbmc-build/distro=ubuntu,label=builder,target=witherspoon/lastSuccessfulBuild/artifact/deploy/images/witherspoon/obmc-phosphor-image-witherspoon.ubi.mtd ./qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive file=./obmc-phosphor-image-witherspoon.ubi.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2622-:22,hostfwd=:127.0.0.1:2643-:443,hostfwd=:127.0.0.1:8580-:80,hostname=qemu > qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive file=tmp/deploy/images/witherspoon/obmc-phosphor-image-poon.ubi.mtd,format=raw,if=mtd > > qemu-system-arm: Aspeed iBT has no chardev backend > > U-Boot 2016.07 (Nov 15 2018 - 06:18:37 +0000) > > > > Watchdog enabled > > DRAM: 240 MiB > > Flash: 32 MiB > > *** Warning - bad CRC, using default environment > > > > In: serial > > Out: serial > > Err: serial > > Net: aspeednic#0 > > Error: aspeednic#0 address not set. > > > > Hit any key to stop autoboot: 0 > > ubi0: attaching mtd1 > > ubi0: scanning is finished > > UBI init error 12 > > Error, no UBI device/partition selected! > > Wrong Image Format for bootm command > > ERROR: can't get kernel image! > > > > > > Thanks, > > Yong From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (helo) smtp.helo=mga12.intel.com (client-ip=192.55.52.136; helo=mga12.intel.com; envelope-from=yong.b.li@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.intel.com Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42x8bC5npYzF3j5 for ; Fri, 16 Nov 2018 18:13:26 +1100 (AEDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2018 23:13:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,239,1539673200"; d="scan'208";a="106755791" Received: from linux.intel.com ([10.54.29.200]) by fmsmga004.fm.intel.com with ESMTP; 15 Nov 2018 23:13:23 -0800 Received: from [10.239.195.241] (yongli3-mobl.ccr.corp.intel.com [10.239.195.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 8F7BB580495; Thu, 15 Nov 2018 23:13:22 -0800 (PST) From: "Li, Yong B" Subject: Re: qemu does not work for the latest image? To: Andrew Geissler Cc: OpenBMC Maillist , yong.b.li@intel.com References: <000201d47cb4$495ee3e0$dc1caba0$@linux.intel.com> Message-ID: Date: Fri, 16 Nov 2018 15:13:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2018 07:13:28 -0000 Thanks Andrew for your commands.  The issue is caused by my older qemu tool. After downloaded qemu-system-arm, I can boot the image now! Thanks, Yong On 11/15/2018 10:13 PM, Andrew Geissler wrote: > On Thu, Nov 15, 2018 at 1:25 AM Yong Li wrote: >> Hi All, >> >> >> >> Previously I can use qemu to test these built images, but it does not work now and get the below error messages: >> Just want to know if there is any command/options changes? Or it does not support now? > Hey Yong, I pulled down the latest qemu binary and witherspoon image > and it booted up fine for me. > > Here were my commands: > wgethttps://openpower.xyz/job/openbmc-qemu-build-merge-x86/lastSuccessfulBuild/artifact/qemu/arm-softmmu/qemu-system-arm > wgethttps://openpower.xyz/job/openbmc-build/distro=ubuntu,label=builder,target=witherspoon/lastSuccessfulBuild/artifact/deploy/images/witherspoon/obmc-phosphor-image-witherspoon.ubi.mtd > ./qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive > file=./obmc-phosphor-image-witherspoon.ubi.mtd,format=raw,if=mtd -net > nic -net user,hostfwd=:127.0.0.1:2622-:22,hostfwd=:127.0.0.1:2643-:443,hostfwd=:127.0.0.1:8580-:80,hostname=qemu > >> qemu-system-arm -m 256 -M witherspoon-bmc -nographic -drive file=tmp/deploy/images/witherspoon/obmc-phosphor-image-poon.ubi.mtd,format=raw,if=mtd >> >> qemu-system-arm: Aspeed iBT has no chardev backend >> >> U-Boot 2016.07 (Nov 15 2018 - 06:18:37 +0000) >> >> >> >> Watchdog enabled >> >> DRAM: 240 MiB >> >> Flash: 32 MiB >> >> *** Warning - bad CRC, using default environment >> >> >> >> In: serial >> >> Out: serial >> >> Err: serial >> >> Net: aspeednic#0 >> >> Error: aspeednic#0 address not set. >> >> >> >> Hit any key to stop autoboot: 0 >> >> ubi0: attaching mtd1 >> >> ubi0: scanning is finished >> >> UBI init error 12 >> >> Error, no UBI device/partition selected! >> >> Wrong Image Format for bootm command >> >> ERROR: can't get kernel image! >> >> >> >> >> >> Thanks, >> >> Yong