projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce72e8d
)
ramips: rt305x: add support for the DIR-600 B1,B2 boards
author
juhosg
<juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 28 Jul 2011 10:56:24 +0000
(10:56 +0000)
committer
juhosg
<juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 28 Jul 2011 10:56:24 +0000
(10:56 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27808
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/ramips/base-files/etc/diag.sh
patch
|
blob
|
history
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
patch
|
blob
|
history
target/linux/ramips/base-files/lib/ramips.sh
patch
|
blob
|
history
target/linux/ramips/base-files/lib/upgrade/platform.sh
patch
|
blob
|
history
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
patch
|
blob
|
history
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
patch
|
blob
|
history
target/linux/ramips/image/Makefile
patch
|
blob
|
history
diff --git
a/target/linux/ramips/base-files/etc/diag.sh
b/target/linux/ramips/base-files/etc/diag.sh
index
f0bd63f
..
c411053
100755
(executable)
--- a/
target/linux/ramips/base-files/etc/diag.sh
+++ b/
target/linux/ramips/base-files/etc/diag.sh
@@
-30,7
+30,7
@@
status_led_off() {
get_status_led() {
case $(ramips_board_name) in
get_status_led() {
case $(ramips_board_name) in
- dir-300-b1)
+ dir-300-b1
| dir-600-b1 | dir-600-b2
)
status_led="d-link:green:status"
;;
fonera20n)
status_led="d-link:green:status"
;;
fonera20n)
diff --git
a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index
398ad79
..
03ff4f8
100644
(file)
--- a/
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/
target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@
-31,7
+31,9
@@
case "$FIRMWARE" in
local board=$(ramips_board_name)
case $board in
local board=$(ramips_board_name)
case $board in
- dir-300-b1)
+ dir-300-b1 | \
+ dir-600-b1 | \
+ dir-600-b2)
rt2x00_eeprom_extract "devdata" 16384 272
;;
rt2x00_eeprom_extract "devdata" 16384 272
;;
diff --git
a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index
dc03b47
..
f34454b
100755
(executable)
--- a/
target/linux/ramips/base-files/lib/ramips.sh
+++ b/
target/linux/ramips/base-files/lib/ramips.sh
@@
-16,6
+16,12
@@
ramips_board_name() {
*"DIR-300 B1")
name="dir-300-b1"
;;
*"DIR-300 B1")
name="dir-300-b1"
;;
+ *"DIR-600 B1")
+ name="dir-600-b1"
+ ;;
+ *"DIR-600 B2")
+ name="dir-600-b2"
+ ;;
*"F5D8235 v2")
name="f5d8235-v2"
;;
*"F5D8235 v2")
name="f5d8235-v2"
;;
diff --git
a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index
b701938
..
0dd3b7b
100755
(executable)
--- a/
target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/
target/linux/ramips/base-files/lib/upgrade/platform.sh
@@
-14,7
+14,7
@@
platform_check_image() {
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
[ "$ARGC" -gt 1 ] && return 1
case "$board" in
- dir-300-b1 | fonera20n | v22rw-2x2 | whr-g300n | hw550-3g | mofi3500-3gn)
+ dir-300-b1 |
dir-600-b1 | dir-600-b2 |
fonera20n | v22rw-2x2 | whr-g300n | hw550-3g | mofi3500-3gn)
[ "$magic" != "2705" ] && {
echo "Invalid image type."
return 1
[ "$magic" != "2705" ] && {
echo "Invalid image type."
return 1
diff --git
a/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
b/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
index
acaf604
..
b9f8a60
100644
(file)
--- a/
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
+++ b/
target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h
@@
-19,6
+19,8
@@
enum ramips_mach_type {
/* RT3050 based machines */
RAMIPS_MACH_DIR_300_B1, /* D-Link DIR-300 B1 */
/* RT3050 based machines */
RAMIPS_MACH_DIR_300_B1, /* D-Link DIR-300 B1 */
+ RAMIPS_MACH_DIR_600_B1, /* D-Link DIR-600 B1 */
+ RAMIPS_MACH_DIR_600_B2, /* D-Link DIR-600 B2 */
/* RT3052 based machines */
RAMIPS_MACH_F5D8235_V2, /* Belkin F5D8235 v2 */
/* RT3052 based machines */
RAMIPS_MACH_F5D8235_V2, /* Belkin F5D8235 v2 */
diff --git
a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
index
c0167bc
..
71b9c51
100644
(file)
--- a/
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
+++ b/
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
@@
-122,3
+122,9
@@
static void __init dir_300b_init(void)
MIPS_MACHINE(RAMIPS_MACH_DIR_300_B1, "DIR-300-B1", "D-Link DIR-300 B1",
dir_300b_init);
MIPS_MACHINE(RAMIPS_MACH_DIR_300_B1, "DIR-300-B1", "D-Link DIR-300 B1",
dir_300b_init);
+
+MIPS_MACHINE(RAMIPS_MACH_DIR_600_B1, "DIR-600-B1", "D-Link DIR-600 B1",
+ dir_300b_init);
+
+MIPS_MACHINE(RAMIPS_MACH_DIR_600_B2, "DIR-600-B2", "D-Link DIR-600 B2",
+ dir_300b_init);
diff --git
a/target/linux/ramips/image/Makefile
b/target/linux/ramips/image/Makefile
index
e84d468
..
dde5ca8
100644
(file)
--- a/
target/linux/ramips/image/Makefile
+++ b/
target/linux/ramips/image/Makefile
@@
-104,13
+104,15
@@
mtd_dir300b1_kernel_part_size=851968
mtd_dir300b1_rootfs_part_size=3014656
define Image/Build/Template/DIR300B1
$(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_dir300b1,$(mtd_dir300b1_kernel_part_size),$(mtd_dir300b1_rootfs_part_size))
mtd_dir300b1_rootfs_part_size=3014656
define Image/Build/Template/DIR300B1
$(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_dir300b1,$(mtd_dir300b1_kernel_part_size),$(mtd_dir300b1_rootfs_part_size))
- mkwrgimg -s
wrgn23_dlwbr_dir300b
-d /dev/mtdblock/2 \
+ mkwrgimg -s
$(4)
-d /dev/mtdblock/2 \
-i $(call imgname,$(1),$(2))-sysupgrade.bin \
-o $(call imgname,$(1),$(2))-factory.bin
endef
define Image/Build/Profile/DIR300B1
-i $(call imgname,$(1),$(2))-sysupgrade.bin \
-o $(call imgname,$(1),$(2))-factory.bin
endef
define Image/Build/Profile/DIR300B1
- $(call Image/Build/Template/DIR300B1,$(1),dir-300-b1,DIR-300-B1)
+ $(call Image/Build/Template/DIR300B1,$(1),dir-300-b1,DIR-300-B1,wrgn23_dlwbr_dir300b)
+ $(call Image/Build/Template/DIR300B1,$(1),dir-600-b1,DIR-600-B1,wrgn23_dlwbr_dir600b)
+ $(call Image/Build/Template/DIR300B1,$(1),dir-600-b2,DIR-600-B2,wrgn23_dlwbr_dir600b)
endef
define Image/Build/Profile/FONERA20N
endef
define Image/Build/Profile/FONERA20N
This page took
0.032299 seconds
and
4
git commands to generate.