From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5b8A-0000nF-Fk for qemu-devel@nongnu.org; Mon, 09 Apr 2018 14:03:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5b89-0002S3-RC for qemu-devel@nongnu.org; Mon, 09 Apr 2018 14:03:02 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Ajay Garg Date: Mon, 9 Apr 2018 23:32:57 +0530 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [Qemu-arm] Use of -machine when running via qemu-system-arm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm , QEMU Developers Thanks a ton Peter, that cleared things up a great deal !!! Thanks again for the quick help !! Thanks and Regards, Ajay On Mon, Apr 9, 2018 at 11:17 PM, Peter Maydell wrote: > On 9 April 2018 at 18:41, Ajay Garg wrote: >> Hi Peter. >> >> The link is pretty good, just that I am a complete noob. >> >> Maybe a more concrete example on the following, clearly specifying why >> things work on x86 without the need of -machine flag, will make things >> crystal clear : >> >> Because ARM systems differ so much and in fundamental ways, typically >> operating system or firmware images intended to run on one machine >> will not run at all on any other. This is often surprising for new >> users who are used to the x86 world where every system looks like a >> standard PC. (Once the kernel has booted, most userspace software >> cares much less about the detail of the hardware.) > > For instance, on x86 you can always find the UART for serial > output at IO port 0x3f8, and it's always an 8250 or compatible. > On Arm, the memory address where the UART is will be likely > different for every board. And once you know the address of the > UART, each SoC likely may well have its own implementation, > which has different registers that do different things. > And there's no way to probe for what's there -- you have to > know in advance. So you can't even usefully print bootup > messages without knowing what you're running on. > > thanks > -- PMM