Page History
...
...
...
...
Boot Method Precedence
...
Using the boot.src method
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Note: The alias name ${devnum} used so far does not work in all variants tested as described in the following chapter "Tested boot combinations with example boot script file for TE0715", therefore the mmc boot_targets were split up
Please remember that the boot.script file needs to be converted back into the boot.scr file after the edits are complete
Code Block | ||||
---|---|---|---|---|
| ||||
mkimage -c none -A arm -T script -d boot.script boot.scr
|
Tested Boot combinations with example boot script file for TE0715
Set Boot Mode is SD-Boot:
...
...
...
...
...
...
...
...
...
...
...
...
...
Set Boot Mode is QSPI-Boot:
...
'--
...
BOOT.bin^2
zynq_fsbl_flash
...
image.ub
boot.scr
...
BOOT.bin^1
zynq_fsbl_flash
...
BOOT.bin^1
image.ub
...
BOOT.bin^3
zynq_fsbl_flash
...
BOOT.bin^1 (for SD Card or qspi flash):
...
BOOT.bin^2 (for qspi flash):
...
...
BOOT.bin^3 (for qspi flash):
- fsbl.elf
- test_board.bit
- u-boot.elf
- boot.scr
Booting from QSPI
...
- Connect JTAG and power on carrier with module (boot mode set to SD boot and no SD card is inserted)
- Open Vivado Project with "vivado_open_existing_project_guimode.cmd" or if not created, create with "vivado_create_project_guimode.cmd"
- Type on Vivado TCL Console: TE::pr_program_flash -swapp u-boot
Note: To program with SDK/Vivado GUI, use special FSBL (zynq_fsbl_flash) on setup
optional "TE::pr_program_flash -swapp hello_te0715" possible - Copy boot.scr and image.ub on SD-Card
- use files from (<project folder>/_binaries_<Article Name>)/boot_linux from generated binary folder,see: Get prebuilt boot binaries
- or use prebuilt file location, see <design_name>/prebuilt/readme_file_location.txt
- Set boot mode to QSPI-Boot mode and insert SD card.
- Depends on Carrier, see carrier TRM.
Option 2 (Boot.bin with image.ub and boot.scr on QSPI Flash):
- Connect JTAG and power on carrier with module (boot mode set to SD boot and no SD card is inserted)
- Open Vivado Project with "vivado_open_existing_project_guimode.cmd" or if not created, create with "vivado_create_project_guimode.cmd"
- Type on Vivado TCL Console: TE::pr_program_flash -swapp u-boot
Note: To program with SDK/Vivado GUI, use special FSBL (zynq_fsbl_flash) on setup
optional "TE::pr_program_flash -swapp hello_te0715" possible - Set boot mode to QSPI-Boot mode and start the board.
- Depends on Carrier, see carrier TRM.
Note: When booting from a QSPI device, care must be taken to maintain a very specific scheme for where files are located both in the nonvolatile flash device as well as where they are loaded into DDR prior to hand-off to the robust operating system.
...
0x10000000
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
scriptaddr=0x3000000
script_offset_f=fc0000
script_size_f=0x40000
bootcmd_qspi=sf probe 0 0 0 && sf read ${scriptaddr} ${script_offset_f} ${script_size_f} && echo QSPI: Trying to boot script at ${scriptaddr} && source ${scriptaddr}; echo QSPI: SCRIPT FAILED: continuing...;
|
Booting from SD
- Copy image.ub, boot.scr and Boot.bin on SD-Card.
- use files from (<project folder>/_binaries_<Article Name>)/boot_linux from generated binary folder,see: Get prebuilt boot binaries
- or use prebuilt file location, see <design_name>/prebuilt/readme_file_location.txt
- Set Boot Mode to SD-Boot.
- Depends on Carrier, see carrier TRM.
- Insert SD-Card in SD-Slot.
...
0x10000000
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
bootcmd_mmc0=devnum=0; run mmc_boot
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
|
Code Snippets for Boot.scr file
...
title | boot.scr and image.ub on sd card |
---|
...
language | bash |
---|---|
theme | Midnight |
title | image.ub on sd card |
...
...
...
...
...
...
...
...
title | boot.scr and image.ub on sd card or usb |
---|
...
...
...
...
...
...
...
...
...
Expand | ||
---|---|---|
| ||
Expand | ||
---|---|---|
| ||
...
title | boot.scr and image.ub on usb0 |
---|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
if test "${boot_target}" = "usb0"; then
echo [TE_BOOT-40] Try to use: image.ub from ${boot_target};
usb start
#fatload ${devtype} 0:${distro_bootpart} ${imageub_addr} image.ub;
fatload usb 0:1 ${imageub_addr} image.ub;
bootm ${imageub_addr};
fi
|
boot.scr and image.ub on mmc0
...
language | bash |
---|---|
theme | Midnight |
title | example boot.script file |
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...