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: 
Visitor shobhit.k1
Visitor
1,890 Views
Registered: ‎10-04-2018

Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

I am trying to boot rootfs/ubuntu from a sdcard. 

I built a custom Zynq Project in Vivado and created rootfs,kernel, u-boot using petalinux.

The bootargs are modified to mount root at /dev/mmcblk0p2

The SDCard is divided into two partitions.

1 GB Fat Partition(boot) and 14 GB ext4 partition(rootfs)

The BOOT.bin and image.ub end up in the boot partition. When the device is booted, I can get to the initramfs login but the kernel cannot find the SD Card.

u-boot complains of not being able to detect the SD Card but then it reads from the Fat partition.

sdhci@ff160000: 0 (SD)Card did not respond to voltage select!
mmc_init: -95, time 28
 
What could be going wrong ?.
 
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
1,823 Views
Registered: ‎04-24-2017

Re: Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

 

Hi @shobhit.k1,

 

Right place to look into is the machine configuration files https://github.com/Xilinx/meta-xilinx/blob/rel-v2018.2/meta-xilinx-bsp/conf/machine/ultra96-zynqmp.conf

 

We have defined all the machine conf files for Xilinx evaluation boards in this place.

 

This is the first place you need to look when you you create a petalinux project to make sure you have the right settings for xilinx eval boards.

 

By default petalinux template project refers to ZCU102 board. You need to change the following for other eval boards. These are 3 main steps.

 

1. Set the eval board device-tree files https://github.com/Xilinx/device-tree-xlnx/tree/xilinx-v2018.2/device_tree/data/kernel_dtsi/2018.2/BOARD

$ petalinux-config ---> DTG Settings ---> (zcu100-revc) MACHINE_NAME


2. Set u-boot board specfic defconfig https://github.com/Xilinx/u-boot-xlnx/blob/xilinx-v2018.2/configs/xilinx_zynqmp_zcu100_revC_defconfig

$ petalinux-config ---> u-boot Configuration ---> (xilinx_zynqmp_zcu100_revC_defconfig) u-boot config target

3. Set Yocto Machine name https://github.com/Xilinx/meta-xilinx/blob/rel-v2018.2/meta-xilinx-bsp/conf/machine/ultra96-zynqmp.conf

$ petalinux-config ---> Yocto Settings ---> (ultra96-zynqmp) YOCTO_MACHINE_NAME

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

5 Replies
Moderator
Moderator
1,864 Views
Registered: ‎12-04-2016

Re: Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

Hi @shobhit.k1

 

Try changing the SD slot type to 2.0 in the design and see if that works

 

 

 

0 Kudos
Moderator
Moderator
1,850 Views
Registered: ‎04-24-2017

Re: Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

Hi @shobhit.k1,

 

Can you post the complete boot log?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Visitor shobhit.k1
Visitor
1,841 Views
Registered: ‎10-04-2018

Re: Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

Hello Sandeep,

                         I was able to get it working. I realized that the ultra96 machine name is zcu100_revc in the petalinux-config settings and then I was able to boot with SD Card. The machine name was not very clearly mentioned. 

 

I have other boot issues, but this one works for now. 

0 Kudos
Explorer
Explorer
1,833 Views
Registered: ‎10-21-2015

Re: Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

Hi

The following settings need for ultra96 in petalinux-config

# DTG Settings
CONFIG_SUBSYSTEM_MACHINE_NAME="zcu100-revc"

# u-boot Configuration
CONFIG_SUBSYSTEM_UBOOT_CONFIG_TARGET="xilinx_zynqmp_zcu100_revC_defconfig"

# Yocto Settings
CONFIG_YOCTO_MACHINE_NAME="ultra96-zynqmp"

 You can find the settings from prebuilt petalinux bsp for ultra96(xilinx-ultra96-reva-2018.2/project-spec/configs/config)

Moderator
Moderator
1,824 Views
Registered: ‎04-24-2017

Re: Ultra96 cannot boot Petalinux Custom rootfs and kernel from SD Card

Jump to solution

 

Hi @shobhit.k1,

 

Right place to look into is the machine configuration files https://github.com/Xilinx/meta-xilinx/blob/rel-v2018.2/meta-xilinx-bsp/conf/machine/ultra96-zynqmp.conf

 

We have defined all the machine conf files for Xilinx evaluation boards in this place.

 

This is the first place you need to look when you you create a petalinux project to make sure you have the right settings for xilinx eval boards.

 

By default petalinux template project refers to ZCU102 board. You need to change the following for other eval boards. These are 3 main steps.

 

1. Set the eval board device-tree files https://github.com/Xilinx/device-tree-xlnx/tree/xilinx-v2018.2/device_tree/data/kernel_dtsi/2018.2/BOARD

$ petalinux-config ---> DTG Settings ---> (zcu100-revc) MACHINE_NAME


2. Set u-boot board specfic defconfig https://github.com/Xilinx/u-boot-xlnx/blob/xilinx-v2018.2/configs/xilinx_zynqmp_zcu100_revC_defconfig

$ petalinux-config ---> u-boot Configuration ---> (xilinx_zynqmp_zcu100_revC_defconfig) u-boot config target

3. Set Yocto Machine name https://github.com/Xilinx/meta-xilinx/blob/rel-v2018.2/meta-xilinx-bsp/conf/machine/ultra96-zynqmp.conf

$ petalinux-config ---> Yocto Settings ---> (ultra96-zynqmp) YOCTO_MACHINE_NAME

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post