My build is finally nearing completion...still some tidying up to do.
Next the software side of things...🙂
Curious: Why didn't you just use the breadboard area on the Hermes-BBB?
Ok, so I'm giving V4 flash a try again,
supposed to use /opt/scripts/tools/eMMC/generic-eMMC-flasher-12mb.sh
but, when I do a ls -l it's not there!?
supposed to use /opt/scripts/tools/eMMC/generic-eMMC-flasher-12mb.sh
but, when I do a ls -l it's not there!?
bern: it seems that the source package was not properly cleaned before packaging. please try following:
Then you can build mt7601u without errors 🙂
Code:
cd /usr/src/linux-headers-4.0.0-botic5
rm -f ./scripts/genksyms/genksyms ./scripts/selinux/genheaders/genheaders ./scripts/selinux/mdp/mdp ./scripts/kallsyms ./scripts/sortextable ./scripts/mod/mk_elfconfig ./scripts/mod/modpost ./scripts/kconfig/mconf ./scripts/kconfig/conf ./scripts/unifdef ./scripts/dtc/dtc ./scripts/conmakehash
make -k scripts
# some errors will be printed by previous command, ignore them
Then you can build mt7601u without errors 🙂
Code:
cd mt7601u
make -C /lib/modules/`uname -r`/build M=$PWD
make -C /lib/modules/`uname -r`/build M=$PWD modules_install
bern: oops, but the module will not load because of missing symbols ieee80211_*
I think I will need to rebuild kernel with other options for this...
I think I will need to rebuild kernel with other options for this...
bern: after loading mac80211 module, the mt7601u can be loaded too... but it immediately crashes system with oops. I've already reported this to author.
miero, are there currently any wifi dongles which can be used without modifying Botic? If not, do you plan to integrate wifi drivers into Botic?
There are standard wifi drivers compiled in the Botic kernel. For example the USB Wifi Edimax EW-7711UMn works, but it is much slower than Ethernet.
Check this site for more compatible devices: RPi USB Wi-Fi Adapters - eLinux.org
Beware of these that are not in the list or requires external drivers!
Check this site for more compatible devices: RPi USB Wi-Fi Adapters - eLinux.org
Beware of these that are not in the list or requires external drivers!
bern: try this... it works for me also with Wifi dongle 🙂
Code:
apt-get install gcc-4.7
cd mt7601u
make -C /lib/modules/`uname -r`/build M=$PWD CC=gcc-4.7
cp mt7601u.ko /lib/modules/$(uname -r)/
depmod -a
modprobe mt7601u
I've opted for stacking, saves a bit of wiring.Curious: Why didn't you just use the breadboard area on the Hermes-BBB?
Thank you miero🙂bern: try this... it works for me also with Wifi dongle 🙂
Code:apt-get install gcc-4.7 cd mt7601u make -C /lib/modules/`uname -r`/build M=$PWD CC=gcc-4.7 cp mt7601u.ko /lib/modules/$(uname -r)/ depmod -a modprobe mt7601u
New module build with gcc-4.7 was successful. However I suspect that not all from old/prevoius build was cleared. When I plug usb wifi dongle I see:
Code:
root@botic:~#
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 85.931762] Internal error: Oops: 5 [#1] PREEMPT THUMB2
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.031474] Process systemd-udevd (pid: 1231, stack limit = 0xdd4bc210)
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.038491] Stack: (0xdd4bde78 to 0xdd4be000)
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.043114] de60: bf9ef2a8 00007fff
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.051796] de80: c007cb6d de57e500 c091d00c 00000000 b6f8cd50 e09b1a5c bf9ef41c bf9ef2a8
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.060476] dea0: 00000000 c09a5700 000000d2 de57e500 00000000 00000000 00000000 00000000
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.069157] dec0: 00000000 00000000 00000000 00000000 00000000 00000000 6e72656b 00006c65
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.077847] dee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.086527] df00: 00000000 00000000 00000000 00000000 00000000 e2620bb4 20000033 0000a6b3
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.095206] df20: b67546b3 00000000 b6f8cd50 e09bc6b3 dd4bc000 00000000 00000000 c007f525
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.103884] df40: 00000000 b673a000 e09a2000 0001a6b3 e09b12b4 e09b10a3 e09b9784 0000c424
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.112564] df60: 0000ecf4 bf9eed10 0000000d 00000000 00000031 00000032 00000026 0000002a
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.121244] df80: 0000000f 00000000 7224d5f0 00000000 004352d8 0042f840 00000080 c000d9c4
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.129925] dfa0: dd4bc000 c000d821 00000000 004352d8 b673a000 0001a6b3 b6f8cd50 00000002
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.138606] dfc0: 00000000 004352d8 0042f840 00000080 00000000 b6f8cd50 0001a6b3 00000000
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.147291] dfe0: 00020000 bee2e95c b6f86b07 b6eee264 60000010 b673a000 ffffffff 00007fff
Message from syslogd@botic at Sep 8 14:43:05 ...
kernel:[ 86.172806] Code: f1a3 0508 429a d00c (696b) 4632
Also when i want to see loaded modules and type: lsmod
nothing appears in the putty....
Mayby I need more powerfull power supply for BBB+WIFI dongle? Currently, temporarily I use 1A USB charger...
bern: it seems it is not cleared well, you have to execute "make clean" in the mt7601u directory first
After some fight 😉 and pluging wifi dongle to BBB I get this:bern: it seems it is not cleared well, you have to execute "make clean" in the mt7601u directory first
Code:
root@botic:/opt/mt7601u# lsmod
Module Size Used by
mt7601u 70087 0
mac80211 469789 1 mt7601u
cfg80211 397238 2 mac80211,mt7601u
usb_f_acm 7018 1
u_serial 10877 1 usb_f_acm
usb_f_ecm 9489 1
g_multi 5497 0
usb_f_mass_storage 42586 2 g_multi
usb_f_rndis 22434 2 g_multi
u_ether 11978 3 usb_f_ecm,usb_f_rndis,g_multi
libcomposite 43347 5 usb_f_acm,usb_f_ecm,usb_f_rndis,g_multi,usb_f_mass_storage
nfsd 211005 2
binfmt_misc 8262 1
omap_aes 13075 0
omap_sham 19186 0
evdev 8454 1
root@botic:/opt/mt7601u# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
usb0 no wireless extensions.
root@botic:/opt/mt7601u#
And now it is possible that you do not have enough power for this. You can check last lines of dmesg command for some USB errors.
Miero should I do something with /lib/firmware/mt7601u.bin (move to other directory or something)And now it is possible that you do not have enough power for this. You can check last lines of dmesg command for some USB errors.

