Category: Banana Pi

outdated adblock config (1.0 vs. 2.5), please run ‘/etc/init.d/adblock cfgup’ to update your configuration

The solution is simple, reinstall adblock. Assuming you are using a Banana Pi R1.

opkg install http://downloads.openwrt.org/snapshots/trunk/sunxi/generic/packages/packages/adblock_1.5.4-1_all.ipk

Adblock in the OpenWrt build I installed might be broken, running /etc/init.d/adblock cfgup won’t fix it.

After you reinstall it, run /etc/init.d/adblock cfgup, it should work this time.

Then type /etc/init.d/adblock restart.

iPerf 3

<br>[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd<br>[  4]   0.00-1.00   sec  82.8 MBytes   695 Mbits/sec    0    211 KBytes       <br>[  4]   1.00-2.00   sec  87.1 MBytes   731 Mbits/sec    0    211 KBytes       <br>[  4]   2.00-3.00   sec  86.7 MBytes   727 Mbits/sec    0    211 KBytes       <br>[  4]   3.00-4.00   sec  87.3 MBytes   732 Mbits/sec    0    211 KBytes       <br>[  4]   4.00-5.00   sec  85.9 MBytes   721 Mbits/sec    0    211 KBytes       <br>[  4]   5.00-5.67   sec  58.6 MBytes   729 Mbits/sec    0    211 KBytes       <br>- - - - - - - - - - - - - - - - - - - - - - - - -<br>[ ID] Interval           Transfer     Bandwidth       Retr<br>[  4]   0.00-5.67   sec   489 MBytes   722 Mbits/sec    0             sender<br>[  4]   0.00-5.67   sec   487 MBytes   721 Mbits/sec                  receiver<br><br>iperf Done.<br>

As you can see, the wired performance on my Banana Pi R1 is much better then the wireless on my TP-LINK. It’ll be interesting to see what the NETGEAR is on 5 GHz. Should be better then the 2.4 GHz on the TP-LINK. But it won’t be as good as the wired on my Banana Pi R1, the NVIDIA doesn’t do AC, and AC is probably still slower then wired gigabit.

<br>[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd<br>[  4]   0.00-1.00   sec  78.2 MBytes   656 Mbits/sec    0    221 KBytes       <br>[  4]   1.00-2.00   sec  86.6 MBytes   726 Mbits/sec    0    221 KBytes       <br>[  4]   2.00-3.00   sec  85.1 MBytes   714 Mbits/sec    0    221 KBytes       <br>[  4]   3.00-4.00   sec  86.6 MBytes   727 Mbits/sec    0    221 KBytes       <br>[  4]   4.00-5.00   sec  86.4 MBytes   725 Mbits/sec    0    221 KBytes       <br>[  4]   5.00-6.00   sec  86.7 MBytes   728 Mbits/sec    0    221 KBytes       <br>[  4]   6.00-7.00   sec  85.9 MBytes   721 Mbits/sec    0    221 KBytes       <br>[  4]   7.00-8.00   sec  86.6 MBytes   726 Mbits/sec    0    221 KBytes       <br>[  4]   8.00-9.00   sec  86.9 MBytes   729 Mbits/sec    0    221 KBytes       <br>[  4]   9.00-10.00  sec  86.5 MBytes   726 Mbits/sec    0    221 KBytes       <br>[  4]  10.00-11.00  sec  86.0 MBytes   721 Mbits/sec    0    221 KBytes       <br>[  4]  11.00-11.40  sec  35.2 MBytes   736 Mbits/sec    0    221 KBytes       <br>- - - - - - - - - - - - - - - - - - - - - - - - -<br>[ ID] Interval           Transfer     Bandwidth       Retr<br>[  4]   0.00-11.40  sec   977 MBytes   719 Mbits/sec    0             sender<br>[  4]   0.00-11.40  sec   976 MBytes   718 Mbits/sec                  receiver<br><br>iperf Done.<br>

Update
Using iPerf, not 3, the server running on router, and the client on NUC.

<br>[  3]  0.0- 1.0 sec   106 MBytes   890 Mbits/sec<br>[  3]  1.0- 2.0 sec   109 MBytes   911 Mbits/sec<br>[  3]  2.0- 3.0 sec   110 MBytes   919 Mbits/sec<br>[  3]  3.0- 4.0 sec   111 MBytes   930 Mbits/sec<br>[  3]  4.0- 5.0 sec   110 MBytes   921 Mbits/sec<br>[  3]  5.0- 6.0 sec   112 MBytes   940 Mbits/sec<br>[  3]  6.0- 7.0 sec   109 MBytes   918 Mbits/sec<br>[  3]  7.0- 8.0 sec   110 MBytes   926 Mbits/sec<br>[  3]  0.0- 8.9 sec   977 MBytes   921 Mbits/sec<br>

Which is faster then NUC to desktop. Desktop is running windows. Maybe cgywin has a penalty hit. The ethernet adapter on desktop should be fine, it’s made by Intel. Think it’s a regular PCI card.

You can use two micro USB cables to power the Banana Pi R1?

According to this forum post, somebody uses two USB cables to boot android. I’ll plug another one in and see if sensors changes. That’s cheaper/easier then buying a battery. I’ll use the Samsung AC adapter for my tablet. It’s under 1A, so it shouldn’t fry it.

That post has pictures of AC adapters, but no links. Pretty much a useless post.

Don’t think it did anything. The voltage went up for one sensor, was 0 before. Didn’t seem to change anything else. OpenVPN is still to slow.

2 pin JST power adapter

The easiest solution is to buy a Barrel Jack to 2-pin JST and then a Wall Adapter Power Supply – 5V DC 2A (Barrel Jack) or Barrel Jack Adapter – USB to 5.5mm. The user manual for the Banana Pi R1 doesn’t say what voltage the battery connector supports, and 2A might be to much, so you could get the USB adapter, and plug it into a lower amp USB power adapter, or a USB hub.

I’m to paranoid to try it, somebody on the Banana Pi forum said it runs better with a battery. You might fry it if you use a AC adapter. I’m to lazy to be charging a battery all the time. But tinyonestore.com has a triple A battery adapter. You could put rechargable batteries in it. How long will they last?

Kind of useless for the Banana Pi R1, it has two micro USB ports. Guess if you want three power sources you can do that.

This is going to take a while

Making a copy of my micro SD card using dd. Restoring just one partition doesn’t work, says over 600 mb/s. The old card is 8 GB. So it’ll take a while to write that to the new card at under 10 mb/s.

Only have Internet on phone until it’s done. I could put the old card in until it’s done.

It’s done.

What happens if you connect two micro USB cables to the Banana Pi R1?

It has two micro USB slots, if you plug it into the wrong one, it won’t turn on. Will it be faster if it has two power sources? Or will it be fried? To risky to try it. I’ll see if Monoprice.com has micro USB cables advertised as supporting more amps.

USB 2.0 to Micro B Sync & Fast Charge Cable with Data Transfer Protection On/Off Switch – 30/20 AWG 4.5ft 13 bucks, might be overkill for the Banana Pi R1. I need two, one to charge my big/heavy portable battery. The ones I have are premium. Probably wouldn’t make a difference. Maybe a shorter one would. Not sure three feet is long enough, that’s what she said.

If you look at the picture on tinyonestore.com, the other micro USB is for OTG.

Wifi is faster

Looks like the USB cable my Banana Pi R1 came with is crap, and so are my Anker USB cables. I get 16.72 Mbps download on my phone now, it was under 10 Mbps before. Does the wifi work in the bathroom now? Possibly. The Anker cables are fine for connecting to a computer, or for charging something low end, like my phone. So they still have use. The one the kit came with, might be useless.

Will a new power adapter make OpenVPN faster? Should plug it into my USB battery and see, it has 2 amp output, or 2.1. I think.

The answer is no, the wall wart it came with is fine. Just the USB cable sucks.

Update
WiFi still doesn’t work in bathroom. It doesn’t disconnect all the way but nothing loads. Maybe tomorrow I’ll try my Anker USB charger with it. It should do 2 A. Or maybe I need a even better quality USB cable.

Update
Anker power adapter doesn’t make OpenVPN any faster. I can hook my old router up to use it for WiFi, just plug it into my switch, or plug the long ethernet cable into it, and use the router as a switch/router.

Wifi doesn’t work in bathroom

Taking a dump at 10 PM. I can connect to the wifi but nothing loads then my phone disconnects. Does the wifi on my new router suck or is the power adapter crap?

It might work on and off.

Plugged the USB cable it came with in, and if I run a speed test on my desktop while the router is connected to OpenVPN, my phone gets disconnected from wifi. I’ll try a Monoprice cable. See what sensors says, not sure what “ACIN” is, but it’s under 1A, the USB adapter is supposed to be 2A.

With the USB cable my Banana Pi R1 came with:
root@OpenWrt:~# sensors
sun4i_ts-isa-0000
Adapter: ISA adapter
SoC temperature: +38.5 C

axp209-isa-0000
Adapter: ISA adapter
ACIN: +4.77 V
VBUS: +0.00 V
BATT: +0.00 V
APS: +4.65 V
CHIP: +42.8 C
BATT: 0.00 W
ACIN: +0.69 A
VBUS: +0.00 A
BATT_CHRG: +0.00 A
BATT_DISCHRG: +0.00 A

With a Monoprice cable:
root@OpenWrt:~# sensors
sun4i_ts-isa-0000
Adapter: ISA adapter
SoC temperature: +38.0 C

axp209-isa-0000
Adapter: ISA adapter
ACIN: +5.28 V
VBUS: +0.00 V
BATT: +0.00 V
APS: +4.91 V
CHIP: +44.0 C
BATT: 0.00 W
ACIN: +1.07 A
VBUS: +0.00 A
BATT_CHRG: +0.00 A
BATT_DISCHRG: +0.00 A

1.07 A is the highest, looks like it goes up and down if you run it more then once with the Monoprice cable. Got up to 1.17 A while connected to OpenVPN and running a speed test. Looks like the cable it came with is crap, possibly the wall wart too.

OpenVPN doesn’t work on router anymore

Since I redid the micro SD card and restored my backup, OpenVPN no longer works. It connects and tun0 exists, but the traffic doesn’t use it.

According to testmy.net, I’m getting under 10 Mbps with the VPN on. So it might be using it, just leaking my IP address.

Update
Rebooting fixed it.

OpenWrt won’t automount overlay?

Search Google for that, and you’ll find nothing. So now I’ll search Google for how to make a startup script that will mount it for me.

/etc/config/fstab

config mount<br>        option device '/dev/sda2'<br>        option enabled '1'<br>        option target '/overlay'<br>        option fstype 'ext4'<br>        option options 'defaults, discard'<br>

It doesn’t work with the UUID either.

Instructions for making an init script here. They provide an example, just put the mount command for the start section and umount for the stop section.

/etc/init.d/overlay

#!/bin/sh /etc/rc.common<br># mount /overlay<br># Copyright (C) 2007 OpenWrt.org<br> <br>START=10<br>STOP=15<br> <br>start() {        <br>        echo start<br>        # commands to launch application<br>	mount -o defaults -o discard /dev/sda2 /overlay<br>}                 <br> <br>stop() {          <br>        echo stop<br>        # commands to kill application <br>	umount /dev/sda2<br>}<br>

Now to reboot and see if it works. It works if you run /etc/init.d/overlay start.

Yup it works. Now I have a 50 GB /overlay. To bad I don’t need to install anything.