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

Re: [Xen-users] How to build Mini-OS for ARM


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Denis Obrezkov <denisobrezkov@xxxxxxxxx>
  • Date: Tue, 4 Jun 2019 20:07:51 +0200
  • Autocrypt: addr=denisobrezkov@xxxxxxxxx; prefer-encrypt=mutual; keydata= mQMuBFrAxPQRCAD59CJNd5LF1VmojUBpdr/bJ2TaKC7SW4ln7+PWn+QyAJfFOVFlTRIDsAlP 65y7CacXFCXmLTACo4a7HEhRb5787kPm6rc30zpL+04uXCeTruYZi0ZnQVXOiab/qy3aMsk0 6n9hMY28TSbM9nynnlrbg9pGkb1EiFVNsowJjFSKXa3Rpogte9qxfXmLf2eV0MZNnrmq6Kb2 8ri5/Ffh5DG1CsN/dkv8n1kw2QqMM2RT+ZS57D+yCehtw355EXSVh2r+GsXAqMinOexcdYI4 skvvP84OovRMnlJhmRdnbjO+QFiOVeLUj7WHMT3AbClaBlUuHkbFi9HLBHAiu6uMrNtzAQD9 KoM6SXbuvlhCq2v78dGkex9EgaA7CSnBcNXuUdrjYQf+MsZgI7oDihT6TUBO0IDQL+qSrozs /hHV+HhWtc5+SYTsHXxnTkcVe12vR0uPw3fFUuncWnMRzHivKZC2ZF/w3LJL/nGzguAoPa9e VghM38EP49yO6ESthD4WvELMy2+zPkMiUqilMfxOl370RXxEBUIzFSpP6oqvNq7fvThGTQah mrFhflGSyMHXk75VkCiY+cbrMeB9xG7H3nlbQ9fYVCOPejnt8gImeazdIghQh1tjbNpjQhy8 50klCowN5H+gaSZsy4K7jlJ1UNFz/vWCvlr3W8o4tA6EoJ4tjJV2HXcrUBPYLwkruKnv8QJM vyVj5an6Sfuwt/AmFEOKo1QJnAf+Oi47RrOmec8lXS/06TMn7z6krmuRul03HXayCtREqMyY VCf87oMpPYYnFJolDrSB8kCSZRn2aixzHl4IIGa9RVuywChzUvgZJbFGPFR+Qz1BK9Ltl7FC rQcuAq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dXj3iaX6wwJ 2Oo3cSxMGdY/8grRTDGYjItpWEM2noIRzdWSybzavtLHu/LmG4rbgy2aNm/TiVp28G5KvWW/ fCLomZhN0JscRgSkYjSaxmMgEdks1h9DWTHkiH4EGBEIACYWIQTG5lj1j5VIuKBD/kz7iQsT JJ7s+QUCWsDE9AIbDAUJBaOagAAKCRD7iQsTJJ7s+UF2AQDqHEO2tekVMTWJa3SakIM5FJjk sao+JkzbKe0vDy4ecwEAukGaHvmKxMZsUOOjDWjDe4eV+aRTVjUjY7LAl3OJkiU=
  • Cc: 'Hunyue Yau' <hy-gsoc@xxxxxxxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, julien.grall@xxxxxxxxxxxx, iain@xxxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 04 Jun 2019 18:09:07 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Openpgp: preference=signencrypt

Hi,

> Where does it hang exactly? I don't use QEMU with a debugger often, but
> you can connect gdb to QEMU if that's what you'd like to do. Normally, I
> just add enough printks to Xen to figure out where it gets stuck. It is
> pretty easy because if it's an early boot hang, then it is still all
> single threaded and easy to follow.

I wrote it in another thread. When I launch it with the command:

~/bin/qemu-3.1.0/arm-softmmu/qemu-system-arm -machine virt,gic_version=2
-machine virtualization=true  -cpu cortex-a15 -machine virt -m 512M
-bios u-boot.bin -device
loader,file=xen-uImage,force-raw=on,addr=0x46000000 -device
loader,file=zImage,addr=0x45000000 -nographic -no-reboot -chardev
socket,id=qemu-monitor,host=localhost,port=7777,server,nowait,telnet
-mon qemu-monitor,mode=readline

I got:

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: 0000000040000000 - 000000005fffffff
(XEN)
(XEN) MODULE[0]: 0000000040000000 - 0000000040002000 Device Tree
(XEN) MODULE[1]: 0000000045000000 - 0000000045853200 Kernel     
(XEN)  RESVD[0]: 0000000040000000 - 0000000040002000
(XEN)
(XEN) CMDLINE[0000000045000000]:chosen earlyprintk=serial,ttyAMA0
console=ttyAMA0,115200n8 earlycon=xenboot
(XEN)
(XEN) Command line: console=dtuart dtuart=/pl011@9000000
(XEN) Xen heap: 000000005e000000-0000000060000000 (8192 pages)
(XEN) Dom heap: 122880 pages
(XEN) Domain heap initialised
(XEN) Booting using Device Tree
(XEN) Looking for dtuart at "/pl011@9000000", options ""
 Xen 4.12.0
(XEN) Xen version 4.12.0 (reprofy@local) (arm-linux-gnueabi-gcc (Debian
8.2.0-20) 8.2.0) debug=n  Mon Jun  3 13:25:10 CEST 2019
(XEN) Latest ChangeSet:
(XEN) Processor: 412fc0f1: "ARM Limited", variant: 0x2, part 0xc0f, rev 0x1
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00001131:00011001
(XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 ThumbEE Jazelle
(XEN)     Extensions: GenericTimer
(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) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 62500 KHz
(XEN) GICv2m extension register frame:
(XEN)         gic_v2m_addr=0000000008020000
(XEN)         gic_v2m_size=0000000000001000
(XEN)         gic_v2m_spi_base=80
(XEN)         gic_v2m_num_spis=64
(XEN) GICv2 initialization:
(XEN)         gic_dist_addr=0000000008000000
(XEN)         gic_cpu_addr=0000000008010000
(XEN)         gic_hyp_addr=0000000008030000
(XEN)         gic_vcpu_addr=0000000008040000
(XEN)         gic_maintenance_irq=25
(XEN) GICv2: 288 lines, 1 cpu (IID 00000000).
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2)
(XEN) Initializing Credit2 scheduler

-- 
Regards, Denis Obrezkov


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users

 


Rackspace

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