mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	The Linksys MR8300 is based on QCA4019 and QCA9888 and provides three, independent radios. NAND provides two, alternate kernel/firmware images with fail-over provided by the OEM U-Boot. Hardware Highlights: SoC: IPQ4019 at 717 MHz (4 CPUs) RAM: 512MB RAM SoC: Qualcomm IPQ4019 at 717 MHz (4 CPUs) RAM: 512M DDR3 FLASH: 256 MB NAND (Winbond W29N02GV, 8-bit parallel) ETH: Qualcomm QCA8075 (4x GigE LAN, 1x GigE Internet Ethernet Jacks) BTN: Reset and WPS USB: USB3.0, single port on rear with LED SERIAL: Serial pads internal (unpopulated) LED: Four status lights on top + USB LED WIFI1: 2x2:2 QCA4019 2.4 GHz radio on ch. 1-14 WIFI2: 2x2:2 QCA4019 5 GHz radio on ch. 36-64 WIFI3: 2x2:2 QCA9888 5 GHz radio on ch. 100-165 Support is based on the already supported EA8300. Key differences: EA8300 has 256MB RAM where MR8300 has 512MB RAM. MR8300 has a revised top panel LED setup. Installation: "Factory" images may be installed directly through the OEM GUI using URL: https://ip-of-router/fwupdate.html (Typically 192.168.1.1) Signed-off-by: Hans Geiblinger <cybrnook2002@yahoo.com> [copied Hardware-highlights from EA8300. Fixed alphabetical order. fixed commit subject, removed bogus unit-address of keys, fixed author (used Signed-off-By to From:) ] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
#
 | 
						|
# Copyright (C) 2016 LEDE
 | 
						|
#
 | 
						|
 | 
						|
[ -e /etc/config/ubootenv ] && exit 0
 | 
						|
 | 
						|
touch /etc/config/ubootenv
 | 
						|
 | 
						|
. /lib/uboot-envtools.sh
 | 
						|
. /lib/functions.sh
 | 
						|
 | 
						|
board=$(board_name)
 | 
						|
 | 
						|
ubootenv_mtdinfo () {
 | 
						|
	UBOOTENV_PART=$(cat /proc/mtd | grep APPSBLENV)
 | 
						|
	mtd_dev=$(echo $UBOOTENV_PART | awk '{print $1}' | sed 's/:$//')
 | 
						|
	mtd_size=$(echo $UBOOTENV_PART | awk '{print "0x"$2}')
 | 
						|
	mtd_erase=$(echo $UBOOTENV_PART | awk '{print "0x"$3}')
 | 
						|
	nor_flash=$(find /sys/bus/spi/devices/*/mtd -name ${mtd_dev})
 | 
						|
 | 
						|
	if [ -n "$nor_flash" ]; then
 | 
						|
		ubootenv_size=$mtd_size
 | 
						|
	else
 | 
						|
		# size is fixed to 0x40000 in u-boot
 | 
						|
		ubootenv_size=0x40000
 | 
						|
	fi
 | 
						|
 | 
						|
	sectors=$(( $ubootenv_size / $mtd_erase ))
 | 
						|
	echo /dev/$mtd_dev 0x0 $ubootenv_size $mtd_erase $sectors
 | 
						|
}
 | 
						|
 | 
						|
case "$board" in
 | 
						|
alfa-network,ap120c-ac |\
 | 
						|
edgecore,ecw5211 |\
 | 
						|
glinet,gl-b1300 |\
 | 
						|
luma,wrtq-329acn |\
 | 
						|
openmesh,a42 |\
 | 
						|
openmesh,a62)
 | 
						|
	ubootenv_add_uci_config "/dev/mtd5" "0x0" "0x10000" "0x10000"
 | 
						|
	;;
 | 
						|
buffalo,wtr-m2133hp)
 | 
						|
	ubootenv_add_uci_config "/dev/mtd8" "0x0" "0x40000" "0x20000"
 | 
						|
	;;
 | 
						|
linksys,ea6350v3)
 | 
						|
	ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x20000"
 | 
						|
	;;
 | 
						|
linksys,ea8300 |\
 | 
						|
linksys,mr8300)
 | 
						|
	ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x40000" "0x20000"
 | 
						|
	;;
 | 
						|
zyxel,nbg6617)
 | 
						|
	ubootenv_add_uci_config "/dev/mtd6" "0x0" "0x10000" "0x10000"
 | 
						|
	;;
 | 
						|
esac
 | 
						|
 | 
						|
config_load ubootenv
 | 
						|
config_foreach ubootenv_add_app_config ubootenv
 | 
						|
 | 
						|
exit 0
 |