Error while doing a apt-get update

Hi all,

I am quite new to the world of Beaglebone and networking so please bare with me.

I tried to do a apt-get update and tried to run ./update_kernel.sh but have encountered the following errors.

Err http://repos.rcn-ee.com wheezy Release.gpg
Cannot initiate the connection to repos.rcn-ee.com:80 (2600:3c00::f03c:91ff:fe37:6ad5). - connect (101: Network is unreachable) [IP: 2600:3c00::f03c:91ff:fe37:6ad5 80]

Any suggestions, please?

Regards,
Cornelius

Your BBB doesn't have a connection to the internet, that's the problem.

If you are connecting to your BBB using a USB lead from a PC (MS or
Linux) then the BBB won't be able to 'see' the internet even if the PC
can. Connect the ethernet socket on the BBB to your router and then
it should be OK.

Hi Chris,

Thank you for your email.

In a linux OS, I ssh into BBB via USB at 192.168.7.2.
Then I configured it to bridge an internet connection with my laptop and am able to apt-get update peacefully.

However, when I have configured BBB to have a static ip address and connected it to a router, I had to change all http:// to ftp:// in /etc/apt/sources.lst in order to apt-get update smoothly. Also, with this configuration, I also encounter the above-mentioned error message about 45.33.2.10 which is unreachable. Thing is,. I can ping 45.33.2.10,… this I find strange.

Any idea what I am doing wrong here?

Kind Regards,
Cornelius

Well, 'ftp' is not running http://repos.rcn-ee.com and i have no plans
to enable it..

Sorry...

Regards,

Hi Robert,

Thank you for your email.

I understand now.
So,… in order to have an internet connection for the BBB, it will only have to be via the USB with a bridged connection?

Also, I have noticed that after flashing BBB with the latest debian images, particularly 7.9 and 8.3, I am not able to ping 192.168.7.2. Is this a bug or am i missing something out here?

Regards,
Cornelius

I'm really hopping with 2016-03-09 that's now solved, please test,
either the iot or lxqt image from:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Image_Testing_Snapshots

Regards,

Ah, great! Thank you.
I will test it tomorrow in the morning at the office then.
I will keep you updated too. =)

Goodnight from Singapore.

BTW, I'm not sure how to reverse connman's direction:

But right now, when you plug in the usb connector, your laptop/desktop
will get an ip (192.168.7.x) and use the bbb for internet over your
laptop/desktop's wifi/ethernet.. So if you plug in an ethernet cable
into the bbb, you'll get network access again on your laptop/desktop..

Trying to figure out how to reverse that. :wink:

Regards,

Hi Robert,

I have just flashed https://rcn-ee.com/rootfs/bb.org/testing/2016-03-09/lxqt-4gb/BBB-eMMC-flasher-debian-8.3-lxqt-4gb-armhf-2016-03-09-4gb.img.xz

and i can’t ping to 192.168.7.2. Furthermore, ifconfig pulls up no inet address on eth1.

Any idea why?

Regards,
Cornelius

Perhaps running dmesg will give you a better idea of what’s going on. If nothing else it’ll give you some output to post here for others to have a better idea of whats going on.

example

william@beaglebone:~$ dmesg | grep eth
[ 4.483906] cpsw 4a100000.ethernet: Detected MACID = 78:a5:04:ca:fb:dc
[ 12.770249] net eth0: initializing cpsw version 1.12 (0)
[ 12.780876] net eth0: phy found : id is : 0x7c0f1
[ 12.795971] net eth0: phy 4a101000.mdio:03 not found on slave 1
[ 12.806243] net eth0: BQL enabled
[ 14.773478] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[563836.873858] cpsw 4a100000.ethernet eth0: Link is Down
[563838.954250] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[566399.033841] cpsw 4a100000.ethernet eth0: Link is Down
[566401.114229] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

Hi William,

Thank you for your email,…below is what I get from running that command.

