source: trunk/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @ 24188

Last change on this file since 24188 was 24188, checked in by cshore, 5 years ago

bcm63xx: Finalize support for DSL-274xB, rev C2.

The DSL-2740B/DSL-2741B rev C2 support was missing the board definition,
resulting in a kernel panic on boot.
This patch adds it, and also renames the generated image name to properly
reflect that it is for the revision C2, and for both the DSL-2740B and
DSL-2741B.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

  • Property svn:executable set to *
File size: 622 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2007 OpenWrt.org
4#
5#
6
7board_name=""
8status_led=""
9status_led2=""
10sys_mtd_part=""
11brcm63xx_has_reset_button=""
12
13brcm63xx_detect() {
14        board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
15
16        case "$board_name" in
17        "bcm63xx/96348GW "*)
18                status_led="tel"
19                status_led2="line1"
20                brcm63xx_has_reset_button="true"
21                ifname=eth1
22                ;;
23        "bcm63xx/96348GW-11 "*)
24                status_led="power"
25                brcm63xx_has_reset_button="true"
26                ifname=eth1
27                ;;
28        "bcm63xx/96358GW "*)
29                status_led="power:green"
30                brcm63xx_has_reset_button="true"
31                ifname=eth0
32                ;;
33        *)
34                ;;
35        esac
36}
37
38brcm63xx_detect
Note: See TracBrowser for help on using the repository browser.