Skip to contentSkip to conversation

ZYNQ, ZC702 getting started

U-Boot Hannes Schmelzer 2 participants 6 messages Sep 18, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

i am currently starting development software for a new B&R board based on the ZYNQ7000.

To make live easier i want to try start with the Xilinx Evalboard ZC702, get there some experience to start afterwards with my own board.

I have allready built "zynq_zc702_defconfig" - but have no plan how to bring the build output to my board.
Is it necessary to build some FSBL with the Xilinx SDK an merge the output with u-boot's output ?
Or is it possible to take some SPL und U-Boot, burn it so SD-Card or QSPI flash and run ?

many thanks for help and best regards,
Hannes

#1 lore raw
Quoted 8 lines · Hannes Schmelzer

Hi,

i am currently starting development software for a new B&R board based on the ZYNQ7000.

To make live easier i want to try start with the Xilinx Evalboard ZC702, get there some experience to start afterwards with my own board.

Quoted 6 lines

I have allready built "zynq_zc702_defconfig" - but have no plan how to bring the build output to my board.
Is it necessary to build some FSBL with the Xilinx SDK an merge the output with u-boot's output ?
Or is it possible to take some SPL und U-Boot, burn it so SD-Card or QSPI flash and run ?

Either works fine.

For SPL use mmc instead of QSPI - qspi patches on the way to merge mainline.

mmc:
build the source in mainline and download zynq boot.bin generator from
[1] and copy boot.bin and u-boot-dtb.img on to sd card, thats it.

[1] https://github.com/openedev/u-boot-zynq/blob/master/tools/zynq-boot-bin.py

Quoted 4 lines

many thanks for help and best regards,
Hannes

thanks!

Signature · 1 line
Jagan | openedev.
#2 lore raw
Quoted 16 lines
Quoted 8 lines

Hi,

i am currently starting development software for a new B&R board based on the ZYNQ7000.

To make live easier i want to try start with the Xilinx Evalboard ZC702, get there some experience to start afterwards with my own board.

Quoted 6 lines

I have allready built "zynq_zc702_defconfig" - but have no plan how to bring the build output to my board.
Is it necessary to build some FSBL with the Xilinx SDK an merge the output with u-boot's output ?
Or is it possible to take some SPL und U-Boot, burn it so SD-Card or QSPI flash and run ?

Either works fine.

Quoted 7 lines

For SPL use mmc instead of QSPI - qspi patches on the way to merge mainline.

mmc:
build the source in mainline and download zynq boot.bin generator from
[1] and copy boot.bin and u-boot-dtb.img on to sd card, thats it.

[1] https://github.com/openedev/u-boot-zynq/blob/master/tools/zynq-boot-bin.py

Hi jagan,

many thanks for response and help.

It is now bit more cleaner to me ... in final i wan't to use hw guys output (ps7_* files) and build my software.
At this point i think, i don't need the Vivado or Xilinx SDK at all ... just my ARM toolchain and u-boot. Fine.

For the beginning i will use mmc (or maybe jtag). Finally i must use qspi. I think the QSPI support can be found on your github [1].

I've downloaded [1] ... and run:

~/work/u-boot-zynq $ tools/zynq-boot-bin.py
test.py -u <inputfile> -o <outputfile>

What is the input file ?
For my understanding, i need 2 input files (SPL and u-boot), or i'm wrong ?

best regards,
Hannes

#3 lore raw
Quoted 31 lines · Hannes Schmelzer
Quoted 23 lines
Quoted 9 lines

Hi,

i am currently starting development software for a new B&R board based on the ZYNQ7000.

To make live easier i want to try start with the Xilinx Evalboard ZC702, get
there some experience to start afterwards with my own board.

Quoted 8 lines

I have allready built "zynq_zc702_defconfig" - but have no plan how to bring
the build output to my board.
Is it necessary to build some FSBL with the Xilinx SDK an merge the output
with u-boot's output ?
Or is it possible to take some SPL und U-Boot, burn it so SD-Card or QSPI flash and run ?

