Thanks for the suggestions to diagnose the build and network problems with a pre-made root filesystem. Below additional info.
Kind regards,
HCAP
Below a log from following build command
make BOARDDIR=/home/xilinx/PYNQ/boards BOARDS=ZED PREBUILT=/home/xilinx/rootfs/bionic.arm.2.5.img
Here the results of the kpartx commands
rootfs image, as downloaded
sudo kpartx -av bionic.arm.2.5.img
add map loop19p1 (253:1): 0 204800 linear 7:19 2048
device-mapper: reload ioctl on loop19p2 failed: Invalid argument
create/reload failed on loop19p2
/////////////////////////////////////////////////////////////////////
kpartx for generated image
sudo kpartx ZED-2.5.img
loop18p1 : 0 204800 /dev/loop18 2048
loop18p2 : 0 14473216 /dev/loop18 206848
=> image is incomplete, no boot files on windows FAT partition.
Still I can flash an SD card, and but the boot files in the windows partition.
Everything looks OK, except network services.
After second boot I get EXT4 error messages.
Still here the outputs of the commands you suggest:
port scan on external machine
nmap 192.168.1.20
Starting Nmap 7.60 ( https://nmap.org ) at 2020-06-05 15:01 CEST
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.04 seconds
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::20a:35ff:fe00:1e53 prefixlen 64 scopeid 0x20
ether 00:0a:35:00:1e:53 txqueuelen 1000 (Ethernet)
RX packets 367 bytes 20900 (20.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2545 bytes 844433 (844.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 29 base 0xb000
eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.20 netmask 255.255.255.0 broadcast 192.168.1.255
ether 00:0a:35:00:1e:53 txqueuelen 1000 (Ethernet)
device interrupt 29 base 0xb000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 27454 bytes 1654200 (1.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 27454 bytes 1654200 (1.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
systemctEXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm bash: deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm bash: deleted inode referenced: 398795
l status networking
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2019-09-30 09:06:52 UTC; 2h 52min ago
Docs: man:interfaces(5)
Process: 1431 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
Process: 1382 ExecStartPre=/bin/sh -c [ “$CONFIGURE_INTERFACES” != “no” ] && [ -n “$(ifquery --read-environment --list --exclude=lo)” ] && udevadm settle (code=exited, status=0/SUCCESS)
Main PID: 1431 (code=exited, status=0/SUCCESS)
xilinx@pynq:~$ systemctl status networking
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2019-09-30 09:06:52 UTC; 2h 52min ago
Docs: man:interfaces(5)
Process: 1431 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
Process: 1382 ExecStartPre=/bin/sh -c [ “$CONFIGURE_INTERFACES” != “no” ] && [ -n “$(ifquery --read-environment --list --exclude=lo)” ] && udevadm settle (code=exited, status=0/SUCCESS)
Main PID: 1431 (code=exited, status=0/SUCCESS)
///////////////////////////////////////////////////////////////////////////////////////////////////
systemctl status jupyter
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm (pager): deleted inode referenced: 398795
● jupyter.service - Jupyter Notebook Server
Loaded: loaded (/lib/systemd/system/jupyter.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2019-09-30 09:08:11 UTC; 2h 53min ago
Process: 1470 ExecStart=/usr/local/bin/start_jupyter.sh (code=killed, signal=TERM)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
python3, import pynq (does not start - likely due to incomplete install of the used image
python3
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm bash: deleted inode referenced: 398795
EXT4-fs error (device mmcblk0p2): ext4_lookup:1577: inode #258598: comm python3: deleted inode referenced: 398795
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import pynq
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #388006: comm python3: bad extra_isize 25785 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #388006: comm python3: bad extra_isize 25785 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #388006: comm python3: bad extra_isize 25785 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #388006: comm python3: bad extra_isize 25785 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #388006: comm python3: bad extra_isize 25785 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #388006: comm python3: bad extra_isize 25785 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #387878: comm python3: bad extra_isize 12357 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #387878: comm python3: bad extra_isize 12357 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #387878: comm python3: bad extra_isize 12357 (inode size 256)
EXT4-fs error (device mmcblk0p2): ext4_iget:4831: inode #387878: comm python3: bad extra_isize 12357 (inode size 256)
Traceback (most recent call last):
File “”, line 1, in
File “/home/xilinx/pynq/init.py”, line 30, in
from .mmio import MMIO
File “/home/xilinx/pynq/mmio.py”, line 32, in
import numpy as np
File “/usr/lib/python3/dist-packages/numpy/init.py”, line 142, in
from . import add_newdocs
File “/usr/lib/python3/dist-packages/numpy/add_newdocs.py”, line 13, in
from numpy.lib import add_newdoc
File “/usr/lib/python3/dist-packages/numpy/lib/init.py”, line 8, in
from .type_check import *
File “/usr/lib/python3/dist-packages/numpy/lib/type_check.py”, line 11, in
import numpy.core.numeric as _nx
File “/usr/lib/python3/dist-packages/numpy/core/init.py”, line 74, in
from numpy.testing.nosetester import _numpy_tester
File “/usr/lib/python3/dist-packages/numpy/testing/init.py”, line 10, in
from unittest import TestCase
ModuleNotFoundError: No module named ‘unittest’
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File “/usr/lib/python3/dist-packages/apport/init.py”, line 5, in
from apport.report import Report
File “/usr/lib/python3/dist-packages/apport/report.py”, line 15, in
import xml.dom, xml.dom.minidom
ModuleNotFoundError: No module named ‘xml’
Original exception was:
Traceback (most recent call last):
File “”, line 1, in
File “/home/xilinx/pynq/init.py”, line 30, in
from .mmio import MMIO
File “/home/xilinx/pynq/mmio.py”, line 32, in
import numpy as np
File “/usr/lib/python3/dist-packages/numpy/init.py”, line 142, in
from . import add_newdocs
File “/usr/lib/python3/dist-packages/numpy/add_newdocs.py”, line 13, in
from numpy.lib import add_newdoc
File “/usr/lib/python3/dist-packages/numpy/lib/init.py”, line 8, in
from .type_check import *
File “/usr/lib/python3/dist-packages/numpy/lib/type_check.py”, line 11, in
import numpy.core.numeric as _nx
File “/usr/lib/python3/dist-packages/numpy/core/init.py”, line 74, in
from numpy.testing.nosetester import _numpy_tester
File “/usr/lib/python3/dist-packages/numpy/testing/init.py”, line 10, in
from unittest import TestCase
ModuleNotFoundError: No module named ‘unittest’
######################################################
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2113 tasks of which 1946 didn’t need to be rerun and all succeeded.
INFO: Copying Images from deploy to images
NOTE: Successfully copied built images to tftp dir: /tftpboot
[INFO] successfully built kernel-devsrc
cp -f /home/xilinx/PYNQ/sdbuild/build/ZED/petalinux_project/build/tmp/deploy/rpm//kernel-devsrc-1.0-r0..rpm /home/xilinx/PYNQ/sdbuild/build/ZED/petalinux_project/build/tmp/deploy/rpm/kernel-devsrc-1.0-r0.plnx_arm.rpm
mkdir -p /home/xilinx/PYNQ/sdbuild/ccache
cp --sparse=always /home/xilinx/rootfs/bionic.arm.2.5.img /home/xilinx/PYNQ/sdbuild/output/ZED-2.5.img
/home/xilinx/PYNQ/sdbuild/scripts/mount_image.sh /home/xilinx/PYNQ/sdbuild/output/ZED-2.5.img /home/xilinx/PYNQ/sdbuild/build/bionic.ZED
device-mapper: reload ioctl on loop18p2 failed: Invalid argument
create/reload failed on loop18p2
loop18p1
mount: /home/xilinx/PYNQ/sdbuild/build/bionic.ZED: /dev/mapper is not a block device.
mount: /home/xilinx/PYNQ/sdbuild/build/bionic.ZED/boot: mount point does not exist.
QEMU_EXE=/opt/qemu/bin/qemu-arm-static PYNQ_BOARDDIR=/home/xilinx/PYNQ/boards/ZED PYNQ_BOARD=ZED ARCH=arm PACKAGE_PATH=/home/xilinx/PYNQ/boards/ZED/packages /home/xilinx/PYNQ/sdbuild/scripts/install_packages.sh /home/xilinx/PYNQ/sdbuild/build/bionic.ZED pynq boot_leds ethernet
- target=/home/xilinx/PYNQ/sdbuild/build/bionic.ZED
- shift
- fss=‘proc run dev’
- for fs in $fss
- sudo mount -o bind /proc /home/xilinx/PYNQ/sdbuild/build/bionic.ZED/proc
mount: /home/xilinx/PYNQ/sdbuild/build/bionic.ZED/proc: mount point does not exist.
Makefile:324: recipe for target ‘/home/xilinx/PYNQ/sdbuild/output/ZED-2.5.img’ failed
make: *** [/home/xilinx/PYNQ/sdbuild/output/ZED-2.5.img] Error 32