1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 20:52:59 +02:00
openwrt-xburst/target/linux/ar71xx
juhosg e310d5b786 ar71xx: fix WNDR3x00 model detection
Detect the model name for /tmp/sysinfo/model based on 10 bytes at offset
56 in the art (caldata) mtd partition.

r29434 redid WNDR3x00 model detection, attempting to distinguish between
WNDR3700v2 and WNDR3800 by checking MemTotal in /proc/meminfo. However, it
contained a bug: it put the awk inside a $(...), with the result that all
WNDR3700v2 and WNDR3800 models would be reported as WNDR3800. This patch
checks the model name stored in the art partition, as is done by U-Boot
shipping on the WNDR3800. It has the likely advantage of working with
future models based on the WNDR3700 board. It also will not mis-detect
units on which people install more memory.

I have tested this patch on WNDR3700 (v1), WNDR3700v2, and WNDR3800.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29472 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-07 06:55:39 +00:00
..
base-files ar71xx: fix WNDR3x00 model detection 2011-12-07 06:55:39 +00:00
files ar71xx: use correct mac on the lan interface on several TP-LINK devices 2011-12-05 21:10:58 +00:00
generic ar71xx: cleanup TP-Link profiles 2011-12-06 10:29:25 +00:00
image ar71xx: create firmware image for the TL-WR740N/ND v4 boards 2011-12-06 16:26:44 +00:00
nand ar71xx: remove swconfig and wpad-mini from custom profiles 2011-12-03 16:33:41 +00:00
patches-2.6.39 ar71xx: add mtd partition parser for the TP-Link boards 2011-12-03 18:13:27 +00:00
base-files.mk [ar71xx] defconfig: remove network config installed by base-files so defconfig can work 2009-02-26 05:54:46 +00:00
config-2.6.39 ar71xx: add preliminary support for wzr-hp-g450h 2011-12-05 14:20:51 +00:00
Makefile ar71xx: add uboot-envtools to the default package list 2011-12-03 16:33:40 +00:00