mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <takuo.koguchi.sw@hitachi.com>
To: <robherring2@gmail.com>
Cc: <linux-kernel@vger.kernel.org>, <linus.walleij@linaro.org>,
	<linux-arm-kernel@lists.infradead.org>, <arnd@arndb.de>
Subject: Re[2]: v3.4 boot failure on qemu-system-arm -M versatilepb
Date: Wed, 30 May 2012 18:33:51 +0900	[thread overview]
Message-ID: <XNM1$5$0$1$$3$9$0$A$8005413U4fc5e967@hitachi.com> (raw)
In-Reply-To: <4FC52B61.2000604@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]

Hi Rob,

Thank you for your attention.

>What config are you using, and what is your kernel command line?

I used versatile_defconfig.
And I invoked qemu as follows,
$ sudo qemu-system-arm -machine versatilepb -kernel ~/linux/arch/arm/boot/zImage -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -hda output/images/rootfs.ext2 -append "console=ttyAMA0 root=0x0800 ip=192.168.7.3::192.168.7.1:255.255.255.0 raid=noautodetect"

The result is the same even if root=/dev/sda.

currently __io(a) is defined in arch/arm/include/asm/io.h
#define __io(a)		__typesafe_io((a) & IO_SPACE_LIMIT)
...

As CONFIG_PCI is defined in the config, IO_SPACE_LIMIT is defined as 0xffff and failed to boot.
The kernel can mount rootfs when I defined IO_SPACE_LIMIT as follows,
#define IO_SPACE_LIMIT ((resource_size_t)0xffffffff)

It may be related only to qemu and not to real versatile board.

Takuo Koguchi





>Adding linux-arm-kernel...
>
>On 05/28/2012 09:22 AM, takuo.koguchi.sw@hitachi.com wrote:
>> Hi,
>> 
>> I found linux-3.4 kernel fails to mount the rootfs on
>> "qemu-system-arm -M versatile."
>> 
>> Git bisect shows commit c334bc1 cause this first.
>> 
>> So I tried to revert it by putting
>> arch/arm/mach-versatile/include/mach/io.h and adding select
>> NEED_MACH_IO_H in the section of ARCH_VERSATILE in arch/arm/Kconfig,
>> then the kernel can mount the rootfs.
>> 
>> Can someone confirm and fix this?
>> 
>
>What config are you using, and what is your kernel command line?
>
>Rob
>
>> Takuo Koguchi
>> 
>> 

  reply	other threads:[~2012-05-30  9:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 14:22 takuo.koguchi.sw
2012-05-29 20:02 ` Rob Herring
2012-05-30  9:33   ` takuo.koguchi.sw [this message]
2012-05-30 15:37     ` Re[3]: " takuo.koguchi.sw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='XNM1$5$0$1$$3$9$0$A$8005413U4fc5e967@hitachi.com' \
    --to=takuo.koguchi.sw@hitachi.com \
    --cc=arnd@arndb.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robherring2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome