From 91523e99eba98d22818e4f54cd93180614da5c73 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Wed, 9 Oct 2013 11:51:22 +0200 Subject: [PATCH] Changes after last pull requests, README update --- Makefile | 2 + README.md | 54 ++++++++++++++--------- u-boot/Makefile | 3 +- u-boot/board/ar7240/ap121/ap121.c | 2 +- u-boot/board/ar7240/common/ar7240_flash.c | 2 + 5 files changed, 38 insertions(+), 25 deletions(-) diff --git a/Makefile b/Makefile index 21ff475..34dac2d 100755 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ tplink_mr10u: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin @make show_size + tplink_mr13u: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-mr13u tplink_mr13u: export MAX_UBOOT_SIZE=64 tplink_mr13u: export COMPRESSED_UBOOT=1 @@ -67,6 +68,7 @@ tplink_mr13u: @cd $(BUILD_TOPDIR)/u-boot/ && $(MAKECMD) ENDIANNESS=-EB V=1 all @cp $(BUILD_TOPDIR)/u-boot/tuboot.bin $(BUILD_TOPDIR)/bin/temp.bin @make show_size + tplink_wr740n_v4: export UBOOT_FILE_NAME=uboot_for_tp-link_tl-wr740n_v4 tplink_wr740n_v4: export MAX_UBOOT_SIZE=64 tplink_wr740n_v4: export COMPRESSED_UBOOT=1 diff --git a/README.md b/README.md index 2984577..f526d54 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Table of contents - [Introduction](#introduction) - [Supported devices](#supported-devices) +- [Known issues](#known-issues) - [Modifications, changes](#modifications-changes) - [Web server](#web-server) - [Network Console](#network-console) @@ -45,13 +46,14 @@ Supported devices Currently supported devices: - **Atheros AR9331**: - - 8devices Carambola 2 (for version with development board!), [photos in my gallery](http://galeria.tech-blog.pl/8devices_Carambola_2/) - - TP-Link TL-MR3020 v1, [photos in my gallery](http://galeria.tech-blog.pl/TPLINK_TL-MR3020/) + - 8devices Carambola 2 (for version with development board, [photos in my gallery](http://galeria.tech-blog.pl/8devices_Carambola_2/)) + - TP-Link TL-MR3020 v1 ([photos in my gallery](http://galeria.tech-blog.pl/TPLINK_TL-MR3020/)) - TP-Link TL-MR3040 v1 and v2 - - TP-Link TL-WR703N v1, [photos in my gallery](http://galeria.tech-blog.pl/TPLINK_TL-WR703N/) + - TP-Link TL-WR703N v1, ([photos in my gallery](http://galeria.tech-blog.pl/TPLINK_TL-WR703N/)) - TP-Link TL-WR720N v3 (version for Chinese market) - - TP-Link TL-WR710N v1 (version for European market), [photos in my gallery](http://galeria.tech-blog.pl/TP-Link_TL-WR710N-EU/) - - TP-Link TL-MR10U v1, [photos in my gallery](http://galeria.tech-blog.pl/TP-Link_TL-MR10U/) + - TP-Link TL-WR710N v1 (version for European market, [photos in my gallery](http://galeria.tech-blog.pl/TP-Link_TL-WR710N-EU/)) + - TP-Link TL-MR10U v1 ([photos in my gallery](http://galeria.tech-blog.pl/TP-Link_TL-MR10U/)) + - TP-Link TL-MR13U v1 - TP-Link TL-WR740N v4 (and similar, like TL-WR741ND v4) - TP-Link TL-MR3220 v2 @@ -66,23 +68,30 @@ I tested this modification on most of these devices, with OpenWrt and OFW firmwa More information about supported devices: -| Model | SoC | FLASH | RAM | U-Boot image type | U-Boot environment | +| Model | SoC | FLASH | RAM | U-Boot image | U-Boot env | |:--- | :--- | ---: | ---: | ---: | ---: | -| [8devices Carambola 2](http://8devices.com/carambola-2) | AR9331 | 16 MiB | 64 MiB DDR2 | 256 KiB, uncompressed | 64 KiB block, R/W | -| [TP-Link TL-MR3020 v1](http://wiki.openwrt.org/toh/tp-link/tl-mr3020) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-MR3040 v1/2](http://wiki.openwrt.org/toh/tp-link/tl-mr3040) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-WR703N](http://wiki.openwrt.org/toh/tp-link/tl-wr703n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-WR720N v3](http://wiki.openwrt.org/toh/tp-link/tl-wr720n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-WR710N v1](http://www.tp-link.com/en/products/details/?model=TL-WR710N) | AR9331 | 8 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-MR10U v1](http://wiki.openwrt.org/toh/tp-link/tl-mr10u) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-WR740N v4](http://wiki.openwrt.org/toh/tp-link/tl-wr740n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-MR3220 v2](http://wiki.openwrt.org/toh/tp-link/tl-mr3420) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-WDR3600 v1](http://wiki.openwrt.org/toh/tp-link/tl-wdr3600) | AR9344 | 8 MiB | 128 MiB DDR2 | 64 KiB, compressed | embedded, R | -| [TP-Link TL-WDR43x0 v1](http://wiki.openwrt.org/toh/tp-link/tl-wdr4300) | AR9344 | 8 MiB | 128 MiB DDR2 | 64 KiB, compressed | embedded, R | -| [D-Link DIR-505 H/W ver. A1](http://wiki.openwrt.org/toh/d-link/dir-505) | AR1311 | 8 MiB | 64 MiB DDR2 | 64 KiB, compressed | embedded, R | - -*(R/W) - environment exist in separate flash block which allows you to save it and keep after power down the device.* -*(R) - environment is read only, you can change and add new variables only during a runtime. After power down, your changes will be lost.* +| [8devices Carambola 2](http://8devices.com/carambola-2) | AR9331 | 16 MiB | 64 MiB DDR2 | 256 KiB | 64 KiB, R/W | +| [TP-Link TL-MR3020 v1](http://wiki.openwrt.org/toh/tp-link/tl-mr3020) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-MR3040 v1/2](http://wiki.openwrt.org/toh/tp-link/tl-mr3040) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-WR703N](http://wiki.openwrt.org/toh/tp-link/tl-wr703n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-WR720N v3](http://wiki.openwrt.org/toh/tp-link/tl-wr720n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-WR710N v1](http://wiki.openwrt.org/toh/tp-link/tl-wr710n) | AR9331 | 8 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-MR10U v1](http://wiki.openwrt.org/toh/tp-link/tl-mr10u) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-MR13U v1](http://wiki.openwrt.org/toh/tp-link/tl-mr13u) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-WR740N v4](http://wiki.openwrt.org/toh/tp-link/tl-wr740n) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-MR3220 v2](http://wiki.openwrt.org/toh/tp-link/tl-mr3420) | AR9331 | 4 MiB | 32 MiB DDR1 | 64 KiB, LZMA | E/R | +| [TP-Link TL-WDR3600 v1](http://wiki.openwrt.org/toh/tp-link/tl-wdr3600) | AR9344 | 8 MiB | 128 MiB DDR2 | 64 KiB, LZMA | E/R | +| [TP-Link TL-WDR43x0 v1](http://wiki.openwrt.org/toh/tp-link/tl-wdr4300) | AR9344 | 8 MiB | 128 MiB DDR2 | 64 KiB, LZMA | E/R | +| [D-Link DIR-505 H/W ver. A1](http://wiki.openwrt.org/toh/d-link/dir-505) | AR1311 | 8 MiB | 64 MiB DDR2 | 64 KiB, LZMA | E/R | + +*(LZMA) - U-Boot binary image is compressed with LZMA.* +*(R/W) - environment exist in separate flash block which allows you to save it and keep after power down.* +*(E/R) - environment is read only, you can change and add new variables only during a runtime.* + +Known issues +------------ + +Current release is not loading kernel from some versions of TP-Link's official firmware. If you want to use the so-called OFW in any of supported TP-Link's router, do not use this modification. I am working on a solution for this issue. Modifications, changes ---------------------- @@ -168,6 +177,7 @@ Currently supported flash types: - Winbond W25Q128 (16 MB, JEDEC ID: EF 4018)* - Macronix MX25L128 (16 MB, JEDEC ID: C2 2018, C2 2618) +- Spansion S25FL127S (16 MB, JEDEC ID: 01 2018)* (*) tested @@ -404,7 +414,7 @@ FAQ #### 3. Do you test all prebuilt images before you publish them? -*No, because I don't have all supported devices, only few of them. But, I make tests for every supported SoC types.* +*No, because I do not have all supported devices, only few of them. But, I make tests for every supported SoC types.* #### 4. I would like you to add support for device X. diff --git a/u-boot/Makefile b/u-boot/Makefile index 60155b3..cf9d15b 100755 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -373,10 +373,9 @@ mr13u_config : unconfig hornet_common_config @echo "#define GPIO_RST_BUTTON_BIT 11" >> include/config.h @echo "#define DEFAULT_FLASH_SIZE_IN_MB 4" >> include/config.h @echo "#define BOARD_CUSTOM_STRING \"AP121 (AR9331) U-Boot for TL-MR13U\"" >> include/config.h - + @./mkconfig -a ap121 mips mips ap121 ar7240 ar7240 - wr740n_v4_config : unconfig hornet_common_config @echo '======= Configuring for TP-Link TL-WR740N v4 at:' `date` '=======' @echo "#define CONFIG_FOR_TPLINK_WR740N_V4 1" >> include/config.h diff --git a/u-boot/board/ar7240/ap121/ap121.c b/u-boot/board/ar7240/ap121/ap121.c index 612d735..7013e98 100755 --- a/u-boot/board/ar7240/ap121/ap121.c +++ b/u-boot/board/ar7240/ap121/ap121.c @@ -226,7 +226,7 @@ void gpio_config(void){ //ar7240_reg_wr (AR7240_GPIO_FUNC, (ar7240_reg_rd(AR7240_GPIO_FUNC) & 0xffe7e07f)); #elif defined(CONFIG_FOR_TPLINK_MR10U_V1) || defined(CONFIG_FOR_TPLINK_MR13U_V1) - /* LED's GPIOs on MR10U: + /* LED's GPIOs on MR10U/MR13U: * * 27 => SYS * diff --git a/u-boot/board/ar7240/common/ar7240_flash.c b/u-boot/board/ar7240/common/ar7240_flash.c index b9810c7..02519d9 100755 --- a/u-boot/board/ar7240/common/ar7240_flash.c +++ b/u-boot/board/ar7240/common/ar7240_flash.c @@ -178,10 +178,12 @@ unsigned long flash_init(void){ flash_set_geom(SIZE_INBYTES_16MBYTES, 256, SIZE_INBYTES_64KBYTES); puts("Macronix MX25L128 (16 MB)"); break; + case 0x012018: flash_set_geom(SIZE_INBYTES_16MBYTES, 256, SIZE_INBYTES_64KBYTES); puts("Spansion S25FL127S (16 MB)"); break; + /* * Unknown flash */ -- 2.25.1