From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxWIY-0005Tq-5E for qemu-devel@nongnu.org; Tue, 14 Feb 2012 23:16:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxWIV-0004Z0-Rn for qemu-devel@nongnu.org; Tue, 14 Feb 2012 23:16:54 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:33818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxWIV-0004Yq-L7 for qemu-devel@nongnu.org; Tue, 14 Feb 2012 23:16:51 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8; format=flowed Received: from euspt1 ([210.118.77.13]) by mailout3.w1.samsung.com (Sun Java(tm) System Messaging Server 6.3-8.04 (built Jul 29 2009; 32bit)) with ESMTP id <0LZF00LNN2JZA300@mailout3.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 15 Feb 2012 04:16:47 +0000 (GMT) Received: from [106.109.9.191] by spt1.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LZF00FH12JYG7@spt1.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 15 Feb 2012 04:16:47 +0000 (GMT) Date: Wed, 15 Feb 2012 08:16:44 +0400 From: Evgeny Voevodin In-reply-to: <4F3B2530.7070300@samsung.com> Message-id: <4F3B31AC.5070806@samsung.com> References: <1328852175-12119-1-git-send-email-e.voevodin@samsung.com> <4F3B2530.7070300@samsung.com> Subject: Re: [Qemu-devel] [PATCH v15 00/10] ARM: Samsung Exynos4210-based boards support. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-devel@nongnu.org, kyungmin.park@samsung.com, paul@codesourcery.com, m.kozlov@samsung.com, jehyung.lee@samsung.com, d.solodkiy@samsung.com On 15.02.2012 07:23, Evgeny Voevodin wrote: > On 14.02.2012 23:51, Peter Maydell wrote: >> On 10 February 2012 05:36, Evgeny Voevodin wrote: >>> This set of patches adds support for Samsung Exynos4210-based boards >>> NURI and SMDKC210. >>> Tested on Linux kernel v3.x series. >>> Boot smdkc210 board with root filesystem on NFS disk and serial port >>> #0 redirected to terminal >>> # qemu-system-arm -kernel ./zImage -append "console=ttySAC0,115200n8 >>> ip=dhcp root=/dev/nfs nfsroot=10.0.2.2:/srv/nfs/ rw " -serial stdio >>> -M smdkc210 >> Have you tried booting this with the 'earlyprintk' kernel option? >> I tried this with a 3.2.0 kernel and the exynos4 defconfig and it >> crashes (without 'earlyprintk' is fine). What seems to be happening >> is that the printk() in s3c_init_cpu() ends up taking an abort >> trying to read the UART status register in the waituart macro. >> This load has worked fine up until this point (with the same >> address being used for the load) but I have a feeling this is the >> first printk after we've done some fiddling with the memory mapping >> of devices. Presumably without 'earlyprintk' we don't try to >> do this output and will dump the whole printk buffer later via >> a different codepath. >> >> Possibly this is a kernel bug but I'll let you track it down :-) >> >> -- PMM >> > > Some times ago we have tried it but not recently. Will check it and > report. Thanks. > My suggestion is that this is a kernel issue. Try latest 3.3-rc3. It works with "earlyprintk", though I can't see any valuable difference in output. Also, make attention to what config says: "Say Y here if you want the debug print routines to direct their output to UART 0. The port must have been initialised by the boot-loader before use." We do not have appropriate bootloader, though 3.3-rc3 works without it. -- Kind regards, Evgeny Voevodin, Leading Software Engineer, ASWG, Moscow R&D center, Samsung Electronics e-mail: e.voevodin@samsung.com