UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor jojoman
Visitor
1,782 Views
Registered: ‎10-12-2018

[Zedboard] Unknown command booti PetaLinux

Hello all,

 Apologies in advance for the wall of text, am trying to be specific

 

I have installed petalinux, and created a project using the provided zed.bsp

petalinux-create -t project -s zed.bsp

 

then I configured it using the zed.dsa file found in the zed platform of SDSoC

petalinux-configure --get-hw-description=/opt/Xilinx/SDx/2018.2/platforms/zed/hw

 

i set "image storage media" for boot image, kernel image, and dtb image to primary sd and set Root Filesystem type to SD Card.

 

then i did petalinux-build which built with no errors (it seemed like it anyway).

then I packaged the boot.bin using

petalinux-package --boot --format BIN --fsbl ./images/linux/zynq_fsbl.elf --fpga ./hardware/avnet-digilent-zedboard-2018.2/implementation/download.bit --u-boot ./images/linux/u-boot.elf --kernel ./image/linux/image.ub

Then in the SD card i have a 1GB boot partition, which contains BOOT.BIN, image,ub, and system.dtb (the docs seem to say to only include BOOT.BIN and image.ub, but if I do that then it complains that it cannot read system.dtb)

 

on the rootfs partition I am attempting to boot into ubuntu, so I installed the archive found here: https://medium.com/developments-and-implementations-on-zynq-7000-ap/install-ubuntu-16-04-lts-on-zynq-zc702-using-petalinux-2016-4-e1da902eaff7

specifically this archive: https://rcn-ee.com/rootfs/eewiki/minfs/ubuntu-16.04.2-minimal-armhf-2017-06-18.tar.xz

 

I extract everything so onto the rootfs partition, and insert it into the zedboard, and when connected to serial this is the output i get:

 

U-Boot 2018.01 (Oct 15 2018 - 16:40:53 -0400)

Model: Zynq Zed Development Board
Board: Xilinx Zynq
Silicon: v3.1
DRAM:  ECC disabled 512 MiB
MMC:   sdhci@e0100000: 0 (SD)
** No device specified **
Using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Model: Zynq Zed Development Board
Board: Xilinx Zynq
Silicon: v3.1
Net:   ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id
eth0: ethernet@e000b000
U-BOOT for avnet-digilent-zedboard-2018_2

ethernet@e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT                                                                                                                                                              !
Hit any key to stop autoboot:  0
Device: sdhci@e0100000
Manufacturer ID: 27
OEM: 5048
Name: SD04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading image.ub
3954916 bytes read in 233 ms (16.2 MiB/s)
Device: sdhci@e0100000
Manufacturer ID: 27
OEM: 5048
Name: SD04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading system.dtb
14395 bytes read in 16 ms (877.9 KiB/s)
Unknown command 'booti' - try 'help'

Not sure what I am doing wrong as I seem to be doing everything the way the docs say to do it, specifically UG1144 & UG1157

 

also my printenv:

