Openwrt/target/linux
Gabor Juhos 8eb8a6e1e7 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>

SVN-Revision: 29472
2011-12-07 06:55:39 +00:00
..
adm5120
adm8668
amazon
ar7
ar71xx ar71xx: fix WNDR3x00 model detection 2011-12-07 06:55:39 +00:00
at91
atheros
au1000
avr32
brcm47xx linux: update 3.0 to 3.0.12 2011-12-06 19:50:25 +00:00
brcm63xx
cns3xxx
cns21xx
cobalt
coldfire
ep93xx
etrax
gemini
generic linux: update 3.1 to 3.1.4 2011-12-06 19:50:30 +00:00
goldfish
imx21
iop32x
ixp4xx
kirkwood
lantiq linux: update 3.1 to 3.1.4 2011-12-06 19:50:30 +00:00
leon
malta linux: update 3.0 to 3.0.12 2011-12-06 19:50:25 +00:00
mpc52xx
mpc83xx
mpc85xx
octeon
omap24xx linux: update 3.1 to 3.1.4 2011-12-06 19:50:30 +00:00
omap35xx
orion linux: update 3.0 to 3.0.12 2011-12-06 19:50:25 +00:00
ppc40x linux: update 3.0 to 3.0.12 2011-12-06 19:50:25 +00:00
ppc44x
ps3
pxa
pxcab
ramips ramips: fix mac addresses on the DIR-300/600 boards 2011-12-06 20:06:08 +00:00
rb532
rdc
realview linux: update 3.0 to 3.0.12 2011-12-06 19:50:25 +00:00
s3c24xx
sibyte
sparc
ubicom32
uml linux: update 3.0 to 3.0.12 2011-12-06 19:50:25 +00:00
x86
xburst
Makefile