From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4TPO-0006sI-VO for qemu-devel@nongnu.org; Sun, 23 Nov 2008 23:50:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4TPN-0006rj-Uc for qemu-devel@nongnu.org; Sun, 23 Nov 2008 23:50:50 -0500 Received: from [199.232.76.173] (port=47620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4TPN-0006ra-KI for qemu-devel@nongnu.org; Sun, 23 Nov 2008 23:50:49 -0500 Received: from vsmtp04.dti.ne.jp ([202.216.231.139]:65456) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L4TEr-0008KS-IY for qemu-devel@nongnu.org; Sun, 23 Nov 2008 23:39:58 -0500 Received: from [192.168.1.21] (PPPa1787.e11.eacc.dti.ne.jp [124.255.93.17]) by vsmtp04.dti.ne.jp (3.11v) with ESMTP AUTH id mAO4dofU008824 for ; Mon, 24 Nov 2008 13:39:51 +0900 (JST) Message-ID: <492A3017.5010904@juno.dti.ne.jp> Date: Mon, 24 Nov 2008 13:39:51 +0900 From: Shin-ichiro KAWASAKI MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] SH4: SCI improvement References: <49296B95.4020707@juno.dti.ne.jp> <20081123222621.GC30647@game.jcrosoft.org> In-Reply-To: <20081123222621.GC30647@game.jcrosoft.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, Jean-san! It seems a good idea to make u-boot run on SH4-QEMU, for brushing up SH4 emulation. Jean-Christophe PLAGNIOL-VILLARD wrote: > I've add the flash support at 0xA0000000 > and have qemu refusing to boot from it > qemu: fatal: Trying to execute code outside RAM or ROM at 0xa000000A > I've also try to boot u-boot as a kernel and have the output working > but not the input. Impossible to type anything I'm afraid that I have no idea about these two points now. I just guess MMU emulation and SCIF emulation might not be enough to run u-boot. To investigate them more closely, I downloaded current u-boot git repository, build if for r2d, and run u-boot.bin with -kernel option. But u-boot couldn't boot with assertion failures. Following two parts caused them. - MMUCR initialization with 16 bit word write causes failure. QEMU only implements 32 bit write for it, following SH7750 document. - BSC's PCR access cause failure. QEMU does not implement it yet. Have you handled them? Regards, Shin-ichiro KAWASAKI > U-Boot 2008.10-00237-g6d56cf3 (Nov 23 2008 - 21:08:17) > > CPU: SH4 > BOARD: Renesas Solutions R2D Plus > DRAM: 64MB > Timer with period zero, disabling > ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB > FLASH: 0MB > *** Warning - bad CRC, using default environment > > In: serial > Out: serial > Err: serial > Net: No ethernet found. > => > > Best Regards, > J. >