Zynq> printenv
arch=arm
autoload=no
baudrate=115200
board=zynq
board_name=zynq
boot_img=BOOT.BIN
bootcmd=run default_bootcmd
bootdelay=4
bootenv=uEnv.txt
clobstart=0x10000000
console=console=ttyPS0,115200
cp_dtb2ram=mmcinfo && fatload mmc ${sdbootdev}:1 ${dtbnetstart} ${dtb_img}
cp_kernel2ram=mmcinfo && fatload mmc ${sdbootdev} ${netstart} ${kernel_img}
cpu=armv7
default_bootcmd=run uenvboot; run cp_kernel2ram && run cp_dtb2ram && booti ${netstart} - ${dtbnetstart}
dfu_mmc_info=set dfu_alt_info ${kernel_image} fat 0 1\\;dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0
dfu_ram=run dfu_ram_info && dfu 0 ram 0
dfu_ram_info=setenv dfu_alt_info image.ub ram $netstart 0x1e00000
dtb_img=system.dtb
dtbnetstart=0x23fff000
ethact=ethernet@e000b000
ethaddr=00:0a:35:00:1e:53
fault=echo ${img} image size is greater than allocated place - partition ${img} is NOT UPDATED
fdtcontroladdr=1ffa78f0
fileaddr=23fff000
filesize=383b
importbootenv=echo "Importing environment from SD ..."; env import -t ${loadbootenv_addr} $filesize
install_boot=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${boot_img} ${filesize}
install_bootenv=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${bootenv_img} ${filesize}
install_dtb=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${dtb_img} ${filesize}
install_jffs2=sf probe 0 && sf erase ${jffs2start} ${jffs2size} && sf write ${clobstart} ${jffs2start} ${filesize}
install_kernel=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${kernel_img} ${filesize}
jffs2_img=rootfs.jffs2
kernel_img=image.ub
load_boot=tftpboot ${clobstart} ${boot_img}
load_dtb=tftpboot ${clobstart} ${dtb_img}
load_jffs2=tftpboot ${clobstart} ${jffs2_img}
load_kernel=tftpboot ${clobstart} ${kernel_img}
loadaddr=0x10000000
loadbootenv=load mmc $sdbootdev:$partid ${loadbootenv_addr} ${bootenv}
loadbootenv_addr=0x00100000
modeboot=sdboot
nc=setenv stdout nc;setenv stdin nc;
netboot=tftpboot ${netstart} ${kernel_img} && bootm
netstart=0x10000000
psserial0=setenv stdout ttyPS0;setenv stdin ttyPS0
sd_uEnvtxt_existence_test=test -e mmc $sdbootdev:$partid /uEnv.txt
sd_update_jffs2=echo Updating jffs2 from SD; mmcinfo && fatload mmc ${sdbootdev}:1 ${clobstart} ${jffs2_img} && run install_jffs2
sdbootdev=0
serial=setenv stdout serial;setenv stdin serial
serverip=66.151.138.245
soc=zynq
stderr=serial@e0001000
stdin=serial@e0001000
stdout=serial@e0001000
test_crc=if imi ${clobstart}; then run test_img; else echo ${img} Bad CRC - ${img} is NOT UPDATED; fi
test_img=setenv var "if test ${filesize} -gt ${psize}; then run fault; else run ${installcmd}; fi"; run var; setenv var
thor_mmc=run dfu_mmc_info && thordown 0 mmc 0
thor_ram=run dfu_ram_info && thordown 0 ram 0
uenvboot=if run sd_uEnvtxt_existence_test; then run loadbootenv; echo Loaded environment from ${bootenv}; run importbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi
update_boot=setenv img boot; setenv psize ${bootsize}; setenv installcmd "install_boot"; run load_boot ${installcmd}; setenv img; setenv psize; setenv installcmd
update_dtb=setenv img dtb; setenv psize ${dtbsize}; setenv installcmd "install_dtb"; run load_dtb ${installcmd}; setenv img; setenv psize; setenv installcmd
update_jffs2=setenv img jffs2; setenv psize ${jffs2size}; setenv installcmd "install_jffs2"; run load_jffs2 test_img; setenv img; setenv psize; setenv installcmd
update_kernel=setenv img kernel; setenv psize ${kernelsize}; setenv installcmd "install_kernel"; run load_kernel ${installcmd}; setenv img; setenv psize; setenv installcmd
vendor=xilinx

Environment size: 3657/524284 bytes
0 Kudos
8 Replies
Newbie ronif
Newbie
1,654 Views
Registered: ‎11-05-2018

Re: [Zedboard] Unknown command booti PetaLinux

Hi,

I had same problem and found solution to problem from a guide. If you are still stuck on this problem, follow this guide https://forums.xilinx.com/t5/Embedded-Linux/Migrating-from-PetaLinux-2017-4-to-2018-1-extra-hoops-to-jump/td-p/854135

See section U-Boot bug and modify platform-top.h file with given code.

platform-top.h file is located <your-project-folder>/project-spec/meta-user/recipes-bsp/u-boot/files/platform-top.h

Then you have to build PetaLinux again and repeat all steps after that (or I did, could work without repeating all steps).

I hope this helps, if your problem is still current.

0 Kudos
Explorer
Explorer
1,644 Views
Registered: ‎10-21-2015

Re: [Zedboard] Unknown command booti PetaLinux

The problem is caused by typo in default_bootcmd

booti  should be modified to bootm

default_bootcmd=run uenvboot; run cp_kernel2ram && run cp_dtb2ram && booti ${netstart} - ${dtbnetstart}

 