Code:
[ 300.652801] cfg80211: Calling CRDA to update world regulatory domain
[ 312.346289] usbcore: registered new interface driver mt7601u
[ 731.962516] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_bcon (99, VALID), retry #1, port1 00000104
[ 732.403780] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 732.908114] usb 1-1: New USB device found, idVendor=148f, idProduct=7601
[ 732.908136] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 733.023791] usb 1-1: reset high-speed USB device number 2 using musb-hdrc
[ 733.164322] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 733.167761] mt7601u 1-1:1.0: Direct firmware load for mt7601u.bin failed with error -2
[ 733.168110] mt7601u: probe of 1-1:1.0 failed with error -2
root@botic:~#
yes, there were instructions on driver page you should follow... 🙂
Code:
wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin
mv MT7601.bin /lib/firmware/mt7601u.bin
Yep. I downloaded improper firmware (vendor instead of modified) version.yes, there were instructions on driver page you should follow... 🙂
Code:wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin mv MT7601.bin /lib/firmware/mt7601u.bin
After firmware replacement wlan0 interface is available 😎
So far so good.
However I've found out that mt7601 module is not permanent installed and after rebooting Botic (with wifi dongle pluged in) does not booting normally (I cannot log in using putty as I used to).
I have to remove wifi dongle, reboot and reinstall the mt7601 module to see wlan0 interface. I tried to use wicd-curses to set up wifi connection to my router. Unfortunately BBB not recognise any wifi network.
See below what I'm doing and please let me know what I could improve.
Code:
root@botic:~# cd /opt/mt7601u
root@botic:/opt/mt7601u# make clean
make -C /lib/modules/`uname -r`/build M=$PWD clean
make[1]: Entering directory `/lib/modules/4.0.0-botic5/build'
CLEAN /opt/mt7601u/.tmp_versions
CLEAN /opt/mt7601u/Module.symvers
make[1]: Leaving directory `/lib/modules/4.0.0-botic5/build'
root@botic:/opt/mt7601u# make -C /lib/modules/`uname -r`/build M=$PWD CC=gcc-4.7
make: Entering directory `/lib/modules/4.0.0-botic5/build'
make[1]: Warning: File `include/config/auto.conf' has modification time 4.8e+08 s in the future
LD /opt/mt7601u/built-in.o
CC [M] /opt/mt7601u/usb.o
CC [M] /opt/mt7601u/init.o
CC [M] /opt/mt7601u/main.o
CC [M] /opt/mt7601u/mcu.o
CC [M] /opt/mt7601u/trace.o
CC [M] /opt/mt7601u/dma.o
CC [M] /opt/mt7601u/core.o
CC [M] /opt/mt7601u/eeprom.o
CC [M] /opt/mt7601u/phy.o
CC [M] /opt/mt7601u/mac.o
CC [M] /opt/mt7601u/util.o
CC [M] /opt/mt7601u/debugfs.o
CC [M] /opt/mt7601u/tx.o
LD [M] /opt/mt7601u/mt7601u.o
make[1]: warning: Clock skew detected. Your build may be incomplete.
Building modules, stage 2.
make[1]: Warning: File `include/config/auto.conf' has modification time 4.8e+08 s in the future
MODPOST 1 modules
CC /opt/mt7601u/mt7601u.mod.o
LD [M] /opt/mt7601u/mt7601u.ko
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: Leaving directory `/lib/modules/4.0.0-botic5/build'
root@botic:/opt/mt7601u# cp mt7601u.ko /lib/modules/$(uname -r)/
root@botic:/opt/mt7601u# modprobe mac80211
root@botic:/opt/mt7601u# insmod ./mt7601u.ko
root@botic:/opt/mt7601u# lsmod
Module Size Used by
mt7601u 70087 0
mac80211 469789 1 mt7601u
cfg80211 397238 2 mac80211,mt7601u
usb_f_acm 7018 1
u_serial 10877 1 usb_f_acm
usb_f_ecm 9489 1
g_multi 5497 0
usb_f_mass_storage 42586 2 g_multi
usb_f_rndis 22434 2 g_multi
u_ether 11978 3 usb_f_ecm,usb_f_rndis,g_multi
libcomposite 43347 5 usb_f_acm,usb_f_ecm,usb_f_rndis,g_multi,usb_f_mass_storage
nfsd 211005 2
binfmt_misc 8262 1
omap_aes 13075 0
omap_sham 19186 0
evdev 8454 1
root@botic:/opt/mt7601u# ifconfig -a
eth0 Link encap:Ethernet HWaddr 54:4a:16:bf:a9:7c
inet addr:192.168.0.13 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::564a:16ff:febf:a97c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:405 errors:0 dropped:0 overruns:0 frame:0
TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38907 (37.9 KiB) TX bytes:61403 (59.9 KiB)
Interrupt:170
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:3594 errors:0 dropped:0 overruns:0 frame:0
TX packets:3594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:384835 (375.8 KiB) TX bytes:384835 (375.8 KiB)
usb0 Link encap:Ethernet HWaddr 5a:bc:90:91:9e:f4
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)
wlan0 Link encap:Ethernet HWaddr 00:0c:43:01:0a:94
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)
root@botic:/opt/mt7601u#dmesg
[ 285.980009] cfg80211: Calling CRDA to update world regulatory domain
[ 296.127857] usbcore: registered new interface driver mt7601u
[ 346.549073] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_bcon (99, VALID), retry #1, port1 00000104
[ 346.982522] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 347.486668] usb 1-1: New USB device found, idVendor=148f, idProduct=7601
[ 347.486686] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 347.602442] usb 1-1: reset high-speed USB device number 2 using musb-hdrc
[ 347.742960] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
[ 347.751318] mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[ 348.176393] mt7601u 1-1:1.0: EEPROM ver:08 fae:00
[ 348.400433] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
root@botic:/opt/mt7601u#
I've had no luck with miero's remote storage settings in /etc/fstab. Manual mounting with the command
works, but saving that in /etc/fstab doesn't.mount -t cifs //<MachineName>/<SharedFolder> /data/remote -o username=<DomainName>/<username>,password=<password>
I've had no luck with miero's remote storage settings in /etc/fstab. Manual mounting with the command
works, but saving that in /etc/fstab doesn't.
Post# 752
Commands to be executed at the boot can be written into file /etc/rc.local
Yep. I downloaded improper firmware (vendor instead of modified) version.
After firmware replacement wlan0 interface is available 😎
So far so good.
However I've found out that mt7601 module is not permanent installed and after rebooting Botic (with wifi dongle pluged in) does not booting normally (I cannot log in using putty as I used to).
I have to remove wifi dongle, reboot and reinstall the mt7601 module to see wlan0 interface. I tried to use wicd-curses to set up wifi connection to my router. Unfortunately BBB not recognise any wifi network.
See below what I'm doing and please let me know what I could improve.
After activation hostname DHCP in the wicd-curses for the short time I saw list of wifi networks (including mine). I guess I could not connect for longer because I lost connection due to insufficient current. Driver will be probably working when I replace PSU from 1A to 2A.
But what to do to load mac80211 and mt7601u modules automatically/dynamically?
Duffy Moon: the /etc/fstab uses different format, check the example on http://bbb.ieero.com/
bern: It should be enough to write line with "mt7601u" into /etc/modules
bern: It should be enough to write line with "mt7601u" into /etc/modules
- Home
- More Vendors...
- Twisted Pear
- Support for Botic Linux driver