| Type | Spec | Notes | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CPU | 4-core Realtek 8198d | arch: mips (interAptiv, 1, 16, 32r2) | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| RAM | 256 MiB | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Storage | 128 MiB | MTD layout
|
- Open the unit by removing the 6 screws (two are hidden)
- Solder wires to the labelled pads near the WAN port
- Attach using a serial bridge (115200, 8N1)
- Power on and press any key within a few seconds to enter das u-boot
Enter the following commands to boot from das u-boot to a root shell:
set root_mtd 31:6
run process0 setmoreargs
setenv bootargs ${bootargs_base} init=/bin/sh ${more_args} ${mtdparts}
bootm ${freeAddr}
Once booted into Linux watchdog timer errors may be firing; to remove these enter the following command to retain root and bring up the system normally:
. /etc/init.d/rcS- Generate a new root password
- Run in the shell:
openssl passwd -1
- Be sure to copy the resulting password hash
- Run in the shell:
- Install the root password using the serial console
cp /var/passwd /var/passwd.bak sed -i 's|root:x|root:$1...|g' /var/passwd- Where the
$1...is replaced with the result fromopenssl passwd -l - This will overwrite the root password on the writable ramfs filesystem
- For example the password
passwordwould be:sed -i 's|root:x|root:$1$D4gmG9Vf$iuilMi2XjHy5elD1zeFHr/|g' /var/passwd
- Where the
- Start
dropbearon the device via serialdropbear
- This command starts the dropbear ssh server
- Edit your client's
~/.ssh/configfile to include exceptions for low securityHost 192.168.10.1 KexAlgorithms +diffie-hellman-group1-sha1 PubkeyAcceptedAlgorithms +ssh-rsa HostKeyAlgorithms +ssh-rsa Ciphers +3des-cbc- 192.168.10.1 is the default ip of the router
- Connect via SSH using the command
ssh [email protected]
mib set PON_MODE 1
mib commit
cat <<EOF > /var/config/run_customized_sdk.sh
#!/bin/sh
# Set password as the root password
grep -v root /etc/passwd > /tmp/passwd
echo "root:$(openssl passwd -1 password):0:0::/tmp:/bin/sh" > /etc/passwd
cat /tmp/passwd >> /etc/passwd
# Start dropbear
dropbear
EOF
chmod +x /var/config/run_customized_sdk.sh