cornelius@cornelius ~ $ dmesg|grep eth
[ 0.988379] e1000e 0000:00:19.0 eth0: registered PHC clock
[ 0.988382] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) ec:f4:bb:0f:df:a3
[ 0.988383] e1000e 0000:00:19.0 eth0: Intel® PRO/1000 Network Connection
[ 0.988419] e1000e 0000:00:19.0 eth0: MAC: 11, PHY: 12, PBA No: FFFFFF-0FF
[ 4.860468] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.445242] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 7.445246] e1000e 0000:00:19.0 eth0: 10/100 speed: disabling TSO
[ 7.445274] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 2935.339583] usbcore: registered new interface driver cdc_ether
[ 2935.341774] rndis_host 1-2:1.0 eth1: register ‘rndis_host’ at usb-0000:00:14.0-2, RNDIS device, a0:f6:fd:4b:fd:c9
[ 3005.699765] NETDEV WATCHDOG: eth1 (rndis_host): transmit queue 0 timed out
[ 3005.699766] Modules linked in: rndis_wlan rndis_host cdc_ether usbnet mii cdc_acm nls_iso8859_1 uas usb_storage xt_multiport iptable_filter ip_tables x_tables pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) pn544_mei mei_phy pn544 hci nfc dell_wmi sparse_keymap uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media hid_logitech_hidpp snd_usb_audio snd_usbmidi_lib dell_laptop dcdbas i8k dm_multipath scsi_dh intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel arc4 kvm bnep snd_hda_codec_hdmi crct10dif_pclmul rfcomm crc32_pclmul ghash_clmulni_intel snd_hda_codec_realtek snd_hda_codec_generic snd_soc_rt5640 iwlmvm bluetooth snd_soc_rl6231 mac80211 aesni_intel snd_soc_core aes_x86_64 lrw gf128mul snd_compress glue_helper ablk_helper snd_pcm_dmaengine cryptd snd_hda_intel snd_hda_controller snd_seq_midi snd_hda_codec snd_seq_midi_event snd_hwdep snd_rawmidi iwlwifi snd_pcm joydev serio_raw cfg80211 lpc_ich shpchp mei_me mei 8250_fintek dw_dmac dell_smo8800 dw_dmac_core snd_seq snd_seq_device snd_soc_sst_acpi snd_timer snd i2c_hid 8250_dw spi_pxa2xx_platform i2c_designware_platform i2c_designware_core binfmt_misc dell_rbtn mac_hid soundcore parport_pc ppdev lp parport dm_mirror dm_region_hash dm_log hid_generic hid_logitech_dj usbhid hid i915 psmouse ahci i2c_algo_bit libahci sdhci_pci drm_kms_helper e1000e drm ptp pps_core wmi video sdhci_acpi sdhci
[ 3361.518375] rndis_host 1-2:1.0 eth1: unregister ‘rndis_host’ usb-0000:00:14.0-2, RNDIS device
[ 3395.837660] rndis_host 1-2:1.0 eth1: register ‘rndis_host’ at usb-0000:00:14.0-2, RNDIS device, a0:f6:fd:4b:fd:c9

and running dmesg|grep usb gives me the following,…

[ 2935.309616] usb 1-2: Product: BeagleBoneBlack
[ 2935.309617] usb 1-2: Manufacturer: Circuitco
[ 2935.309618] usb 1-2: SerialNumber: 5315BBBK0EEE
[ 2935.311093] usb-storage 1-2:1.4: USB Mass Storage device detected
[ 2935.311147] scsi host5: usb-storage 1-2:1.4
[ 2935.332057] usbcore: registered new interface driver cdc_acm
[ 2935.339583] usbcore: registered new interface driver cdc_ether
[ 2935.341774] rndis_host 1-2:1.0 eth1: register ‘rndis_host’ at usb-0000:00:14.0-2, RNDIS device, a0:f6:fd:4b:fd:c9
[ 2935.341859] usbcore: registered new interface driver rndis_host
[ 2935.344118] usbcore: registered new interface driver rndis_wlan
[ 3005.699766] Modules linked in: rndis_wlan rndis_host cdc_ether usbnet mii cdc_acm nls_iso8859_1 uas usb_storage xt_multiport iptable_filter ip_tables x_tables pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) pn544_mei mei_phy pn544 hci nfc dell_wmi sparse_keymap uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev media hid_logitech_hidpp snd_usb_audio snd_usbmidi_lib dell_laptop dcdbas i8k dm_multipath scsi_dh intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel arc4 kvm bnep snd_hda_codec_hdmi crct10dif_pclmul rfcomm crc32_pclmul ghash_clmulni_intel snd_hda_codec_realtek snd_hda_codec_generic snd_soc_rt5640 iwlmvm bluetooth snd_soc_rl6231 mac80211 aesni_intel snd_soc_core aes_x86_64 lrw gf128mul snd_compress glue_helper ablk_helper snd_pcm_dmaengine cryptd snd_hda_intel snd_hda_controller snd_seq_midi snd_hda_codec snd_seq_midi_event snd_hwdep snd_rawmidi iwlwifi snd_pcm joydev serio_raw cfg80211 lpc_ich shpchp mei_me mei 8250_fintek dw_dmac dell_smo8800 dw_dmac_core snd_seq snd_seq_device snd_soc_sst_acpi snd_timer snd i2c_hid 8250_dw spi_pxa2xx_platform i2c_designware_platform i2c_designware_core binfmt_misc dell_rbtn mac_hid soundcore parport_pc ppdev lp parport dm_mirror dm_region_hash dm_log hid_generic hid_logitech_dj usbhid hid i915 psmouse ahci i2c_algo_bit libahci sdhci_pci drm_kms_helper e1000e drm ptp pps_core wmi video sdhci_acpi sdhci
[ 3361.518323] usb 1-2: USB disconnect, device number 5
[ 3361.518375] rndis_host 1-2:1.0 eth1: unregister ‘rndis_host’ usb-0000:00:14.0-2, RNDIS device
[ 3395.707524] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[ 3395.835858] usb 1-2: New USB device found, idVendor=1d6b, idProduct=0104
[ 3395.835863] usb 1-2: New USB device strings: Mfr=3, Product=4, SerialNumber=5
[ 3395.835865] usb 1-2: Product: BeagleBoneBlack
[ 3395.835867] usb 1-2: Manufacturer: Circuitco
[ 3395.835869] usb 1-2: SerialNumber: 5315BBBK0EEE
[ 3395.837660] rndis_host 1-2:1.0 eth1: register ‘rndis_host’ at usb-0000:00:14.0-2, RNDIS device, a0:f6:fd:4b:fd:c9
[ 3395.838325] usb-storage 1-2:1.4: USB Mass Storage device detected
[ 3395.838386] scsi host6: usb-storage 1-2:1.4

