Hi,
 I used connmanctl to connect with my router, and now even if I am 
connected with beaglebone-XXXX wifi on any device(mobile , laptop) , I can 
use internet from my router.It is sweet and nice. I didn't noticed for 
hours while working on laptop. 

However, it is a potential security risk as anyone who might have knowledge 
about beaglebone can connect using default password. By now I have tried 
every search result on google and frustrated enough to overlook any of my 
stupid mistakes or obvious solutions.

*Background:*
I got my beaglebone black wireless around 2017, that time I tried very hard 
but couldn't put WiFi to work , recently I again took interest in it and 
therefore from this page  (*Error using connmanctl> enable wifi BBBW 
<https://groups.google.com/forum/#!topic/beagleboard/_ydry5HYVNQ>*), I 
found out kernel was damaged somehow in every image I downloaded , and I 
used this command dd if=/opt/scripts/device/bone/bbbw-eeprom.dump 
of=/sys/devices/platform/ocp/44e0b000.i2c/i2c-0/0-0050/*eeprom *and voila! 
Wifi and bt led which I never noticed on board illuminated.


Following is output for /opt/scripts/tools/version.sh

git:/opt/scripts/:[7cdc270818b76d829d247cf05fe309c320a3929a]

eeprom:[A335BNLTBWA50000BBWG*]

model:[TI_AM335x_BeagleBone_Black_Wireless]

dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]

bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
2019.04-00002-g07d5700e21]:[location: dd MBR]

UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]

UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]

UBOOT: Loaded Overlay:[BB-ADC-00A0]

UBOOT: Loaded Overlay:[BB-BBBW-WL1835-00A0]

UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]

UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]

kernel:[4.19.94-ti-r42]

nodejs:[v10.21.0]

/boot/uEnv.txt Settings:

uboot_overlay_options:[enable_uboot_overlays=1]

uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]

uboot_overlay_options:[enable_uboot_cape_universal=1]

pkg check: to individually upgrade run: [sudo apt install --only-upgrade 
<pkg>]

pkg:[bb-cape-overlays]:[4.14.20200722.0-0~buster+20200722]

pkg:[bb-wl18xx-firmware]:[1.20200702.0-0~buster+20200702]

pkg:[kmod]:[26-1]

pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]

pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]

groups:[debian : debian adm kmem dialout cdrom floppy audio dip video 
plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc 
admin spi iio docker tisdk weston-launch xenomai cloud9ide]

cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 
root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M 
net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]

dmesg | grep remote

[   56.564542] remoteproc remoteproc0: wkup_m3 is available

[   56.803677] remoteproc remoteproc0: powering up wkup_m3

[   56.803711] remoteproc remoteproc0: Booting fw image 
am335x-pm-firmware.elf, size 217168

[   56.803984] remoteproc remoteproc0: remote processor wkup_m3 is now up

[   58.894162] remoteproc remoteproc1: 4a334000.pru is available

[   58.911225] remoteproc remoteproc2: 4a338000.pru is available

dmesg | grep pru

[   58.894162] remoteproc remoteproc1: 4a334000.pru is available

[   58.894350] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed 
successfully

[   58.911225] remoteproc remoteproc2: 4a338000.pru is available

[   58.915782] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed 
successfully

dmesg | grep pinctrl-single

[    0.958066] pinctrl-single 44e10800.pinmux: 142 pins, size 568

dmesg | grep gpio-of-helper

[    0.971160] gpio-of-helper ocp:cape-universal: ready

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

END


I tried this solution without any success


>  
> Please check the below  steps for changing the SSID and Password for the 
> Beaglebone :
>  
> Step: 1 -- > Get the latest updates
>  
> BeagleBone Black Rev C:
>  
> cd /opt/scripts/tools/
> ./update_kernel.sh
>  
> BeagleBone and BeagleBone Black Rev A/B:
>  
> 1. opkg update
> 2. opkg upgrade
>  
> And then reboot 
>  
> Step : 2 -- > Configure WiFiBeagleBone Black Rev C:
>  
> 1. Edit /etc/networking/interfaces
>  
> 2. Uncomment the WiFi section and add SSID and password:
>  
> auto wlan0
>  
> iface wlan0 inet dhcp
> wpa-ssid "mySSID"
> wpa-psk "mypassword"
>  
> BeagleBone and BeagleBone Black Rev A/B, confugure ConnMan:
>  
> 1. Verify that you have "[WiFi] Enabled = true" in 
> /var/lib/connman/settings
>  
> 2. Add a new file /var/lib/connman/wifi.config with the following content:
>  
> [service_home]
> Type =wifi
> Name = yourSSID
> Security = wpa2-psk
> Passphrase = yourPassPhrase
>  
> (replace "yourSSID" with the name of your network and replace 
> "yourPassPhrase" with your passphrase. If you use wpa (and not wpa2), you 
> must also change "wpa2-psk" to "wpa".
>  
> Restart connman: systemctl restart connman


Also, please clarify how do I know which rev bbb I have(rev A,B or C) ? 
Does bbbw stands for Beaglebone Black wireless, because I stupidly confused 
it with beaglebone white?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/8235a115-5426-4cdd-a138-1b459e97efd1o%40googlegroups.com.

Reply via email to