Either works fine.

For SPL use mmc instead of QSPI - qspi patches on the way to merge mainline.

Quoted 6 lines

mmc:
build the source in mainline and download zynq boot.bin generator from
[1] and copy boot.bin and u-boot-dtb.img on to sd card, thats it.

[1]
https://github.com/openedev/u-boot-zynq/blob/master/tools/zynq-boot-bin.py

Quoted 8 lines

Hi jagan,

many thanks for response and help.

It is now bit more cleaner to me ... in final i wan't to use hw guys output (ps7_* files) and build my software.
At this point i think, i don't need the Vivado or Xilinx SDK at all ... just my ARM toolchain and u-boot. Fine.

Yes.

Quoted 11 lines

For the beginning i will use mmc (or maybe jtag). Finally i must use qspi. I think the QSPI support can be found on your github [1].

I've downloaded [1] ... and run:

~/work/u-boot-zynq $ tools/zynq-boot-bin.py
test.py -u <inputfile> -o <outputfile>

What is the input file ?
For my understanding, i need 2 input files (SPL and u-boot), or i'm wrong ?

See this wiki [1] and just try qspi as well and let me know for any questions.

[1] http://www.openedev.com/wiki/Main_Page

thanks!

Signature · 1 line
Jagan | openedev.
#4 lore raw
Quoted 48 lines · Jagan Teki
Quoted 29 lines · Hannes Schmelzer
Quoted 22 lines
Quoted 9 lines

Hi,

i am currently starting development software for a new B&R board based on the ZYNQ7000.

To make live easier i want to try start with the Xilinx Evalboard ZC702, get
there some experience to start afterwards with my own board.

Quoted 8 lines

I have allready built "zynq_zc702_defconfig" - but have no plan how to bring
the build output to my board.
Is it necessary to build some FSBL with the Xilinx SDK an merge the output
with u-boot's output ?
Or is it possible to take some SPL und U-Boot, burn it so SD-Card or QSPI flash and run ?

Either works fine.

For SPL use mmc instead of QSPI - qspi patches on the way to merge mainline.

Quoted 6 lines

mmc:
build the source in mainline and download zynq boot.bin generator from
[1] and copy boot.bin and u-boot-dtb.img on to sd card, thats it.

[1]
https://github.com/openedev/u-boot-zynq/blob/master/tools/zynq-boot-bin.py

Quoted 8 lines

Hi jagan,

many thanks for response and help.

It is now bit more cleaner to me ... in final i wan't to use hw guys output (ps7_* files) and build my software.
At this point i think, i don't need the Vivado or Xilinx SDK at all ... just my ARM toolchain and u-boot. Fine.

Yes.

Quoted 8 lines

For the beginning i will use mmc (or maybe jtag). Finally i must use qspi. I think the QSPI support can be found on your github [1].

I've downloaded [1] ... and run:

~/work/u-boot-zynq $ tools/zynq-boot-bin.py
test.py -u <inputfile> -o <outputfile>

Quoted 7 lines
Quoted 2 lines

What is the input file ?
For my understanding, i need 2 input files (SPL and u-boot), or i'm wrong ?

See this wiki [1] and just try qspi as well and let me know for any questions.

[1] http://www.openedev.com/wiki/Main_Page

thanks!

Hi Jagan,

many thanks - with your help i got it work :-)
I tried both, mainline u-boot and which one from openedev.

I observed a little issue on both versions. If i type "reset" or press the SRST_B button i get:

U-Boot SPL 2015.07-rc3-g0cf5d8d (Sep 18 2015 - 11:22:16) mmc boot
zynq_sdhci_init: sdhci_host malloc fail
MMC Device 0 not found
spl: mmc device not found
### ERROR ### Please RESET the board ###

if i simple power on or press the POR_B button it works as expected:

U-Boot SPL 2015.07-rc3-g0cf5d8d (Sep 18 2015 - 11:22:16) mmc boot
reading system.dtb
spl_load_image_fat_os: error reading image system.dtb, err - -1 reading u-boot-dtb.img
reading u-boot-dtb.img