0 Kudos
Moderator
Moderator
1,618 Views
Registered: ‎04-24-2017

Re: [Zedboard] Unknown command booti PetaLinux

Hi @jojoman,

Simple solution to your poblem is change the rootfs type from INITRAMFS to SD since you have 2 partition one for BOOT and ROOTFS(ext4). Refer 2018.2 UG1144 page 55 and 56.

This configuration will set the right bootargs for SD ext4 partition.

$ petalinux-config -> Image Packaging Configuration -> Root filesystem type (SD card)

Also note while packaging the BOOT.bin exclude image.ub file.

$ petalinux-package --boot --format BIN --fsbl ./images/linux/zynq_fsbl.elf --fpga ./hardware/avnet-digilent-zedboard-2018.2/implementation/download.bit --u-boot ./images/linux/u-boot.elf

Note: Ubuntu root filesystem is not officially supported from Xilinx.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Visitor royhsu
Visitor
1,129 Views
Registered: ‎03-28-2019

Re: [Zedboard] Unknown command booti PetaLinux

Thanks for your share. I just got the same problem and followed what you posted and problem was fixed. 

0 Kudos
Visitor sfg193
Visitor
960 Views
Registered: ‎04-22-2018

Re: [Zedboard] Unknown command booti PetaLinux

after  run 'petalinux-config -c u-boot' 

vi project-spec/meta-plnx-generated/recipes-bsp/u-boot/configs/platform-auto.h

 

QQ截图20190525220120.png

Change the green box to 'bootm' 

 run ' petalinux-build -c u-boot' or ' petalinux-build ' rebuild uboot or rebuild all project  

0 Kudos
Highlighted
Contributor
Contributor
809 Views
Registered: ‎01-25-2018

Re: [Zedboard] Unknown command booti PetaLinux

@sandeepg 

Can you explain why 'booti' ended up there in the first place?  If it's an unknown command and it's in the release, shouldn't this be a bug?

0 Kudos
Moderator
Moderator
785 Views
Registered: ‎04-24-2017

Re: [Zedboard] Unknown command booti PetaLinux

Hi @bkzshabbaz ,

booti is only for arm64 architectures not for arm 32-bit.

I'm not sure why it is generating booti for you but I don't see that problem on zc702. Can you post your project-spec/configs/config file?

[06/26/2019 10:47:02] xcoapps62:/sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2 $ petalinux-config 
[INFO] generating Kconfig for project
                                                                                                                                                                                                                                       
[INFO] menuconfig project
/sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
/sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2/build/misc/config/Kconfig:597:warning: config symbol defined without type
configuration written to /sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2/project-spec/configs/config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
                                                                                                                                                                                                                                       
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] oldconfig rootfs
[INFO] generating petalinux-user-image.bb
[INFO] successfully configured project
[06/26/2019 10:49:19] xcoapps62:/sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2 $ cat project-spec/configs/config | grep ROOTFS_SD
CONFIG_SUBSYSTEM_ROOTFS_SD=y
[06/26/2019 10:51:23] xcoapps62:/sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2 $ cat project-spec/meta-plnx-generated/recipes-bsp/u-boot/configs/platform-auto.h
/*
 * This file is auto-generated by PetaLinux SDK 
 * DO NOT MODIFY this file, the modification will not persist
 */

#ifndef __PLNX_CONFIG_H
#define __PLNX_CONFIG_H

/* The following table includes the supported baudrates */


#define CONFIG_SYS_BAUDRATE_TABLE  { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 }



/* processor - ps7_cortexa9_0 */
#define CONFIG_CPU_FREQ_HZ      666666687
#define CONFIG_CLOCKS
#define CONFIG_ARM_DCC
#define CONFIG_SYS_LDSCRIPT     "arch/arm/mach-zynq/u-boot.lds"

/* main_memory - ps7_ddr_0 */

/* uart - ps7_uart_1 */
#define PSSERIAL0       "psserial0=setenv stdout ttyPS0;setenv stdin ttyPS0\0"
#define SERIAL_MULTI    "serial=setenv stdout serial;setenv stdin serial\0"
#define CONSOLE_ARG     "console=console=ttyPS0,115200\0"
#define SERIAL_MULTI  "serial=setenv stdout serial;setenv stdin serial\0"
#define CONFIG_BAUDRATE 115200

