All posts by Max Chinni

Cross compile fstrim for Android on Ubuntu 18.10

Install compiler

$ sudo apt install gcc-arm-linux-gnueabi 

Get sources and compile

$ apt source util-linux
$ cd util-linux-*
$ ./autogen.sh
$ ./configure --host=arm-linux-gnueabi CFLAGS="-static"
$ make LDFLAGS="--static" fstrim
# OK with warnings

Check

$ file fstrim
fstrim: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=5f6d5789d8c27197fb5fadbc18f5cd506b330dc4, with debug_info, not stripped

Turn on Wi-Fi on Netgear Nighthawk D7000 using telnet

This procedure works even if the physical button on the device has been pressed to shut down Wi-Fi.

Enable telnet

Assuming your device’s IP is 192.168.1.1:

$ wget --quiet --user=admin --password='password' -O- http://192.168.1.1/setup.cgi?todo=debug; echo

Enter the device

$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
D7000 login: admin
Password: 
# 

Set physical button on

# nvram set wifi_btn_on=1

Restart WLAN

# /usr/sbin/rc_app/rc_wlan start

Override DNS new release (v5.1.0)

Changelog

  • Make everything faster
  • New feature: the app can use DNS servers listening on alternate ports (ur0011)
  • New feature: the app can now be activated as a Device Administrator (ur0020)
  • New feature: support for 64-bit architectures in setools-android
  • New feature: auto clear notification (ur0031)
  • New feature: custom notification priority (ur0032)
  • Migrate root library from RootCommands to libsuperuser
  • Add OpenDNS on port 443 in the predefined list of available servers
  • Ask again for root permissions after an upgrade
  • Add iptables cleanup procedure in the Advanced settings
  • Upgrade gradle, EventBus, setools-android, android-rate, showcaseview, dashclock-api
  • New library: vntnumberpickerpreference
  • bugfix when busybox replaces toolbox/toybox
  • bugfixes