Author Topic: Boot from SD on TE0820 (carrier board TE0705)  (Read 925 times)

r.brue

  • Active Member
  • *
  • Posts: 7
Boot from SD on TE0820 (carrier board TE0705)
« on: November 19, 2020, 12:02:41 PM »
I have a carrier board TE0705 with a SOM UltraScale+ (TE0820) and I've built a PetaLinux image.
I've prepared a SD card by creating a FAT32 partition and copying the produced PetaLinux "BOOT.BIN" and "image.ub" files.

Now I've placed the SD so prepared in the SD card slot in the TE0705, powered-up but nothing on the JTAG. I don't see anything (baudrate 115200).

Do I have so set any S3 or S4 (switches)?
Is the SD so prepared right?

Thank you.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #1 on: November 19, 2020, 01:32:45 PM »
Hi,
 boot mode should be set automatically to SD when you inserd SD:
https://wiki.trenz-electronic.de/display/PD/TE0705+CPLD#TE0705CPLD-Bootmode
We offer a reference design with prebuilt binaries for the different assembly options, can you try out this please:
https://wiki.trenz-electronic.de/display/PD/TE0820+Test+Board
--> you must select the correct assembly option, design includes different variants:
https://wiki.trenz-electronic.de/display/PD/TE0820+Test+Board#TE0820TestBoard-Hardware

br
John

r.brue

  • Active Member
  • *
  • Posts: 7
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #2 on: November 19, 2020, 02:32:44 PM »
Hi, thank you for the reply but still no luck, no console is shown on the JTAG (J7) connector.
I've copied inside the FAT32 partition of my SD card the following files:
  • prebuilt>os>petalinux>2GB>image.ub
  • prebuilt>boot_images>2eg_1e_2gb>u-boot>BOOT.bin

What am I doing wrong?

Switch S3 position (0010).

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #3 on: November 19, 2020, 05:09:27 PM »
Which TE0820 did you bough? Did you select correct files for your assembly variant? Can you tell me the whole article number?

Your S3 DIP is OK for TE0820 .
You has set J21 Jumper to 2-3 position?:
https://wiki.trenz-electronic.de/display/PD/TE0705+TRM#TE0705TRM-ConfiguringVCCIO

Which external power supply did you use? Some current limit?

br
John

r.brue

  • Active Member
  • *
  • Posts: 7
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #4 on: November 20, 2020, 08:37:50 AM »
J21 is ok (2-3 position), external power supply is ok (3A, 12V). Product model: TE0820-03-2BE21FA, board: TE0705-04.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #5 on: November 20, 2020, 08:48:48 AM »
Hi,
2eg_1e_2gb design for TE0820-03-2BE21FA is correct.

Did you use prebuilt files from the newest test board reference design? -->  TE0820-test_board-vivado_2019.2-build_10_20200408073444.zip

When you connect Vivado HW Manager, what did you see? ARM_DAP and FPGA (FPGA Part programmed or not)? Important, not dummy_dap, in this case you PS has a problem! Can you send me a screenshot?

Which SD card did you use?
Did you use some SD card from this list? https://www.xilinx.com/support/answers/66779.html

br
John

r.brue

  • Active Member
  • *
  • Posts: 7
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #6 on: November 30, 2020, 09:34:24 AM »
Yes I'm using "TE0820-test_board-vivado_2019.2-build_10_20200408073444.zip".
From Vivado 2019.1.3 I can program the FPGA correctly.
I attach the screenshot.

The SD card is a Samsung 32GB U1.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #7 on: November 30, 2020, 11:33:54 AM »


How did you formate your SD? Please use at first one partition with fat32 formate?
What did you put on the partition? Boot.bin and image.ub?

Do you have some other SD card, which you can try out?

There are only 2 entries for Samsung and it seems they are not completely tested:
https://www.xilinx.com/support/answers/66779.html
--> Samsung micro SD, Size 16gb, uhs-I, Speed class 10
--> Samsung micro SD, Size 8bg, non-uhs, speed class 6

br
John

br

r.brue

  • Active Member
  • *
  • Posts: 7
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #8 on: November 30, 2020, 02:15:30 PM »
Yes there is only one FAT32 partition and I've copied both BOOT.bin and image.ub files.
I've tried three different SD cards (different brands and different speed class/sizes) none worked.
I've none of the fully-tested SD cards, do you suggest me to buy one of the tested ones? (it is pretty strange that I'm having this issue because of the SD cards, as said, I've teste 3 of them none worked, I know for sure that those SD cards are fully working)

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #9 on: November 30, 2020, 07:16:11 PM »
Ok, in case different SD cards doesn't work, maybe it a other issue.

Can you program Boot.bin into QSPI and boot from QSPI. During Programming, vivado check one time boot mode. Can you check which boot mode will display on the tcl console of vivado?

Remove SD card to swich boot mode an power off/on the board? You should see the uboot console(uboot stops, because SD is missing), insert SD card and start linux booting manually on uboot console.
Does this works?

br
John

