Stefano Stabellini
2013-Sep-19 11:19 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
CC''ing xen-devel On Wed, 18 Sep 2013, XiaoGuang Wang wrote:> Hi Stefano, > > Sorry to bother you. I''m a phd student at Florida State University, and I plan to do some research work on xen for arm. But I > think I may have trouble in running xen-ARM on Cortext-A15 Fast Models. Here is what I do with a step by step procedure: > > First, I download Xen-4.4 and compile Xen with the following command: > xiaoguang@dophine:~/works/xen-4.4$ CONFIG_DTB_FILE=/home/xiaoguang/works/xen-4.4/vexpress-v2p-ca15-tc1.dtb make -C xen > XEN_TARGET_ARCH=arm32 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > > And I get xen, xen.axf in xen/ folder. > > Next, I compile Linux dom0 kernel with the following command: > xiaoguang@dophine:~/works/arm/xen/linux$ curl http://xenbits.xen.org/people/sstabellini/config > .config > xiaoguang@dophine:~/works/arm/xen/linux$ CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make menuconfig > xiaoguang@dophine:~/works/arm/xen/linux$ CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make > > Finally, I run xen on ARM fast models: > xiaoguang@dophine:~/works$ 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 > xen-4.4/xen/xen.axf -C motherboard.flashloader0.fname=/home/xiaoguang/works/arm/xen/linux/arch/arm/boot/zImage > terminal_0: Listening for serial connection on port 5000 > terminal_1: Listening for serial connection on port 5001 > terminal_2: Listening for serial connection on port 5002 > terminal_3: Listening for serial connection on port 5003 > WARNING: motherboard.mmc: MMC backing store file mmc.dat could not be used > INFO: motherboard.mmc backing store: no image file connected > INFO: motherboard.flashloader0: FlashLoader: Loaded 2314 kB from file ''/home/xiaoguang/works/arm/xen/linux/arch/arm/boot/zImage'' > Simulation is started > > > But there is only a small "Fast Models - CLCD" window appeared and no any other windows (Xen and Linux concole). So is there > something wrong with my compilation and installation? Thank you!The command above should bring up four x-term windows. Did you try to connect to port 5000 via telnet? telnet 127.0.0.1 5000
XiaoGuang Wang
2013-Sep-19 14:56 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
Thanks Stefano, I just cannot see the four x-term windows. And when I try to telnet port 5000, it will halt: xiaoguang@dophine:~/works/arm/linux$ telnet localhost 5000 Trying 127.0.0.1... Connected to localhost. Escape character is ''^]''. I can run a linux kernel on this Fast Model with *a x-term window *appears. And I followed this manual: www.virtualopensystems.com/media/*kvm* -resources/*kvm*-*arm*-*guide*.pdf So I don''t know why I cannot bring up x-term windows when I start xen on fast models. Normally, will it start x-term windows if I do the command like: model_shell FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/ cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axp Thanks! Sincerely, Xiaoguang 2013/9/19 Stefano Stabellini <stefano.stabellini@eu.citrix.com>> CC''ing xen-devel > > On Wed, 18 Sep 2013, XiaoGuang Wang wrote: > > Hi Stefano, > > > > Sorry to bother you. I''m a phd student at Florida State University, and > I plan to do some research work on xen for arm. But I > > think I may have trouble in running xen-ARM on Cortext-A15 Fast Models. > Here is what I do with a step by step procedure: > > > > First, I download Xen-4.4 and compile Xen with the following command: > > xiaoguang@dophine:~/works/xen-4.4$ > CONFIG_DTB_FILE=/home/xiaoguang/works/xen-4.4/vexpress-v2p-ca15-tc1.dtb > make -C xen > > XEN_TARGET_ARCH=arm32 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > > > > And I get xen, xen.axf in xen/ folder. > > > > Next, I compile Linux dom0 kernel with the following command: > > xiaoguang@dophine:~/works/arm/xen/linux$ curl > http://xenbits.xen.org/people/sstabellini/config > .config > > xiaoguang@dophine:~/works/arm/xen/linux$ > CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make menuconfig > > xiaoguang@dophine:~/works/arm/xen/linux$ > CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make > > > > Finally, I run xen on ARM fast models: > > xiaoguang@dophine:~/works$ > 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 > > xen-4.4/xen/xen.axf -C > motherboard.flashloader0.fname=/home/xiaoguang/works/arm/xen/linux/arch/arm/boot/zImage > > terminal_0: Listening for serial connection on port 5000 > > terminal_1: Listening for serial connection on port 5001 > > terminal_2: Listening for serial connection on port 5002 > > terminal_3: Listening for serial connection on port 5003 > > WARNING: motherboard.mmc: MMC backing store file mmc.dat could not be > used > > INFO: motherboard.mmc backing store: no image file connected > > INFO: motherboard.flashloader0: FlashLoader: Loaded 2314 kB from file > ''/home/xiaoguang/works/arm/xen/linux/arch/arm/boot/zImage'' > > Simulation is started > > > > > > But there is only a small "Fast Models - CLCD" window appeared and no > any other windows (Xen and Linux concole). So is there > > something wrong with my compilation and installation? Thank you! > > The command above should bring up four x-term windows. > Did you try to connect to port 5000 via telnet? > > telnet 127.0.0.1 5000 >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Sep-19 22:10 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
Please don''t top post. On Thu, 2013-09-19 at 10:56 -0400, XiaoGuang Wang wrote:> So I don''t know why I cannot bring up x-term windows when I start xen > on fast models. Normally, will it start x-term windows if I do the > command like: > model_shell > FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axpAFAIK the model won''t open the xterm until something reads or writes the related serial port. So if you haven''t configured your console correctly then they may never show up. What is your hypervisor command line (in the DTS)? You could also try using CONFIG_EARLY_PRINTK=fastmodel when building Xen. Ian.
XiaoGuang Wang
2013-Sep-19 22:36 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
2013/9/19 Ian Campbell <ian.campbell@citrix.com>> Please don''t top post. >Sorry!> > On Thu, 2013-09-19 at 10:56 -0400, XiaoGuang Wang wrote: > > > So I don''t know why I cannot bring up x-term windows when I start xen > > on fast models. Normally, will it start x-term windows if I do the > > command like: > > model_shell > > > FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/ > cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axp > > AFAIK the model won''t open the xterm until something reads or writes the > related serial port. So if you haven''t configured your console correctly > then they may never show up. > > What is your hypervisor command line (in the DTS)? > > You could also try using CONFIG_EARLY_PRINTK=fastmodel when building > Xen. > > Ian. > > > Hi Ian,It still doesn''t appear. I download xen-4.4 (also try xen-4.3.0) and compile it with this script: xiaoguang@dophine:~/works/arm/xen/xen-4.3.0$ cat compile-xen.sh CONFIG_EARLY_PRINTK=fastmodel CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb make -C xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- And I run it with this command: xiaoguang@dophine:~/works/arm/xen$ cat start-xen.sh 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 xen-4.3.0/xen/xen -C motherboard.flashloader0.fname=zImage Is there anything else I have to do to configure the console? I don''t know what this means on wiki: console=dtuart dtuart=myserial Thanks! Xiaoguang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Sep-19 23:54 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
On Thu, 2013-09-19 at 18:36 -0400, XiaoGuang Wang wrote:> > 2013/9/19 Ian Campbell <ian.campbell@citrix.com> > Please don''t top post. > Sorry! > > On Thu, 2013-09-19 at 10:56 -0400, XiaoGuang Wang wrote: > > > So I don''t know why I cannot bring up x-term windows when I > start xen > > on fast models. Normally, will it start x-term windows if I > do the > > command like: > > model_shell > > > FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axp > > > AFAIK the model won''t open the xterm until something reads or > writes the > related serial port. So if you haven''t configured your console > correctly > then they may never show up. > > What is your hypervisor command line (in the DTS)? > > You could also try using CONFIG_EARLY_PRINTK=fastmodel when > building > Xen. > > Ian. > > > Hi Ian, > > > It still doesn''t appear. I download xen-4.4 (also try xen-4.3.0) and > compile it with this script: > > > xiaoguang@dophine:~/works/arm/xen/xen-4.3.0$ cat compile-xen.sh > CONFIG_EARLY_PRINTK=fastmodel > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtbunless you use "export" these aren''t actually exposed to subprocesses, such as the make invocation. I just put these directly on the make command line, as you''ve done for XEN_TARGET_ARCH and CROSS_COMPILE.> make -C xen XEN_TARGET_ARCH=arm32 > CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > > > And I run it with this command: > xiaoguang@dophine:~/works/arm/xen$ cat start-xen.sh > 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 xen-4.3.0/xen/xen -C motherboard.flashloader0.fname=zImage > > > > > Is there anything else I have to do to configure the console? I don''t > know what this means on wiki: > console=dtuart dtuart=myserial > > > > Thanks! > > > Xiaoguang
XiaoGuang Wang
2013-Sep-20 15:31 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
2013/9/19 Ian Campbell <ian.campbell@citrix.com>> On Thu, 2013-09-19 at 18:36 -0400, XiaoGuang Wang wrote: > > > > 2013/9/19 Ian Campbell <ian.campbell@citrix.com> > > Please don''t top post. > > Sorry! > > > > On Thu, 2013-09-19 at 10:56 -0400, XiaoGuang Wang wrote: > > > > > So I don''t know why I cannot bring up x-term windows when I > > start xen > > > on fast models. Normally, will it start x-term windows if I > > do the > > > command like: > > > model_shell > > > > > > FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/ > cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axp > > > > > > AFAIK the model won''t open the xterm until something reads or > > writes the > > related serial port. So if you haven''t configured your console > > correctly > > then they may never show up. > > > > What is your hypervisor command line (in the DTS)? > > > > You could also try using CONFIG_EARLY_PRINTK=fastmodel when > > building > > Xen. > > > > Ian. > > > > > > Hi Ian, > > > > > > It still doesn''t appear. I download xen-4.4 (also try xen-4.3.0) and > > compile it with this script: > > > > > > xiaoguang@dophine:~/works/arm/xen/xen-4.3.0$ cat compile-xen.sh > > CONFIG_EARLY_PRINTK=fastmodel > > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb > > unless you use "export" these aren''t actually exposed to subprocesses, > such as the make invocation. > > I just put these directly on the make command line, as you''ve done for > XEN_TARGET_ARCH and CROSS_COMPILE.Yes. I try it like this, but it still doesn''t work: $ CONFIG_EARLY_PRINTK=fastmodel CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb make -C xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- Is is because the fast model doesn''t recognize my xen image? And is it any other ways to get my xen console? Thanks! Xiaoguang> > make -C xen XEN_TARGET_ARCH=arm32 > > CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > > > > > > And I run it with this command: > > xiaoguang@dophine:~/works/arm/xen$ cat start-xen.sh > > 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 xen-4.3.0/xen/xen -C > motherboard.flashloader0.fname=zImage > > > > > > > > > > Is there anything else I have to do to configure the console? I don''t > > know what this means on wiki: > > console=dtuart dtuart=myserial > > > > > > > > Thanks! > > > > > > Xiaoguang > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Sep-20 15:42 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
On Fri, 2013-09-20 at 11:31 -0400, XiaoGuang Wang wrote:> 2013/9/19 Ian Campbell <ian.campbell@citrix.com> > On Thu, 2013-09-19 at 18:36 -0400, XiaoGuang Wang wrote: > > > > 2013/9/19 Ian Campbell <ian.campbell@citrix.com> > > Please don''t top post. > > Sorry! > > > > On Thu, 2013-09-19 at 10:56 -0400, XiaoGuang Wang > wrote: > > > > > So I don''t know why I cannot bring up x-term > windows when I > > start xen > > > on fast models. Normally, will it start x-term > windows if I > > do the > > > command like: > > > model_shell > > > > > > FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axp > > > > > > AFAIK the model won''t open the xterm until something > reads or > > writes the > > related serial port. So if you haven''t configured > your console > > correctly > > then they may never show up. > > > > What is your hypervisor command line (in the DTS)? > > > > You could also try using > CONFIG_EARLY_PRINTK=fastmodel when > > building > > Xen. > > > > Ian. > > > > > > Hi Ian, > > > > > > It still doesn''t appear. I download xen-4.4 (also try > xen-4.3.0) and > > compile it with this script: > > > > > > xiaoguang@dophine:~/works/arm/xen/xen-4.3.0$ cat > compile-xen.sh > > CONFIG_EARLY_PRINTK=fastmodel > > > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb > > > unless you use "export" these aren''t actually exposed to > subprocesses, > such as the make invocation. > > I just put these directly on the make command line, as you''ve > done for > XEN_TARGET_ARCH and CROSS_COMPILE. > Yes. I try it like this, but it still doesn''t work: > $ CONFIG_EARLY_PRINTK=fastmodel > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb make -C xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-Try with them after the make command. i.e. exactly the same place as you''ve got the XEN_TARGET_ARCH setting. There are subtle semantic differences to make between environment variables and variables set on the make command line.
XiaoGuang Wang
2013-Sep-20 16:32 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
2013/9/20 Ian Campbell <ian.campbell@citrix.com>> On Fri, 2013-09-20 at 11:31 -0400, XiaoGuang Wang wrote: > > 2013/9/19 Ian Campbell <ian.campbell@citrix.com> > > On Thu, 2013-09-19 at 18:36 -0400, XiaoGuang Wang wrote: > > > > > > 2013/9/19 Ian Campbell <ian.campbell@citrix.com> > > > Please don''t top post. > > > Sorry! > > > > > > On Thu, 2013-09-19 at 10:56 -0400, XiaoGuang Wang > > wrote: > > > > > > > So I don''t know why I cannot bring up x-term > > windows when I > > > start xen > > > > on fast models. Normally, will it start x-term > > windows if I > > > do the > > > > command like: > > > > model_shell > > > > > > > > > > FastModels/FastModelsPortfolio_7.0/examples/RTSM_VE/Build_Cortex-A15x1/Linux64-Release-GCC-4.1/ > cadi_system_Linux64-Release-GCC-4.1.so xen.git/xen/xen.axp > > > > > > > > > AFAIK the model won''t open the xterm until something > > reads or > > > writes the > > > related serial port. So if you haven''t configured > > your console > > > correctly > > > then they may never show up. > > > > > > What is your hypervisor command line (in the DTS)? > > > > > > You could also try using > > CONFIG_EARLY_PRINTK=fastmodel when > > > building > > > Xen. > > > > > > Ian. > > > > > > > > > Hi Ian, > > > > > > > > > It still doesn''t appear. I download xen-4.4 (also try > > xen-4.3.0) and > > > compile it with this script: > > > > > > > > > xiaoguang@dophine:~/works/arm/xen/xen-4.3.0$ cat > > compile-xen.sh > > > CONFIG_EARLY_PRINTK=fastmodel > > > > > > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb > > > > > > unless you use "export" these aren''t actually exposed to > > subprocesses, > > such as the make invocation. > > > > I just put these directly on the make command line, as you''ve > > done for > > XEN_TARGET_ARCH and CROSS_COMPILE. > > Yes. I try it like this, but it still doesn''t work: > > $ CONFIG_EARLY_PRINTK=fastmodel > > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb > make -C xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > > Try with them after the make command. i.e. exactly the same place as > you''ve got the XEN_TARGET_ARCH setting. There are subtle semantic > differences to make between environment variables and variables set on > the make command line. >I compile it like this, but there still only a "Fast Models - CLCD" windows appear. $ 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 And I run xen with the following command: $ 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 xen-4.3.0/xen/xen -C motherboard.flashloader0.fname=zImage _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Sep-20 17:57 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
> > I compile it like this, but there still only a "Fast Models - CLCD" > windows appear. > $ 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 > > > And I run xen with the following command: > $ 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 xen-4.3.0/xen/xen -C motherboard.flashloader0.fname=zImageI''m close to being out of ideas. Did you build this model yourself? Does it have a pl011 UART at physical address 0x1c090000? Next step would be to run the model in modeldebugger instead of model_shell and see where it is going wrong. Ian.
XiaoGuang Wang
2013-Sep-20 18:55 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
2013/9/20 Ian Campbell <ian.campbell@citrix.com>> > > > > I compile it like this, but there still only a "Fast Models - CLCD" > > windows appear. > > $ 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 > > > > > > And I run xen with the following command: > > $ 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 xen-4.3.0/xen/xen -C > motherboard.flashloader0.fname=zImage > > I''m close to being out of ideas. > > Did you build this model yourself? Does it have a pl011 UART at physical > address 0x1c090000? > > Hi Ian. How can see the pl011 UART? In the window after I type "sgcanvasFVP_VE_Cortex-A15x1.sgproj"? I built the model like this: xiaoguang@dophine:~/ARM/FastModelsPortfolio_8.2/examples/FVP_VE/Build_Cortex-A15x1$ sgcanvas FVP_VE_Cortex-A15x1.sgproj And then build. The building log shows: -------------------------------------------------------------------- Model Build process completed successfully. -------------------------------------------------------------------- I can run a linux in this Fast Model following the instructions in this guide: www.virtualopensystems.com/media/kvm-resources/kvm-arm-guide.pdf 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=192.158.1.15:/home/xiaoguang/nfsroot/ rw ip=dhcp"*boot-wrapper/linux-system-semi.axf * So I''m wondering if I have to build a boot loader? Or if I have sth. wrong to build a correct xen image? 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.> Ian. >Thanks! Sincerely, Xiaoguang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Sep-20 21:44 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
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=192.158.1.15:/home/xiaoguang/nfsroot/ rw ip=dhcp" boot-wrapper/linux-system-semi.axfand 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 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- CONFIG_EARLY_PRINTK=fastmodel CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb It may be thatthings aren''t being rebuilt when these options are changed.> 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. Ian.
XiaoGuang Wang
2013-Sep-25 14:57 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
2013/9/20 Ian Campbell <ian.campbell@citrix.com>> 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=192.158.1.15:/home/xiaoguang/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 > CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- > CONFIG_EARLY_PRINTK=fastmodel > CONFIG_DTB_FILE=/home/xiaoguang/works/arm/xen/vexpress-v2p-ca15-tc1.dtb > > It may be thatthings aren''t being rebuilt when these options are > changed. > > > 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. > > IanHi 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. Sincerely, Xiaoguang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Sep-25 14:59 UTC
Re: Problems in running XenARM on Cortex-A15 Fast Models
On Wed, 2013-09-25 at 10:57 -0400, XiaoGuang Wang wrote:> 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=yGah, this is a known issue with debug=n being broken which I''d forgotten because everyone else runs xen-unstable where debug=y is the default. Sorry. FYI that issue is (or should be!) fixed by the "xen: arm: rework early bring up" series I posted in the last few weeks. Ian.