News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

TE0720-03 u-boot problem?

Started by tobiasrj, March 08, 2018, 01:06:37 PM

Previous topic - Next topic

tobiasrj

Hi
I am trying to get Linux running on a TE0720-03-1CF with the TE0703 carrier board.
But it seems like it wont boot the U-boot bootloader.

What i have done:
Vivado 2017.4 and PetaLinux 2017.4.

I have downloaded the TE0720 reference design and run the TCL-scripts which create a hardware design looking like this:

The hardware is then exported to SDK.

To build PetaLinux I do the following:
  petalinux-create -t project -n plnx-project --template zynq
  petalinux-config --get-hw-description=<Pointing to the hardware I just created .hdf>
  petalinux-config -c u-boot
  petalinux-config -c kernel
  petalinux-build
  petalinux-package --image -c kernel --format uImage
  I make no changes to any of the configurations.

Afterwards I create a FSBL in SDK and enables it's debug output.
Then i create a boot-image (BOOT.bin) with the following items in the written order: fsbl.elf, zsys_wrapper.bit, u-boot.elf
I then put BOOT.bin, system.dtb, uImage on a SD-card FAT32 partition and puts the filesystem on a EXT4 partition.

But now comes the problem, when I boot TE0720 from the SD-card (DIP switch S2-4 have been set to ON), I get the following output:

Xilinx First Stage Boot Loader

Release 2017.4 Mar  8 2018-11:57:00
Devcfg driver initialized
Silicon Version 3.1
Boot mode is SD
SD: rc= 0

SD Init Done
Flash Base Address: 0xE0100000
Reboot status register: 0x60400000
Multiboot Register: 0x0000C000
Image Start Address: 0x00000000
Partition Header Offset:0x00000C80
Partition Count: 3
Partition Number: 1
Header Dump
Image Word Len: 0x00030A88
Data Word Len: 0x00030A88
Partition Word Len:0x00030A88
Load Addr: 0x00000000
Exec Addr: 0x00000000
Partition Start: 0x000065D0
Partition Attr: 0x00000020
Partition Checksum Offset: 0x00000000
Section Count: 0x00000001
Checksum: 0xFFF67826
Bitstream
In FsblHookBeforeBitstreamDload function
PCAP:StatusReg = 0x40000A30
PCAP:device ready
PCAP:Clear done
Level Shifter Value = 0xA
Devcfg Status register = 0x40000A30
PCAP:Fabric is Initialized done
PCAP register dump:
PCAP CTRL 0xF8007000: 0x4C00E07F
PCAP LOCK 0xF8007004: 0x0000001A
PCAP CONFIG 0xF8007008: 0x00000508
PCAP ISR 0xF800700C: 0x5802300F
PCAP IMR 0xF8007010: 0xFFFFFFFF
PCAP STATUS 0xF8007014: 0x50000F30
PCAP DMA SRC ADDR 0xF8007018: 0x00100001
PCAP DMA DEST ADDR 0xF800701C: 0xFFFFFFFF
PCAP DMA SRC LEN 0xF8007020: 0x00030A88
PCAP DMA DEST LEN 0xF8007024: 0x00030A88
PCAP ROM SHADOW CTRL 0xF8007028: 0xFFFFFFFF
PCAP MBOOT 0xF800702C: 0x0000C000
PCAP SW ID 0xF8007030: 0x00000000
PCAP UNLOCK 0xF8007034: 0x757BDF0D
PCAP MCTRL 0xF8007080: 0x30800100


DMA Done !


FPGA Done !

In FsblHookAfterBitstreamDload function
Partition Number: 2
Header Dump
Image Word Len: 0x00019282
Data Word Len: 0x00019282
Partition Word Len:0x00019282
Load Addr: 0x04000000
Exec Addr: 0x04000000
Partition Start: 0x00037060
Partition Attr: 0x00000010
Partition Checksum Offset: 0x00000000
Section Count: 0x00000001
Checksum: 0xF7F7D5A8
Application
Handoff Address: 0x04000000
In FsblHookBeforeHandoff function
SUCCESSFUL_HANDOFF
FSBL Status = 0x1

It seems like the FSBL completes, but U-boot never starts?
I have tried creating a simple bare-metal application blinking an LED, made a FSBL and merged them into a BOOT.bin. And this boots just fine from a SD-card and the LED begins blinking.

I might mention that the filesystem I put on is Linaro, but this has worked before with the same build procedure on a Zybo development board, so should not be it?

Any ideas why it will not boot u-boot/linux?

JH

Hi,
did you set correct UART? Did you install petalinux correctly, was there some error messages or critical warnings on installation or during build process?
On  the 2017.4 reference design are prebuilt files. Does this works?
There is also a petalinux template project on the design, which can be used for startup. This template use RAMDisk instead of SD rootfs, but you can change this on petalinux config.

Reference Design description:
Additional description how to use petalinux and our design:
Do following

       
  • Try our prebuilt Boot.bin and image.ub.
  • Follow instructions and create all by yourself without changes
  • if 1. and 2. works, modify like you need or create own one.
br
John