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-1CFA on TE0703-06 carrier SD boot hangs

Started by dyne21, April 26, 2023, 12:37:55 PM

Previous topic - Next topic

dyne21

Hello,

The SD boot images were built and tried as below. SD boot doesn't show any progress on the terminal.
Btw, the prebuilt boot_images under "1cf_1gb/hello_te0720" prints "Hello Trenz Module(TE0720)" on the terminal.
The other prebuilt boot_images under "1cf_1gb/u-boot" doesn't print anything on the terminal.

Thanks,
Jeff

•   Bring up TE0720-03-1CFA (carrier board: TE0703-06)
o   Host Computer OS: Ubuntu 20.04
o   Vivado installed: 2021.2
o   Petalinux installed: 2021.2
   A project was created for zynq type.
o   Board files installed: TE0720-test_board-vivado_2021.2-build_11_20220202131818
   Script "_create_linux_setup.sh" selected ID 6 for TE0720-03-1CFA project in Vivado
   The XSA file was generated with the Vivado project
o   Petalinux was configured with the XSA file.
   The project was built and packaged to BOOT.bin
•   petalinux-package --boot --force --fsbl images/linux/u-boot.elf --fpga images/linux/system.bit --kernel images/linux/image.ub --boot-script images/linux/boot.scr --boot-device sd
   image files (BOOT.BIN, image.ub, boot.scr) were copied to SD boot partition. The compressed file system was copied to SD rootfs partition.

•   SD boot doesn't show any progress on the terminal
o   SW2[1-4] = '0111' on the carrier board TE0703-06

Waldi3141

Hi dyne,

first i would recommend to get the board to boot up with the prebuilt files.
Follow this documentation -> https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board

In general, just run the setup script from the project main directory and generate the prebuilt binaries after choosing your module from the list.
The binary folder should open up with all necessary files (Boot.bin,boot.scr, image.ub ...).
Copy the files from the boot_linux folder to a formatted sd card and plug it into your carrier.
Open a terminal with baudrate 115200 and you should see the boot prints.

best regards

dyne21

Hi Waldi,

Thank you for the answer. The prebuilt image can boot the board w/o problem.
The BOOT.bin was created again with Vitis. It starts showing some messages on the terminal as below but it's the end.
I tried petalinux-build again with configuration changes as below link but I see the attached build errors. Could you help me to solve the errors?

Thanks.

https://wiki.trenz-electronic.de/display/PD/TE0720+Test+Board#TE0720TestBoard-SoftwareDesign-PetaLinux

--------------------------------------------------------------------------------
Xilinx First Stage Boot Loader (TE modified)
Release 2021.2  Apr 27 2023-08:18:58
Device IDCODE: 23727093
Device Name: 7z020 (7)
Device Revision: 2
--------------------------------------------------------------------------------
TE0720 TE_FsblHookBeforeHandoff_Custom
SoM: TE0720-03-1C  F SC REV:05
MAC: 04 91 62 F4 DC 7B
--------------------------------------------------------------------------------


Waldi3141

Hi,
did you create the Boot.bin with the tcl command "TE::sw_run_vitis -all" ? described under Design Flow, if you use the reference design.
Design Flow - step 5. -> If you use the provided petalinux template and the xsa file, you should be able to build petalinux without errors.
From there you can apply your changes to the vivado project, generate a new xsa and again import it to the petalinux project. If that fails there is probably something wrong with the vivado hardware design or you made some errors in the petalinux project.

unfortunately petalinux error messages are not always very obvious of what the actual cause of failure is ...

regarding your boot prints, its stuck before uboot starts to be executed. But since you didnt manage to successfully build linux, what files did you put on the sd card to boot?
I always recommend to go through the design flow with our provided reference design and if that works, try to apply your changes.




dyne21

Hi Waldi,

I entered "TE::sw_run_vitis -all" command on Vivado TCL window. I'm not clear about "use TE Template from "<project folder>\os\petalinux" of step 5 in design flow. How to use "TE Template" from petalinux?

Regarding the boot prints, other images except BOOT.bin were created by petalinux-build without the configuration modification.

Thanks.

Waldi3141

in the reference design - test_board folder there is a folder "os". This is pretty much a preconfigured petalinux project with all necessary settings for the design. Use it and copy the xsa file into it. run "petalinux-config --get-hw-description" and "petalinux-build".
As described in step 7. after the successful petalinux build you need to copy the stated files from the petalinux project to the prebuilt folder in the reference design and run "TE::sw_run_vitis -all" in vivado , thats what creates a new boot.bin in the prebuilt directory

dyne21

Hi,

The folder "TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/os/petalinux" doesn't include settings.sh script.
So, petalinux-* commands can't work under the folder. Can I copy the script file from another petalinux folder?

Thanks.

MA

Hi,

have you tried something like

source /tools/Xilinx/PetaLinux/2021.2/settings.sh

Best regards,
Manuela

dyne21

Hi,

I tried to use "test_board/os/petalinux" as a project folder. The "/home/ubuntu/petalinux" folder was used just as a tool for compilation.
However, I still don't see u-boot prompt. The FSBL log is the end. I wrote down all the steps below. Please help what else I have to do.

--------------------------------------------------------------------------------
Xilinx First Stage Boot Loader (TE modified)
Release 2021.2  Apr 27 2023-08:18:58
Device IDCODE: 23727093
Device Name: 7z020 (7)
Device Revision: 2
--------------------------------------------------------------------------------
TE0720 TE_FsblHookBeforeHandoff_Custom
SoM: TE0720-03-1C  F SC REV:05
MAC: 04 91 62 F4 DC 7B
--------------------------------------------------------------------------------

Thanks.

cd /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/os/petalinux/
    source /home/ubuntu/petalinux/2021.2/settings.sh
    petalinux-config --get-hw-description=/home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/vivado
    petalinux-build
    cp images/linux/u-boot.elf /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/prebuilt/os/petalinux/1GB
    cp images/linux/u-boot.dtb /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/prebuilt/os/petalinux/1GB
    cp images/linux/system.dtb /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/prebuilt/os/petalinux/1GB
    cp images/linux/image.ub  /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/prebuilt/os/petalinux/1GB
    cp images/linux/boot.scr  /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/prebuilt/os/petalinux/1GB
Vivado TCL(TE::sw_run_vitis -all)
Vitis (fsbl_flash_system created a boot image "BOOT.bin" file.)
cd /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/workspace/sdk/fsbl_flash_system/_ide/bootimage/
    cp BOOT.bin /media/ubuntu/BOOT
cd /home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/os/petalinux
    cp images/linux/image.ub /media/ubuntu/BOOT
    cp images/linux/boot.scr /media/ubuntu/BOOT
    sudo tar xvf images/linux/rootfs.tar.gz -C /media/ubuntu/rootfs


MA

Hi,

TE::sw_run_vitis -all generates the BOOT.bin file usually in folder

"<project folder>\prebuilt\boot_images\<shortname>\u-boot". In your case it should be saved somewhere called

"/home/ubuntu/TE0720-test_board-vivado_2021.2-build_11_20220202131818/test_board/prebuilt/boot_images\1cf_1gb\u-boot"

Have you checked that?

Best regards,
Manuela

dyne21

Hi,

The image under "test_board/prebuilt/boot_images/1cf_1gb/u-boot" generated by "TE::sw_run_vitis -all" works well for SD booting. I didn't have to generate it with the Vitis fsbl project.

Thanks.