/* ethernet - ps7_ethernet_0 */
#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
#define CONFIG_PHY_XILINX
#define CONFIG_MII
#define CONFIG_NET_MULTI
#define CONFIG_NETCONSOLE       1
#define CONFIG_SERVERIP 172.25.137.86
#define CONFIG_IPADDR

/* spi_flash - ps7_qspi_0 */
#define XILINX_PS7_QSPI_CLK_FREQ_HZ     200000000
#define CONFIG_SF_DEFAULT_SPEED (XILINX_PS7_QSPI_CLK_FREQ_HZ / 4)

/* sdio - ps7_sd_0 */
#define CONFIG_SUPPORT_VFAT
#define CONFIG_ZYNQ_SDHCI_MAX_FREQ  52000000

/* i2c - ps7_i2c_0 */
#define CONFIG_ZYNQ_I2C0
#define CONFIG_SYS_I2C_ZYNQ
#define CONFIG_SYS_I2C
#define CONFIG_SYS_I2C_ZYNQ_SLAVE       0
#define CONFIG_SYS_I2C_ZYNQ_SPEED 100000

/* usb - ps7_usb_0 */
#define CONFIG_EHCI_IS_TDI
#define CONFIG_USB_CABLE_CHECK
#define CONFIG_USB_FUNCTION_THOR
#define CONFIG_THOR_RESET_OFF
#define CONFIG_SUPPORT_VFAT
#define CONFIG_SYS_DFU_DATA_BUF_SIZE 0x600000
#define DFU_DEFAULT_POLL_TIMEOUT 300

/* devcfg - ps7_dev_cfg_0 */
#define CONFIG_FPGA_ZYNQPL

/* ps7_scutimer_0 */
#define ZYNQ_SCUTIMER_BASEADDR  0xF8F00600
#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMERBASE    ZYNQ_SCUTIMER_BASEADDR
#define CONFIG_SYS_TIMER_COUNTER        (CONFIG_SYS_TIMERBASE + 0x4)

/* FPGA */

/* Memory testing handling */
#define CONFIG_SYS_MEMTEST_START        0x0
#define CONFIG_SYS_MEMTEST_END  (0x0 + 0x1000)
#define CONFIG_SYS_LOAD_ADDR    0x0 /* default load address */
#define CONFIG_NR_DRAM_BANKS    1

/* Size of malloc() pool */
#define SIZE    0xC00000
#define CONFIG_SYS_MALLOC_LEN   SIZE

/* Physical Memory Map */
#define CONFIG_SYS_INIT_RAM_ADDR        0xFFFF0000
#define CONFIG_SYS_INIT_RAM_SIZE        0x2000
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ 
                                CONFIG_SYS_INIT_RAM_SIZE - \ 
                                GENERATED_GBL_DATA_SIZE)


/* BOOTP options */
#define CONFIG_BOOTP_SERVERIP
#define CONFIG_BOOTP_BOOTFILESIZE
#define CONFIG_BOOTP_BOOTPATH
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_HOSTNAME
#define CONFIG_BOOTP_MAY_FAIL
#define CONFIG_BOOTP_DNS
#define CONFIG_BOOTP_SUBNETMASK
#define CONFIG_BOOTP_PXE

/*Command line configuration.*/
#define CONFIG_CMDLINE_EDITING
#define CONFIG_AUTO_COMPLETE

/* Miscellaneous configurable options */
#define CONFIG_SYS_CBSIZE       2048/* Console I/O Buffer Size      */
#define CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE

/* Use the HUSH parser */
#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "

#define CONFIG_ENV_VARS_UBOOT_CONFIG
#define CONFIG_ENV_OVERWRITE    /* Allow to overwrite the u-boot environment variables */

#define CONFIG_LMB

/* FDT support */
#define CONFIG_DISPLAY_BOARDINFO_LATE


/* architecture dependent code */
#define CONFIG_SYS_HZ   1000

/* Boot Argument Buffer Size */
#define CONFIG_SYS_MAXARGS      32      /* max number of command args */
#define CONFIG_SYS_LONGHELP


#undef CONFIG_BOOTM_NETBSD

/* Initial memory map for Linux */
#define CONFIG_SYS_BOOTMAPSZ 0x08000000

