UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
774 Views
Registered: ‎05-24-2018

Questions about SD Booting Xen and Dom0

Jump to solution

According to "http://www.wiki.xilinx.com/Building+Xen+Hypervisor+with+Petalinux+2018.1",

created a Petalinux project with xilinx-zcu102-zu9-es2-rev1.0-v2018.1-final.bsp,

directly using the pre-built images from the BSP,

copy files(BOOT.bin,Image,system.dtb,xen.ub)from <project-dir>/pre-built/linux/images,

then Boot the SD card on board and stop the u-boot autoboot.

At the u-boot prompt run:

mmc dev $sdbootdev && mmcinfo; load mmc $sdbootdev:$partid 1000000 system.dtb && load mmc $sdbootdev:$partid 0x80000 Image; fdt addr 1000000; mmc $sdbootdev:$partid 1030000 xen.ub; bootm 1030000 - 1000000

then it shows

switch to partitions #0, OK
mmc0 is current device
Device: sdhci@ff170000
Manufacturer ID: 3
OEM: 5344
Name: SL16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading system.dtb
41340 bytes read in 16 ms (2.5 MiB/s)
reading Image
134152704 bytes read in 8709 ms (14.7 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
mmc - MMC sub system

Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
mmc hwpartition [args...] - does hardware partitioning
arguments (sizes in 512-byte blocks):
[user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes
[gp1|gp2|gp3|gp4 cnt [enh] [wrrel {on|off}]] - general purpose partition
[check|set|complete] - mode, complete set partitioning completed
WARNING: Partitioning is a write-once setting once it is set to complete.
Power cycling is required to initialize partitions after set to complete.
mmc bootbus dev boot_bus_width reset_boot_bus_width boot_mode
- Set the BOOT_BUS_WIDTH field of the specified device
mmc bootpart-resize <dev> <boot part size MB> <RPMB part size MB>
- Change sizes of boot and RPMB partitions of specified device
mmc partconf dev [boot_ack boot_partition partition_access]
- Show or change the bits of the PARTITION_CONFIG field of the specified device
mmc rst-function dev value
- Change the RST_n_FUNCTION field of the specified device
WARNING: This is a write-once field and 0 / 1 / 2 are the only valid values.
mmc setdsr <value> - set DSR register value

Wrong Image Format for bootm command
ERROR: can't get kernel image!

 

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
726 Views
Registered: ‎06-27-2017

Re: Questions about SD Booting Xen and Dom0

Jump to solution

@altair5683,

 

I think "fdt addr 1000000" command is failing.

 

Can you skip fdt and try below command to boot with xen.ub along with system.dtb if you are using initrd filesystem?

mmc dev $sdbootdev && mmcinfo; load mmc $sdbootdev:$partid 1000000 system.dtb && load mmc $sdbootdev:$partid 0x80000 Image; mmc $sdbootdev:$partid 1030000 xen.ub; bootm 1030000 - 1000000

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

View solution in original post

0 Kudos
2 Replies
Moderator
Moderator
727 Views
Registered: ‎06-27-2017

Re: Questions about SD Booting Xen and Dom0

Jump to solution

@altair5683,

 

I think "fdt addr 1000000" command is failing.

 

Can you skip fdt and try below command to boot with xen.ub along with system.dtb if you are using initrd filesystem?

mmc dev $sdbootdev && mmcinfo; load mmc $sdbootdev:$partid 1000000 system.dtb && load mmc $sdbootdev:$partid 0x80000 Image; mmc $sdbootdev:$partid 1030000 xen.ub; bootm 1030000 - 1000000

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

 

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

View solution in original post

0 Kudos
Adventurer
Adventurer
687 Views
Registered: ‎05-24-2018

Re: Questions about SD Booting Xen and Dom0

Jump to solution

Succeed after following these commands:

fatload mmc 0 1000000 system.dtb; fatload mmc 0 0x80000 Image; fatload mmc 0 1030000 xen.ub; fatload mmc 0 2000000 xen-rootfs.cpio.gz.u-boot; bootm 1030000 2000000 1000000

0 Kudos