It seems to me that usb0 isn’t getting an ip address(192.168.7.2) correctly?
Any suggestions?

Regards,
Cornelius

It seems to me that usb0 isn’t getting an ip address(192.168.7.2) correctly?
Any suggestions?

Woah nelly ! That’s a lot of output, :wink:

So, I’m not all that familiar with the Jessie images, but it seems as though the cdc_ether device is working fine. Have you attempted manually bring up eth1 ? e.g.

sudo ifconfig eth1 192.168.7.2

sudo ifconfig eth1 up

??

But even then I’m not sure what could be the cause for eth1 not coming up, other than a couple guesses. I might have to defer to Robert, as he honestly knows these images better than all.

sudo ifconfig eth1 up might actually need to be changed to sudo ifup eth1 to bring the device up.

It's coming thru..

what does:

sudo dhclient eth1
sudo ifconfig -a

show?

Regards,

Hi William and Robert,

Sorry about the long output a while ago,…I was trying to be as accurate as possible.

William:

cornelius@cornelius ~ $ sudo ifup eth1
Ignoring unknown interface eth1=eth1.

Robert:
ifconfig -a gives:

eth0 Link encap:Ethernet HWaddr ec:f4:bb:0f:df:a3
inet addr:10.102.16.110 Bcast:10.102.17.255 Mask:255.255.254.0
inet6 addr: fe80::eef4:bbff:fe0f:dfa3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1545343 errors:0 dropped:0 overruns:0 frame:0
TX packets:584402 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1895631248 (1.8 GB) TX bytes:46481091 (46.4 MB)
Interrupt:20 Memory:f7e00000-f7e20000

eth1 Link encap:Ethernet HWaddr a0:f6:fd:4b:fd:c9
inet6 addr: fe80::a2f6:fdff:fe4b:fdc9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44 errors:3 dropped:0 overruns:0 frame:3
TX packets:2 errors:638 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10678 (10.6 KB) TX bytes:256 (256.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5072 errors:0 dropped:0 overruns:0 frame:0
TX packets:5072 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:475569 (475.5 KB) TX bytes:475569 (475.5 KB)

wlan0 Link encap:Ethernet HWaddr ac:7b:a1:39:3e:47
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

and,…sudo dhclient eth1 just gives me a blinking cusor staring blankly at me. Hhhmm,…

Ok, from here, I believe you could in fact set a static IP on the host and have it mostly, with perhaps having to manually route, if you decided to use ICS . . . but I’ve a feeling Robert may have a better solution . . .

yeah nothing..

So g_gadget serial is enabled:

gtkterm -s 115200 -p /dev/ttyACM0

root

It would be interesting to see what dhcp is doing:

journalctl | grep usb0
journalctl | grep -i dhcp

Regards,

Cornelius, your host computer is a Mac ? Which OSX version ? just noticing your ethernet IP range . . .

hmm,…I must admit I am still quite new to networking principles at this stage.
However, wouldn’t that be impossible as I can’t even access my BBB at all?

William:
I am using Linux Mint in my host.

cornelius@cornelius /etc $ cat lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.3
DISTRIB_CODENAME=rosa
DISTRIB_DESCRIPTION=“Linux Mint 17.3 Rosa”

Robert:

cornelius@cornelius /etc $ journalctl|grep usb0
journalctl: command not found
cornelius@cornelius /etc $ journalctl|grep -i dhcp
journalctl: command not found

It seems to me that I will need to install a package that has that tool?