Hi,
I’m unable to connect my Browser to Jupyter-notebook on my custom built Pynq board.
The board is the GENESYS ZU 3EG and I used the prebuilt bionic aarch 64 via the command
make BOARDS=GENESYS PREBUILT=bionic_aarch…
The command ifconfig shows Ethernet connection:
xilinx@pynq:~$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 62:c1:e7:f4:49:86 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 29
eth0:1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.99 netmask 255.255.255.0 broadcast 192.168.1.255
ether 62:c1:e7:f4:49:86 txqueuelen 1000 (Ethernet)
device interrupt 29
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 576 bytes 42230 (42.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 576 bytes 42230 (42.2 KB)
TX errors 0 dropp
ed 0 overruns 0 carrier 0 collisions 0
Also I configured a static IP adress 192.168.1.99 which should be on the same network as my computer (static IP 192.168.1.105)
If I type ps aux | grep jupyter I get the output:
root 417 20.8 1.2 62132 50940 ? S 16:17 0:05 /usr/bin/python 3 /usr/bin/jupyter-notebook --no-browser --allow-root
xilinx 1405 0.0 0.0 5672 632 ttyPS0 S+ 16:17 0:00 grep --color=au to jupyter
also which jupyter returns:
/usr/bin/jupyter
and jupyter-notebook gives:
[I 16:25:09.388 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[I 16:25:10.369 NotebookApp] Serving notebooks from local directory: /home/xilinx
[I 16:25:10.370 NotebookApp] 0 active kernels
[I 16:25:10.370 NotebookApp] The Jupyter Notebook is running at:
[I 16:25:10.370 NotebookApp] http://localhost:8888/?token=d4ba082ef4bdb2cb099c83e9d8e87894901b02baec9b1a84
[I 16:25:10.371 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 16:25:10.372 NotebookApp] No web browser found: could not locate runnable browser.
[C 16:25:10.373 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=d4ba082ef4bdb2cb099c83e9d8e87894901b02baec9b1a84
but I cannot open this link, or open jupyter through 192.168.1.99:9090 or pynq:9090 either.
looking at the kernel messages related to Ethernet with dmesg | grep eth I get:
xilinx@pynq:~$ dmesg | grep eth
[ 0.000000] psci: probing for conduit method from DT.
[ 5.213223] macb ff0b0000.ethernet: Not enabling partial store and forward
[ 5.220130] macb ff0b0000.ethernet: invalid hw address, using random
[ 5.231401] Generic PHY ff0b0000.ethernet-ffffffff:0f: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:0f, irq=POLL)
[ 5.244621] macb ff0b0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0b0000 irq 29 (62:c1:e7:f4:49:86)
[ 10.060349] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
xilinx@pynq:~$
And my custom device tree dtsi file looks like this for the ethernet part:
&gem0 {
phy-handle = <&phy0>;
phy-mode = “rgmii-id”;
phy0: phy@15 {
reg = <0x0F>;
};
which might not be correct? But received no errors from the operation system regarding network related issues.
Now I have the board connected via Ethernet to USB adapter to my PC. There I can ping from my computer to the board. But if I want to Ping my PC from the Board with ping: 192.168.1.105 I get:
From 192.168.1.99 icmp_seq=1 Destination Host Unreachable
If I connect my board directly to the router, I can’t ping any of PC or board.
I tried changing the settings of my router and allowed port forwarding for the ip adress of my computer
192.168.1.105 for the port 9090 (which should be the port jupyter will be using, right?) but without success.
If I look at the devices in my network over the site of the router (with the board directly connected to the router) the device doesn’t show up (at least it is not obvious to me)
Is this a problem related to the Firewall? I also tried creating a rule for the Ip adress of my board here, without success.
Does anyone know what I could try of what the problem might be or what I could test? Do you think it is a problem related to my build or is it a firewall issue?
Any help would be appreciated since I’m out of my depth at this point
Best regards
Daniel