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
2,052 Views
Registered: ‎11-10-2017

Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

Hello,

 

I am trying to build my own boot images from my Vivado project.i am using petalinux 2017.3 and Vivado 2017.3 in Ubuntu 16.04 [64bit].

here are the steps that i followed [I am referring to UG1144 and UG1157 for the commands guide] :

 

>> Generate the bitstream for a simple project i.e Zynq ultrascale+ connected to gpio to LEDs. 

 

>> Created a new petalinux project after sourcing the petalinux settings

>> Imported H/W using :

     petalinux-config --get-hw-description=/<Vivado_project>/<Vivado_prj.sdk>/<design_hw _wrapper_0>

 

>> Created new application inside my petalinux project : petalinux-create -t apps --name <APP_name> --enable

>> Then config the settigs via petalinux-config -c rootfs , petalinux-config -c kernel 

>> Build the project : petalinux-build

- Got a warning here regarding libc.so.6[GLIBC_2.17]

 

>> Created package via petalinux-package --boot command and copied the BOOT.bin, image.ub files to SD card and loaded the board with boot mode  as : OFF-ON-OFF-ON [1-4]

 

during petalinux-config -c rootfs : i choosed my app displayed under Apps

the program is simple "hello world" print statement and all i was able to see on the COM terminal was similar to  this issue .

When i load the SD card and power on the board, the blue LED glows indicating that the FPGA is programmed. But nothing shows up on screen except for - 

 

My image :

FSBL_issue.JPG

 

Not sure how to proceed from here. Any help/guidance is much appreciated.  

 

 

0 Kudos
1 Solution

Accepted Solutions
Adventurer
Adventurer
2,796 Views
Registered: ‎11-10-2017

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

Hello,

 

So i am finally able to load linux successfuly via SD card after doing these :

 

>> petalinux-build -x clean

>> petalinux-config -c device-tree

>> petalinux-build -c device-tree

>> petalinux-build

then finally

>> petalinux-package -boot command to create BOOT.bin file

 

but i am still not able to get the hello world message on the terminal or find the elf / my project file compiled in the linux directories. 

Attaching the boot log.

 

Please let me know what i need to do.

0 Kudos
6 Replies
Adventurer
Adventurer
2,026 Views
Registered: ‎11-10-2017

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

Ok i got the first issue resolved by re-configuring the build settings : build image, kernel image and rootfs image to boot from SD card.

 

and also exporting the hw description from project.sdk folder  and not a level down. .. 

 

but this is what i got now : 

 

I have tried following in this https://forums.xilinx.com/t5/Embedded-Development-Tools/Beginners-problems-with-Ultrazed-eg/td-p/800802 ... but it really didn't helped me out

 

Xilinx Zynq MP First Stage Boot Loader
Release 2017.3   Jan 22 2018  -  20:51:09
NOTICE:  ATF running on XCZU3EG/silicon v4/RTL5.1 at 0xfffea000, with PMU firmware
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v1.3(release):f9b244b
NOTICE:  BL31: Built : 15:59:50, Jan 22 2018


U-Boot 2017.01 (Jan 22 2018 - 21:30:37 +0530) Xilinx ZynqMP ZCU102 revB

I2C:   ready
DRAM:  2 GiB
ERROR: usb dr_mode not found

at /home/vishal/myXPrj_V1/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/drivers/usb/common/common.c:32/usb_get_dr_mode()
EL Level:       EL2
Chip ID:        xczu3eg
MMC:   sdhci@ff160000: 0 (eMMC), sdhci@ff170000: 1 (SD)
zynqmp_qspi_ofdata_to_platdata: CLK 124999999
SF: Detected n25q256a with page size 512 Bytes, erase size 128 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Bootmode: SD_MODE1
Net:   ZYNQ GEM: ff0e0000, phyaddr ffffffff, interface rgmii-id
eth0: ethernet@ff0e0000
U-BOOT for myXPrj_V1

ethernet@ff0e0000 Waiting for PHY auto negotiation to complete...... done
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded
Hit any key to stop autoboot:  0
Device: sdhci@ff160000
Manufacturer ID: 13
OEM: 14e
Name: Q2J55
Tran Speed: 200000000
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 7.1 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 7.1 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 4 MiB ENH
reading image.ub
26582120 bytes read in 1920 ms (13.2 MiB/s)
Device: sdhci@ff160000
Manufacturer ID: 13
OEM: 14e
Name: Q2J55
Tran Speed: 200000000
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 7.1 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 7.1 GiB WRREL
Boot Capacity: 16 MiB ENH
RPMB Capacity: 4 MiB ENH
reading system.dtb
** Unable to read file system.dtb **
ZynqMP>
0 Kudos
Adventurer
Adventurer
2,797 Views
Registered: ‎11-10-2017

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

Hello,

 

So i am finally able to load linux successfuly via SD card after doing these :

 

>> petalinux-build -x clean

>> petalinux-config -c device-tree

>> petalinux-build -c device-tree

>> petalinux-build

then finally

>> petalinux-package -boot command to create BOOT.bin file

 

but i am still not able to get the hello world message on the terminal or find the elf / my project file compiled in the linux directories. 

Attaching the boot log.

 

Please let me know what i need to do.

0 Kudos
Observer jwmurray
Observer
1,670 Views
Registered: ‎02-13-2018

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

Do you have a Linux prompt?  Can you login as root?

 

You said that you cannot "find the elf / my project file compiled in the linux directories".  If you cannot find the binaries, you should look in

 

    <TMPDIR>/work/aarch64-xilinx-linux/<appname>/1.0-r0/deploy-rpms/aarch64

 

The executable in your running system will be at /usr/bin/<appname>.

 

I am working on a similar problem, but my Linux system hangs within 1-5 seconds of the login prompt being printed.

 

john

 

0 Kudos
Adventurer
Adventurer
1,611 Views
Registered: ‎11-10-2017

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

HI @jwmurray

 

There were many changes that i had to make to get the filesystem up and executed via SD card.

 

here's the thread that resolves the issues:

https://forums.xilinx.com/t5/Embedded-Linux/Not-able-to-mount-root-fs-during-SD-boot-in-Ultrazed-MPSoC/m-p/835504#M24575

 

I also had to used a custom script that i used as a linux service to execute my elf soon after login

0 Kudos
Observer jwmurray
Observer
1,596 Views
Registered: ‎02-13-2018

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution

Thank you, @vish.bh30.  My problem turned out to be a CPU idle issue.  The CPU goes into an idle state depending on the power management settings.

0 Kudos
Observer jwmurray
Observer
1,592 Views
Registered: ‎02-13-2018

Re: Ultrazed: FSBL hangs in boot up process [petalinux 2017]

Jump to solution
0 Kudos