r.brue

  • Active Member
  • *
  • Posts: 7
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #10 on: December 04, 2020, 09:39:30 AM »
Hi, I've programmed the QSPI through Xilinx SDK > Xilinx > Program flash using the "BOOT.bin" and the "zynqmp_fsbl.elf" (found in the petalinux folder "images/linux/", is it right?) this is the flashing log from Vivado Console https://pastebin.com/NVC7gZQS.

I've flashed with the SD inserted, no luck, I've tried also to flash without the SD inserted, this is the other log  https://pastebin.com/g8i9axMk and meanwhile I was flashing the second time, on the JTAG console (JTAG (J7) connector) I've seen the message that I attach here.

I also attach my flashing configuration from Xilinx SDK.

PS: Now I don't know why, whenever I try to relaunch a new flash, Vivado says: "rdi_zynq_flash.exe has stopped working"  :o

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #11 on: December 04, 2020, 09:48:49 AM »
Hi,
use the "fsbl_flash.elf" for programming, this is need if the boot mode is not JTAG only

it's available in the subfolder
"test_board\prebuilt\software\<assembly version>\"


PS: zynqmp_fsbl.elf is not included  in "images/linux/" the current "TE0820-test_board-vivado_2019.2-build_10_20200408073444.zip".  I think you use this one which petalinux has generated or?

please use the original files at the moment!


br
John

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #12 on: December 17, 2020, 02:44:41 AM »
I have the same problem. I use TE0821 and carrier TE0701. OS Ubuntu 18.04. Soft Vivado 2019.2, Vitis 2019.2 and Petalinux 2019.2. I use reference design for this board. I make two filles : BOOT.bin and image.ub. I put this filles on SD card. I use SD cart SanDisk 16GB class10. POwersuplay 12V 2.5A.
I see board on Vivado Hardvare Manangers and I can control on LED. But I no read any signal on serial port.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #13 on: December 17, 2020, 06:42:52 AM »
Hi,
we have a reference design, with prebuilt binaries for different assembly options.
can you try out this prebuilt binaries, does it work?
https://wiki.trenz-electronic.de/display/PD/TE0821+Test+Board
br
John

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #14 on: December 17, 2020, 03:11:44 PM »
Hi,
thank you fir your answer

