diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-07 06:55:39 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-07 06:55:39 +0000 |
commit | dbdb71ce8b05c5158a0379c460b851b412fde024 (patch) | |
tree | 5997a404899d12eb64212f3146527a2cadc4da08 /target/linux/ar71xx/image | |
parent | bee30c2698f8dac13196c9ce45371f0dc6ad4be4 (diff) | |
download | upstream-dbdb71ce8b05c5158a0379c460b851b412fde024.tar.gz upstream-dbdb71ce8b05c5158a0379c460b851b412fde024.tar.bz2 upstream-dbdb71ce8b05c5158a0379c460b851b412fde024.zip |
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
Diffstat (limited to 'target/linux/ar71xx/image')
0 files changed, 0 insertions, 0 deletions