/* Environment settings*/
#define CONFIG_ENV_SPI_MAX_HZ   30000000
#define CONFIG_ENV_OFFSET       0x500000
#define CONFIG_ENV_SIZE 0x20000
#define CONFIG_ENV_SECT_SIZE    0x20000

/* PREBOOT */
#define CONFIG_PREBOOT  "echo U-BOOT for xilinx-zc702-2018_2;setenv preboot; echo; dhcp"

/* Extra U-Boot Env settings */
#define CONFIG_EXTRA_ENV_SETTINGS \
        SERIAL_MULTI \ 
        CONSOLE_ARG \ 
        DFU_ALT_INFO_RAM \ 
        DFU_ALT_INFO_MMC \ 
        PSSERIAL0 \ 
        "nc=setenv stdout nc;setenv stdin nc;\0" \ 
        "ethaddr=00:0a:35:00:1e:53\0" \
        "bootenv=uEnv.txt\0" \ 
        "importbootenv=echo \"Importing environment from SD ...\"; " \ 
                "env import -t ${loadbootenv_addr} $filesize\0" \ 
        "loadbootenv=load mmc $sdbootdev:$partid ${loadbootenv_addr} ${bootenv}\0" \ 
        "sd_uEnvtxt_existence_test=test -e mmc $sdbootdev:$partid /uEnv.txt\0" \ 
        "uenvboot=" \ 
                "if run sd_uEnvtxt_existence_test; then " \ 
                        "run loadbootenv; " \ 
                        "echo Loaded environment from ${bootenv}; " \ 
                        "run importbootenv; " \ 
                        "fi; " \ 
                "if test -n $uenvcmd; then " \ 
                        "echo Running uenvcmd ...; " \ 
                        "run uenvcmd; " \ 
                "fi\0" \ 
        "autoload=no\0" \ 
        "sdbootdev=0\0" \ 
        "clobstart=0x10000000\0" \ 
        "netstart=0x10000000\0" \ 
        "dtbnetstart=0x23fff000\0" \ 
        "loadaddr=0x10000000\0" \ 
        "boot_img=BOOT.BIN\0" \ 
        "load_boot=tftpboot ${clobstart} ${boot_img}\0" \ 
        "update_boot=setenv img boot; setenv psize ${bootsize}; setenv installcmd \"install_boot\"; run load_boot ${installcmd}; setenv img; setenv psize; setenv installcmd\0" \ 
        "install_boot=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${boot_img} ${filesize}\0" \ 
        "bootenvsize=0x20000\0" \ 
        "bootenvstart=0x500000\0" \ 
        "eraseenv=sf probe 0 && sf erase ${bootenvstart} ${bootenvsize}\0" \ 
        "jffs2_img=rootfs.jffs2\0" \ 
        "load_jffs2=tftpboot ${clobstart} ${jffs2_img}\0" \ 
        "update_jffs2=setenv img jffs2; setenv psize ${jffs2size}; setenv installcmd \"install_jffs2\"; run load_jffs2 test_img; setenv img; setenv psize; setenv installcmd\0" \ 
        "sd_update_jffs2=echo Updating jffs2 from SD; mmcinfo && fatload mmc ${sdbootdev}:1 ${clobstart} ${jffs2_img} && run install_jffs2\0" \ 
        "install_jffs2=sf probe 0 && sf erase ${jffs2start} ${jffs2size} && " \ 
                "sf write ${clobstart} ${jffs2start} ${filesize}\0" \ 
        "kernel_img=image.ub\0" \ 
        "load_kernel=tftpboot ${clobstart} ${kernel_img}\0" \ 
        "update_kernel=setenv img kernel; setenv psize ${kernelsize}; setenv installcmd \"install_kernel\"; run load_kernel ${installcmd}; setenv img; setenv psize; setenv installcmd\0" \ 
        "install_kernel=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${kernel_img} ${filesize}\0" \ 
        "cp_kernel2ram=mmcinfo && fatload mmc ${sdbootdev} ${netstart} ${kernel_img}\0" \ 
        "dtb_img=system.dtb\0" \ 
        "load_dtb=tftpboot ${clobstart} ${dtb_img}\0" \ 
        "update_dtb=setenv img dtb; setenv psize ${dtbsize}; setenv installcmd \"install_dtb\"; run load_dtb test_img; setenv img; setenv psize; setenv installcmd\0" \ 
        "sd_update_dtb=echo Updating dtb from SD; mmcinfo && fatload mmc ${sdbootdev}:1 ${clobstart} ${dtb_img} && run install_dtb\0" \ 
        "loadbootenv_addr=0x00100000\0" \ 
        "fault=echo ${img} image size is greater than allocated place - partition ${img} is NOT UPDATED\0" \ 
        "test_crc=if imi ${clobstart}; then run test_img; else echo ${img} Bad CRC - ${img} is NOT UPDATED; fi\0" \ 
        "test_img=setenv var \"if test ${filesize} -gt ${psize}\\; then run fault\\; else run ${installcmd}\\; fi\"; run var; setenv var\0" \ 
        "netboot=tftpboot ${netstart} ${kernel_img} && bootm\0" \ 
        "default_bootcmd=run uenvboot; run cp_kernel2ram && bootm ${netstart}\0" \ 
