[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,

try to add follow directive

".arch_extension sec\n"

into void __hyp_init_sec(void) function located at "arch/arm/cpu/armv7/omap5/hyp.c"

in our setup it looked like:

asm (
".pushsection .text\n"
".global __hyp_init_sec\n"
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 406
".arch_extension sec\n"
#endif
"__hyp_init_sec:\n"

and so on...

With the best regards,
Iurii

On Fri, Oct 27, 2017 at 4:17 PM, RAMYA RAVICHANDRAN <ramya.r@xxxxxxxxxxxxxxxxxxx> wrote:
Dear Iurii,

We are trying to build u-boot via Yocto.(seperate receipe)
Can you help us with the following error in building uboot?

 {standard input}: Assembler messages:
| {standard input}:22: Error: selected processor does not support ARM mode `smc 0x1'
| {standard input}:71: Error: SP not allowed in register list -- `stm r1,{r4-r14}'
| {standard input}:72: Error: selected processor does not support Thumb mode `smc 0x1'
| {standard input}:74: Error: SP not allowed in register list -- `ldm r1,{r4-r14}

Thanks,
Ramya

On Thu, Oct 26, 2017 at 2:20 PM, Iurii Mykhalskyi <iurii.mykhalskyi@globallogic.com> wrote:
Dear Ramya,

According to log, looks like there is some problems with used device tree.
I have few questions:
1. Have you reset u-boot environment after flashing patched version? (you have to execute "env default -f -a; saveenv" - I'm curious with this log:
*** Warning - bad CRC, using default environment

GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
ERROR: cannot find partition: 'userdata'

 - looks like you have wrong partition table.

2.  Why you didn't use command line proposed in manual (https://wiki.xenproject.org/wiki/User:Xen_intruction_setup_for_dra7xx-evm_board#Set_environment_variables) and create it by hands?

With the best regards,
Iurii Mykhalskyi

On Thu, Oct 26, 2017 at 9:00 AM, RAMYA RAVICHANDRAN <ramya.r@xxxxxxxxxxxxxxxxxxx> wrote:
Hi All,

Please find the attached log for our scenario.

Awaiting for your valuable inputs,
Ramya

On Wed, Oct 25, 2017 at 10:41 PM, RAMYA RAVICHANDRAN <ramya.r@xxxxxxxxxxxxxxxxxxx> wrote:
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




--

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®.