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-*
$ ./
$ ./configure --host=arm-linux-gnueabi CFLAGS="-static"
$ make LDFLAGS="--static" fstrim
# OK with warnings


$ 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

$ wget --quiet --user=admin --password='password' -O-; echo

Enter the device

$ telnet
Connected to
Escape character is '^]'.
D7000 login: admin

Set physical button on

# nvram set wifi_btn_on=1

Restart WLAN

# /usr/sbin/rc_app/rc_wlan start