U-Boot 2015.07-rc3-g0cf5d8d (Sep 18 2015 - 11:23:17 +0200)

Model: Zynq ZC702 Board
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   zynq_sdhci: 0

Using default environment

In:    serial
Out:   serial
Err:   serial
Model: Zynq ZC702 Board
Net:   Gem.e000b000
Error: Gem.e000b000 address not set.

Hit any key to stop autoboot: 0
zynq-uboot>

best regards,
Hannes

#5 lore raw
Quoted 114 lines · Hannes Schmelzer
Quoted 65 lines · Jagan Teki
Quoted 38 lines · Hannes Schmelzer
Quoted 27 lines
Quoted 12 lines

Hi,

i am currently starting development software for a new B&R board based on
the ZYNQ7000.

To make live easier i want to try start with the Xilinx Evalboard ZC702,
get
there some experience to start afterwards with my own board.

Quoted 9 lines

I have allready built "zynq_zc702_defconfig" - but have no plan how to bring
the build output to my board.
Is it necessary to build some FSBL with the Xilinx SDK an merge the output
with u-boot's output ?
Or is it possible to take some SPL und U-Boot, burn it so SD-Card or QSPI
flash and run ?

Either works fine.

For SPL use mmc instead of QSPI - qspi patches on the way to merge mainline.

Quoted 7 lines

mmc:
build the source in mainline and download zynq boot.bin generator from
[1] and copy boot.bin and u-boot-dtb.img on to sd card, thats it.

[1]

https://github.com/openedev/u-boot-zynq/blob/master/tools/zynq-boot-bin.py

Hi jagan,

Quoted 8 lines

many thanks for response and help.

It is now bit more cleaner to me ... in final i wan't to use hw guys output
(ps7_* files) and build my software.
At this point i think, i don't need the Vivado or Xilinx SDK at all ... just
my ARM toolchain and u-boot. Fine.

Yes.

Quoted 4 lines

For the beginning i will use mmc (or maybe jtag). Finally i must use qspi. I
think the QSPI support can be found on your github [1].

Quoted 8 lines

I've downloaded [1] ... and run:

~/work/u-boot-zynq $ tools/zynq-boot-bin.py
test.py -u <inputfile> -o <outputfile>

What is the input file ?
For my understanding, i need 2 input files (SPL and u-boot), or i'm wrong ?

Quoted 6 lines

See this wiki [1] and just try qspi as well and let me know for any questions.

[1] http://www.openedev.com/wiki/Main_Page

thanks!

Hi Jagan,

many thanks - with your help i got it work :-)
I tried both, mainline u-boot and which one from openedev.

I observed a little issue on both versions. If i type "reset" or press the SRST_B button i get:

U-Boot SPL 2015.07-rc3-g0cf5d8d (Sep 18 2015 - 11:22:16) mmc boot
zynq_sdhci_init: sdhci_host malloc fail
MMC Device 0 not found
spl: mmc device not found
### ERROR ### Please RESET the board ###

if i simple power on or press the POR_B button it works as expected:

U-Boot SPL 2015.07-rc3-g0cf5d8d (Sep 18 2015 - 11:22:16) mmc boot
reading system.dtb
spl_load_image_fat_os: error reading image system.dtb, err - -1 reading u-boot-dtb.img
reading u-boot-dtb.img

U-Boot 2015.07-rc3-g0cf5d8d (Sep 18 2015 - 11:23:17 +0200)

Model: Zynq ZC702 Board
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   zynq_sdhci: 0

Using default environment

In:    serial
Out:   serial
Err:   serial
Model: Zynq ZC702 Board
Net:   Gem.e000b000
Error: Gem.e000b000 address not set.
Quoted 2 lines

Hit any key to stop autoboot: 0
zynq-uboot>

Can you try qspi:

boot.bin - 0x0
u-boot-dtb.img - 0x100000

Signature · 1 line
Jagan | openedev.