""

/* BOOTCOMMAND */
#define CONFIG_BOOTCOMMAND      "run default_bootcmd"

#endif /* __PLNX_CONFIG_H */
[06/26/2019 10:51:39] xcoapps62:/sandeepg/plnx-workspace/2018.2/xilinx-zc702-2018.2 $
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
491 Views
Registered: ‎01-25-2018

Re: [Zedboard] Unknown command booti PetaLinux

Sorry, @sandeepg for the late reply.

Here's my project-spec/configs/config (I'm targeting the ZC706):

#
# Automatically generated file; DO NOT EDIT.
# misc/config System Configuration
#
CONFIG_SUBSYSTEM_TYPE_LINUX=y
CONFIG_SYSTEM_ZYNQ=y

#
# Linux Components Selection
#
CONFIG_SUBSYSTEM_COMPONENT_DEVICE__TREE_NAME_DEVICE__TREE__GENERATOR=y
CONFIG_SUBSYSTEM_COMPONENT_BOOTLOADER_AUTO_FSBL=y
CONFIG_SUBSYSTEM_COMPONENT_BOOTLOADER_NAME_ZYNQ_FSBL=y
CONFIG_SUBSYSTEM_COMPONENT_BOOTLOADER_AUTO_PS_INIT=y
CONFIG_SUBSYSTEM_COMPONENT_U__BOOT_NAME_U__BOOT__XLNX=y
# CONFIG_SUBSYSTEM_COMPONENT_U__BOOT_NAME_REMOTE is not set
# CONFIG_SUBSYSTEM_COMPONENT_U__BOOT_NAME_EXT__LOCAL__SRC is not set
CONFIG_SUBSYSTEM_COMPONENT_LINUX__KERNEL_NAME_LINUX__XLNX=y
# CONFIG_SUBSYSTEM_COMPONENT_LINUX__KERNEL_NAME_REMOTE is not set
# CONFIG_SUBSYSTEM_COMPONENT_LINUX__KERNEL_NAME_EXT__LOCAL__SRC is not set

#
# Auto Config Settings
#
CONFIG_SUBSYSTEM_AUTOCONFIG_FSBL=y
CONFIG_SUBSYSTEM_AUTOCONFIG_DEVICE__TREE=y
# CONFIG_SUBSYSTEM_DEVICE_TREE_MANUAL_INCLUDE is not set
CONFIG_SUBSYSTEM_DEVICE_TREE_INCLUDE_DIR="${STAGING_KERNEL_DIR}/include"
CONFIG_SUBSYSTEM_AUTOCONFIG_KERNEL=y
CONFIG_SUBSYSTEM_AUTOCONFIG_U__BOOT=y
CONFIG_SUBSYSTEM_HARDWARE_AUTO=y
CONFIG_SUBSYSTEM_PROCESSOR0_IP_NAME="ps7_cortexa9_0"
CONFIG_SUBSYSTEM_PROCESSOR_PS7_CORTEXA9_0_SELECT=y
CONFIG_SUBSYSTEM_ARCH_ARM=y

