[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Problems in running XenARM on Cortex-A15 Fast Models

2013/9/20 Ian Campbell <ian.campbell@xxxxxxxxxx>
On Fri, 2013-09-20 at 14:55 -0400, XiaoGuang Wang wrote:

> The command to run linux like:
> $ model_shell
> ~/ARM/FastModelsPortfolio_8.2/examples/FVP_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.4/cadi_system_Linux64-Release-GCC-4.4.so -C motherboard.smsc_91c111.enabled=1 -C motherboard.hostbridge.userNetworking=1 -C cluster.cpu0.semihosting-cmd_line="--kernel linux/arch/arm/boot/zImage --dtb vexpress-v2p-ca15-tc1.dtb -- earlyprintk console=ttyAMA0 mem=2048M root=/dev/nfs nfsroot= rw ip=dhcp" boot-wrapper/linux-system-semi.axf

and this gets you serial console output?

> So I'm wondering if I have to build a boot loader?

Not currently. (although that might change too)

> Or if I have sth. wrong to build a correct xen image?

I think you should be getting at least the earlyprintk stuff, at least
as a starting point.

Can you try doing a full clean (e.g. "git clean -fdx xen") and
rebuilding with
make dist-xen XEN_TARGET_ARCH=arm32

It may be thatthings aren't being rebuilt when these options are

>         Next step would be to run the model in modeldebugger instead
>         of
>         model_shell and see where it is going wrong.
> I think I have to read the modeldebugger manual first.

If it doesn't wrk with the full clean and rebuild then this will be the
next step.


Hi Ian,

I finally start up xen console by compiling xen with:
make dist-xen XEN_TARGET_ARCH=arm32  CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- CONFIG_EARLY_PRINTK=fastmodel CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb debug=y

And when starting dom0, there will be the error on "mmc0: host doesn't support card's voltages". It can be fixed by a linux kernel patch supplied by Shubham. :)

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index e6e3911..0edd33b 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1529,14 +1529,15 @@ int mmc_attach_mmc(struct mmc_host *host)
                ocr &= ~0x7F;

-       host->ocr = mmc_select_voltage(host, ocr);
-       /*
-        * Can we support the voltage of the card?
-        */
-       if (!host->ocr) {
-               err = -EINVAL;
-               goto err;
+       if (host->ocr_avail_mmc) {
+               host->ocr = mmc_select_voltage(host, ocr);
+               /*
+                * Can we support the voltage of the card?
+                */
+               if (!host->ocr) {
+                       err = -EINVAL;
+                       goto err;
+               }

Thanks everyone.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.