cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jorisbolsens
Observer
Observer
1,185 Views
Registered: ‎10-02-2018

Pynq sdbuild make fails

Edit: I fixed these issues, see reply for new problem

I am trying to create a new sd image for the Pynq-Z1, the only change I made is I added bootargs to `system-user.dtsi`:

/include/ "system-conf.dtsi"
/ {
	amba {

		ethernet@e000b000 {
			phy-handle = <&ethernet_phy>;
			ethernet_phy: ethernet-phy@1{
				reg = <1>;
			};
		};
	};
	chosen {
		bootargs = "root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=1 uio_pdrv_genirq.of_id='generic-uio' clk_ignore_unused cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory"
	};

        usb_phy0: phy0 {
                compatible = "ulpi-phy";
                #phy-cells = <0>;
                reg = <0xe0002000 0x1000>;
                view-port = <0x170>;
                drv-vbus;
        };
};

&usb0 {
        usb-phy = <&usb_phy0>;
};

Here is the error output from make:

$ make
/opt/qemu/bin/qemu-arm-static -version | fgrep 4.0.0
qemu-arm version 4.0.0
vivado -version | fgrep 2019.1
Vivado v2019.1 (64-bit)
xsdk -version | fgrep 2019.1
****** SDK v2019.1 (64-bit)
which petalinux-config | fgrep 2019.1
/opt/petalinux-2019.1/tools/common/petalinux/bin/petalinux-config
which arm-linux-gnueabihf-gcc
/opt/tools/Xilinx/SDK/2019.1/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
which microblaze-xilinx-elf-gcc
/opt/petalinux-2019.1/tools/xsct/gnu/microblaze/lin/bin/microblaze-xilinx-elf-gcc
which ct-ng
/opt/crosstool-ng/bin/ct-ng
which python | fgrep /usr/bin/python
/usr/bin/python
sudo -n mount > /dev/null
bash /home/joris/PYNQ/sdbuild/scripts/check_env.sh
bash /home/joris/PYNQ/sdbuild/scripts/check_mounts.sh
PYNQ_BOARDNAME=Pynq-Z1 petalinux-build -c device-tree -p /home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project
[INFO] building device-tree
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake virtual/dtb
Loading cache: 100% |#############################################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:02
Loaded 3813 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:02
Parsing of 2780 .bb files complete (2778 cached, 2 parsed). 3817 targets, 191 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |########################################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:00
Checking sstate mirror object availability: 100% |################################################################################################################################################################################################################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 22 Found 2 Missed 40 Current 147 (9% match, 88% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_compile: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:devicetree_do_compile(d)
     0003:
File: '/opt/petalinux-2019.1/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compile
     0127:            if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
     0128:                continue # skip non-.dts files and non-overlay files
     0129:        except:
     0130:            continue # skip if can't determine if overlay
 *** 0131:        devicetree_compile(dtspath, includes, d)
     0132:}
     0133:
     0134:devicetree_do_install() {
     0135:    for DTB_FILE in `ls *.dtb *.dtbo`; do
File: '/opt/petalinux-2019.1/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compile
     0115:        dtcargs += ["-i", i]
     0116:    dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]
     0117:    dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]
     0118:    bb.note("Running {0}".format(" ".join(dtcargs)))
 *** 0119:    subprocess.run(dtcargs, check = True)
     0120:
     0121:python devicetree_do_compile() {
     0122:    includes = expand_includes("DT_INCLUDE", d)
     0123:    listpath = d.getVar("DT_FILES_PATH")
File: '/usr/lib/python3.6/subprocess.py', lineno: 438, function: run
     0434:            raise
     0435:        retcode = process.poll()
     0436:        if check and retcode:
     0437:            raise CalledProcessError(retcode, process.args,
 *** 0438:                                     output=stdout, stderr=stderr)
     0439:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0440:
     0441:
     0442:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8', '-b', '0', '-@', '-p', '0x1000', '-i', '/home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project/build/tmp/work-shared/plnx-zynq7/kernel-source/include', '-i', '/home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0', '-i', '/home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project/build/../components/plnx_workspace/device-tree/device-tree', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 1.

ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_compile: Function failed: devicetree_do_compile
ERROR: Logfile of failure stored in: /home/joris/PYNQ/sdbuild/build/Pynq-Z1/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_compile.31124
ERROR: Task (/opt/petalinux-2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'

 

0 Kudos
3 Replies
jorisbolsens
Observer
Observer
1,179 Views
Registered: ‎10-02-2018

if there is some easier way to add bootargs that would be appreciated as well

0 Kudos
jorisbolsens
Observer
Observer
1,149 Views
Registered: ‎10-02-2018

I fixed the above errors, now multistrap is giving me issues:

 

+ multistrap_conf=/home/joris/PYNQ/sdbuild/ubuntu/bionic/arm/multistrap.config
+ '[' -n '' ']'
+ sudo -E multistrap -f /home/joris/PYNQ/sdbuild/ubuntu/bionic/arm/multistrap.config -d /home/joris/PYNQ/sdbuild/build/bionic.arm --no-auth
multistrap 2.2.9 using /home/joris/PYNQ/sdbuild/ubuntu/bionic/arm/multistrap.config
multistrap 2.2.9 using /home/joris/PYNQ/sdbuild/ubuntu/bionic/arm/multistrap.config
Using foreign architecture: armhf
multistrap building armhf multistrap on 'amd64'
I: Setting /home/joris/PYNQ/sdbuild/build/bionic.arm/lib64 -> /home/joris/PYNQ/sdbuild/build/bionic.arm/lib symbolic link.
Getting package lists: APT_CONFIG=/tmp/multistrap.JDfpxP apt-get  -o Apt::Architecture=armhf -o Dir::Etc::TrustedParts=/home/joris/PYNQ/sdbuild/build/bionic.arm/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/home/joris/PYNQ/sdbuild/build/bionic.arm/etc/apt/trusted.gpg -o Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o Dir=/home/joris/PYNQ/sdbuild/build/bionic.arm/ -o Dir::Etc=/home/joris/PYNQ/sdbuild/build/bionic.arm/etc/apt/ -o Dir::Etc::Parts=/home/joris/PYNQ/sdbuild/build/bionic.arm/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/home/joris/PYNQ/sdbuild/build/bionic.arm/etc/apt/preferences.d/ -o APT::Default-Release='*' -o Dir::State=/home/joris/PYNQ/sdbuild/build/bionic.arm/var/lib/apt/ -o Dir::State::Status=/home/joris/PYNQ/sdbuild/build/bionic.arm/var/lib/dpkg/status -o Dir::Cache=/home/joris/PYNQ/sdbuild/build/bionic.arm/var/cache/apt/ update
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease [242 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
W: Download is performed unsandboxed as root as file '/home/joris/PYNQ/sdbuild/build/bionic.arm/var/lib/apt/lists/partial/ports.ubuntu.com_ubuntu-ports_dists_bionic_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
apt update failed. Exit value: 100
Makefile:325: recipe for target '/home/joris/PYNQ/sdbuild/build/bionic.arm.stage1.img' failed
make: *** [/home/joris/PYNQ/sdbuild/build/bionic.arm.stage1.img] Error 25

I've already tried specifying `keyring=ubuntu-keyring` and `noauth=true` in multistrap conf, but it seems to have no effect.

0 Kudos
jovitac
Moderator
Moderator
1,038 Views
Registered: ‎05-10-2017

You haven't terminated the bootargs with a semicolon. I think that's the issue

 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos