Changes after last pull requests, README update
authorPiotr Dymacz <pepe2k@gmail.com>
Wed, 9 Oct 2013 09:51:22 +0000 (11:51 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Wed, 9 Oct 2013 09:51:22 +0000 (11:51 +0200)
Makefile
README.md
u-boot/Makefile
u-boot/board/ar7240/ap121/ap121.c
u-boot/board/ar7240/common/ar7240_flash.c

index 21ff475adea1d7cd30adee79b3fd13417d7edf72..34dac2da21c900e6c4e6b5525aa2f15467a1fe00 100755 (executable)
--- 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
index 298457776e307b1589b2d8a4863fed4a465c9cbb..f526d54454b6c68702f280a8f0ffc37cedc22cbb 100644 (file)
--- 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.
 
index 60155b3f0dfb99db2a0b96fd07969b1b39db0327..cf9d15bc57c1538faaad9b2f1a384fba15e0a471 100755 (executable)
@@ -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
index 612d735d032d615916e5c53f33341a0a6d181d27..7013e98482d453e2083e6a6ad1e3088946f59266 100755 (executable)
@@ -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
         *
index b9810c7322f5b7cec1665f3af34208a999ad03d5..02519d95001408926aaf652d70449780f69f6de3 100755 (executable)
@@ -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
                         */