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
486 Views
Registered: ‎08-01-2017

petalinux root filesystem type supported by Qemu

Hi all,

 

I would like to know what are the file system types supported by Qemu.

I see following file system types/options  are available under Image Packaging Configuration:

INITRAMFS

INITRD

JFFS2

NFS

SD Card

Other

 

Could anyone please throw some light on these file systems and Which among these are supported by QEMU.

I am able to run INITRAMFS with QEMU but when I try SD Card file system type, QEMU is not able to run &  Mount it. So with this observation I assume that SD Card Image packaging is not supported in Qemu. Is this right? I seek some expert comments.

 

My main trouble is that when I build image by selecting SD Card image packaging I am not able to run Linux, neither on Qemu nor on my Target board.

 

 

 

Thanks & Regards

-Siddhant

0 Kudos
4 Replies
Moderator
Moderator
472 Views
Registered: ‎12-04-2016

Re: petalinux root filesystem type supported by Qemu

Hi

 

There is no such restriction for the guest, it should work. As an example, There is a section in  UG1169 (SD-Card Partitioning and Loading an Ubuntu-coreFile System), refer this

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1169-xilinx-qemu.pdf

 

 

0 Kudos
Adventurer
Adventurer
456 Views
Registered: ‎08-01-2017

Re: petalinux root filesystem type supported by Qemu

Hi @shabbirk,

 

Thank you for sharing useful doc.

I have gone through this and executed the steps and I am having one doubt here, till steps 6 I  finished, at 7 step, it is asking to mount the partitions, so I assume I have to do "mount /dev/nbd0p1 /media/BOOT" and mount /dev/nbd0p2 /media/rootfs"

 

after this mounting, I have to copy the contents in those directory. Am I thinking correct?

If I run Petalinux-boot --qemu --prebuilt 3. Would it be able to fetch the files and boot? I am not sure on this. Could you please confirm the flow this booting.

 

There is a note : This step in not required if performing switch-root.

What is meant by this? I am not able to catch this.

 

 

 

-Regards

Siddhant

rootfs.PNG
0 Kudos
Moderator
Moderator
426 Views
Registered: ‎12-04-2016

Re: petalinux root filesystem type supported by Qemu

hi @siddhant

 

You may try running petalinux-boot --qemu --kernel instead of prebuilt.

 

To answer your last query, with switch-root, it means, if you are not using ubuntu, you dont need to actually use it.

ubuntu rootfs will actually switch from initial rootfs

 

 

Best Regards

Shabbir

 

 

0 Kudos
Adventurer
Adventurer
407 Views
Registered: ‎08-01-2017

Re: petalinux root filesystem type supported by Qemu

Hi @shabbirk

 

Thanks for your reply.

 

I followed the instructions mentioned in QEMU user document and executed the command "petalinux-boot --qemu --kernel"

 

and got following output on screen at the end, It is getting stuck.

 

---[snip]


[   19.947767] pca953x 0-0021: interrupt support not compiled in
[   20.028913] ina2xx 3-0040: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.095915] ina2xx 3-0041: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.153415] ina2xx 3-0042: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.211893] ina2xx 3-0043: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.265730] ina2xx 3-0044: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.317843] ina2xx 3-0045: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.364826] ina2xx 3-0046: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.413813] ina2xx 3-0047: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.481319] ina2xx 3-004a: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.528729] ina2xx 3-004b: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.571809] i2c i2c-0: Added multiplexed i2c bus 3
[   20.648324] ina2xx 4-0040: power monitor ina226 (Rshunt = 2000 uOhm)
[   20.703674] ina2xx 4-0041: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.755334] ina2xx 4-0042: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.800882] ina2xx 4-0043: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.863806] ina2xx 4-0044: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.916076] ina2xx 4-0045: power monitor ina226 (Rshunt = 5000 uOhm)
[   20.959880] ina2xx 4-0046: power monitor ina226 (Rshunt = 5000 uOhm)
[   21.001232] ina2xx 4-0047: power monitor ina226 (Rshunt = 5000 uOhm)
[   21.032451] i2c i2c-0: Added multiplexed i2c bus 4
[   21.175151] max20751 5-0072: Failed to identify chip capabilities
[   21.266858] max20751 5-0073: Failed to identify chip capabilities
[   21.307964] i2c i2c-0: Added multiplexed i2c bus 5
[   21.353992] i2c i2c-0: Added multiplexed i2c bus 6
[   21.389376] pca954x 0-0075: registered 4 multiplexed busses for I2C mux pca9544
[   21.408615] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 33
[   21.530034] at24 7-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
[   21.560216] i2c i2c-1: Added multiplexed i2c bus 7
[   21.595575] i2c i2c-1: Added multiplexed i2c bus 8
[   21.698869] si570 9-005d: registered, current frequency 300000000 Hz
[   21.725897] i2c i2c-1: Added multiplexed i2c bus 9
[   21.879525] si570 10-005d: registered, current frequency 148500000 Hz
[   21.909017] i2c i2c-1: Added multiplexed i2c bus 10
[   21.947226] i2c i2c-1: Added multiplexed i2c bus 11
[   21.979795] i2c i2c-1: Added multiplexed i2c bus 12
[   22.005043] i2c i2c-1: Added multiplexed i2c bus 13
[   22.047760] i2c i2c-1: Added multiplexed i2c bus 14
[   22.075133] pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548
[   22.111410] i2c i2c-1: Added multiplexed i2c bus 15
[   22.145626] i2c i2c-1: Added multiplexed i2c bus 16
[   22.185747] i2c i2c-1: Added multiplexed i2c bus 17
[   22.234468] i2c i2c-1: Added multiplexed i2c bus 18
[   22.275363] i2c i2c-1: Added multiplexed i2c bus 19
[   22.305084] i2c i2c-1: Added multiplexed i2c bus 20
[   22.340080] i2c i2c-1: Added multiplexed i2c bus 21
[   22.372161] i2c i2c-1: Added multiplexed i2c bus 22
[   22.403102] pca954x 1-0075: registered 8 multiplexed busses for I2C switch pca9548
[   22.428181] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 34
[   22.472935] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: CPU DAI (null) not registered
[   22.510681] zynqmp_gpd_attach_dev error -13, node 35
[   22.536456] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13
[   22.573183] zynqmp_gpd_attach_dev error -13, node 36
[   22.593477] cdns-spi ff050000.spi: failed to add to PM domain pd-spi1: -13
[   22.661933] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   22.718061] rtc_zynqmp ffa60000.rtc: setting system clock to 2018-10-10 13:56:03 UTC (1539179763)
[   22.759625] of_cfs_init
[   22.791390] of_cfs_init: OK
[   22.835683] clk: Not disabling unused clocks
[   22.889249] ALSA device list:
[   22.923693]   No soundcards found.
[   22.976203] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: CPU DAI (null) not registered
[   23.018091] zynqmp_gpd_attach_dev error -13, node 35
[   23.042434] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13
[   23.082552] zynqmp_gpd_attach_dev error -13, node 36
[   23.110734] cdns-spi ff050000.spi: failed to add to PM domain pd-spi1: -13
[   23.150012] Waiting for root device /dev/mmcblk0p2...       // No response after this.

 

 

I think qemu is not able to detect the /media/rootfs. How to resolve this? Any pointer?

 

I appreciate your time and valuable suggestions.

 

-Regards

0 Kudos