#
# Memory Settings
#
CONFIG_SUBSYSTEM_MEMORY_PS7_DDR_0_BANKLESS_SELECT=y
# CONFIG_SUBSYSTEM_MEMORY_SIMPLE_SELECT is not set
# CONFIG_SUBSYSTEM_MEMORY_MANUAL_SELECT is not set
CONFIG_SUBSYSTEM_MEMORY_PS7_DDR_0_BANKLESS_BASEADDR=0x0
CONFIG_SUBSYSTEM_MEMORY_PS7_DDR_0_BANKLESS_SIZE=0x40000000
CONFIG_SUBSYSTEM_MEMORY_PS7_DDR_0_BANKLESS_KERNEL_BASEADDR=0x0
CONFIG_SUBSYSTEM_MEMORY_PS7_DDR_0_BANKLESS_U__BOOT_TEXTBASE_OFFSET=0x400000
CONFIG_SUBSYSTEM_MEMORY_IP_NAME="ps7_ddr_0"

#
# Serial Settings
#
CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_SELECT=y
# CONFIG_SUBSYSTEM_SERIAL_MANUAL_SELECT is not set
# CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_600 is not set
# CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_9600 is not set
# CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_28800 is not set
CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_115200=y
# CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_230400 is not set
# CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_460800 is not set
# CONFIG_SUBSYSTEM_SERIAL_PS7_UART_1_BAUDRATE_921600 is not set
CONFIG_SUBSYSTEM_SERIAL_IP_NAME="ps7_uart_1"

#
# Ethernet Settings
#
CONFIG_SUBSYSTEM_ETHERNET_PS7_ETHERNET_0_SELECT=y
# CONFIG_SUBSYSTEM_ETHERNET_MANUAL_SELECT is not set
# CONFIG_SUBSYSTEM_ETHERNET_PS7_ETHERNET_0_MAC_AUTO is not set
CONFIG_SUBSYSTEM_ETHERNET_PS7_ETHERNET_0_MAC="00:0a:35:00:1e:53"
CONFIG_SUBSYSTEM_ETHERNET_PS7_ETHERNET_0_USE_DHCP=y

#
# Flash Settings
#
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_SELECT=y
# CONFIG_SUBSYSTEM_FLASH_MANUAL_SELECT is not set
# CONFIG_SUBSYSTEM_FLASH__ADVANCED_AUTOCONFIG is not set

#
# partition 0
#
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART0_NAME="boot"
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART0_SIZE=0x500000

#
# partition 1
#
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART1_NAME="bootenv"
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART1_SIZE=0x20000

#
# partition 2
#
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART2_NAME="kernel"
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART2_SIZE=0xA80000

#
# partition 3
#
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART3_NAME="spare"
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART3_SIZE=0x0

#
# partition 4
#
CONFIG_SUBSYSTEM_FLASH_PS7_QSPI_0_BANKLESS_PART4_NAME=""
CONFIG_SUBSYSTEM_FLASH_IP_NAME="ps7_qspi_0"

#
# SD/SDIO Settings
#
CONFIG_SUBSYSTEM_PRIMARY_SD_PS7_SD_0_SELECT=y
# CONFIG_SUBSYSTEM_PRIMARY_SD_MANUAL_SELECT is not set
CONFIG_SUBSYSTEM_SD_PS7_SD_0_SELECT=y

#
# RTC Settings
#
CONFIG_SUBSYSTEM_RTC_MANUAL_SELECT=y
CONFIG_SUBSYSTEM_I2C_PS7_I2C_0_SELECT=y
CONFIG_SUBSYSTEM_USB_PS7_USB_0_SELECT=y
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG=y

#
# boot image settings
#
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOT_MEDIA_FLASH_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOT_MEDIA_SD_SELECT=y
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOT_MEDIA_MANUAL_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOT_IMAGE_NAME="BOOT.BIN"

#
# u-boot env partition settings
#
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOTENV_MEDIA_FLASH_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOTENV_MEDIA_SD_SELECT=y
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_BOOTENV_MEDIA_MANUAL_SELECT is not set

#
# kernel image settings
#
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_KERNEL_MEDIA_FLASH_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_KERNEL_MEDIA_SD_SELECT=y
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_KERNEL_MEDIA_ETHERNET_SELECT is not set
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_KERNEL_MEDIA_MANUAL_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_KERNEL_IMAGE_NAME="image.ub"

#
# jffs2 rootfs image settings
#
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_JFFS2_MEDIA_FLASH_SELECT=y
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_JFFS2_MEDIA_MANUAL_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_JFFS2_PART_NAME="jffs2"
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_JFFS2_IMAGE_NAME="rootfs.jffs2"

