List of
tools
Upgrade
the firmware
Connect
the LAN cable from the TL-MR3040 to your pc
goto
192.168.0.1
Login
with:
admin
admin
goto
System
tools-> Firmware upgrade->Load firmware tl-MR3040 v2
Load the
bin and click upgrade.
Are you
sure? Yes.
You
should see something like this
Flash
new firmware
Create
Password
Connect
to internet
192.168.1.1>login>network>wifi>scan>selectnetwork>join>insert
wpa>Save and submit
ssh with
putty
opkg
update
opkg
install block-mount kmod-usb-storage kmod-fs-ext4
an
error appears
kmod: failed to insert
/lib/modules/3.10.49/sd_mod.ko
Configuring kmod-usb-storage.
Configuring kmod-crypto-hash.
Configuring kmod-lib-crc16.
Configuring block-mount.
Configuring kmod-fs-ext4.
kmod: failed to insert
/lib/modules/3.10.49/ext4.ko
just attach
usb stick formatted
and reboot
type
block info (if no sda appears just reboot)
type
block info (now sda should appear)
root@OpenWrt:~# block info
/dev/mtdblock2:
UUID="81bcb73d-04401baf-0018cf4e-6fb32fc7" VERSION="4.0"
TYPE="squashfs"
/dev/mtdblock3: TYPE="jffs2"
/dev/sda1: VERSION="2"
TYPE="swap"
/dev/sda2: UUID="4ff1f97d-52d2-d201-4031-f97d52d2d201"
NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda2
-xf -
umount /tmp/cproot
Make the router boot from flash drive
Login to router via WinSCP (/index.php/blog/item/24-winscp-windows-secure-copy)
and edit the /etc/config/fstab file. Below is my original configuration.
a
ssh with putty
cp /etx/config/fstab /etx/config/__fstab
vim /etc/config/fstab
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config 'mount'
option target '/mnt/sda2'
option uuid 'cdfd73b1-8c85-d001-c0f0-72b18c85d001'
option enabled '0'
config 'swap'
option device '/dev/sda1'
option enabled '0'
Chage it to the following. Take note
that target is changed from /mnt/sda1 to /
config 'global'
option anon_swap '1'
option anon_mount '1'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config 'mount'
option target '/'
option uuid 'cdfd73b1-8c85-d001-c0f0-72b18c85d001'
option enabled '1'
config 'swap'
option device '/dev/sda1'
option
enabled '1'
/etc/init.d/fstab
enable
reboot
check
that everything went goot by typing:
df –h
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 13.0G 11.3M
12.3G 0% /
/dev/root 2.3M 2.3M 0 100% /rom
tmpfs 14.1M 884.0K
13.2M 6% /tmp
/dev/sda2 13.0G 11.3M
12.3G 0% /
tmpfs 512.0K 0
512.0K 0% /dev
INSTALL
REQUIRED DEVELOPMENT AND NETWORKING PACKAGES
opkg
update
opkg
install iw iwinfo tcpdump aircrack-ng
to
start webserver
/etc/init.d/uhttpd
restart
No comments:
Post a Comment