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

Re: [Xen-users] Booting dom0 on OMAP5432 board



Hello Chen,
 Exactly. My build cmds:

$ make dist-xen XEN_TARGET_ARCH=arm32
CROSS_COMPILE=arm-none-linux-gnueabi- CONFIG_EARLY_PRINTK=omap5432
$ mkimage -A arm -T kernel -a 0x80200000 -e 0x80200000 -C none -d
"xen/xen" xen-uImage

Output in console:
## Booting kernel from Legacy Image at 90000000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    721724 Bytes = 704.8 KiB
   Load Address: 80200000
   Entry Point:  80200000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 825f0000
   Booting using the fdt blob at 0x825f0000
   Loading Kernel Image ... OK
   reserving fdt memory region: addr=825f0000 size=d000
   Using Device Tree in place at 825f0000, end 825fffff

Starting kernel ...

- UART enabled -
- CPU 00000000 booting -
- Xen starting in Hyp mode -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) Checking for initrd in /chosen
(XEN) RAM: 0000000080000000 - 00000000feffffff
(XEN)
(XEN) MODULE[0]: 00000000825f0000 - 00000000825fd000 Device Tree
(XEN) MODULE[1]: 00000000a0000000 - 00000000a0a00000 Kernel
(XEN)  RESVD[0]: 00000000825f0000 - 00000000825fd000
(XEN)
(XEN) Command line: sync_console console=dtuart dtuart=serial2
(XEN) Placing Xen at 0x00000000fee00000-0x00000000ff000000
(XEN) Update BOOTMOD_XEN from 0000000080200000-00000000802f9681 =>
00000000fee00000-00000000feef9681
(XEN) Xen heap: 00000000ee000000-00000000fe000000 (65536 pages)
(XEN) Dom heap: 454656 pages
(XEN) Domain heap initialised
(XEN) Looking for UART console serial2
 Xen 4.5-unstable
(XEN) Xen version 4.5-unstable (manul@) (arm-none-linux-gnueabi-gcc
(Sourcery CodeBench 2014.05-17) 4.8.3 20140320 (prerelease)) debug=y
Wed Sep 24 13:29:23 MSK 2014
(XEN) Latest ChangeSet: Wed Sep 17 22:21:03 2014 +0100 git:e01fa4e-dirty
(XEN) Console output is synchronous.
(XEN) Processor: 412fc0f2: "ARM Limited", variant: 0x2, part 0xc0f, rev 0x2
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00001131:00011011
(XEN)     Instruction Sets: AArch32 Thumb Thumb-2 ThumbEE Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 02010555
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10201105 20000000 01240000 02102211
(XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
(XEN) Platform: TI OMAP5
(XEN) Set AuxCoreBoot1 to 00000000fee0004c (0020004c)
(XEN) Set AuxCoreBoot0 to 0x20
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27
(XEN) Using generic timer at 6144 KHz
(XEN) GICv2 initialization:
(XEN)         gic_dist_addr=0000000048211000
(XEN)         gic_cpu_addr=0000000048212000
(XEN)         gic_hyp_addr=0000000048214000
(XEN)         gic_vcpu_addr=0000000048216000
(XEN)         gic_maintenance_irq=25
(XEN) GICv2: 192 lines, 2 cpus, secure (IID 0000043b).
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) I/O virtualisation disabled
(XEN) Allocated console ring of 16 KiB.
(XEN) VFP implementer 0x41 architecture 4 part 0x30 variant 0xf rev 0x0
(XEN) Bringing up CPU1
- CPU 00000001 booting -
- Xen starting in Hyp mode -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) CPU 1 booted.
(XEN) Brought up 2 CPUs
(XEN) P2M: 40-bit IPA
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80003518
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading kernel from boot module @ 00000000a0000000
(XEN) Allocating 1:1 mappings totalling 128MB for dom0:
(XEN) BANK[0] 0x000000a8000000-0x000000b0000000 (128MB)
(XEN) Loading zImage from 00000000a0000000 to 00000000afa00000-00000000affefba8
(XEN) Loading dom0 DTB to 0x00000000af800000-0x00000000af80c1c5
(XEN) Scrubbing Free RAM on 1 nodes using 2 CPUs
(XEN) ........done.
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) **********************************************
(XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
(XEN) ******* This option is intended to aid debugging of Xen by ensuring
(XEN) ******* that all output is synchronously delivered on the serial line.
(XEN) ******* However it can introduce SIGNIFICANT latencies and affect
(XEN) ******* timekeeping. It is NOT recommended for production use!
(XEN) **********************************************
(XEN) 3... 2... 1...
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
input to Xen)
(XEN) Freed 252kB init memory.
---
Regards,
 Konstantin.

On Wed, Sep 24, 2014 at 11:09 AM, Chen Baozi <baozich@xxxxxxxxx> wrote:
> Hi manul,
>
> Did you build xen hypervisor with "CONFIG_EARLY_PRINTK=omap5432â?
>
> Cheers,
>
> Baozi
>
>> On 23/09/2014 21:17, manul wrote:
>>> Hi,
>>>  I took U-Boot settings from wiki page and they look as follow:
>>>
>>> setenv xen_image xen-uImage;
>>> setenv dtb_file omap5-uevm.dtb;
>>> setenv linux_image zImage-ram;
>>> setenv dtb_addr_r 0x825f0000;
>>> setenv xen_addr_r 0x90000000;
>>> setenv kernel_addr_r 0xa0000000
>>> setenv bootcmd 'bootm $xen_addr_r - $dtb_addr_r'
>>> setenv xen_bootargs 'sync_console console=dtuart dtuart=serial2'
>>> setenv dom0_bootargs "console=hvc0 debug ignore_loglevel root=/dev/mmcblk0p2
>>> rw rootwait init=/sbin/init fixrtc"
>>> fatload mmc 0:1 $dtb_addr_r $dtb_file;
>>> fatload mmc 0:1 $xen_addr_r $xen_image;
>>> fatload mmc 0:1 $kernel_addr_r $linux_image;
>>> 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>
>>>
>>> Also I tried early_printk for Linux, but it didn't help - no output at all.
>>>
>>> linux_config.linux_config
>>> <http://xen.1045712.n5.nabble.com/file/n5724834/linux_config.linux_config>
>>> dtsi.diff <http://xen.1045712.n5.nabble.com/file/n5724834/dtsi.diff>
>>>
>>>
>>>
>>> --
>>> View this message in context: 
>>> http://xen.1045712.n5.nabble.com/Booting-dom0-on-OMAP5432-board-tp5722709p5724834.html
>>> Sent from the Xen - User mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Xen-users mailing list
>>> Xen-users@xxxxxxxxxxxxx
>>> http://lists.xen.org/xen-users
>>>
>



-- 
ÐÑÐÐÐ ÑÐÑÐÑÐÐÐ.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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