source: trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh @ 29910

Last change on this file since 29910 was 29910, checked in by juhosg, 5 years ago

ramips: add support for Sitecom WL-341v3 and other Sercomm IP1006RRv2 boards

This patch adds support for the Sitecom WL-341 v3 and other Sercomm
IP1006RRv2 based boards for sysupgrade support and for the initial
flash through pushbutton initiated recovery mode with the special
partition table and fixes for the quirks and things required by the
modified bootloader.

There is a known bug, Wi-Fi is not working on my board probably
because of the lack of RAM (the board only has 16MiB ram -- half of
the normal amount for non rebadged versions, but there is an empty
slot for another ram chip,) but I don't know for sure. The driver
loads but hostapd fails to load so I think it's not related to the
specific device except for the lack of RAM.

Moreover, only 7 of the 11 onboard leds are confirmed working, it
seems that one of the others is always on and the remaining ones are
connected to the wireless card leds already recognized by OpenWrt

[juhosg: reordered some parts in order to keep things sorted
alphabetically]

Signed-off-by: Marco Antonio Mauro <marcus90@…>

  • Property svn:executable set to *
File size: 1016 bytes
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4
5. /lib/ramips.sh
6
7PART_NAME=firmware
8RAMFS_COPY_DATA=/lib/ramips.sh
9
10platform_check_image() {
11        local board=$(ramips_board_name)
12        local magic="$(get_magic_word "$1")"
13
14        [ "$ARGC" -gt 1 ] && return 1
15
16        case "$board" in
17        all0256n | \
18        bc2 | \
19        dir-300-b1 | \
20        dir-600-b1 | \
21        dir-600-b2 | \
22        esr-9753 | \
23        fonera20n | \
24        hw550-3g | \
25        mofi3500-3gn | \
26        nbg-419n | \
27        nw718 | \
28        omni-emb | \
29        rt-g32-b1 | \
30        rt-n15 | \
31        w502u |\
32        v22rw-2x2 | \
33        wl341v3 | \
34        wli-tx4-ag300n | \
35        whr-g300n |\
36        wr512-3gn)
37                [ "$magic" != "2705" ] && {
38                        echo "Invalid image type."
39                        return 1
40                }
41                return 0
42                ;;
43        esac
44
45        echo "Sysupgrade is not yet supported on $board."
46        return 1
47}
48
49platform_do_upgrade() {
50        local board=$(ramips_board_name)
51
52        case "$board" in
53        *)
54                default_do_upgrade "$ARGV"
55                ;;
56        esac
57}
58
59disable_watchdog() {
60        killall watchdog
61        ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
62                echo 'Could not disable watchdog'
63                return 1
64        }
65}
66
67append sysupgrade_pre_upgrade disable_watchdog
Note: See TracBrowser for help on using the repository browser.