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

Re: [Embedded-pv-devel] [Urgent!!!!!!]Xen hangs after printing "Turning Paging On"



Dear Ramya,

I'm not sure, but it looks like code is trying to compile in Thumb mode, try to force this inline section to be compiled in ARM, 
please add ".arm" keyword at the beginning of this inline part.

To be something like:
asm(
".arm"
.... and so on

With the best regards,
Iurii

On Fri, Oct 27, 2017 at 6:18 PM, RAMYA RAVICHANDRAN <ramya.r@xxxxxxxxxxxxxxxxxxx> wrote:
Hello Andrii,

Thanks for your suggestions.
Tried the way you asked to, but still same error.

Thanks for your valuable effort and time,
Ramya

On Fri, Oct 27, 2017 at 7:30 PM, Andrii Anisov <andrii.anisov@xxxxxxxxx> wrote:
Hello Ramya,

First of all I would avoid editing device tree from the u-boot command line. I would recommend to edit dts and generate a xen suitable dtb instead. 

Actually GLSDK patches should introduce needed changes, so you should already have proper dtbs. They are suffixed by -dom0 (dra7-evm-dom0-lcd10.dtb, dra7-evm-dom0-lcd7.dtb). It must be a nit in the instruction, to mention a wrong dtb to use.

If you are unable to rebuild the dtb or take one prebuilt , I would suggest you changes in your steps:

setenv dtb_addr_r 0x825f0000
setenv xen_addr_r 0x90000000
setenv kernel_addr_r 0xa0000000
setenv xen_bootargs 'sync_console console=dtuart dtuart=serial2' 
setenv bootargs "dom0_mem=512M console=dtuart dtuart=serial0 dom0_max_vcpus=2 bootscrub=0 flask_enforcing=1 "
setenv dom0_bootargs 'console=hvc0,115200n8 earlyprintk=xen debug ignore_loglevel root=/dev/mmcblk0p2 rw rootwait fixrtc'
fatload mmc 0:1 $dtb_addr_r dra7-evm.dtb
fatload mmc 0:1 $xen_addr_r xen-uImage
fatload mmc 0:1 $kernel_addr_r zImage
fdt addr $dtb_addr_r
fdt resize
fdt set /chosen xen,xen-bootargs \"$xen_bootargs\"
fdt resize
fdt set /chosen xen,dom0-bootargs \"$dom0_bootargs\" <-- this might mangle the property, i.e. split it into an array of strings
fdt print /chosen <-- check if the property xen,dom0-bootargs is not mangled
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 0xa00000>
bootm $xen_addr_r - $dtb_addr_r
 

Sincerely,
Andrii Anisov.

2017-10-25 20:11 GMT+03:00 RAMYA RAVICHANDRAN <ramya.r@xxxxxxxxxxxxxxxxxxx>:
Hi Andrii,

Yes, we followed the same link.
Build setup was done with 4.6.
U-boot version 2016.05 - Uboot.img, which is prebuilt.
After which the following uboot commands were used.


setenv dtb_addr_r 0x825f0000
setenv xen_addr_r 0x90000000
setenv kernel_addr_r 0xa0000000
setenv xen_bootargs 'sync_console console=dtuart dtuart=serial2'
setenv dom0_bootargs 'console=hvc0,115200n8 earlyprintk=xen debug ignore_loglevel root=/dev/mmcblk0p2 rw rootwait fixrtc'
fatload mmc 0:1 $dtb_addr_r dra7-evm.dtb
fatload mmc 0:1 $xen_addr_r xen-uImage
fatload mmc 0:1 $kernel_addr_r zImage
fdt addr $dtb_addr_r
fdt resize
fdt set /chosen xen,xen-bootargs \"$xen_bootargs\"
fdt resize
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 0xa00000>
bootm $xen_addr_r - $dtb_addr_r

Xen starts from 90000000 and displays the following print and stops
CPU 00000 booting
Xen starting in Hyp mode
 Zero BSS 
Setting up control registers
 Turning on paging  

Sorry, couldn't attach the log as there is issue in characters shown in minicom.(just now happened)
Please suggest what would be the issue/points to be checked.

Thanks for your quick response,
Ramya

On Wed, Oct 25, 2017 at 9:50 PM, Andrii Anisov <andrii.anisov@xxxxxxxxx> wrote:
Hello Ramya,

Unfortunately I do not work with DRA7xx any more (more than year yet).
I could try to remember some nits. But be so kind to describe in details how do you build your setup and provide a log of your system booting.


Sincerely,
Andrii Anisov.

2017-10-25 18:50 GMT+03:00 RAMYA RAVICHANDRAN <ramya.r@xxxxxxxxxxxxxxxxxxx>:
Hi,

We, as a team in Blackpepper Technologies are trying to bring up Xen in DRA75x.
Using Xen 4.6 source code ,xen-uImage was built.

Uboot Version :2016.05 of DRA75x allows Xen to start with few u-boot commands.
But Xen gets stuck after "Turning Paging On" in head.S [Xen code]

It is very critical for us to setup the PoC early next week.So please do help us.

Awaiting positive feedback,
Ramya

_______________________________________________
Embedded-pv-devel mailing list
Embedded-pv-devel@lists.xenproject.org
https://lists.xenproject.org/cgi-bin/mailman/listinfo/embedded-pv-devel





_______________________________________________
Embedded-pv-devel mailing list
Embedded-pv-devel@lists.xenproject.org
https://lists.xenproject.org/cgi-bin/mailman/listinfo/embedded-pv-devel



--

Iurii Mykhalskyi | Lead Software Engineer
GlobalLogic
+38.044.492.9695x3664  M +38.096.311.5467  S mad-nemoi
www.globallogic.com

http://www.globallogic.com/email_disclaimer.txt
_______________________________________________
Embedded-pv-devel mailing list
Embedded-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/cgi-bin/mailman/listinfo/embedded-pv-devel

 


Rackspace

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