cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
4,362 Views
Registered: ‎07-02-2015

ZCU102 ubuntu desktop using Petalinux 2019.1

Hi,

I am trying to do the ZCU102 ubuntu desktop available at :

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841937/Zynq+UltraScale+MPSoC+Ubuntu+part+2+-+Building+and+Running+the+Ubuntu+Desktop+From+Sources

But I am using Petalinux 2019.1 instead of 2018.3, I followed all the steps correctly, when I use the given the given .img file the design works correctly and the ubuntu GUI desktop runs, but when i follow the steps to build the .ub and .BIN files and replace it with the files on the SD card the ubuntu desktop doesn't run, instead the Display shows linux login terminal without GUI. I have attached a picture of the booting data i get befor showing the login terrminal. Is it incompatibale with Petalinux 2019.1 or am I missing something ?

IMG_0004.jpg
0 Kudos
34 Replies
Highlighted
Voyager
Voyager
389 Views
Registered: ‎06-28-2018

Hi @chintan_asi 

For some reason the kernel cannot detect an SDHC device.

[ 2.883734] sdhci-arasan ff160000.sdhci: : Timeout for Buffer Read Ready inte rrupt, back to fixed sampling clock
[ 2.883737] mmc0: tuning execution failed: -5
[ 2.883741] mmc0: error -5 whilst initialising SD card

When you select SD card as the rootfs type in PetaLinux configuration it sets root= option in the kernel bootargs to something like /dev/mmcblk0p2 which is the second (EXT4) partition on the SD card. Then the kernel looks for the root filesystem in that device.

Make sure SD peripheral is enabled and configured correctly in Zynq UltraScale+ MPSoC IP core settings.

Some people on the forum suggests adding no-1-8-v option to sdhc node in system-user.dtsi which can be found under <petalinux_project_directory>/project-spec/meta-user/recipes-bsp/device-tree/files

&sdhci1 {
status = "okay";
no-1-8-v;
}

Type (SDHC, SDXC, etc.), speed class and size of the SD card is important. You can try booting your system from a different SD card and obtain a different result.

0 Kudos
Highlighted
Adventurer
Adventurer
377 Views
Registered: ‎11-05-2018

Thanks,

 

I think this issue is unrelated to the change made to rootfs (from INITRAM to SD card), since I started seeing this error in previous builds which had worked fine before. I suspect my SD card might have gotten bad or corrupted. I have ordered a new one, and will try again. I did see that the petalinux adds the root =  dev/mmcblk0p2.

Thanks

Chintan

0 Kudos
Highlighted
Adventurer
Adventurer
318 Views
Registered: ‎11-05-2018

I keep seeing the same error, where seems like kernel can't either find the SD card or the filesystem.

 

 3.161776] /home/chintan/chintan/projects/RFSOC/BLT/CodeDrops/2019-06-12_1G_Real_Sandbox/VP430_2018.2/components/ext_sources/linux-xlnx-xilinx-v2018.1/drivers/mmc/core/sd.c:890 SD card mmc0 force write-enable
[ 3.183587] Call trace:
[ 3.186025] [<ffffff8008088c58>] dump_backtrace+0x0/0x368
[ 3.191401] [<ffffff8008088fd4>] show_stack+0x14/0x20
[ 3.196436] [<ffffff80089e45f8>] dump_stack+0x9c/0xbc
[ 3.201470] [<ffffff800809b308>] panic+0x11c/0x274
[ 3.206244] [<ffffff8008d21124>] mount_block_root+0x1a8/0x27c
[ 3.211972] [<ffffff8008d21430>] mount_root+0x11c/0x134
[ 3.217180] [<ffffff8008d215b4>] prepare_namespace+0x16c/0x1b4
[ 3.222308] sdhci-arasan ff160000.sdhci: : Timeout for Buffer Read Ready interrupt, back to fixed sampling clock
[ 3.222311] mmc0: tuning execution failed: -5
[ 3.222314] mmc0: error -5 whilst initialising SD card
[ 3.242612] [<ffffff8008d20d44>] kernel_init_freeable+0x1b8/0x1d8
[ 3.248689] [<ffffff80089f6960>] kernel_init+0x10/0x100
[ 3.253896] [<ffffff8008084a90>] ret_from_fork+0x10/0x18
[ 3.259191] SMP: stopping secondary CPUs
[ 3.263098] Kernel Offset: disabled
[ 3.266568] CPU features: 0x002004
[ 3.269952] Memory Limit: none
[ 3.272994] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

0 Kudos
Highlighted
Observer
Observer
74 Views
Registered: ‎01-07-2014

I'm working on getting Ubuntu up and running on an UltraZED-EV with Vivado 2019.1/Petalinux 2019.1.

I tried your method and keep running into a problem with the login credentials.  The default ubuntu/ubuntu doesn't work.  According to the link you provided, it should be a simple matter of editing the user-data file on the system partition but that's not working.

How do you set up the username/password?  or what is the default?

0 Kudos
Highlighted
Observer
Observer
37 Views
Registered: ‎01-07-2014

At the risk of reopening a dead thread, the answer to the problem of not being able to mount an SD card even though the log clearly says the partition is there is simple but not intuitive.  I have pulled my hair out SOOOO many timesover this one only to go back to my notes and finding this:

add the following line to the sdhci0 section in your system.dtsi file under project-spec/.../device-tree/files (or something like that):

disable-wp;

 

I am on my Wnidows table right now zand can't verify the exact path and section name.  It will be obvious when you look in your Petalinux project.

 

The problem is there is no write protect signal connected to the controller so it assumes write protect and the kernel refuses to mount a write protected partition as the rootfs.

I hope this saves you the hours it has cost me in the past.

0 Kudos