#
# dtb image settings
#
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_DTB_MEDIA_BOOTIMAGE_SELECT is not set
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_DTB_MEDIA_FLASH_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_DTB_MEDIA_SD_SELECT=y
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_DTB_MEDIA_ETHERNET_SELECT is not set
# CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_DTB_MEDIA_MANUAL_SELECT is not set
CONFIG_SUBSYSTEM_IMAGES_ADVANCED_AUTOCONFIG_DTB_IMAGE_NAME="system.dtb"
CONFIG_SUBSYSTEM_ENDIAN_LITTLE=y

#
# DTG Settings
#
CONFIG_SUBSYSTEM_MACHINE_NAME="template"

#
# Kernel Bootargs
#
CONFIG_SUBSYSTEM_BOOTARGS_AUTO=y
CONFIG_SUBSYSTEM_BOOTARGS_EARLYPRINTK=y

CONFIG_SUBSYSTEM_DEVICETREE_FLAGS=""
# CONFIG_SUBSYSTEM_DTB_OVERLAY is not set
# CONFIG_SUBSYSTEM_REMOVE_PL_DTB is not set

#
# u-boot Configuration
#
CONFIG_SUBSYSTEM_UBOOT_CONFIG_PETALINUX=y
# CONFIG_SUBSYSTEM_UBOOT_CONFIG_OTHER is not set
CONFIG_SUBSYSTEM_UBOOT_CONFIG_TARGET="zynq_zc702_config"
CONFIG_SUBSYSTEM_NETBOOT_OFFSET=0x10000000
CONFIG_SUBSYSTEM_U__BOOT_TFTPSERVER_IP="AUTO"

#
# Image Packaging Configuration
#
# CONFIG_SUBSYSTEM_ROOTFS_INITRAMFS is not set
# CONFIG_SUBSYSTEM_ROOTFS_INITRD is not set
# CONFIG_SUBSYSTEM_ROOTFS_JFFS2 is not set
# CONFIG_SUBSYSTEM_ROOTFS_NFS is not set
CONFIG_SUBSYSTEM_ROOTFS_SD=y
# CONFIG_SUBSYSTEM_ROOTFS_OTHER is not set
CONFIG_SUBSYSTEM_SDROOT_DEV="/dev/mmcblk0p2"
CONFIG_SUBSYSTEM_UIMAGE_NAME="image.ub"
CONFIG_SUBSYSTEM_DTB_PADDING_SIZE=0x1000
# CONFIG_SUBSYSTEM_COPY_TO_TFTPBOOT is not set

#
# Firmware Version Configuration
#
CONFIG_SUBSYSTEM_HOSTNAME="zc706"
CONFIG_SUBSYSTEM_PRODUCT="zc706"
CONFIG_SUBSYSTEM_FW_VERSION="1.00"

#
# Yocto Settings
#
CONFIG_YOCTO_MACHINE_NAME="plnx-zynq7"

#
# TMPDIR Location
#
CONFIG_TMP_DIR_LOCATION="${PROOT}/build/tmp"

#
# Parallel thread execution
#
CONFIG_YOCTO_BB_NUMBER_THREADS=""
CONFIG_YOCTO_PARALLEL_MAKE=""

#
# Add pre-mirror url 
#
CONFIG_PRE_MIRROR_URL="http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER}/downloads"

#
# Local sstate feeds settings
#

#
# Default sstate feeds ${PETALINUX}/components/yocto always added
#
CONFIG_YOCTO_LOCAL_SSTATE_FEEDS_URL=""
# CONFIG_YOCTO_ENABLE_DEBUG_TWEAKS is not set
CONFIG_YOCTO_NETWORK_SSTATE_FEEDS=y

#
# Network sstate feeds URL
#
CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/rel-v${PETALINUX_VER}/arm/sstate-cache"
# CONFIG_YOCTO_BB_NO_NETWORK is not set

#
# User Layers
#
CONFIG_USER_LAYER_0="/home/sl31870/projects/meta-adi/meta-adi-core"
CONFIG_USER_LAYER_1="/home/sl31870/projects/meta-adi/meta-adi-xilinx"
CONFIG_USER_LAYER_2=""
CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait" 

 

0 Kudos