Started writing a new post.

This commit is contained in:
Franco Masotti 2018-04-08 16:21:59 +02:00
parent 5774c365ea
commit b3a8bc83d4
1 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,98 @@
title: OpenWrt on the DG834Gv4 modem router
tags: [openwrt, modem, router]
updated: 2018-04-04 13:00
description: Attempt to repair my first PC and part inventory
# Overview
The [DG834Gv4]( is an old
*Netgear* WiFi modem/router and has been the main and only wireless access
point available to me. Years have passed and this hardware shows signs
of its age. Also, when using it as a DSL modem, it sometimes disconnected
because of the heat it generates. It was time to decommision it.
In the meantime someone discovered a nice
[feature]( including the DG834Gv4.
One more reason not to use it.
# Proc
- [Follow the instuctions]([]=dg834gv4) reported on the OpenWrt wiki
but intead of getting Chaos Calamer get Attitude Adjustment.
- Change root password via luci
- Enter ssh and
/etc/init.d/uhttpd stop
/etc/init.d/uhttpd disable
opkg remove --autoremove uci uhttpd
## Network and device configuration.
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type 'mac80211'
option macaddr '<router_s MAC address here>'
option hwmode '11g'
option channel '<channel>'
option country '<region>'
option txpower '20'
option disabled '0'
config wifi-iface
option device 'radio0'
option network 'lan'
option mode 'ap'
option encryption 'psk2+aes'
option key '<your key here>'
option ssid '<your SSID here'
root@OpenWrt:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr ''
option netmask ''
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '<router_s address>'
option netmask '<router_s netmask>'
## Attempt 1
### Problems
- Not enough memory to install anything even after killing several processes.
route add default gateway netmask metric 0
echo "nameserver" > /etc/resolv.conf
root@OpenWrt:~# opkg install sshfs
Installing sshfs (2.2-1) to root...
Collected errors:
* gz_open: fork: Cannot allocate memory.
* opkg_install_pkg: Failed to unpack control files from /tmp/opkg-Ry3bvT/sshfs_2.2-1_brcm63xx.ipk.
* opkg_install_cmd: Cannot install package sshfs.
- WiFi seems less powerful than it should be. This is quite disappointing.
## Attempt 2
Will include patching the original netgear firmware by removing the `sgfmgr`
file and boot line.