Jump to content

joniengr081

Members
  • Posts

    24
  • Joined

  • Last visited

Posts posted by joniengr081

  1. Hi,

    Petalinux is running on ZYBO Z7-20. How to find the attached Flash USB drive ? I don't see USB Flash drive in /dev folder. The jumper JP2 USB Host is short on ZYBO Z7-20.

    The following steps have been taken in to account.

    1-     Created hardware project in Vivado 2021.1

    2-     Added ZYBO Z7-20 board

    3-     Added ZYNQ PS in Block Diagram

    4-     Apply board pre-set and run block automation

    5-     Validate design, Generated output products, HDL wrapper

    6-     Synthesis, Implementation, Generate bit stream

    7-     Export project with XSA file

    8-     Created Petalinux project with template command and set variable OE_TERMINAL = "xterm" in <plnx-proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf 

    9- Manually edited system-user.dtsi

     

    /include/ "system-conf.dtsi"
    / {
     
    	model = "Zynq Zybo Z7 Development Board";
    	compatible = "digilent,zynq-zyboz7", "xlnx,zynq-7000";
     
    	chosen {
    		bootargs = "console=ttyPS0,115200 earlyprintk uio_pdrv_genirq.of_id=generic-uio";
    	};
     
    	usb_phy0: usb_phy@0 {
    		compatible = "ulpi-phy";
    		#phy-cells = <0>;
    		reg = <0xe0002000 0x1000>;
    		view-port = <0x0170>;
    		drv-vbus;
    	};
     
     
    };
     
    &gem0 {
    	phy-handle = <&ethernet_phy>;
    /*	phy-reset-gpio = <&axi_gpio_eth 0 0>;
    	phy-reset-active-low;	
    	phy-reset-duration = <10>; */
    	ethernet_phy: ethernet-phy@1 { /* rtl8211e-vl */
    		reg = <1>;
    		device_type = "ethernet-phy";
    	};
    };
     
    &usb0 {	
    	dr_mode = "host";
    	usb-phy = <&usb_phy0>;
    };
    &sdhci0 {
    	u-boot,dm-pre-reloc;
    };
    &uart1 {
    	u-boot,dm-pre-reloc;
    };
     
    &qspi {
    	u-boot,dm-pre-reloc;
    };
    &flash0 {
    	compatible = "micron,m25p80", "s25fl128s", "spi-flash";
    };

    Petalinux commands

    petalinux-create --type project --template zynq --name zynq_hello
    petalinux-config --get-hw-description ../zynq_hw 
    petalinux-config -c kernel
    petalinux-build
    petalinux-boot --jtag --prebuilt 3

     

    01.jfif 02.jfif

  2. Hi, I have got the "system-user.dtsi" from the following source petalinux 2017.4 and manually updated that file in my project which I have created in petalinux 2021.1 but I am not able to run the config and build commands. 

    https://github.com/Digilent/Petalinux-Zybo-Z7-20

    Summarized steps:

    1- Create new hardware project in Vivado 2021.1

    2- Add the board ZYBO Z7-20

    3- Add ZYNQ PS in block design

    4- HDL wrapper, Synthesis, Implementation

    5- Generated bit stream and export the hardware design

    6- Launch Vitis 2021.1

    7- Created ZYNQ platform

    8- Have tested Hello Word project in serial terminal

    9- Created a new petalinux project using the following template command in petalinux 2021.1.

    10- petalinux-create --type project --template zynq --name zynq_hello_project

    11- Manually updated "system-user.dtsi" from https://github.com/Digilent/Petalinux-Zybo-Z7-20

    12- petalinux-config --get-hw-description <PATH-TO-XSA Directory>/<PATH-TOXSA>

    13- petalinux-config -c kernel

    14- exit with default settings

    15- The compilation stuck with the following errors

     

    ERROR: linux-xlnx-5.10+gitAUTOINC+c830a552a6-r0 do_menuconfig: No valid terminal found, unable to open devshell.
    Tried the following commands:
            tmux split-window -c "{cwd}" "do_terminal"
            tmux new-window -c "{cwd}" -n "linux-xlnx Configuration" "do_terminal"
            xfce4-terminal -T "linux-xlnx Configuration" -e "do_terminal"
            terminology -T="linux-xlnx Configuration" -e do_terminal
            mate-terminal --disable-factory -t "linux-xlnx Configuration" -x do_terminal
            konsole --separate --workdir . -p tabtitle="linux-xlnx Configuration" -e do_terminal
            gnome-terminal -t "linux-xlnx Configuration" -- do_terminal
            xterm -T "linux-xlnx Configuration" -e do_terminal
            rxvt -T "linux-xlnx Configuration" -e do_terminal
            tmux new -c "{cwd}" -d -s devshell -n devshell "do_terminal"
            screen -D -m -t "linux-xlnx Configuration" -S devshell do_terminal
    ERROR: Logfile of failure stored in: /scratch2/abc/Xilinx/Petalinux/Projects/zynq_hello_project/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/linux-xlnx/5.10+gitAUTOINC+c830a552a6-r0/temp/log.do_menuconfig.312023
    ERROR: Task (/scratch2/abc/Xilinx/Petalinux/Projects/zynq_hello_project/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.1.bb:do_menuconfig) failed with exit code '1'

     

     

     

×
×
  • Create New...