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