Hi @marioruiz
I managed to fix this issue. I did not delete sdbuild/build folder so i used petalinux_project to create new boot.bin file so that fpga will be programmed by u-boot.
Ethernet now works, and hostname is correct. I can ssh to the board without issue by just typing pynq. However jupyter website does not load.
I can see the correct IP.
ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::644f:59ff:fefc:b3e5 prefixlen 64 scopeid 0x20<link>
ether 66:4f:59:fc:b3:e5 txqueuelen 1000 (Ethernet)
RX packets 248 bytes 21062 (21.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 315 bytes 85352 (85.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 26 base 0xb000
eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.99 netmask 255.255.255.0 broadcast 192.168.2.255
ether 66:4f:59:fc:b3:e5 txqueuelen 1000 (Ethernet)
device interrupt 26 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<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2423 bytes 173973 (173.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2423 bytes 173973 (173.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
but checking what the jupyter is doing I see something strange:
xilinx@pynq:~$ jupyter-notebook
[I 2021-12-13 02:39:25.348 LabApp] JupyterLab extension loaded from /usr/local/share/pynq-venv/lib/python3.8/site-pac kages/jupyterlab
[I 2021-12-13 02:39:25.350 LabApp] JupyterLab application directory is /usr/local/share/pynq-venv/share/jupyter/lab
[I 02:39:26.315 NotebookApp] Serving notebooks from local directory: /home/xilinx
[I 02:39:26.316 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 02:39:26.316 NotebookApp] http://localhost:8888/?token=05ce934c00c081e88e52caa4721f8b2212a57c739b6165e9
[I 02:39:26.317 NotebookApp] or http://127.0.0.1:8888/?token=05ce934c00c081e88e52caa4721f8b2212a57c739b6165e9
[I 02:39:26.317 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation) .
[W 02:39:26.382 NotebookApp] No web browser found: could not locate runnable browser.
[C 02:39:26.384 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/xilinx/.local/share/jupyter/runtime/nbserver-1848-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=05ce934c00c081e88e52caa4721f8b2212a57c739b6165e9
or http://127.0.0.1:8888/?token=05ce934c00c081e88e52caa4721f8b2212a57c739b6165e9
I was confused by this at first because it appears in is running on port 8888, and localhost only. but it is the same on my working board.
however checking if jupyter is running shows that it isn’t.
systemctl status jupyter
jupyter.service - Jupyter Notebook Server
Loaded: loaded (/lib/systemd/system/jupyter.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2021-12-13 03:18:41 UTC; 50min ago
Process: 232 ExecStart=/usr/local/bin/start_jupyter.sh (code=killed, signal=TERM)
Dec 13 03:18:32 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:33 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:34 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:36 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:37 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:38 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:39 pynq start_jupyter.sh[232]: Waiting for Jupyter
Dec 13 03:18:41 pynq systemd[1]: jupyter.service: start operation timed out. Terminating.
Dec 13 03:18:41 pynq systemd[1]: jupyter.service: Failed with result 'timeout'.
Dec 13 03:18:41 pynq systemd[1]: Failed to start Jupyter Notebook Server.
In the log files i see the :
Dec 13 04:27:28 pynq systemd[1]: Starting Jupyter Notebook Server...
Dec 13 04:27:44 pynq start_jupyter.sh[4633]: Waiting for Jupyter
Dec 13 04:27:45 pynq start_jupyter.sh[4633]: Waiting for Jupyter
Dec 13 04:27:46 pynq start_jupyter.sh[4633]: Waiting for Jupyter
Dec 13 04:27:48 pynq start_jupyter.sh[4633]: Waiting for Jupyter
.
.
.
This would stay like this forever.
I use “systemctl start jupyter” and after about a half a minute or a minute the service is started and i can connect to jupyter normally. But it would never start by itself.
Any idea how to go about debugging this?
Thank you for any help .