RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

eth0 not getting IP address after flashing bone-debian-11.3-iot-armhf-2022-05-10-4gb.img.xz onto BeagleBone Black #129

Closed jamesbraza closed 1 year ago

jamesbraza commented 1 year ago

After placing bone-debian-11.3-iot-armhf-2022-05-10-4gb.img.xz onto a microSD card, and flashing it onto the eMMc of a BeagleBone Black, I found no IP address is present for eth0.

> hostname -I

> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
> sudo systemctl restart networking
> sudo route add default gw 10.123.0.1
SIOCADDRT: Network is unreachable

What am I doing wrong, and how can I hook up Ethernet so I can ssh into the newly-imaged BBB?

RobertCNelson commented 1 year ago
Debian GNU/Linux 11 BeagleBone ttyS0

BeagleBoard.org Debian Bullseye IoT Image 2022-05-10
Support: https://bbb.io/debian
default username:password is [debian:temppwd]

BeagleBone login: root
Password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@BeagleBone:~# ip address
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 80:f5:b5:d6:a3:35 brd ff:ff:ff:ff:ff:ff
    inet 192.168.3.248/22 brd 192.168.3.255 scope global dynamic eth0
       valid_lft 86328sec preferred_lft 86328sec
    inet6 fe80::82f5:b5ff:fed6:a335/64 scope link 
       valid_lft forever preferred_lft forever
3: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether a2:3e:4c:1e:97:31 brd ff:ff:ff:ff:ff:ff
4: usb1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether a2:79:e5:d3:a8:eb brd ff:ff:ff:ff:ff:ff
5: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can 
6: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can 

eth0 works fine..

please use https://forum.beagleboard.org/ next time. ;)

jamesbraza commented 1 year ago

Thanks for the speedy response! I am not sure what went wrong for me then. I didn't know about that BBB forum, thanks for pointing out!

I ended up going with the AM3358 Debian 10.3 2020-04-06 4GB SD IoT image from https://beagleboard.org/latest-images for my BeagleBone Black, so ima just close this out.