Table of Contents

Summary

Commands:

Host Machine

SSH in:

OpenWRT and firmware

RT5350 SDK Firmware

NTP server

config timeserver 'ntp'
        option enabled '1'
        option enable_server '1'

Dumb AP:

(based on https://openwrt.org/docs/guide-user/network/wifi/dumbap)

Change /etc/config/network to read:

 
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'
 
config globals 'globals' 
        option ula_prefix 'fd38:6ad4:9ddd::/48'
 
config interface 'lan' 
        option type 'bridge' 
        option ifname 'eth0.1' 
        option proto 'dhcp'
 
config device 'lan_dev' 
        option name 'eth0.1'
 
config switch 
        option name 'rt305x' 
        option reset '1' 
        option enable_vlan '1'
 
config switch_vlan
        option device 'rt305x' 
        option vlan '1' 
        option ports '0 1 2 3 4 6t'

Disable DHCP server, DHCP6 server, firewall, acceptions:

/etc/init.d/dnsmasq disable
/etc/init.d/dnsmasq stop
/etc/init.d/odhcpd disable
/etc/init.d/odhcpd stop
/etc/init.d/firewall disable
/etc/init.d/firewall stop
/etc/init.d/acceptions disable
/etc/init.d/acceptions stop

Restart network:/etc/init.d/network reload

Loading new images

TFTP

Uploading with pure HTML/CSS:

Memory Layout:

dev:    size   erasesize  name
mtd0: 00030000 00001000 "u-boot"
mtd1: 00010000 00001000 "u-boot-env"
mtd2: 00010000 00001000 "factory"
mtd3: 003b0000 00001000 "firmware"
mtd4: 00126852 00001000 "kernel"
mtd5: 002897ae 00001000 "rootfs"
mtd6: 000c0000 00001000 "rootfs_data"

0x00000000-0x00800000 : "ALL"
0x00000000-0x00030000 : "Bootloader"
0x00030000-0x00040000 : "Config"
0x00040000-0x00050000 : "Factory"
0x00050000-0x01000000 : "Kernel"

from the stock:

/proc/mtd# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00800000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 007b0000 00010000 "Kernel"

Todo:

Attached: latest mpr-a1 LEDE firmware with bitbucket customizations

openwrt-ramips-rt305x-vmlinux.bin

lede-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin