Raspberry Pi 4

More
6 years 1 month ago #183538 by kramerda
WITH PI CONNECTED TO 7I76E CONNECTED VIA ETHERNET CABLE
pi@linuxcnc:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether dc:a6:32:39:79:b6 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.108/24 brd 192.168.0.255 scope global deprecated noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::5d25:309b:a7bb:4bd4/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether dc:a6:32:39:79:b7 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.108/24 brd 192.168.0.255 scope global noprefixroute wlan0
valid_lft forever preferred_lft forever
inet6 fe80::582a:3a1c:a31e:506b/64 scope link
valid_lft forever preferred_lft forever

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago - 6 years 1 month ago #183540 by PCW
Right so you have not setup a static IP address on the RPI
Suggested static IP address is 10.10.10.100

You might look at the hm2_eth page for how to do this by editing the interfaces file, or just google for "static IP address RPI"
Last edit: 6 years 1 month ago by PCW.

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #183541 by phillc54
www.raspberrypi.org/documentation/configuration/tcpip/

This is my dhcpcd.conf:
Warning: Spoiler!

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #183571 by kramerda
thankyou very much - we'll get right on it
Dennis

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #183766 by kramerda
Tried lots of options to get rpi4 working -Good news and bad news. It ran once from desktop icon created by pnconf but not again.
Followed above suggestions to create a static IP - followed a couple of tutorials (both similar in that they used dhcpcd). That didn't fix the problem if I did things correctly.....
After a couple days of trial and error frustration I created a new image on an SD card. Before running pnconf I disabled wifi (didn't do that originally) and set ipv4 to 192.168.0.1/16. In first try that failed was set with /24. Disabled ipv6. Then ran pnconf using settings I know work on my system.
And voila everything worked.
But after shutting down and powering up - back to same error as before. Nothing seemed changed in the IP setup. Double checked address of mesa7i76e in the hal and ini. All looked the same but no go.
Will try another round of same tomorrow but sure would like some insight into what is wrong and or fragile in the process.
Thanks,
Dennis

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago - 6 years 1 month ago #183767 by PCW
Getting this working on my RPI 4 required just adding the bottom 3 lines in the etc/network/interfaces file:

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto eth0
iface eth0 inet static
address 10.10.10.100

This is following the suggestions in the hm2_eth manual.
Last edit: 6 years 1 month ago by PCW.

Please Log in or Create an account to join the conversation.

Time to create page: 0.179 seconds
Powered by Kunena Forum