* Question about running Xen 4.4 on Arndale board
@ 2014-04-09 19:55 Meng Xu
2014-04-11 12:55 ` Julien Grall
0 siblings, 1 reply; 14+ messages in thread
From: Meng Xu @ 2014-04-09 19:55 UTC (permalink / raw)
To: xen-devel@lists.xen.org; +Cc: Hyon-Young Choi, Meng Xu
[-- Attachment #1.1: Type: text/plain, Size: 2061 bytes --]
Hi,
We have a Samsung Exynos 5420 Arndale Octa Board. We tried to run Xen 4.4
on the Arndale Octa board.
We have successfully to run Ubuntu on that board by customizing the UBoot.
We followed the instructions in
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Arndale.
We tried to boot from the SD card, so the UBoot variable we set is:
env print
addmac=setenv bootargs "${bootargs} mac=${ethaddr}"
boot_xen_mmc=run bootcmd_load_linux_mmc; fatload mmc 0:2 $xen_addr_r
/xen-uImage; bootm $xen_addr_r -
bootargs=console=tty0 console=ttySAC3,115200n8
root=UUID=033f7255-a182-45e9-bf46-331666c414f4 rootwait ro
bootcmd=run boot_xen_mmc
bootcmd_load_linux_mmc=fatload mmc 0:2 $kernel_addr_r /zImage
ethact=asx0
ethaddr=02:f5:0c:d6:94:24
fdt_high=0xffffffff
initrd_high=0xffffffff
kernel_addr_r=0x60000000
preboot=usb start
stderr=serial
stdin=serial
stdout=serial
xen_addr_r=0x50000000
Environment size: 566/16380 bytes
When we boot the board with command "#boot", xen does not seem to boot.
The message we got is:
reading /zImag
4801504 bytes read
reading /xen-uImage
880833 bytes read
## Booting kernel from Legacy Image at 50000000 ...
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 880769 Bytes = 860.1 KiB
Load Address: 80200000
Entry Point: 80200000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Since the website says the configuration for booting from the SD card is
not updated for the newest Xen version, *our question is:*
Could anyone please point out the error we made in the configuration? or
Could anyone please give us a pointer to the documentation which works for
the newest version of Xen?
If no latest doc is there, which version of Xen works for the configuration
provided in the website:
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/Arndale
Thank you very much for your time and help in this question!
Best,
Meng
-----------
Meng Xu
PhD Student in Computer and Information Science
University of Pennsylvania
[-- Attachment #1.2: Type: text/html, Size: 3944 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: Question about running Xen 4.4 on Arndale board 2014-04-09 19:55 Question about running Xen 4.4 on Arndale board Meng Xu @ 2014-04-11 12:55 ` Julien Grall 2014-04-11 13:17 ` Meng Xu 0 siblings, 1 reply; 14+ messages in thread From: Julien Grall @ 2014-04-11 12:55 UTC (permalink / raw) To: Meng Xu; +Cc: Meng Xu, Hyon-Young Choi, xen-devel@lists.xen.org On 04/09/2014 08:55 PM, Meng Xu wrote: > Hi, Hello, > We have a Samsung Exynos 5420 Arndale Octa Board. We tried to run Xen > 4.4 on the Arndale Octa board. Xen 4.4 only supports the Arndale 5250. AFAIK, the octa has a similar layout as 5250. Porting Xen on the board should not be too difficult. I know there is some people who are working on porting Xen to the odroid xu which also have an exynos inside. > We have successfully to run Ubuntu on that board by customizing the UBoot. Does your U-boot bring up CPU in hypervisor mode? > We tried to boot from the SD card, so the UBoot variable we set is: > When we boot the board with command "#boot", xen does not seem to boot. > The message we got is: > > reading /zImag > 4801504 bytes read > reading /xen-uImage > 880833 bytes read > ## Booting kernel from Legacy Image at 50000000 ... > Image Name: > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 880769 Bytes = 860.1 KiB > Load Address: 80200000 > Entry Point: 80200000 > Verifying Checksum ... OK > Loading Kernel Image ... OK > OK > Starting kernel ... IIRC, the UART is the same as the Arndale 5250. Can you try to recompile Xen with CONFIG_EARLY_PRINTK=exynos5250 on the make command line? Don't forget to clean up the tree before! > > Since the website says the configuration for booting from the SD card is > not updated for the newest Xen version, *our question is:* > Could anyone please point out the error we made in the configuration? or > Could anyone please give us a pointer to the documentation which works > for the newest version of Xen? There is no documentation updated to boot from the SD card. Regards, -- Julien Grall ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-11 12:55 ` Julien Grall @ 2014-04-11 13:17 ` Meng Xu 2014-04-11 13:27 ` Julien Grall 0 siblings, 1 reply; 14+ messages in thread From: Meng Xu @ 2014-04-11 13:17 UTC (permalink / raw) To: Julien Grall; +Cc: Hyon-Young Choi, xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 1928 bytes --] Hi Julien, Thank you so much for your reply! > > We have a Samsung Exynos 5420 Arndale Octa Board. We tried to run Xen > > 4.4 on the Arndale Octa board. > > Xen 4.4 only supports the Arndale 5250. AFAIK, the octa has a similar > layout as 5250. Porting Xen on the board should not be too difficult. > I know there is some people who are working on porting Xen to the odroid > xu which also have an exynos inside. > Great! Do you know if they have any timeline on this or any patch we could try? > > > We have successfully to run Ubuntu on that board by customizing the > UBoot. > > Does your U-boot bring up CPU in hypervisor mode? > Sorry, can I ask a silly question: How should I check if U-boot bring up CPU in hypervisor mode? When we run Ubuntu successfully, we didn't use Xen at all. (Of course, it doesn't affect us to check if Uboot bring up CPU in hypervisor mode.) > > > We tried to boot from the SD card, so the UBoot variable we set is: > > > When we boot the board with command "#boot", xen does not seem to boot. > > The message we got is: > > > > reading /zImag > > 4801504 bytes read > > reading /xen-uImage > > 880833 bytes read > > ## Booting kernel from Legacy Image at 50000000 ... > > Image Name: > > Image Type: ARM Linux Kernel Image (uncompressed) > > Data Size: 880769 Bytes = 860.1 KiB > > Load Address: 80200000 > > Entry Point: 80200000 > > Verifying Checksum ... OK > > Loading Kernel Image ... OK > > OK > > Starting kernel ... > > IIRC, the UART is the same as the Arndale 5250. Can you try to recompile > Xen with CONFIG_EARLY_PRINTK=exynos5250 on the make command line? Don't > forget to clean up the tree before! > Sure! We will try and let you know the result! Thank you again for your help! Best, ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania [-- Attachment #1.2: Type: text/html, Size: 3632 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-11 13:17 ` Meng Xu @ 2014-04-11 13:27 ` Julien Grall 2014-04-14 15:33 ` HyonYoung Choi 0 siblings, 1 reply; 14+ messages in thread From: Julien Grall @ 2014-04-11 13:27 UTC (permalink / raw) To: Meng Xu; +Cc: Suriyan Ramasami, Hyon-Young Choi, xen-devel@lists.xen.org On 04/11/2014 02:17 PM, Meng Xu wrote: > Hi Julien, Hello, > Thank you so much for your reply! > > > > We have a Samsung Exynos 5420 Arndale Octa Board. We tried to run Xen > > 4.4 on the Arndale Octa board. > > Xen 4.4 only supports the Arndale 5250. AFAIK, the octa has a similar > layout as 5250. Porting Xen on the board should not be too difficult. > > > I know there is some people who are working on porting Xen to the odroid > xu which also have an exynos inside. > > > Great! Do you know if they have any timeline on this or any patch we > could try? I cced a person who is working on the odroid XU. He may be able to tell you if he plans to send patch upstream. > > > > > We have successfully to run Ubuntu on that board by customizing > the UBoot. > > Does your U-boot bring up CPU in hypervisor mode? > > > Sorry, can I ask a silly question: > How should I check if U-boot bring up CPU in hypervisor mode? > When we run Ubuntu successfully, we didn't use Xen at all. (Of course, > it doesn't affect us to check if Uboot bring up CPU in hypervisor mode.) When you will have early printk enabled in Xen. It will let you know if the CPUs are in hypervisor mode or not. Regards, -- Julien Grall ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-11 13:27 ` Julien Grall @ 2014-04-14 15:33 ` HyonYoung Choi 2014-04-14 16:31 ` Julien Grall 0 siblings, 1 reply; 14+ messages in thread From: HyonYoung Choi @ 2014-04-14 15:33 UTC (permalink / raw) To: Julien Grall; +Cc: Suriyan Ramasami, Meng Xu, xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 5114 bytes --] Hello Julien, I'm Hyonyoung Choi, working on Xen into Arndale-Octa board with Meng. I tried to recompiled xen with CONFIG_EARLY_PRINTK=exynos5250 as your advice. The command line is like this: make distclean export CONFIG_EARLY_PRINTK=exynos5250 make dist-xen XEN_TARGET_ARCH=arm32 The result is nothing happened at all. No additional message is printed. Here is the boot log. ========================== U-Boot 2012.07 (Feb 15 2014 - 17:29:55) for ARNDALE OCTA CPU: Exynos5420 Rev2.0 [Samsung SOC on SMP Platform Base on ARM CortexA15] APLL = 800MHz, KPLL = 600MHz MPLL = 532MHz, BPLL = 800MHz Board: ARNDALE OCTA DRAM: 2 GiB WARNING: Caches not enabled TrustZone Enabled BSP BL1 version: Checking Boot Mode ... SDMMC MMC: S5P_MSHC2: 0, S5P_MSHC0: 1 MMC Device 0: 3.7 GiB MMC Device 1: 3.6 GiB MMC Device 2: MMC Device 2 not found there are pending interrupts 0x00000001 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: No ethernet found. (Re)start USB... USB: Register 1313 NbrPorts 3 USB EHCI 1.00 scanning bus for devices... The request port(2) is not configured The request port(2) is not configured 3 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found Hit any key to stop autoboot: 0 reading boot.scr 531 bytes read Running bootscript from mmc0:2 ... ## Executing script at 22000000 reading /zImage 4801504 bytes read reading /xen-uImage 557904 bytes read ## Booting kernel from Legacy Image at 50000000 ... Image Name: Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 557840 Bytes = 544.8 KiB Load Address: 80200000 Entry Point: 80200000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... ======================= About SD-card image, I re-used the prebuilt image for arndale-octa at http://releases.linaro.org/14.01/ubuntu/arndale-octa After writing the image to the SD card, I replace newly compiled kernel image and xen image. kernel image I used: ------------------------------------------- git clone git://git.linaro.org/kernel/linux-linaro-tracking.git export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabi- scripts/kconfig/merge_config.sh linaro/configs/linaro-base.conf linaro/configs/distribution.conf \ linaro/configs/kvm-host.conf linaro/configs/xen.conf linaro/configs/arndale_octa.conf \ linaro/configs/lt-arndale_octa.conf make zImage ------------------------------------------- xen image I used: ------------------------------------------- git clone git://xenbits.xen.org/xen.git git checkout stable-4.4 export CONFIG_EARLY_PRINTK=exynos5250 export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabi- make dist-xen XEN_TARGET_ARCH=arm32 ------------------------------------------- for xen-uImage: ------------------------------------------- mkimage -A arm -T kernel -a 0x80200000 -e 0x80200000 -C none -d "../xen/xen" xen-uImage ------------------------------------------- And, replace env script ------------------------------------------- setenv initrd_high "0xffffffff" setenv fdt_high "0xffffffff" setenv kernel_addr_r 0x60000000 setenv xen_addr_r 0x50000000 setenv bootcmd_load_linux_mmc 'fatload mmc 0:2 $kernel_addr_r /zImage' setenv boot_xen_mmc 'run bootcmd_load_linux_mmc; fatload mmc 0:2 $xen_addr_r /xen-uImage; bootm $xen_addr_r -' setenv bootcmd 'run boot_xen_mmc' setenv bootargs "console=tty0 console=ttySAC3,115200n8 root=UUID=033f7255-a182-45e9-bf46-331666c414f4 rootwait ro" boot ------------------------------------------- Any suggestion would be very appreciated for us. Thank you. Regards, Hyonyoung On Fri, Apr 11, 2014 at 9:27 AM, Julien Grall <julien.grall@linaro.org>wrote: > On 04/11/2014 02:17 PM, Meng Xu wrote: > > Hi Julien, > > Hello, > > > Thank you so much for your reply! > > > > > > > We have a Samsung Exynos 5420 Arndale Octa Board. We tried to run > Xen > > > 4.4 on the Arndale Octa board. > > > > Xen 4.4 only supports the Arndale 5250. AFAIK, the octa has a similar > > layout as 5250. Porting Xen on the board should not be too difficult. > > > > > > I know there is some people who are working on porting Xen to the > odroid > > xu which also have an exynos inside. > > > > > > Great! Do you know if they have any timeline on this or any patch we > > could try? > > I cced a person who is working on the odroid XU. He may be able to tell > you if he plans to send patch upstream. > > > > > > > > > > We have successfully to run Ubuntu on that board by customizing > > the UBoot. > > > > Does your U-boot bring up CPU in hypervisor mode? > > > > > > Sorry, can I ask a silly question: > > How should I check if U-boot bring up CPU in hypervisor mode? > > When we run Ubuntu successfully, we didn't use Xen at all. (Of course, > > it doesn't affect us to check if Uboot bring up CPU in hypervisor mode.) > > When you will have early printk enabled in Xen. It will let you know if > the CPUs are in hypervisor mode or not. > > Regards, > > -- > Julien Grall > [-- Attachment #1.2: Type: text/html, Size: 7256 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 15:33 ` HyonYoung Choi @ 2014-04-14 16:31 ` Julien Grall 2014-04-14 17:01 ` HyonYoung Choi 2014-04-14 17:07 ` Suriyan Ramasami 0 siblings, 2 replies; 14+ messages in thread From: Julien Grall @ 2014-04-14 16:31 UTC (permalink / raw) To: HyonYoung Choi; +Cc: Suriyan Ramasami, Meng Xu, xen-devel@lists.xen.org On 04/14/2014 04:33 PM, HyonYoung Choi wrote: > Hello Julien, > I'm Hyonyoung Choi, working on Xen into Arndale-Octa board with Meng. > > I tried to recompiled xen with CONFIG_EARLY_PRINTK=exynos5250 as your > advice. > > The command line is like this: > > make distclean > export CONFIG_EARLY_PRINTK=exynos5250 > make dist-xen XEN_TARGET_ARCH=arm32 > > The result is nothing happened at all. > No additional message is printed. Sorry I misread the documentation, the UART port is not the same on the exynos5420. Can you try to apply the patch below and recompile xen (make clean make) with CONFIG_EARLY_PRINTK=exynos5420. Regards, commit 9595eedd366145b5b3e91b2b7cfa076cc2fc4174 Author: Julien Grall <julien.grall@linaro.org> Date: Mon Apr 14 17:24:54 2014 +0100 xen/arm: Add early printk for Arndale Octa (exynos5420) Enable early printk for exynos5420. Signed-off-by: Julien Grall <julien.grall@linaro.org> diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index c551afb..ddc2e28 100644 --- a/xen/arch/arm/Rules.mk +++ b/xen/arch/arm/Rules.mk @@ -57,6 +57,12 @@ EARLY_PRINTK_INIT_UART := y EARLY_PRINTK_BAUD := 115200 EARLY_UART_BASE_ADDRESS := 0x12c20000 endif +ifeq ($(CONFIG_EARLY_PRINTK), exynos5420) +EARLY_PRINTK_INC := exynos4210 +EARLY_PRINTK_INIT_UART := y +EARLY_PRINTK_BAUD := 11520 +EARLY_UART_BASE_ADDRESS := 0x12c30000 +endif ifeq ($(CONFIG_EARLY_PRINTK), midway) EARLY_PRINTK_INC := pl011 EARLY_PRINTK_BAUD := 115200 -- Julien Grall ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 16:31 ` Julien Grall @ 2014-04-14 17:01 ` HyonYoung Choi 2014-04-14 17:07 ` Suriyan Ramasami 1 sibling, 0 replies; 14+ messages in thread From: HyonYoung Choi @ 2014-04-14 17:01 UTC (permalink / raw) To: Julien Grall, tod carpenter Cc: Suriyan Ramasami, Meng Xu, xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 5037 bytes --] Thanks for your comments. I tried with Tod's comment of dtb and Julien's patch. But no difference. env setting: ----------------------------------- setenv kernel_addr_r 0x60000000 setenv xen_addr_r 0x50000000 setenv dtb_addr_r 0x42000000 fatload mmc 0:2 $kernel_addr_r /zImage fatload mmc 0:2 $xen_addr_r /xen-uImage fatload mmc 0:2 $dtb_addr_r /exynos5420-arndale-octa.dtb fdt addr $dtb_addr_r fdt resize setenv xen_bootargs 'sync_console console=dtuart dtuart=/serial@12C20000' setenv dom0_bootargs 'console=hvc0 ignore_loglevel psci_enable clk_ignore_unused root=/dev/mmcblk1p3' fdt set /chosen xen,xen-bootargs \"$xen_bootargs\" fdt set /chosen xen,dom0-bootargs \"$dom0_bootargs\" fdt mknode /chosen modules fdt set /chosen/modules '#address-cells' <1> fdt set /chosen/modules '#size-cells' <1> fdt mknode /chosen/modules module@0 fdt set /chosen/modules/module@0 compatible "xen,linux-zimage" "xen,multiboot-module" fdt set /chosen/modules/module@0 reg <$kernel_addr_r 0x00a00000> bootm $xen_addr_r - $dtb_addr_r ----------------------------------- Log: ============================= U-Boot 2012.07 (Feb 15 2014 - 17:29:55) for ARNDALE OCTA CPU: Exynos5420 Rev2.0 [Samsung SOC on SMP Platform Base on ARM CortexA15] APLL = 800MHz, KPLL = 600MHz MPLL = 532MHz, BPLL = 800MHz Board: ARNDALE OCTA DRAM: 2 GiB WARNING: Caches not enabled TrustZone Enabled BSP BL1 version: Checking Boot Mode ... SDMMC MMC: S5P_MSHC2: 0, S5P_MSHC0: 1 MMC Device 0: 3.7 GiB MMC Device 1: 3.6 GiB MMC Device 2: MMC Device 2 not found there are pending interrupts 0x00000001 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: No ethernet found. (Re)start USB... USB: Register 1313 NbrPorts 3 USB EHCI 1.00 scanning bus for devices... The request port(2) is not configured The request port(2) is not configured 3 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 1 Ethernet Device(s) found Hit any key to stop autoboot: 0 reading boot.scr 989 bytes read Running bootscript from mmc0:2 ... ## Executing script at 22000000 reading /zImage 2606416 bytes read reading /xen-uImage 557904 bytes read reading /exynos5420-arndale-octa.dtb 31105 bytes read ## Booting kernel from Legacy Image at 50000000 ... Image Name: Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 557840 Bytes = 544.8 KiB Load Address: 80200000 Entry Point: 80200000 Verifying Checksum ... OK ## Flattened Device Tree blob at 42000000 Booting using the fdt blob at 0x42000000 Loading Kernel Image ... OK OK reserving fdt memory region: addr=42000000 size=8000 Loading Device Tree to 2fff5000, end 2fffffff ... OK Starting kernel ... ======================= It is very wired that CONFIG_EARLY_PRINTK is not working. If the patch is correct, is xen dead just at starting or totally wrong place of image? Best, Hyonyoung On Mon, Apr 14, 2014 at 12:31 PM, Julien Grall <julien.grall@linaro.org>wrote: > On 04/14/2014 04:33 PM, HyonYoung Choi wrote: > > Hello Julien, > > > I'm Hyonyoung Choi, working on Xen into Arndale-Octa board with Meng. > > > > I tried to recompiled xen with CONFIG_EARLY_PRINTK=exynos5250 as your > > advice. > > > > The command line is like this: > > > > make distclean > > export CONFIG_EARLY_PRINTK=exynos5250 > > make dist-xen XEN_TARGET_ARCH=arm32 > > > > The result is nothing happened at all. > > No additional message is printed. > > Sorry I misread the documentation, the UART port is not the same on the > exynos5420. Can you try to apply the patch below and recompile xen (make > clean make) with CONFIG_EARLY_PRINTK=exynos5420. > > Regards, > > commit 9595eedd366145b5b3e91b2b7cfa076cc2fc4174 > Author: Julien Grall <julien.grall@linaro.org> > Date: Mon Apr 14 17:24:54 2014 +0100 > > xen/arm: Add early printk for Arndale Octa (exynos5420) > > Enable early printk for exynos5420. > > Signed-off-by: Julien Grall <julien.grall@linaro.org> > > diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk > index c551afb..ddc2e28 100644 > --- a/xen/arch/arm/Rules.mk > +++ b/xen/arch/arm/Rules.mk > @@ -57,6 +57,12 @@ EARLY_PRINTK_INIT_UART := y > EARLY_PRINTK_BAUD := 115200 > EARLY_UART_BASE_ADDRESS := 0x12c20000 > endif > +ifeq ($(CONFIG_EARLY_PRINTK), exynos5420) > +EARLY_PRINTK_INC := exynos4210 > +EARLY_PRINTK_INIT_UART := y > +EARLY_PRINTK_BAUD := 11520 > +EARLY_UART_BASE_ADDRESS := 0x12c30000 > +endif > ifeq ($(CONFIG_EARLY_PRINTK), midway) > EARLY_PRINTK_INC := pl011 > EARLY_PRINTK_BAUD := 115200 > > > > -- > Julien Grall > -- ------------------------------------- Graduate School of Convergence IT, Korea University Research Professor, Hyonoung Choi, Ph.D. Graduate School of Convergence IT, Korea University, 5-Ga, Anam-Dong, Sungbuk-Gu, Seoul 136-701, Republic of Korea. Tel : +82-(0)2-3290-3640 Mobile : +82-(0)10-5353-0414 E-mail : neongas@korea.ac.kr, commani@gmail.com ------------------------------------- [-- Attachment #1.2: Type: text/html, Size: 7348 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 16:31 ` Julien Grall 2014-04-14 17:01 ` HyonYoung Choi @ 2014-04-14 17:07 ` Suriyan Ramasami 2014-04-14 17:37 ` Julien Grall 1 sibling, 1 reply; 14+ messages in thread From: Suriyan Ramasami @ 2014-04-14 17:07 UTC (permalink / raw) To: Julien Grall; +Cc: Meng Xu, HyonYoung Choi, xen-devel@lists.xen.org On Mon, Apr 14, 2014 at 9:31 AM, Julien Grall <julien.grall@linaro.org> wrote: > On 04/14/2014 04:33 PM, HyonYoung Choi wrote: >> Hello Julien, > >> I'm Hyonyoung Choi, working on Xen into Arndale-Octa board with Meng. >> >> I tried to recompiled xen with CONFIG_EARLY_PRINTK=exynos5250 as your >> advice. >> >> The command line is like this: >> >> make distclean >> export CONFIG_EARLY_PRINTK=exynos5250 >> make dist-xen XEN_TARGET_ARCH=arm32 >> >> The result is nothing happened at all. >> No additional message is printed. > > Sorry I misread the documentation, the UART port is not the same on the > exynos5420. Can you try to apply the patch below and recompile xen (make > clean make) with CONFIG_EARLY_PRINTK=exynos5420. > > Regards, > Hello HyonYoung, Also, please note the typo for EARLY_PRINTK_BAUD. I guess Julien missed a 0 at the end. For the exynos5410, this is what I did with some expert guidance from Julien and Ian Campbell. I shall document it here, as it might help you too. Changes in XEN (xen 4.4 stable) (first lets get XEN to boot and show some output) 1. change: xen/arch/arm/platforms/exynos5.c structure: exynos5_dt_compat[], and add “samsung,exynos5410” in that list For you it might be "samsung,exynos5420" -> check your dtsi file. 2. Linux kernel exynos5410.dtsi (for you possibly exynos5420.dtsi)to have the ARCH generic timer information. You might already have it. timer { compatible = "arm,cortexa15timer","arm,armv7timer"; interrupts = <1 13 0xf08>, <1 14 0xf08>, <1 11 0xf08>, <1 10 0xf08>; clockfrequency = <24000000>; }; Above works for 5250 and 5410. 3. Comment out all CPUs but the first cpu to start with (done in your exynos5420.dtsi file) 4. As Tod mentioned, you are missing the dtb file that you need to pass as 3rd parameter to the bootm command. -> bootm $kernel_addr_t - $dtb_addr_t 5. The bootargs that you have set for xen, need to have the console=dtuart dtuart=/serial@12C20000. For you as Julien pointed out it might be @12C30000 I am not sure if just settign bootargs will help. I wonder if it has to be fdt set to /chosen etc. I have pasted a working env file which you can modify and convert to scr to run it if need be. For building XEN (make dist-xen), I am not sure if you have to add debug=y as well for the CONFIG_EARLY_PRINTK=exynos5420 to be pulled in - but, please do check on that. The below script, please change the names of files and the serial location. ---- Working script for xen boot from mmc ---- 8< ----- # Generic script to load and boot Xen from mmc # # For any questions/bug report please send an email to: # xendevel@lists.xen.org # # Requirements: # Uboot variable environment: # kernel_addr_r: kernel load address # xen_addr_r: xen load address # dtb_addr_r: fdt load address # serverip: IP of the tftp server # xen_bootargs: xen command line # dom0_bootargs: dom0 command line # kernel_path: kernel path # xen_path: xen path # dtb_path: device tree path # # Tftp server file: # You need to provide the files that you have specified in # $xen_path, $dtb_path and $kernel_path ## Load the different components # Load Linux in memory fatload mmc 0:1 $kernel_addr_r $kernel_path # Load Xen in memory fatload mmc 0:1 $xen_addr_r $xen_path # Load the device tree in memory fatload mmc 0:1 $dtb_addr_r $dtb_path ## Fixup the device tree # Be sure Uboot is using our FDT fdt addr $dtb_addr_r # Resize the FDT just in case fdt resize # Set Xen arguments based on $xen_bootargs fdt set /chosen xen,xenbootargs \"$xen_bootargs\" #setenv bootargs $xen_bootargs # On Xen unstable, xen cmdline is in bootargs # Set Dom0 arguments based on $dom0_bootargs fdt set /chosen xen,dom0bootargs \"$dom0_bootargs\" # Create modules node fdt mknode /chosen modules fdt set /chosen/modules '#addresscells' <1> fdt set /chosen/modules '#sizecells' <1> # Create node for the linux located at $kernel_addr_r # It seems Uboot doesn't have command to retrieve the size, so the size is # set to a big value (10Mb) fdt mknode /chosen/modules module@0 fdt set /chosen/modules/module@0 compatible xen,linuxzimage xen,multibootmodule fdt set /chosen/modules/module@0 reg <$kernel_addr_r 0x00a00000> ## Boot Xen bootm $xen_addr_r $dtb_addr_r --------------------------- 8< -------------------------- 2. Set the following uboot variables: setenv xen_addr_r 0x50000000 setenv kernel_addr_r 0x60000000 setenv dtb_addr_r 0x42000000 setenv xen_path /xenuImage setenv kernel_path /linuxzImage setenv dtb_path /exynos5410odroidxu.dtb setenv xen_bootargs 'sync_console console=dtuart dtuart=/serial@12C20000' setenv dom0_bootargs 'console=hvc0 ignore_loglevel psci=enable clk_ignore_unused root=/dev/mmcblk0p2' saveenv With the saveenv we do not have to do it again and again > commit 9595eedd366145b5b3e91b2b7cfa076cc2fc4174 > Author: Julien Grall <julien.grall@linaro.org> > Date: Mon Apr 14 17:24:54 2014 +0100 > > xen/arm: Add early printk for Arndale Octa (exynos5420) > > Enable early printk for exynos5420. > > Signed-off-by: Julien Grall <julien.grall@linaro.org> > > diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk > index c551afb..ddc2e28 100644 > --- a/xen/arch/arm/Rules.mk > +++ b/xen/arch/arm/Rules.mk > @@ -57,6 +57,12 @@ EARLY_PRINTK_INIT_UART := y > EARLY_PRINTK_BAUD := 115200 > EARLY_UART_BASE_ADDRESS := 0x12c20000 > endif > +ifeq ($(CONFIG_EARLY_PRINTK), exynos5420) > +EARLY_PRINTK_INC := exynos4210 > +EARLY_PRINTK_INIT_UART := y > +EARLY_PRINTK_BAUD := 11520 > +EARLY_UART_BASE_ADDRESS := 0x12c30000 > +endif > ifeq ($(CONFIG_EARLY_PRINTK), midway) > EARLY_PRINTK_INC := pl011 > EARLY_PRINTK_BAUD := 115200 > > > > -- > Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 17:07 ` Suriyan Ramasami @ 2014-04-14 17:37 ` Julien Grall 2014-04-14 17:52 ` HyonYoung Choi 2014-04-15 1:49 ` Suriyan Ramasami 0 siblings, 2 replies; 14+ messages in thread From: Julien Grall @ 2014-04-14 17:37 UTC (permalink / raw) To: Suriyan Ramasami; +Cc: Meng Xu, HyonYoung Choi, xen-devel@lists.xen.org On 04/14/2014 06:07 PM, Suriyan Ramasami wrote: > Also, please note the typo for EARLY_PRINTK_BAUD. I guess Julien > missed a 0 at the end. Hrmmm, right. I didn't check my patch. > > For the exynos5410, this is what I did with some expert guidance from > Julien and Ian Campbell. I shall document it here, as it might help > you too. > > Changes in XEN (xen 4.4 stable) (first lets get XEN to boot and show > some output) > 1. change: xen/arch/arm/platforms/exynos5.c structure: > exynos5_dt_compat[], and add “samsung,exynos5410” in that list > For you it might be "samsung,exynos5420" -> check your dtsi file. Do you plan to send a patch for adding odroid Xu support in Xen? > 2. Linux kernel exynos5410.dtsi (for you possibly exynos5420.dtsi)to > have the ARCH generic timer information. You might already have it. Do you plan to send this patch on Linux upstream? > timer { > compatible = "arm,cortexa15timer","arm,armv7timer"; I guess you meant arm,armv7-timer? > interrupts = <1 13 0xf08>, > <1 14 0xf08>, > <1 11 0xf08>, > <1 10 0xf08>; > clockfrequency = <24000000>; > }; > Above works for 5250 and 5410. > 3. Comment out all CPUs but the first cpu to start with (done in your > exynos5420.dtsi file) > 4. As Tod mentioned, you are missing the dtb file that you need to > pass as 3rd parameter to the bootm command. -> bootm $kernel_addr_t - > $dtb_addr_t > 5. The bootargs that you have set for xen, need to have the > console=dtuart dtuart=/serial@12C20000. > For you as Julien pointed out it might be @12C30000 > I am not sure if just settign bootargs will help. I wonder if it has > to be fdt set to /chosen etc. I have pasted a working env file which > you can modify and convert to scr to run it if need be. We should see some messages > For building XEN (make dist-xen), I am not sure if you have to add > debug=y as well for the CONFIG_EARLY_PRINTK=exynos5420 to be pulled in > - but, please do check on that. Aargh, I though Ian's patch to print an error when CONFIG_EARLY_PRINTK is used without debug=y was in Xen 4.4. From HyonYoung's previous mail, debug=y was not set. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 17:37 ` Julien Grall @ 2014-04-14 17:52 ` HyonYoung Choi 2014-04-14 18:34 ` Julien Grall 2014-04-15 1:49 ` Suriyan Ramasami 1 sibling, 1 reply; 14+ messages in thread From: HyonYoung Choi @ 2014-04-14 17:52 UTC (permalink / raw) To: Julien Grall; +Cc: Suriyan Ramasami, Meng Xu, xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 3169 bytes --] Hello all, I have modified all as Julien mentioned. No changes. When I change ".dtsi" file, is just executing "make dtbs" right? I got something printed out after putting "debug=y" to xen-make. However it is some characters not based on alphabet. Wrong port? Thank you, Hyonyoung On Mon, Apr 14, 2014 at 1:37 PM, Julien Grall <julien.grall@linaro.org>wrote: > On 04/14/2014 06:07 PM, Suriyan Ramasami wrote: > > > Also, please note the typo for EARLY_PRINTK_BAUD. I guess Julien > > missed a 0 at the end. > > Hrmmm, right. I didn't check my patch. > > > > > For the exynos5410, this is what I did with some expert guidance from > > Julien and Ian Campbell. I shall document it here, as it might help > > you too. > > > > Changes in XEN (xen 4.4 stable) (first lets get XEN to boot and show > > some output) > > 1. change: xen/arch/arm/platforms/exynos5.c structure: > > exynos5_dt_compat[], and add “samsung,exynos5410” in that list > > For you it might be "samsung,exynos5420" -> check your dtsi file. > > Do you plan to send a patch for adding odroid Xu support in Xen? > > > > 2. Linux kernel exynos5410.dtsi (for you possibly exynos5420.dtsi)to > > have the ARCH generic timer information. You might already have it. > > Do you plan to send this patch on Linux upstream? > > > timer { > > compatible = "arm,cortexa15timer","arm,armv7timer"; > > I guess you meant arm,armv7-timer? > > > interrupts = <1 13 0xf08>, > > <1 14 0xf08>, > > <1 11 0xf08>, > > <1 10 0xf08>; > > clockfrequency = <24000000>; > > }; > > Above works for 5250 and 5410. > > 3. Comment out all CPUs but the first cpu to start with (done in your > > exynos5420.dtsi file) > > 4. As Tod mentioned, you are missing the dtb file that you need to > > pass as 3rd parameter to the bootm command. -> bootm $kernel_addr_t - > > $dtb_addr_t > > 5. The bootargs that you have set for xen, need to have the > > console=dtuart dtuart=/serial@12C20000. > > For you as Julien pointed out it might be @12C30000 > > I am not sure if just settign bootargs will help. I wonder if it has > > to be fdt set to /chosen etc. I have pasted a working env file which > > you can modify and convert to scr to run it if need be. > > We should see some messages > > > For building XEN (make dist-xen), I am not sure if you have to add > > debug=y as well for the CONFIG_EARLY_PRINTK=exynos5420 to be pulled in > > - but, please do check on that. > > Aargh, I though Ian's patch to print an error when CONFIG_EARLY_PRINTK > is used without debug=y was in Xen 4.4. > > From HyonYoung's previous mail, debug=y was not set. > > Regards, > > -- > Julien Grall > -- ------------------------------------- Graduate School of Convergence IT, Korea University Research Professor, Hyonoung Choi, Ph.D. Graduate School of Convergence IT, Korea University, 5-Ga, Anam-Dong, Sungbuk-Gu, Seoul 136-701, Republic of Korea. Tel : +82-(0)2-3290-3640 Mobile : +82-(0)10-5353-0414 E-mail : neongas@korea.ac.kr, commani@gmail.com ------------------------------------- [-- Attachment #1.2: Type: text/html, Size: 4406 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 17:52 ` HyonYoung Choi @ 2014-04-14 18:34 ` Julien Grall 2014-04-14 18:54 ` HyonYoung Choi 0 siblings, 1 reply; 14+ messages in thread From: Julien Grall @ 2014-04-14 18:34 UTC (permalink / raw) To: HyonYoung Choi; +Cc: Suriyan Ramasami, Meng Xu, xen-devel@lists.xen.org On 04/14/2014 06:52 PM, HyonYoung Choi wrote: > Hello all, Hello HyonYoung, > I have modified all as Julien mentioned. No changes. > > When I change ".dtsi" file, is just executing "make dtbs" right? Yes. > I got something printed out after putting "debug=y" to xen-make. > However it is some characters not based on alphabet. > Wrong port? I don't have any octa board. I won't be more helpful than Google/the Device Tree/U-boot/Linux. You will have to dig into the code and see what is the issue. If you get some output that means you are using the right port. The UART layout is an exynos4210 (see xen/arch/arm/arm32/debug-exynos4210.inc). My guess is the clock frequency is not the same on the exynos5250 and the exynos5420. Regards, -- Julien Grall ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 18:34 ` Julien Grall @ 2014-04-14 18:54 ` HyonYoung Choi 0 siblings, 0 replies; 14+ messages in thread From: HyonYoung Choi @ 2014-04-14 18:54 UTC (permalink / raw) To: Julien Grall; +Cc: Suriyan Ramasami, Meng Xu, xen-devel@lists.xen.org [-- Attachment #1.1: Type: text/plain, Size: 1348 bytes --] I really appreciate for all your help Thanks Hyonyoung On Mon, Apr 14, 2014 at 2:34 PM, Julien Grall <julien.grall@linaro.org>wrote: > On 04/14/2014 06:52 PM, HyonYoung Choi wrote: > > Hello all, > > Hello HyonYoung, > > > I have modified all as Julien mentioned. No changes. > > > > When I change ".dtsi" file, is just executing "make dtbs" right? > > Yes. > > > I got something printed out after putting "debug=y" to xen-make. > > However it is some characters not based on alphabet. > > Wrong port? > > I don't have any octa board. I won't be more helpful than Google/the > Device Tree/U-boot/Linux. You will have to dig into the code and see > what is the issue. > > If you get some output that means you are using the right port. The UART > layout is an exynos4210 (see xen/arch/arm/arm32/debug-exynos4210.inc). > > My guess is the clock frequency is not the same on the exynos5250 and > the exynos5420. > > Regards, > > -- > Julien Grall > -- ------------------------------------- Graduate School of Convergence IT, Korea University Research Professor, Hyonoung Choi, Ph.D. Graduate School of Convergence IT, Korea University, 5-Ga, Anam-Dong, Sungbuk-Gu, Seoul 136-701, Republic of Korea. Tel : +82-(0)2-3290-3640 Mobile : +82-(0)10-5353-0414 E-mail : neongas@korea.ac.kr, commani@gmail.com ------------------------------------- [-- Attachment #1.2: Type: text/html, Size: 2187 bytes --] [-- Attachment #2: Type: text/plain, Size: 126 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board 2014-04-14 17:37 ` Julien Grall 2014-04-14 17:52 ` HyonYoung Choi @ 2014-04-15 1:49 ` Suriyan Ramasami 1 sibling, 0 replies; 14+ messages in thread From: Suriyan Ramasami @ 2014-04-15 1:49 UTC (permalink / raw) To: Julien Grall; +Cc: Meng Xu, HyonYoung Choi, xen-devel@lists.xen.org On Mon, Apr 14, 2014 at 10:37 AM, Julien Grall <julien.grall@linaro.org> wrote: > On 04/14/2014 06:07 PM, Suriyan Ramasami wrote: > >> Also, please note the typo for EARLY_PRINTK_BAUD. I guess Julien >> missed a 0 at the end. > > Hrmmm, right. I didn't check my patch. > >> >> For the exynos5410, this is what I did with some expert guidance from >> Julien and Ian Campbell. I shall document it here, as it might help >> you too. >> >> Changes in XEN (xen 4.4 stable) (first lets get XEN to boot and show >> some output) >> 1. change: xen/arch/arm/platforms/exynos5.c structure: >> exynos5_dt_compat[], and add “samsung,exynos5410” in that list >> For you it might be "samsung,exynos5420" -> check your dtsi file. > > Do you plan to send a patch for adding odroid Xu support in Xen? > That is my intent. I have yet to find time to resolve the other issues when enabling multiple CPUs. > >> 2. Linux kernel exynos5410.dtsi (for you possibly exynos5420.dtsi)to >> have the ARCH generic timer information. You might already have it. > > Do you plan to send this patch on Linux upstream? > I guess I will take this one up as well. >> timer { >> compatible = "arm,cortexa15timer","arm,armv7timer"; > > I guess you meant arm,armv7-timer? That is correct, somehow the "-" characters got eaten in the email. It should be: "arm,cortex-a15-timer", "arm,armv7-timer" > >> interrupts = <1 13 0xf08>, >> <1 14 0xf08>, >> <1 11 0xf08>, >> <1 10 0xf08>; >> clockfrequency = <24000000>; >> }; >> Above works for 5250 and 5410. >> 3. Comment out all CPUs but the first cpu to start with (done in your >> exynos5420.dtsi file) >> 4. As Tod mentioned, you are missing the dtb file that you need to >> pass as 3rd parameter to the bootm command. -> bootm $kernel_addr_t - >> $dtb_addr_t >> 5. The bootargs that you have set for xen, need to have the >> console=dtuart dtuart=/serial@12C20000. >> For you as Julien pointed out it might be @12C30000 >> I am not sure if just settign bootargs will help. I wonder if it has >> to be fdt set to /chosen etc. I have pasted a working env file which >> you can modify and convert to scr to run it if need be. > > We should see some messages > >> For building XEN (make dist-xen), I am not sure if you have to add >> debug=y as well for the CONFIG_EARLY_PRINTK=exynos5420 to be pulled in >> - but, please do check on that. > > Aargh, I though Ian's patch to print an error when CONFIG_EARLY_PRINTK > is used without debug=y was in Xen 4.4. > > From HyonYoung's previous mail, debug=y was not set. > > Regards, > > -- > Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Question about running Xen 4.4 on Arndale board
@ 2014-04-14 15:47 tod carpenter
0 siblings, 0 replies; 14+ messages in thread
From: tod carpenter @ 2014-04-14 15:47 UTC (permalink / raw)
To: xen-devel, HyonYoung Choi
[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]
> Any suggestion would be very appreciated for us.
Hyonyoung,
One thing I note between what I did and your u-Boot script is that I
explicitly loaded the .dtb. I didn't see that in your trace.
See
http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Arndale#Alternate_SD_approach_based_on_Linaro_pre-built_image_for_Arndale_5250
[-- Attachment #1.2: Type: text/html, Size: 632 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 14+ messages in threadend of thread, other threads:[~2014-04-15 1:49 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-04-09 19:55 Question about running Xen 4.4 on Arndale board Meng Xu 2014-04-11 12:55 ` Julien Grall 2014-04-11 13:17 ` Meng Xu 2014-04-11 13:27 ` Julien Grall 2014-04-14 15:33 ` HyonYoung Choi 2014-04-14 16:31 ` Julien Grall 2014-04-14 17:01 ` HyonYoung Choi 2014-04-14 17:07 ` Suriyan Ramasami 2014-04-14 17:37 ` Julien Grall 2014-04-14 17:52 ` HyonYoung Choi 2014-04-14 18:34 ` Julien Grall 2014-04-14 18:54 ` HyonYoung Choi 2014-04-15 1:49 ` Suriyan Ramasami -- strict thread matches above, loose matches on Subject: below -- 2014-04-14 15:47 tod carpenter
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.