I use same this design, with pre built binaries. When I create files I choose option 4 (TE-0821-01-3BE21FA) xczu3eg-sfvc784-1-e.
I looked at this manual 4 x 5 SoM Carriers (https://wiki.trenz-electronic.de/display/PD/4+x+5+SoM+Carriers) and I am confused that ЕУ0821+ЕУ0701 has some restrictions on compatibility with SD.
"Works, but without carrier board modification out of specification: TE0701 SD Level shifter powered fix by 1.8V, TE0820 SD MIO-Bank by 3.3V."

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #15 on: December 17, 2020, 03:47:30 PM »
Hi,

Quote
TE0701 SD Level shifter powered fix by 1.8V, TE0820 SD MIO-Bank by 3.3V."
TE0701 was design for 7 series where MIO was 1.8V. TE082x has 3.3VMIO. This works in this combination but it's out of spec.

Instead of creating files, can you test our prebuilt boot.bin and image.ub? --> In case you create all again with our scripts, please download the files again.

Which external power supply did you use for the TE0701? Some current limit?

br
John

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #16 on: December 17, 2020, 04:43:41 PM »
I open archive. I took next filles:
- TE0821-test_board-vivado_2019.2-build_15_20201006103533\test_board\prebuilt\boot_images\3eg_1e_2gb\u-boot\BOOT.bin
- TE0821-test_board-vivado_2019.2-build_15_20201006103533\test_board\prebuilt\os\petalinux\2GB\image.ub

But I no can open serial console

I use power supply 12V 2.5A

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #17 on: December 17, 2020, 04:57:49 PM »
Hi,

can you tell me all DIP settings and status of the LEDs when you power on the module and you try to boot from SD?

can you also check on Vivado HW Manager if you see ARM and FPGA or only FPGA and dummy_dap?

br
John

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #18 on: December 17, 2020, 09:45:52 PM »
Dip switches settings:
C3-1 ON
C3-2 ON
C3-3 OFF
C3-4 ON

C4-1 ON
C4-2 OFF
C4-3 ON
C4-4 OFF

When powering up the board:
on board TE0701: LED B6 is on RED and LED22 on GREEN
sometimes LED D1 blinks RED
on board TE0821 LED D2 on

In Vivado HW Manager I see two sections:
-xczu3_0
- arm_dap_1

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #19 on: December 18, 2020, 07:27:13 AM »
Hi,
ok so FSBL was booting and has programmed PL part of the FPGA. Either booting is stopped later or you has not configured console correctly.

How did you configured your console? Did you select correct speed?
https://wiki.trenz-electronic.de/display/PD/TE0821+Test+Board#TE0821TestBoard-Linux
    Speed: 115200
    COM Port: Win OS, see device manager, Linux OS see  dmesg |grep tty  (UART is *USB1)

 Did you select correct COM Port? --> open device manager and connect you  JTAG/UART USB to the PC; it should appears a new COM PORT

We use mostly putty to connect UART. what did you use?

br
John


volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #20 on: December 18, 2020, 02:31:33 PM »
I use putty. I try do it in linux and Win10. In windows I see in device manager COM6 and use this.

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #21 on: December 18, 2020, 02:33:47 PM »
But i do not connect to this port in putty.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #22 on: December 18, 2020, 07:26:34 PM »
Hi,
putty setup looks OK.

I've some question about your DIP setup and LED status. I'm sorry I ignored this because I saw on your picture that PL was programmed, so it must be partially booted.

You use TE0701 carrier? :https://shop.trenz-electronic.de/en/TE0701-06-Carrier-Board-for-Trenz-Electronic-7-Series

There are much more LEDs  and also some jumper, and some of your names doesn't match which this one on the board.

https://wiki.trenz-electronic.de/display/PD/TE0701+TRM#TE0701TRM-On-boardLEDs
https://wiki.trenz-electronic.de/display/PD/TE0701+TRM#TE0701TRM-ConfigurationDIP-switches

And in case You C3 DIP means S3, than you should not see any Xilinx FPGA on Vivado HW Manager.

Can you also try out the Hello TE0821 app which is included in the prebuilt folder. --> It prints Hello TE0821 in endless loop

br
John


 

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #23 on: December 18, 2020, 07:43:21 PM »
Yes I use carrier TE0701. I did mistake C3 is S3
I put in SD   -  \TE0821-test_board-vivado_2019.2-build_15_20201006103533\test_board\prebuilt\boot_images\3eg_1e_2gb\hello_te0821BOOT.bin

When powering up the board:
on board TE0701: LED B6 is on RED and LED22 on GREEN
sometimes LED D1 blinks RED (period 0.7-0.8s)
on board TE0821 LED D2 on

I do not can connect to srial port

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #24 on: December 18, 2020, 07:46:52 PM »
I remember one moment. Before I will try use petalinux I updated TE0701 CPLD Firmware. I use manual (https://wiki.trenz-electronic.de/display/PD/TE0701+CPLD+Firmware). I use SC-PGM-TE701-06_CC701-05_20161122.zip and Lattice Diamond Programmer.
It proces was sucsesfully.

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #25 on: December 18, 2020, 07:50:35 PM »
In Vivado HW Manager I see Core Temp 53.5 C

volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #26 on: December 28, 2020, 04:27:32 PM »
some update.
I bought a new carrier board TE0701 and a new FPGA board TE0821.
I installed TE0821 in the connector TE0701. I haven't done any other action yet.
I am looking at TE0821 Test Board manual:

... Usage
1. Prepare HW like described on section Programming - I did this early. I put on SD prebuilt boot.bin and image.ub.
2. Connect UART USB (most cases same as JTAG) - I right understand I will need set S3-3 OFF?
3. Select SD Card or QSPI as Boot Mode (Depends on used programming variant) - I read datashite of TE0701. - it says that when the SD card is installed in the slot, the Boot Mode is automatically turned on. do I right understand?
4. Power On PCB I will use external power suplay 12V and 2.5A.

Please give me advice. If I do the steps as I described above it should work. or I need to do some additional steps. for example, update some switches or something else. I would really appreciate any help with this issue.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #27 on: January 06, 2021, 07:33:27 AM »
Hi,
sorry for delay I was on vacation.

I've still problems with your description of the module behaviour.
You wrote
Quote
on board TE0701: LED B6 is on RED and LED22 on GREEN
but I don't now which LED you mean. There are 8 LEDs next to the micro USB for JTAG/UART.
--> https://wiki.trenz-electronic.de/display/PD/TE0701+TRM#TE0701TRM-On-boardLEDs
--> https://wiki.trenz-electronic.de/display/PD/TE0701+CPLD#TE0701CPLD-LED

What did you mean with LED B6?   
LED22 means LED D22 or?  This is a power LED for 3.3VIN of the module.

Quote
Connect UART USB (most cases same as JTAG) - I right understand I will need set S3-3 OFF?
S3-3 is a multiplexer for the JTAG chain.
--> with S3-3 ON, you should see Xilinx ARM+FPGA on vivado HW Manager
--> with S3-3 OFF, you should see unknown device on Vivado HW Manager (it's the CPLD of the carrier)

This has nothing todo with UART

on one of your first post your wrote
Quote
C3-3 OFF
--> where you write C was a typo, but you also send me a picture of the Vivado HW Manager with Xilinx FPGA visible, which was programmed.
This should be not possible in this combination!

Boot mode is set via CD Pin of the SD card with default firmware.
So please do following:


br
John
 




volod

  • Active Member
  • *
  • Posts: 11
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #28 on: January 13, 2021, 01:48:32 AM »
thank you very much for your help. everything is working. I receive messages from the pcb.
I also tried running PetaLinux. I got access to the console.

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1561
Re: Boot from SD on TE0820 (carrier board TE0705)
« Reply #29 on: January 13, 2021, 06:52:47 AM »
Good to hear that it works now.

br
John