Giter VIP home page Giter VIP logo

u-boot_mod's Introduction

U-Boot 1.1.4 modification for routers

This project is no longer maintained!

Table of contents

Introduction

In short, this project is a deep modification of U-Boot 1.1.4 sources, mostly from TP-Link, but some code fragments were taken also from D-Link, Netgear, ZyXEL and Belkin. All these companies are using SDK from Qualcomm/Atheros which includes modified version of U-Boot 1.1.4.

You can download original sources from the following pages:

The concept for this project came from another U-Boot modification, dedicated to a small and very popular TP-Link router - model TL-WR703N, which includes web fail safe mode: wr703n-uboot-with-web-failsafe. I was using it and decided to make my own version, which could have some improvements, additional capabilities, support for different models and work with all modern web browsers.

First version of this modification was introduced on OpenWrt forum in this thread, at the end of March 2013 and was dedicated only for TP-Link routers with Atheros AR9331 SoC. Now, it supports also models from different manufacturers, devices with Atheros AR934x, Qualcomm Atheros QCA953x, Qualcomm Atheros QCA955x and other (in the near future Qualcomm Atheros QCA956x and MediaTek MT762x) are under development.

You can find some information about previous versions of this project also on my blog, in this article. It is in Polish, but Google Translator will help you to understand it.

Supported devices

Currently supported devices:

  • Atheros AR9331:

    • 8devices Carambola 2 (for version with development board, photos in my gallery)
    • ALFA Network AP121F
    • ALFA Network Hornet-UB/Hornet-UB-64 (aka Hornet-UB x2)
    • ALFA Network Tube2H
    • Black Swift
    • CreatComm Technology D3321
    • Dragino MS14/N
    • GainStrong Oolite v1/Elink EL-M150 module with dev board (photos in my gallery)
    • GL.iNet 64xxA (photos in my gallery)
    • GL.iNet GL-AR150
    • GL.iNet GL-USB150
    • Hak5 LAN Turtle
    • Hak5 Packet Squirrel
    • Hak5 WiFi Pineapple NANO
    • TP-Link TL-MR10U v1 (photos in my gallery)
    • TP-Link TL-MR13U v1
    • TP-Link TL-MR3020 v1 (photos in my gallery)
    • TP-Link TL-MR3040 v1 and v2
    • TP-Link TL-MR3220 v2
    • TP-Link TL-WR703N v1, (photos in my gallery)
    • TP-Link TL-WR710N v1 (version for European market, photos in my gallery)
    • TP-Link TL-WR720N v3 (version for Chinese market)
    • TP-Link TL-WR740N v4 (and similar, like TL-WR741ND v4)
    • Village Telco Mesh Potato 2 (based on Dragino MS14/N)
  • Atheros AR1311 (similar to AR9331)

  • Atheros AR9341:

    • EnGenius ENS202EXT
    • TP-Link TL-MR3420 v2
    • TP-Link TL-WA801ND v2
    • TP-Link TL-WA830RE v2
    • TP-Link TL-WR841N/D v8
    • YunCore CPE870
  • Atheros AR9342:

    • TP-Link TL-WR1041N v2
  • Atheros AR9344:

    • ALFA Network N5Q
    • GL.iNet GL-AR300
    • TP-Link TL-WDR3500 v1
    • TP-Link TL-WDR3600 v1
    • TP-Link TL-WDR43x0 v1
  • Qualcomm Atheros QCA953x:

    • ALFA Network R36A
    • Comfast CF-E314N
    • Comfast CF-E320N v2
    • Comfast CF-E520N/CF-E530N
    • GainStrong Oolite v5.2 (module and dev board)
    • GL.iNet GL-AR300M Lite
    • GL.iNet GL-AR750
    • P&W CPE505N
    • P&W R602N
    • TP-Link TL-MR22U v1
    • TP-Link TL-MR3420 v3
    • TP-Link TL-MR6400 v1, v2
    • TP-Link TL-WA850RE v2
    • TP-Link TL-WR802N
    • TP-Link TL-WR810N v1, v2
    • TP-Link TL-WR820N (version for Chinese market)
    • TP-Link TL-WR841N/D v9, v10, v11
    • TP-Link TL-WR842N/D v3
    • TP-Link TL-WR902AC v1
    • Wallys DR531
    • WHQX E600G/AC v2
    • YunCore AP90Q
    • YunCore CPE830
    • YunCore T830
    • Zbtlink ZBT-WE1526

I tested this modification on most of these devices, with OpenWrt and OFW firmware. If you are not sure about the version of your device, please contact with me before you try to make an upgrade. Changing bootloader to a wrong version will probably damage your router and you will need special hardware to fix it, so please, be very careful.

More information about supported devices:

Model SoC FLASH RAM U-Boot image U-Boot env
8devices Carambola 2 AR9331 16 MiB 64 MiB DDR2 256 KiB R/W
ALFA Network AP121F AR9331 16 MiB 64 MiB DDR1 192 KiB, LZMA R/W
ALFA Network Hornet-UB AR9331 8/16 MiB 32/64 MiB DDR1 256 KiB R/W
ALFA Network N5Q AR9344 16 MiB 64 MiB DDR2 384 KiB, LZMA R/W
ALFA Network R36A QCA9531 16 MiB 64 MiB DDR2 384 KiB, LZMA R/W
ALFA Network Tube2H AR9331 8/16 MiB 32/64 MiB DDR1 256 KiB R/W
Black Swift AR9331 16 MiB 64 MiB DDR2 128 KiB, LZMA R/W
Comfast CF-E314N QCA9531 16 MiB 64 MiB DDR2 64 KiB, LZMA RO
Comfast CF-E320N v2 QCA9531 16 MiB 64 MiB DDR2 64 KiB, LZMA RO
Comfast CF-E520N/CF-E530N QCA9531 8 MiB 32 MiB DDR2 64 KiB, LZMA RO
CreatComm Technology D3321 AR9331 8 MiB 32 MiB DDR1 256 KiB RW
D-Link DIR-505 H/W ver. A1 AR1311 8 MiB 64 MiB DDR2 64 KiB, LZMA RO
Dragino MS14/N AR9331 16 MiB 64 MiB DDR1 192 KiB R/W
EnGenius ENS202EXT AR9341 16 MiB 64 MiB DDR1 256 KiB R/W
GainStrong Oolite v1/Elink EL-M150 module AR9331 4/8/16 MiB 64 MiB DDR2 64 KiB, LZMA RO
GainStrong Oolite v5.2 QCA9531 16 MiB 64/128 MiB DDR2 256 KiB, LZMA RO
GL.iNet 64xxA AR9331 8/16 MiB 64 MiB DDR1 64 KiB RO
GL.iNet GL-AR150 AR9331 16 MiB 64 MiB DDR2 256 KiB R/W
GL.iNet GL-AR300 AR9344 16 MiB 128 MiB DDR2 256 KiB R/W
GL.iNet GL-AR300M Lite QCA9531 16 MiB 128 MiB DDR2 256 KiB R/W
GL.iNet GL-AR750 QCA9531 16 MiB 128 MiB DDR2 256 KiB R/W
GL.iNet GL-USB150 AR9331 16 MiB 64 MiB DDR2 256 KiB R/W
Hak5 LAN Turtle AR9331 16 MiB 64 MiB DDR2 128 KiB R/W
Hak5 Packet Squirrel AR9331 16 MiB 64 MiB DDR2 128 KiB R/W
Hak5 WiFi Pineapple NANO AR9331 16 MiB 64 MiB DDR2 128 KiB R/W
P&W CPE505N QCA9531 16 MiB 64 MiB DDR2 256 KiB R/W
P&W R602N QCA9531 16 MiB 64 MiB DDR2 256 KiB R/W
TP-Link TL-MR10U v1 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR13U v1 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR22U v1 QCA9531 8 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR3020 v1 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR3040 v1/2 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR3220 v2 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR3420 v2 AR9341 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-MR3420 v3 QCA9531 4 MiB 32 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-MR6400 v1/2 QCA9531 8 MiB 64 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WA801ND v2 AR9341 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WA830RE v2 AR9341 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WA850RE v2 QCA9533 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WDR3500 v1 AR9344 8 MiB 128 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-WDR3600 v1 AR9344 8 MiB 128 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-WDR43x0 v1 AR9344 8 MiB 128 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-WR1041N v2 AR9342 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR703N AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR710N v1 AR9331 8 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR720N v3 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR740N v4 AR9331 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR802N QCA9533 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR810N v1 QCA9531 8 MiB 64 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-WR810N v2 QCA9533 8 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR820N QCA9531 4 MiB 64 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-WR841N/D v8 AR9341 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR841N/D v9/10/11 QCA9533 4 MiB 32 MiB DDR1 64 KiB, LZMA RO
TP-Link TL-WR842N/D v3 QCA9531 16 MiB 64 MiB DDR2 64 KiB, LZMA RO
TP-Link TL-WR902AC v1 QCA9531 8 MiB 64 MiB DDR2 128 KiB, LZMA RO
Village Telco Mesh Potato 2 AR9331 16 MiB 64 MiB DDR1 192 KiB R/W
Wallys DR531 QCA9531 8 MiB 64 MiB DDR2 192 KiB R/W
WHQX E600G/AC v2 QCA9531 8/16 MiB 64/128 MiB DDR2 256 KiB R/W
YunCore AP90Q QCA9531 16 MiB 128 MiB DDR2 256 KiB R/W
YunCore CPE830 QCA9531 16 MiB 64 MiB DDR2 256 KiB R/W
YunCore CPE870 AR9341 8 MiB 64 MiB DDR2 64 KiB, LZMA R/W
YunCore T830 QCA9531 16 MiB 128 MiB DDR2 256 KiB R/W
Zbtlink ZBT-WE1526 QCA9531 16 MiB 128 MiB DDR2 256 KiB R/W

(LZMA) - U-Boot binary image is compressed with LZMA. (R/W) - environment exists in separate FLASH block which allows you to save it and keep after power down. (RO) - environment is read only, you can change and add new variables only during 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

Web server

The most important change is an inclusion of a web server, based on uIP 0.9 TCP/IP stack. It allows to upgrade firmware, U-Boot and ART (Atheros Radio Test) images, directly from your web browser, without need to access serial console and running a TFTP server. You can find similar firmware recovery mode, also based on uIP 0.9 TCP/IP stack, in D-Link routers.

Web server contains 7 pages:

  1. index.html (allows to upgrade firmware image, screenshot below)
  2. uboot.html (allows to upgrade U-Boot image)
  3. art.html (allows to upgrade ART image)
  4. flashing.html
  5. 404.html
  6. fail.html
  7. style.css

Network Console

Second, very useful modification is a network console (it is a part of original U-Boot sources, but none of the manufacturers included it). It allows you to communicate with U-Boot console over the Ethernet, using UDP protocol (default UDP port: 6666, router IP: 192.168.1.1).

You could also use netcat instead of Hercules utility on Mac/Linux:

# nc -u -p 6666 192.168.1.1 6666

Writable environment variables

U-Boot uses special "environment variables" which are used for storing values of many different settings, like IP addresses of device and remote server for TFTP transaction, serial console baud rate, boot command, etc. Environment is usually stored in separate FLASH sector or its part, so all changes can be saved permanently.

None of the popular manufacturers provides this feature and use so called "read-only environment" (embedded in U-Boot image), which means that all changes made during a runtime will be lost after device restart and there is no way to store them in FLASH.

This modification uses writable environment variables in almost all supported devices, so you can do for example:

uboot> setenv ipaddr 192.168.1.100
uboot> saveenv
Saving environment to FLASH...

Erase FLASH from 0x9F010000 to 0x9F01FFFF in bank #1
Erasing: #

Erased sectors: 1

Writing at address: 0x9F010000

uboot> reset

Which will change device IP address and save updated environment variables in FLASH. From next power up, the device will use new value for its IP address.

Using command run and writable environment variables you are able to write custom, small scripts like below example, used for firmware upgrade using TFTP method:

uboot> printenv
[...]
firmware_addr=0x9F020000
firmware_name=firmware.bin
firmware_upg=if ping $serverip; then tftp $loadaddr $firmware_name && erase $firmware_addr +$filesize && cp.b $loadaddr $firmware_addr $filesize && echo OK!; else echo ERROR! Server not reachable!; fi
[...]

uboot> run firmware_upg
Ethernet mode (duplex/speed): 1/100 Mbps
Using eth0 device

Ping OK, host 192.168.1.2 is alive!


TFTP from IP: 192.168.1.2
      Our IP: 192.168.1.1
    Filename: 'firmware.bin'
Load address: 0x80800000
       Using: eth0

     Loading: ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              ########################################
              #########

TFTP transfer complete!

Bytes transferred: 3932160 (0x3c0000)
Erase FLASH from 0x9F020000 to 0x9F3DFFFF in bank #1
Erasing: #######################################
         #####################

Erased sectors: 60

Copying to FLASH...
Writing at address: 0x9F020000

Done!

OK!
uboot>

Other

Moreover:

  • Faster boot up
  • Unnecessary information from boot up sequence were removed
  • FLASH chip is automatically recognized (using JEDEC ID)
  • Ethernet MAC is set from FLASH (no more "No valid address in FLASH. Using fixed address")
  • Automatic kernel booting can be interrupted using any key
  • Better UART serial console driver with support for different baud rates
  • Press and hold reset button to run:
    • Web server (min. 3 seconds)
    • U-Boot serial console (min. 5 seconds)
    • U-Boot network console (min. 7 seconds)
  • Additional commands (in comparison to the default version; availability depends on router model):
    • defenv
    • httpd
    • itest
    • loadb
    • loady
    • printmac
    • setmac
    • printmodel
    • printpin
    • startnc
    • startsc
    • ping
    • dhcp
    • sntp
    • iminfo
  • Overclocking and underclocking possibilities (for now, only routers with AR9331)

Supported FLASH chips

FLASH type detection may be very useful for people who has exchanged the FLASH chip in their routers. You will not need to recompile U-Boot sources, to have access to overall FLASH space in U-Boot console.

If you use FLASH type which is not listed below, this version of U-Boot will try to get information about the chip using Serial Flash Discoverable Parameter (SFDP, more information: https://www.jedec.org/standards-documents/docs/jesd216b) standard. If your chip does not support SFDP, it will use default size for your router and, in most supported models, updating the ART image will not be available.

Currently supported FLASH types:

4 MiB:

  • Spansion S25FL032P (4 MiB, JEDEC ID: 01 0215)*
  • Atmel AT25DF321 (4 MiB, JEDEC ID: 1F 4700)
  • EON EN25Q32 (4 MiB, JEDEC ID: 1C 3016)*
  • EON EN25F32 (4 MiB, JEDEC ID: 1C 3116)*
  • Micron M25P32 (4 MiB, JEDEC ID: 20 2016)
  • Windbond W25Q32 (4 MiB, JEDEC ID: EF 4016)
  • Macronix MX25L320 (4 MiB, JEDEC ID: C2 2016)
  • GigaDevice GD25Q32 (4 MiB, JEDEC ID: C8 4016)*

8 MiB:

  • Spansion S25FL064P (8 MiB, JEDEC ID: 01 0216)
  • Atmel AT25DF641 (8 MiB, JEDEC ID: 1F 4800)
  • EON EN25Q64 (8 MiB, JEDEC ID: 1C 3017)*
  • Micron M25P64 (8 MiB, JEDEC ID: 20 2017)
  • Windbond W25Q64 (8 MiB, JEDEC ID: EF 4017)*
  • Macronix MX25L64 (8 MiB, JEDEC ID: C2 2017, C2 2617)
  • GigaDevice GD25Q64 (8 MiB, JEDEC ID: C8 4017)

16 MiB:

  • Winbond W25Q128 (16 MB, JEDEC ID: EF 4018)*
  • Winbond W25Q128FW (16 MB, JEDEC ID: EF 6018, 1,8 V)*
  • Macronix MX25L128 (16 MB, JEDEC ID: C2 2018, C2 2618)
  • Spansion S25FL127S (16 MB, JEDEC ID: 01 2018)*
  • Micron N25Q128 (16 MB, JEDEC ID: 20 BA18)
  • GigaDevice GD25Q128 (16 MiB, JEDEC ID: C8 4018)

(*) tested

If you want to use other type, please contact with me or make changes in the code, test them and send a pull request or a patch.

How to install it?

Cautions, backups

You do so at your own risk! If you make any mistake or something goes wrong during upgrade, in worst case, your router will not boot again!

It is a good practice to backup your original U-Boot image/partition (especially for TP-Link devices) before you make any changes. For example, using OpenWrt (TP-Link TL-WR703N with 16 MiB FLASH):

cat /proc/mtd

This command will show you all MTD (Memory Technology Device) partitions:

dev:    size   erasesize  name
mtd0: 00020000 00010000 "u-boot"
mtd1: 000eeb70 00010000 "kernel"
mtd2: 00ee1490 00010000 "rootfs"
mtd3: 00c60000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 00fd0000 00010000 "firmware"

As you can see, u-boot partition size is 0x20000 (128 KiB) and my image for this model has smaller size: 0x1EC00 (123 KiB) - it is a very important difference! You should remember about this if you want to use mtd utility or serial console and U-Boot command line, to change the bootloader.

To backup u-boot partition in RAM, run:

cat /dev/mtd0 > /tmp/uboot_backup.bin

And then connect to your router using SCP protocol and download from /tmp the uboot_backup.bin file.

Using external programmer

If you have an external FLASH programmer (all supported devices have SPI NOR FLASH chips), you probably know how to use it. Download package with prebuilt images or compile the code, choose right file for your device and put it on FLASH at the beginning (offset 0x00000). Remember to first erase block(s) - with high probability, if you use some kind of automatic mode, the programmer will do it for you.

All prebuilt images are padded with 0xFF and since change "Extend maximum U-Boot image size up to 123 KB", in most supported devices, their size is no longer a multiple of 64 KiB block. For example, TP-Link uses only first 64 KiB block to store compressed U-Boot image (in most of their modern devices). In the second 64 KiB block they store additional information like MAC address, model number and WPS pin number. This modification will use both sectors for U-Boot image and also other data, including small block for writable environment variables.

Below image with beginning part of FLASH memory map for TP-Link TL-MR3020 shows differences between stock version and this modification.

On the other hand, U-Boot image in Carambola 2 from 8devices may have up to 256 KiB (4x 64 KiB block), they use uncompressed version and environment stored in FLASH. Immediately after the Carambola 2 U-Boot partition is an area which contains U-Boot environment variables (1x 64 KiB block), called u-boot-env:

dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00f90000 00010000 "firmware"
mtd3: 00e80000 00010000 "rootfs"
mtd4: 00cc0000 00010000 "rootfs_data"
mtd5: 00010000 00010000 "nvram"
mtd6: 00010000 00010000 "art"

Using UART, U-Boot console and TFTP server

WARNING! This method is highly not recommended!

It is probably the most common method to change firmware in case of any problems. Main disadvantage of this approach is the need to connect with device using a serial port (this does not apply to Carambola 2 with development board, which already has a built-in USB-UART adapter, based on FTDI FT232RQ).

Important notice!

All these devices have an UART interface integrated inside the SoC, which operates at TTL 3.3 V (in fact, GPIO pins can work at this voltage, but their real range is < 3 V)!

Please, do not connect any RS232 +/- 12 V cable or any adapter without logic level converter, because it may damage your device. It would be the best if you use any USB to UART adapter with integrated 3.3 V logic level converter. And please, remember that you should connect only RX, TX and GND signals. DO NOT connect together 3.3 V signals from router and from adapter if you do not know what are you doing, because you may burn out your adapter and/or router! Connect the adapter using USB port in your PC and router with original power supply.

For a long time I have been using without any problems a small and very cheap (about 1-2 USD) CP2102 based adapter. Go to Serial Console article in OpenWrt Wiki for more, detailed information.

Step by step instructions

  1. Install and configure any TFTP server on your PC (on Windows, you can use TFTP32).

  2. Set a fixed IP address on your PC (in this tutorial we will use 192.168.1.2 for the PC and 192.168.1.1 for the router) and connect it to the router, using RJ45 network cable (in most case you will need to use one of the available LAN ports, but WAN port should also work).

  3. Connect USB to UART adapter to the router and start any application to communicate with it, like PuTTY. Configure adapter to use the following settings:

  • Baud rate: 115200
  • Data bits: 8
  • Parity control: none
  • Stop bits: 1
  • Handshaking: none
  1. Power on the router, wait for a line like one of the following and interrupt the process of loading a kernel:

Autobooting in 1 seconds (for most TP-Link routers, you should enter tpl at this point) Hit ESC key to stop autoboot: 1 (for 8devices Carambola 2, use ESC key) Hit any key to stop autoboot: 1 (for D-Link DIR-505, use any key)

  1. Set ipaddr and serverip environment variables:
hornet> setenv ipaddr 192.168.1.1
hornet> setenv serverip 192.168.1.2
  1. Check the changes:
hornet> printenv ipaddr
ipaddr=192.168.1.1
hornet> printenv serverip
serverip=192.168.1.2
  1. Due to differences in FLASH memory map and sizes of original and modified version of U-Boot, you must first make a backup of the partition with original version in RAM. If you skip this step or make a mistake, your device will be probably broken!

This step is different between supported models, so you should pay attention to the size of image with modified version of U-Boot, round it to the nearest multiple of 64 KiB and use this value in all next steps.

For example, if image of the modified version is 123 KiB (0x1EC00) you must first make a backup of 128 KiB (0x20000) in RAM, at the same address where you are going to download the image:

hornet> cp.b 0x9F000000 0x80800000 0x20000

Using the same offset address in RAM for backup and new image will end up with combination of both images and preserve additional data like MAC address, model number and PIN.

  1. Download and store in RAM proper image for your router, using tftpboot command in U-Boot console (in this example, for TP-Link TL-MR3020):
hornet> tftpboot 0x80800000 uboot_for_tp-link_tl-mr3020.bin
eth1 link down
Using eth0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'uboot_for_tp-link_tl-mr3020.bin'.
Load address: 0x80800000
Loading: #########################
done
Bytes transferred = 125952 (1ec00 hex)

hornet>
  1. Next step is very risky! You are going to delete existing U-Boot image from FLASH in your device and copy from RAM the new one. If something goes wrong (for example, a power failure), your router, without bootloader, will not boot again!

You should also note the size of image and use value from step 7. In all cases, the start address of FLASH is 0x9F000000 and for RAM: 0x80000000 (as you may noticed, I did not use start address of RAM to store image and you should follow this approach).

Please, do not make any mistake with offsets and sizes during next steps!

  1. Erase appropriate FLASH space for new U-Boot image (this command will remove default U-Boot image!):
hornet> erase 0x9F000000 +0x20000

First 0x0 last 0x1 sector size 0x10000
Erased 2 sectors
hornet>
  1. Now your router does not have U-Boot, so do not wait and copy to FLASH the new one, stored earlier in RAM:
hornet> cp.b 0x80800000 0x9F000000 0x20000

Copy to Flash... write addr: 9f000000
done
  1. If you want, you can check content of the newly written FLASH and compare it to the image on your PC (or better also do such a "legit memory content" comparison prior to writing!), using md command in U-Boot console, which prints indicated memory area (press only ENTER after first execution of this command to move further in memory):
hornet> md 0x9F000000

9f000000: 100000ff 00000000 100000fd 00000000    ................
9f000010: 10000222 00000000 10000220 00000000    ..."....... ....
9f000020: 1000021e 00000000 1000021c 00000000    ................
9f000030: 1000021a 00000000 10000218 00000000    ................
9f000040: 10000216 00000000 10000214 00000000    ................
9f000050: 10000212 00000000 10000210 00000000    ................
9f000060: 1000020e 00000000 1000020c 00000000    ................
9f000070: 1000020a 00000000 10000208 00000000    ................
9f000080: 10000206 00000000 10000204 00000000    ................
9f000090: 10000202 00000000 10000200 00000000    ................
9f0000a0: 100001fe 00000000 100001fc 00000000    ................
9f0000b0: 100001fa 00000000 100001f8 00000000    ................
9f0000c0: 100001f6 00000000 100001f4 00000000    ................
9f0000d0: 100001f2 00000000 100001f0 00000000    ................
9f0000e0: 100001ee 00000000 100001ec 00000000    ................
9f0000f0: 100001ea 00000000 100001e8 00000000    ................
  1. If you are sure that everything went OK, you may reset the board using below command or just reset power:
hornet> reset

Using OpenWrt

This method is recommended!

Starting from official release "2014-11-19", you will find ready OpenWrt images, with unlocked u-boot partition, embedded U-Boot image and dedicated small script for easy update process inside release tarball. All you need to do is download last release, select proper OpenWrt image for your device, install it and invoke one command: u-boot-upgrade:

root@OpenWrt:/# u-boot-upgrade

=================================================================
     DISCLAIMER: you are using this script at your own risk!

     The author of U-Boot modification and this script takes
     no responsibility for any of the results of using them.

          Updating U-Boot is a very dangerous operation
        and may damage your device! You have been warned!
=================================================================
   Are you sure you want to continue (type 'yes' or 'no')? yes
=================================================================

[ ok ] Found U-Boot image file: uboot_for_tp-link_tl-mr3020.bin
       Do you want to use this file (type 'yes' or 'no')? yes
[ ok ] MD5 checksum of new U-Boot image file is correct
[ ok ] Backup of /dev/mtd0 successfully created
       Do you want to store backup in /etc/u-boot_mod/backup/ (recommended, type 'yes' or 'no')? no
[ ok ] New U-Boot image successfully combined with backup file
[info] New U-Boot image is ready to be written into FLASH
       Are you sure you want to continue (type 'yes' or 'no')? yes
[ ok ] New U-Boot image successfully written info FLASH
[ ok ] MD5 checksum of mtd0 and new U-Boot image are equal
[info] Done!

Using DD-WRT

WARNING! This method is not recommended!

  1. Login into the router using telnet or SSH and find out which of the mtd partitions is the first one. In DD-WRT it is usally called RedBoot:
root@DD-WRT:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "RedBoot"
mtd1: 003c0000 00010000 "linux"
mtd2: 002c0000 00010000 "rootfs"
mtd3: 00010000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_config"
mtd6: 00400000 00010000 "fullflash"
mtd7: 00020000 00010000 "fullboot"

In this case, for TP-Link TL-MR3020, the RedBoot partition is the one, which contains U-Boot and additional data (MAC address, model number, PIN).

Warning! If size of the first partition is smaller than the size of the modified U-Boot image, you should not continue!

  1. Using SCP or other method, transfer the new U-Boot image and corresponding MD5 file to the /tmp folder in device.
root@DD-WRT:/tmp# ls -la
[...]
-rw-r--r--    1 root     root        125952 Nov  5  2015 uboot_for_tp-link_tl-mr3020.bin
-rw-r--r--    1 root     root            66 Nov  5  2015 uboot_for_tp-link_tl-mr3020.md5
[...]
  1. Verify the MD5 sum of the image:
root@DD-WRT:/tmp# md5sum uboot_for_tp-link_tl-mr3020.bin
aaae0f772ce007f7d1542b9233dd765b  uboot_for_tp-link_tl-mr3020.bin

root@DD-WRT:/tmp# cat uboot_for_tp-link_tl-mr3020.md5
aaae0f772ce007f7d1542b9233dd765b *uboot_for_tp-link_tl-mr3020.bin
  1. Make a backup of the current RedBoot partition (mtd0):
root@DD-WRT:/tmp# dd if=/dev/mtd0 of=uboot_factory.bin
256+0 records in
256+0 records out
  1. Using SCP or other method, transfer backuped RedBoot original partition to some safe place (I highly recommended you to save backup somewhere!).

  2. You need to combine together original image and the one with U-Boot modification, but it seems that dd from DD-WRT does not support conv=notrunc, so we will use different approach:

root@DD-WRT:/tmp# dd if=uboot_factory.bin of=uboot_rest.bin bs=1 skip=$(wc -c < uboot_for_tp-link_tl-mr3020.bin)
5120+0 records in
5120+0 records out

root@DD-WRT:/tmp# cat uboot_for_tp-link_tl-mr3020.bin uboot_rest.bin > uboot_new.bin
  1. Danger: This is the point of no return, if you have any errors or problems, please revert the original image at any time using:
root@DD-WRT:/tmp# mtd write uboot_factory.bin "RedBoot"
Unlocking RedBoot ...
Writing from uboot_orig.bin to RedBoot ...
  1. Now, to actually flash the new image, run:
root@DD-WRT:/tmp# mtd write uboot_new.bin "RedBoot"
Unlocking RedBoot ...
Writing from uboot_new.bin to RedBoot ...
  1. If you are sure that everything went OK, you may reboot the device:
root@DD-WRT:/tmp# reboot

How to use it?

[TODO]

How to compile the code?

Building on Linux

You can use one of the free toolchains:

I am using OpenWrt Toolchain for AR71xx MIPS (32-bit, virtual machine) and all released binary images were/will be built using this set.

All you need to do, after choosing a toolchain, is to modify Makefile - change or remove export MAKECMD and if needed add export PATH. For example, to use OpenWrt Toolchain instead of Sourcery CodeBench Lite, download it and extract into toolchain folder, inside the top dir and change first lines in Makefile:

export BUILD_TOPDIR=$(PWD)
export STAGING_DIR=$(BUILD_TOPDIR)/tmp

export MAKECMD=make --silent ARCH=mips CROSS_COMPILE=mips-openwrt-linux-uclibc-
export PATH:=$(BUILD_TOPDIR)/toolchain/bin/:$(PATH)

To build image, run make model inside top dir, for example, command:

make tplink_wr703n

will start building U-Boot image for TP-Link TL-WR703N.

Building on macOS (OS X)

You can build using the OpenWrt/LEDE toolchain as above under macOS (OS X) as long as you install several gnu command line tools via brew. Note that bash is required to correct the usage of colorized echo output within the Makefiles (I was suprised how inconsistent FreeBSD is with Linux/GNU in this regard).

brew install bash coreutils gnu-sed

Subsequently, in addition to the toolchain being in your path, you will need to point your path as instructed by brew to the gnu binaries (only required for the build).

export PATH=/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:$PATH

This process was tested on Yosemite and El Capitan.

FAQ

1. My device is not supported, but has the same hardware as one in the list, can I use this modification?

It could be dangerous! I know that a lot of routers uses the same hardware - for example, TP-Link has a battery powered routers set, which contains: TL-MR10U, TL-MR11U (TL-MR3040 in Europe) TL-MR12U and TL-MR13U. All of them has the same platform: Atheros AR9331 with 32 MiB of DDR RAM and 4 MiB of SPI NOR FLASH. But, there may exist a slight difference, like GPIO pin number for reset button or LED(s), that may cause problems.

You can try, but remember that you are doing this only at your own risk!

2. I want to overclock my router, how can I do this?

Currently, this option is available only for routers with Atheros AR9331 (please, look at ap121.h file which contains all information about PLL register configuration and an untypical clocks for CPU, RAM and AHB). What more, you will need to compile the code yourself, because I will not publish images with non-default clocks.

And again, remember that you are doing this only at your own risk!

3. Do you test all prebuilt images before you publish them?

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.

You can do it yourself and send me a pull request or a patch. If you do not want to, or do not know how to do it, please contact with me directly.

5. My device does not boot after upgrade!

I told you... bootloader, in this case U-Boot, is the most important piece of code inside your device. It is responsible for hardware initialization and booting an OS (kernel in this case), i.e. it is the bridge head for delegating to / flashing kernel and rootfs images. So, if during the upgrade something went wrong, your device will not boot any more. The only way to recover from such a situation in a mild way is via a JTAG adapter connection. In case of a lack of JTAG connection, you would even need to remove the FLASH chip, load proper image using an external programmer and solder it back.

License, outdated sources etc.

U-Boot project is Free Software, licensed under version 2 of the GNU General Public License. All information about license, contributors etc., are included with sources, inside u-boot folder.

You should know, that most routers, especially those based on Atheros SoCs, uses very old versions of U-Boot (1.1.4 is from 2005/2006). So, these sources are definitely outdated (do not even try to merge them with official release), but it was easier for me to modify them, than move TP-Link/Atheros changes to the current version. Moreover, lot of unnecessary code fragments and source files were removed for ease of understanding the code.

Credits

  • Thanks to M-K O'Connell for donating a router with QCA9563
  • Thanks to Krzysztof M. for donating a TL-WDR3600 router
  • Thanks to pupie from OpenWrt forum for his great help
  • Thanks for all donators and for users who contributed in code development

u-boot_mod's People

Contributors

andim2 avatar ecoder33 avatar frantony avatar hackruu avatar ibnabii avatar ljani avatar pepe2k avatar psyborg55 avatar rainlake avatar ranma avatar roger- avatar stevesong avatar thornley-touchstar avatar vdat avatar vittgam avatar yoaeroa00 avatar zwhfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

u-boot_mod's Issues

Prebuild images not available in GitHub

Hello!

I'm interested in flashing your u-boot mod on my DIR-505 but I don't have the time to install the whole toolchain.

Why don't you publish prebuilt images in the git?

Thanks!

Porting to Mediatek MIPS v2?

Hi,

I took a quick look through the code, but was wondering your thoughts on porting this to another MIPS CPU -- in particular the MT762x series, which are becoming quite popular.

They're generally setup little endian (looks like that's an easy config change, at least) with v2 instructions (looks like v1 is configured now).

Other than that, I guess there's the hard work of initing RAM, low-level Flash routines (SPI), serial console, Ethernet etc?

Unreasonable for a newbie to achieve?

Thanks!

-m

Overclocking AR9331 router

Dear pepe2k , need some help.

I have TP-Link WR741ND v4.2 , witth 16mb FLASH, and 64mb RAM.
Using your wonderfull moded U-Boot, its works perfect.

Then I decide change quartz , from 25MHz to 40MHz.

I find that signal on GPIO0 at start, must be signal 1 (instad 0 for 25MHz).
First , I replace quartz.
Then I cut the WLAN led, and connect "+" with 3,3V .

At the last, I rebuild U-Boot adding to wr740n_v4_config
line
@echo "#define CONFIG_40MHZ_XTAL_SUPPORT 1" >> include/config.h

After turning on device, on console I have seen some progress(like booting) , but with
unknown symbols.
I have tried different speed of serial port? but nothing.

P.S. When i change 25MHz quart on 33MHz, i saw boot log whis 115200/25*33=152064 speed
using original boot image

Big images

Are the 123K images safe to use on TP-Link devices? The readme says it would be a 64 KiB image, but when I built for a TL-WR703N I get a 125952-byte image.

new features for 703

id like to have

  1. saveenv
  2. go
  3. reset
  4. bootm working from a tfpboot in order to put a kernel into ram

fw_env.config

Hi, How can we create our fw_env.config in order to view u-boot variables?
when a device has a RO environment, fw_setenv will not work?

I have an MR3220v2.

Program blocked after upload image.

Hello Pepe2k,
I am porting this feature to our development board AP123 (AR9341).
After porting, it could execute normally, but sometimes it may block after transmit image with browser. This issue will happen at Chrome and IE, but Firefox works well.
Then I used the Wireshark tool to check what happen.
The httpd program will block if it didn't get the last package ( flags: FIN | ACK).
The package handler is at httpd.c line 495.
Do you have any idea?

BR,
Wuxbear

Linux Update accross WebServer

Hi,

I have a problem with my TL-703n (and also with the DIR-505) with the recovery mode (webserver of this U-Boot mod).

I will flash a new FW with the recovery mode, but it doesn't work wenn I use Linux (Ubuntu 12.04 with FF and Chrome or LUbuntu 14.04 with FF and Chromium).
I can choose the right *.bin file and when I press on the button "Update" nothing passed. I can refresh the windows with F5 and I have the same page with the *.bin already selected and the "Update" button doesn't work.

The same try with Windows XP works well with FF.

I think I have found my problem, but I haven't a solution.
I have test and checked with the serial-network u-booot and httpd command = manually web server start.
I can select the right *.bin file with the webserver on my TL-703n and then I can click on "Update". The transfert seems to be very slow with "http", I have waiting 45-60 minutes and it not finished to HTTP upload (check with shell).

I have deactivate the firewall, but nothing work.
My PC run under Ubuntu 12.04.

Thanks for your help,
Xavier

better error msgs?

I am trying since some hours to get my (slboat modded) mr10u to boot, but always:

AP121 (AR9331) U-Boot for TL-MR10U

DRAM: 64 MB
FLASH: Macronix MX25L128 (16 MB)

LED on during eth initialization...

Hit any key to stop autobooting: 0

Booting image at: 0x9F020000

Image name: OpenWrt r43062
Image type: MIPS Linux Kernel Image (lzma compressed)
Data size: 1002188 Bytes = 978.7 kB
Load address: 0x80060000
Entry point: 0x80060000

Uncompressing kernel image... ## Error: LZMA error num: 1

Error: failed to execute 'bootcmd'!

So, instead of just telling that lzma error 1, could it output a more descriptive error msg, so that one knows what actually went wrong?

support flash SST25VF032B and SST25VF064C

pepe2k, please help.


  • U-Boot 1.1.4 (Mar 12 2015, 21:03:30) *

AP123 (AR9341) U-Boot for TL-WR841N/D v8

DRAM: 64 MB DDR 32-bit
FLASH: Unknown type (using only 4 MB)

Please, send request to add support
for your FLASH - JEDEC ID: 0xBF254A

CLOCKS: 535/400/200/25 MHz (CPU/RAM/AHB/SPI)

Error: MAC is invalid, using fixed!

LED on during eth initialization...

Error: MAC address in FLASH is invalid, using fixed!

Error: MAC address in FLASH is invalid, using fixed!

Hit any key to stop autobooting: 0

uboot> erase 0x9f000000 +0x400000
Erase FLASH from 0x9F000000 to 0x9F3FFFFF in bank #1
Erasing: #######################################
#########################

Erased sectors: 64

uboot> res


  • U-Boot 1.1.4 (Mar 12 2015, 21:03:30) *

AP123 (AR9341) U-Boot for TL-WR841N/D v8

DRAM: 64 MB DDR 32-bit
FLASH: Unknown type (using only 4 MB)

Please, send request to add support
for your FLASH - JEDEC ID: 0xBF254A

CLOCKS: 535/400/200/25 MHz (CPU/RAM/AHB/SPI)
Record \ erasing does not work.
http://lists.denx.de/pipermail/u-boot/2014-October/192519.html
added ar7240_flash.c
case 0xBF254A:
flash_set_geom(SIZE_INBYTES_4MBYTES, 1024, SIZE_INBYTES_4KBYTES);
puts("SST25VF032B (4 MB)");
break;
log:
uboot> erase 0x9f000000 +0x400000
Erase FLASH from 0x9F000000 to 0x9F3FFFFF in bank #1
Erasing: #######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
##########

Erased sectors: 1024

uboot> res


  • U-Boot 1.1.4 (Mar 12 2015, 21:13:39) *

AP123 (AR9341) U-Boot for TL-WR841N/D v8
...
In both cases, the erasure happens too fast
Please help me.
Thank you

Flashing via dd wrt

Hi pepe2k,

Sorry I'm reaching out with an issue request about a question. I hope that's not a problem.

I'm looking to flash the U-Boot mod on a TP-Link TL-WR740 v4.23 with what I think is a EON EN25Q32 flash chip. I can see the instruction for flashing via DD WRT is TODO, but can you advise what you think would be the method to do this without connecting over serial again - would mtd do the trick?

I've already taken the backup of mtd0, however I don't know if flashing the 64KB image on the 128KB partition without erase will work., e.g.:
mtd write /tmp/ubootmod.bin mtd0

I'm intentionally trying to avoid an erase, because that would truncate the second part of mtd0 that contains the MAC address, etc.

Can you please let me know your thoughts? I'm not even sure whether the system will still be operable to flash after erasing mtd0. Another idea I have is if I could build a 128KB image from yours, with the second 64KB copied bitwise from my backup, so as to preserve the information when I flash.

Thanks in advance!

nutter

httpd based flasher malfunctions?

I've tried to flash some 16MB big factory images to my modded mr10u, but it always failed with that lzma error 1. I used the u-boot web-based flasher.

Then I found on the u-boot console using md 0x9f020000 ... that there are suspiciously many 0 bytes in what should be the (beginning of the) kernel image.

Then I flashed using tftpboot / erase / cp.b and it worked flawlessly. Erasing took much longer though.

Could it be that the flasher invoked by the web interface does somehow malfunction, maybe because my device has more flash than usual? There was no error msg btw.

Verification instructions request

I have a 702n router and I've tried to replace it's original 2MB chip with an 8MB one with a new u-boot. It didn't work: power LED ignited at half brightness, network interface didn't go up. I soldered the original chip back it worked.

At this point I've no idea what went wrong. It could be the whole image or the u-boot part. @pepe2k, do you have any ideas about the debugging process?

Here's how I've prepared the 8MB image.

Compile u-boot
git clone https://github.com/pepe2k/u-boot_mod.git
cd u-boot_mod
ln -vs ~/aa/attitude_adjustment/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2 toolchain

newline=$(($(grep -no "export MAKECMD=" Makefile|head -1|cut -d ':' -f 1)+1))
awk "NR==${newline}{print \"export PATH:=\$(BUILD_TOPDIR)/toolchain/bin/:\$(PATH)\"}7" Makefile|tee Makefile| head -7

sed -Ei 's/(mips-)(linux-)gnu-/\1openwrt-\2uclibc-/' Makefile

make tplink_wr703n

Here's the md5 if it could make any sense: 3eeecc9c1a2654e00aee6876f0dc23ed *uboot_for_tp-link_tl-wr703n.bin

Extract original image
mkdir -vp 702.orig

dd bs=1 skip=0                     count=$((64*1024))            if=702n.bin of=702.orig/uboot.bin
dd bs=1 skip=$((64*1024))          count=$((64*1024))            if=702n.bin of=702.orig/data.bin
dd bs=1 skip=$((128*1024))         count=$(((2*1024-64*3)*1024)) if=702n.bin of=702.orig/factory.bin
dd bs=1 skip=$(((2*1024-64)*1024))                               if=702n.bin of=702.orig/art.bin
Prepare the new, 8MB image
dd bs=1 count=$((64*1024))                            of=702n8m.bin if=uboot/uboot_for_tp-link_tl-wr703n.bin
dd bs=1 count=$((64*1024)) seek=$((64*1024))          of=702n8m.bin if=702.orig/data.bin
dd bs=1 count=$((64*1024)) seek=$((128*1024))         of=702n8m.bin if=702.orig/factory.bin
dd bs=1 count=$((64*1024)) seek=$(((8*1024-64)*1024)) of=702n8m.bin if=702.orig/art.bin

I've tried to mount extracted partitions, none worked. At this point I'm rally lost as all this maths is based on some internet knowledge and I've no idea how to verify partitions and u-boot image.

TL-WR841ND Support for V9 with QCA9533-AL3A SoC?

Hi everyone, ist there support in the modded bootloader für the TL-WR841ND V9, with the QCA9533-AL3A SoC (Manufacturer: Qualcomm-Atheros)? I have 3 pieces of this router and want to replace the flashchip with a 16Mb one...

Greetings
Rolle 77 :-))

Memory test is broken

Tested on mr3020 and 703n:

*********************************************
*        U-Boot 1.1.4  (Feb 11 2014)        *
*********************************************

AP121 (AR9331) U-Boot for TL-WR703N

DRAM:   32 MB DDR 16-bit
FLASH:  EON EN25Q32 (4 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)

LED on during eth initialization...

Hit any key to stop autobooting:  0

uboot>
uboot>
uboot> mtest
Testing RAM 0x80200000...0x83800000:
Iteration:      1
## Error (read/write) @ 0x81EBF21C: expected 0x0072FC88, found 0x0072FC87)











*********************************************
*        U-Boot 1.1.4  (Feb 11 2014)        *
*********************************************

AP121 (AR9331) U-Boot for TL-MR3020

DRAM:   32 MB DDR 16-bit
FLASH:  Spansion S25FL032P (4 MB)
CLOCKS: 412/412/206/34 MHz (CPU/RAM/AHB/SPI)

LED on during eth initialization...

Hit any key to stop autobooting:  0

uboot> mtest
Testing RAM 0x80200000...0x83800000:
Iteration:      1
## Error (read/write) @ 0x81EBF21C: expected 0x0072FC88, found 0x0072FC87)


Network console on WR703N

Hi,

how do you connect to the network console you mentioned? I have a WR703N with your u-boot installed. Everything is up and running (openwrt installed).
As I am still waiting for my serial cable, I am wondering how can I connect to the network console via ethernet?

Thanks

Some sort of security protection

Cool project I was depressed to see that there is no way to password protect the router with this installed. There should be a way to protect the flashing of an image. Right now any idiot on my LAN can screw up the router with a couple of mouse clicks.
Thanks.

DHCP packet loss

Hi,

I have issues in u-boot using DHCP command.

Using a Linksys WRT54 as dhcp server. 'dhcp' always fails, but...
dhcp is ok from kernel with the same server,
dhcp is ok from u-boot with netgear or dlink server

I use your u-bootmod to log the incomming packet catched by NetReceive()
and compare with wireshark....

==> It appears that some packets are missing just after the DHCP discover !
not only the 'dhcp offer' is missing but also some other packets !

It seems that packet loss occurs during about 1sec after NetSendPacket()
So if dhcp server OFFER,is in that timeslot dhcp fail as the server does not repeat the offer !

Do you experience the same bug?
Do you have an idea ?

Regards,

uncompressed u-boot and rw env when larger flash installed

Question: It is possible to enable u-boot be uncompressed and to store settings to flash when flash chip is replaced with larger one? If so, how I can safely do that?
For example I have TL-MR3020 with 16M flash.

Note I do not have quick access to reflashing equipment.

openwrt toolchain

Hi,
I've compiled u-boot_mod successfully with this guide -> https://dev.wlan-si.net/ticket/1191
using this toolchain -> http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
but if I switch to this toolchain -> http://downloads.openwrt.org/snapshots/trunk/ar71xx/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
I get error:
make[2]: Entering directory /home/linuporabnk/u-boot_mod/u-boot/tools' ln -s ../common/environment.c environment.c ln -s ../lib_generic/crc32.c crc32.c /home/linuporabnk/u-boot_mod/toolchain/bin//mips-openwrt-linux-uclibc-gcc: line 82: /home/linuporabnk/u-boot_mod/toolchain/bin/mips-openwrt-linux-uclibc-gcc.bin: cannot execute binary file /home/linuporabnk/u-boot_mod/toolchain/bin//mips-openwrt-linux-uclibc-gcc: line 82: /home/linuporabnk/u-boot_mod/toolchain/bin/mips-openwrt-linux-uclibc-gcc.bin: Success make[2]: *** No rule to make target.depend'. Stop.
make[2]: Leaving directory /home/linuporabnk/u-boot_mod/u-boot/tools' make[1]: *** [depend] Error 2 make[1]: Leaving directory/home/linuporabnk/u-boot_mod/u-boot'
make: *** [tplink_wdr3500] Error 2

Request - tp-link tl-wvr450G - ar9344 support

Hi, Can you support TL-wvr450G?

All information about tl-wvr450g ;
--------------------------------------------------------------------------------------------------------------------------TP-LINK > en
Enter password:
TP-LINK # sys reboot
This command will reboot system, Continue? [Y/N]: y

       Copyright(C) 2001-2012 by TP-LINK TECHNOLOGIES CO., LTD.

     ________  ________             __      __  ____   _  __   ___
    |________||   ___  |           |  |    |  ||    \ | ||  | /  /
       |  |   |  |___| |   __ __   |  |    |  ||     \| ||  |/  /
       |  |   |   _____|  |__ __|  |  |___ |  || |\     ||      \
       |__|   |__|                 |______||__||_| \____||__|\___\


                        Software Platform for MIPS

U-Boot 1.1.4 (Jul 4 2012 - 09:32:32)

Autobooting in 1 seconds
ar9344> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART)
bootcmd=calibrate normal;go 0x9f040000
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.10
serverip=192.168.1.27
dir=
lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}db12x${bc}-jffs2&&erase 0x9f050000 +0x630000&&cp.b $fileaddr 0x9f050000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize&&cp.b $fileaddr 0x9f680000 $filesize
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 698/65532 bytes


Hardware info :

Atheros AR-9344 mips32 560 Mhz CPU.

16Mbyte flash - SPANSION - FL 128SAIFOO
FL128SAIF00 is same as spansion 16-pin SO package:
- S25FL128SAGMFI000
- S25FL128SAGMFI001
- S25FL128SAGMFI003

Atheros 9381-AL1A - wireless
Atheros AR8327N-AL1A lan/wan
1 console port
128mb(1Gbit) ddr-II ram - Hynix-HYNH5PS5162GFRY5C -DRAM Chip DDR2 SDRAM 512M-Bit 32Mx16 1.8V 84-Pin FBGA * 2

Thanks a lot for your help and time.

Fail to boot when booting with TTL connected.

With Mecury m301 (a TL-MR3040 clone) and TL-WR740N, if TTL is connected before plugging the power, it fails to boot. There's no light, network is not up either (failed to ping 192.168.1.1). But if I power it up and then plug the TTL line, it will be OK.

I'm using a prebuilt version following the link at openwrt.org ( http://wiki.openwrt.org/toh/tp-link/tl-wr740n#u-boot.mod.for.tp-link.with.ar9331 ). Will it help if I check out the latest code and compile it?

RAM relocatable version.

Dear Piotr,

Do you have plans to add RAM relocatable version of u-boot ?
This is very useful when SPI Flash was a new one or completely destroyed.
JTAG tool can help debrick in this situation.

Best Regard.

Carambola 2 build fails for u-boot/httpd

Hi there, I'm using the toolchain built with buildroot as explained on the 8devices Wiki in the article: Upgrading Carambola 2 bootloader.

The toolchain is underneath $HOME/buildroot/output and instead of exporting the variables, I decided to pass them on the command line, like so:

make PATH="$HOME/buildroot/output/host/usr/bin:$PATH" BUILD_TOPDIR=$(pwd) STAGING_DIR=$(pwd)/tmp MAKECMD="make ARCH=mips CROSS_COMPILE=mips-linux-" 8devices_carambola2

The sources from your repository are in $HOME/u-boot_mod and that's from where I invoke the above make command.

I also left out the --silent.

The problem now is in u-boot/httpd, pasting the relevant lines from the make output at the bottom right before and after the compilation error:

make[2]: Leaving directory `/home/oliver/u-boot_mod/u-boot/rtc'
make -C `dirname httpd/libhttpd.a`
make[2]: Entering directory `/home/oliver/u-boot_mod/u-boot/httpd'
mips-linux-gcc  -O  -D__KERNEL__ -DTEXT_BASE=0x9F000000 -I/home/oliver/u-boot_mod/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/oliver/buildroot/output/host/usr/lib/gcc/mips-buildroot-linux-uclibc/4.7.4/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -mips32 -march=mips32 -mtune=mips32 -EB -fno-schedule-insns -fno-schedule-insns2 -Wall -Wstrict-prototypes -DCOMPRESSED_UBOOT=0  -c -o uip.o uip.c
mips-linux-gcc  -O  -D__KERNEL__ -DTEXT_BASE=0x9F000000 -I/home/oliver/u-boot_mod/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/oliver/buildroot/output/host/usr/lib/gcc/mips-buildroot-linux-uclibc/4.7.4/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -mips32 -march=mips32 -mtune=mips32 -EB -fno-schedule-insns -fno-schedule-insns2 -Wall -Wstrict-prototypes -DCOMPRESSED_UBOOT=0  -c -o uip_arch.o uip_arch.c
mips-linux-gcc  -O  -D__KERNEL__ -DTEXT_BASE=0x9F000000 -I/home/oliver/u-boot_mod/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/oliver/buildroot/output/host/usr/lib/gcc/mips-buildroot-linux-uclibc/4.7.4/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -mips32 -march=mips32 -mtune=mips32 -EB -fno-schedule-insns -fno-schedule-insns2 -Wall -Wstrict-prototypes -DCOMPRESSED_UBOOT=0  -c -o uip_arp.o uip_arp.c
mips-linux-gcc  -O  -D__KERNEL__ -DTEXT_BASE=0x9F000000 -I/home/oliver/u-boot_mod/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/oliver/buildroot/output/host/usr/lib/gcc/mips-buildroot-linux-uclibc/4.7.4/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -mips32 -march=mips32 -mtune=mips32 -EB -fno-schedule-insns -fno-schedule-insns2 -Wall -Wstrict-prototypes -DCOMPRESSED_UBOOT=0  -c -o httpd.o httpd.c
mips-linux-gcc  -O  -D__KERNEL__ -DTEXT_BASE=0x9F000000 -I/home/oliver/u-boot_mod/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/oliver/buildroot/output/host/usr/lib/gcc/mips-buildroot-linux-uclibc/4.7.4/include -pipe  -DCONFIG_MIPS -D__MIPS__ -G 0 -mabicalls -fpic -msoft-float -mips32 -march=mips32 -mtune=mips32 -EB -fno-schedule-insns -fno-schedule-insns2 -Wall -Wstrict-prototypes -DCOMPRESSED_UBOOT=0  -c -o fs.o fs.c
In file included from fs.c:54:0:
fsdata.c:333:1: error: expected expression before ‘,’ token
make[2]: *** [fs.o] Error 1
make[2]: Leaving directory `/home/oliver/u-boot_mod/u-boot/httpd'
make[1]: *** [httpd/libhttpd.a] Error 2
make[1]: Leaving directory `/home/oliver/u-boot_mod/u-boot'
make: *** [8devices_carambola2] Error 2

When we look at u-boot/httpd/fsdata.c line 333 we see (including the line numbers here):

325 static const char data_style_css[] = {
326 /* HTTP Header */
327 0x48, 0x54, 0x54, 0x50, 0x2f, 0x31, 0x2e, 0x30, 0x20, 0x32, 0x30, 0x30, 0x20, 0x4f, 0x4b, 0x0d, 0x0a,
328 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x3a, 0x20, 0x75, 0x49, 0x50, 0x2f, 0x30, 0x2e, 0x39, 0x0d, 0x0a,
329 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x74, 0x65, 0x78,
330 0x74, 0x2f, 0x63, 0x73, 0x73, 0x3b, 0x20, 0x63, 0x68, 0x61, 0x72, 0x73, 0x65, 0x74, 0x3d, 0x55, 0x54,
331 0x46, 0x2d, 0x38, 0x0d, 0x0a, 0x0d, 0x0a,
332 /* Page/File content */
333 , 0 };

Which seems to be the problem. The comma at the end of line 331 and the comma at the beginning of line 333 mean there are two commas separating the final 0 element from the rest of the array.

This is revision 9a415a7

Thanks for reading.

AR9331 internal bootrom

Hi pepe2k,

I'm now using your u-boot_mod for Carambola2 devices.
Very nice !

Thank you.

Did you play with the internal bootloader of AR9331 ?
I mean, the one, that you can trigger by pulling down GPIO1 at powerup.

I read a polish forum (using google translator ;-) ) but find no information. Here the trace from Uart when pulling down GPIO1 (SPI/ROM bootstrap)

Hornet USB booting...
VID=0xcf3,PID=0x9330
iManufacturer=0x10,iProduct=0x20,iSerialNumber=0x30
bMaxPower=0xfa
-> COLD_START
bUSBPhyBias=0x3
RUN
Default State
HS
HS
HS
HS
HS

release more often?

I just flashed the tp-link mr10u image from your last and only (2013) release. It worked, great! :)

But the docs were a bit unclear, they don't really state where to find the flashable image files.
In the repo, I only found "original" images, but I assumed they are without your modifications.

In the end, I flashed from that old 2013 github release as I didn't want to build it myself (and maybe make mistakes and brick my nice device).

But as it showed that the repo has a lot of commits after that release was made, I was a bit unsure about how many bugfixes and nice features I might be missing...

NAND

what about nand flash support?

TL-MR3020 memory increase, Openwrt LZMA decompression failure

Hi,
I have a TL-MR3020 where I decided to increase RAM and Flash size.
For the Flash I am using Spansion S25FL064P (8 MiB).
After compiling u-boot_mod and puting it in the flash, everything looks OK. Then I can access the firmware upgrade page from a browser. After choosing the openwrt binary file, the systems starts and everything looks OK. Then if I re-boot, there is a LZMA decompression failure when starting openwrt.
Is this linked tot he u-boot_mod ?
Any clue ?

Lionel

Compiling fails due to incompatible lzma executable

I'm trying to compile the mod on 64-bit Arch and as the lzma executable is distributed as precompiled binary, it doesn't work:

~/u-boot_mod git:master ❯❯❯ ./host_util/lzma
zsh: no such file or directory: ./host_util/lzma

I wonder if it's safe to use lzma from the distribution or will it cause compatibility problems such as failure to unpack the image due to version differences etc?

Here's the version from the distribution's lzma:

~/u-boot_mod git:master ❯❯❯ lzma --version
xz (XZ Utils) 5.0.5
liblzma 5.0.5

U-boot on DIR-505

Hi pepe2k,
I do have a D-link DIR-505 A1 device
and did hear about your project on another project based on openwrt
and they did create the following package to modify the u-boot on D-link 505 A1
http://ofmodemsandmen.com/download/uboot/dir505a1.zip
I did reach until the point where I did backup my u-boot via their openwrt image,
but got stuck on the point where the new u-boot is created as my original u-boot is only 64kb
and not 128kb, so if I overwrite it with the modified one it will theoretically overwrite all my custom settings if any present in the 64kb chunk.
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00010000 00010000 "u-boot"
mtd1: 00010000 00010000 "art"
mtd2: 00010000 00010000 "mac"
mtd3: 00010000 00010000 "nvram"
mtd4: 00040000 00010000 "language"
mtd5: 00780000 00010000 "firmware"
mtd6: 000f99aa 00010000 "kernel"
mtd7: 00686656 00010000 "rootfs"
mtd8: 00470000 00010000 "rootfs_data"

root@OpenWrt:/tmp# dd if=/dev/mtd0 of=/tmp/u-boot.bin
128+0 records in
128+0 records out

Just for testing purpose I did try to write my original backup to the md0 back to see if this step works

root@OpenWrt:/tmp# mtd write /tmp/u-boot.bin "u-boot"
Could not open mtd device: u-boot
Can't open device for writing!

Would it be possible for you to have a look and tell me what am I doing wrong?

Thanks a lot

Bricked TL-wr841n

Hello!

I downloaded latest git on 16 Sep 2014, built it for wr841 with make tplink_wr841n_v8,
flashed it on device and it stuck without output.
The command sequence was:
setenv ipaddr 192.168.1.3
setenv serverip 192.168.1.1
tftp 80800000 <bin_file>
erase 9f000000 +10000
cp.b 80800000 9f000000 10000

md 9f000000 after flash showed u-boot image head and I believed it is fine. However after "reset" no output at all, and after swapping power too.

I then unbricked board (with original firmware from tp-link_wr841n_v8_130506.bin), built RAM version and put in in memory in 80100000 and issued "go 80100000" and it worked. However I tried to flash freshly built non-RAM version of it and it stuck again.

RAM version works fine and detects my bigger flash, but flash version stucks.
I can send binary images or any other files you need to see what's wrong with them.

Below is log of second attempt:

uboot> tftp 80800000 ub.bin

TFTP from IP: 192.168.1.1
Our IP: 192.168.1.3
Filename: 'ub.bin'
Load address: 0x80800000
Using: eth1

Loading: #############

TFTP transfer complete!

Bytes transferred: 65536 (0x10000)
uboot> erase 9f000000 +10000
Erase FLASH from 0x9F000000 to 0x9F00FFFF in bank #1
Erasing: #

Erased sectors: 1

uboot> cp.b 80800000 9f000000 10000
Copying to FLASH...
Writting at address: 0x9F000000

Done!

uboot> md 9f000000
9F000000: 100000FF 00000000 100000FD 00000000 ................
9F000010: 10000194 00000000 10000192 00000000 ................
9F000020: 10000190 00000000 1000018E 00000000 ................
9F000030: 1000018C 00000000 1000018A 00000000 ................
9F000040: 10000188 00000000 10000186 00000000 ................
9F000050: 10000184 00000000 10000182 00000000 ................
9F000060: 10000180 00000000 1000017E 00000000 ...........~....
9F000070: 1000017C 00000000 1000017A 00000000 ...|.......z....
9F000080: 10000178 00000000 10000176 00000000 ...x.......v....
9F000090: 10000174 00000000 10000172 00000000 ...t.......r....
9F0000A0: 10000170 00000000 1000016E 00000000 ...p.......n....
9F0000B0: 1000016C 00000000 1000016A 00000000 ...l.......j....
9F0000C0: 10000168 00000000 10000166 00000000 ...h.......f....
9F0000D0: 10000164 00000000 10000162 00000000 ...d.......b....
9F0000E0: 10000160 00000000 1000015E 00000000 ...`.......^....
9F0000F0: 1000015C 00000000 1000015A 00000000 ..........Z....
uboot> reset

Resetting the board...

ar9331 u-boot RAM version

I've tried to use RAM version of u-boot for router debrick,
but there is very strange situation.

RAM version can't start stable for each launch.
Let me describe in details:

I use mr3020 v1.8 router with ar9331 on board.
I use j-link in conjunction with openocd 0.8.0.
I use pll and RAM init sequence from here:
https://wikidevi.com/wiki/TP-LINK_TL-MR3020#JTAG
Commands for openocd are:

halt
reset init
load_image uboot_for_tp-link_tl-mr3020__RAM.bin 0x80100000
resume 0x80100000

Image loaded successfully. I can verify it.
I can see RAM version logo for each start,
but usually it hangs at relocate_code function
near code

1:
lw t3, 0(t0)
sw t3, 0(t1)
addu t0, 4
ble t0, t2, 1b

I can halt processor,but RAM is not accessible anymore.
I've tried different version of u-boot from git,
but behaviour is the same.

It can start once for 20...30 attempts approximately.

JTAG frequency change doesn't help.
CPU/AHB frequency change doesn't help.
Router works well if I desolder flash and programm it.
But I would like to use RAM version of u-boot.

Where is my mistake?

mr3420 v2.1 always "Button was pressed for 10 sec..."

Thank you for your work.
I successfully flashed wr703n, but with mr3420 v2.1 I have a problem. I do not push the reset, but always get:
Button was pressed for 10 sec...
Starting U-Boot netconsole

If I push reset on 3-5second nothing happens and after 10 seconds I have the same:
Button was pressed for 10 sec...
Starting U-Boot netconsole

Help please

mr3420v2 1

Bricked my tp-link 720n (chinese)

Hello, bricked my router. Applied freshly compiled bootloader from master branch.

Tried same, but for 703n, and it went well(but was previously updated by your binary image from 2013).

What went wrong, any ideas? I will try to reflash in local pc service, but guessing what went wrong :) Here is full console log.

U-Boot 1.1.4 (Mar 18 2013 - 17:38:24)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup
eth1 up
eth0, eth1
Autobooting in 1 seconds
hornet>
hornet> tpl
Unknown command 'tpl' - try 'help'
hornet> tpl
Unknown command 'tpl' - try 'help'
hornet> help
?       - alias for 'help'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
hornet> setenv ipaddr 192.168.1.1
hornet> setenv serverip 192.168.1.2
hornet> printenv ipaddr
ipaddr=192.168.1.1
hornet> tftpboot 0x80800000 uboot_for_tp-link_tl-wr720n_v3_CH.bin
eth1 link down
dup 1 speed 100
Using eth0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'uboot_for_tp-link_tl-wr720n_v3_CH.bin'.
Load address: 0x80800000
Loading: #############
done
Bytes transferred = 65536 (10000 hex)
hornet> erase 0x9F000000 +0x10000

First 0x0 last 0x0 sector size 0x10000                                                                                                                        0
Erased 1 sectors
hornet> cp.b 0x80800000 0x9F000000 0x10000
Copy to Flash... write addr: 9f000000
done
hornet> md 0x9F000000
9f000000: 100000ff 00000000 100000fd 00000000    ................
9f000010: 1000018e 00000000 1000018c 00000000    ................
9f000020: 1000018a 00000000 10000188 00000000    ................
9f000030: 10000186 00000000 10000184 00000000    ................
9f000040: 10000182 00000000 10000180 00000000    ................
9f000050: 1000017e 00000000 1000017c 00000000    ...~.......|....
9f000060: 1000017a 00000000 10000178 00000000    ...z.......x....
9f000070: 10000176 00000000 10000174 00000000    ...v.......t....
9f000080: 10000172 00000000 10000170 00000000    ...r.......p....
9f000090: 1000016e 00000000 1000016c 00000000    ...n.......l....
9f0000a0: 1000016a 00000000 10000168 00000000    ...j.......h....
9f0000b0: 10000166 00000000 10000164 00000000    ...f.......d....
9f0000c0: 10000162 00000000 10000160 00000000    ...b.......`....
9f0000d0: 1000015e 00000000 1000015c 00000000    ...^.......\....
9f0000e0: 1000015a 00000000 10000158 00000000    ...Z.......X....
9f0000f0: 10000156 00000000 10000154 00000000    ...V.......T....
hornet>
9f000100: 10000152 00000000 10000150 00000000    ...R.......P....
9f000110: 1000014e 00000000 1000014c 00000000    ...N.......L....
9f000120: 1000014a 00000000 10000148 00000000    ...J.......H....
9f000130: 10000146 00000000 10000144 00000000    ...F.......D....
9f000140: 10000142 00000000 10000140 00000000    ...B.......@....
9f000150: 1000013e 00000000 1000013c 00000000    ...>.......<....
9f000160: 1000013a 00000000 10000138 00000000    ...:.......8....
9f000170: 10000136 00000000 10000134 00000000    ...6.......4....
9f000180: 10000132 00000000 10000130 00000000    ...2.......0....
9f000190: 1000012e 00000000 1000012c 00000000    ...........,....
9f0001a0: 1000012a 00000000 10000128 00000000    ...*.......(....
9f0001b0: 10000126 00000000 10000124 00000000    ...&.......$....
9f0001c0: 10000122 00000000 10000120 00000000    ..."....... ....
9f0001d0: 1000011e 00000000 1000011c 00000000    ................
9f0001e0: 1000011a 00000000 10000118 00000000    ................
9f0001f0: 10000116 00000000 10000114 00000000    ................
hornet>
9f000200: 10000113 241a0200 10000110 00000000    ....$...........
9f000210: 1000010e 00000000 1000010c 00000000    ................
9f000220: 1000010a 00000000 10000108 00000000    ................
9f000230: 10000106 00000000 10000104 00000000    ................
9f000240: 10000102 00000000 10000100 00000000    ................
9f000250: 100000fe 00000000 100000fc 00000000    ................
9f000260: 100000fa 00000000 100000f8 00000000    ................
9f000270: 100000f6 00000000 100000f4 00000000    ................
9f000280: 100000f3 241a0280 100000f0 00000000    ....$...........
9f000290: 100000ee 00000000 100000ec 00000000    ................
9f0002a0: 100000ea 00000000 100000e8 00000000    ................
9f0002b0: 100000e6 00000000 100000e4 00000000    ................
9f0002c0: 100000e2 00000000 100000e0 00000000    ................
9f0002d0: 100000de 00000000 100000dc 00000000    ................
9f0002e0: 100000da 00000000 100000d8 00000000    ................
9f0002f0: 100000d6 00000000 100000d4 00000000    ................
hornet>
9f000300: 100000d3 241a0300 100000d0 00000000    ....$...........
9f000310: 100000ce 00000000 100000cc 00000000    ................
9f000320: 100000ca 00000000 100000c8 00000000    ................
9f000330: 100000c6 00000000 100000c4 00000000    ................
9f000340: 100000c2 00000000 100000c0 00000000    ................
9f000350: 100000be 00000000 100000bc 00000000    ................
9f000360: 100000ba 00000000 100000b8 00000000    ................
9f000370: 100000b6 00000000 100000b4 00000000    ................
9f000380: 100000b3 241a0380 100000b0 00000000    ....$...........
9f000390: 100000ae 00000000 100000ac 00000000    ................
9f0003a0: 100000aa 00000000 100000a8 00000000    ................
9f0003b0: 100000a6 00000000 100000a4 00000000    ................
9f0003c0: 100000a2 00000000 100000a0 00000000    ................
9f0003d0: 1000009e 00000000 1000009c 00000000    ................
9f0003e0: 1000009a 00000000 10000098 00000000    ................
9f0003f0: 10000096 00000000 10000094 00000000    ................
hornet>
9f000400: 40800000 40800800 40801000 40801800    @...@...@...@...
9f000410: 40802000 40802800 40803000 40803800    @. .@.([email protected][email protected].
9f000420: 40804000 40804800 40805000 40805800    @.@[email protected][email protected][email protected].
9f000430: 3c081000 35080004 40886000 40806800    <...5...@.`[email protected].
9f000440: 40807000 40807800 40808000 40808800    @[email protected].@...@...
9f000450: 40809000 40809800 4080a000 4080a800    @...@...@...@...
9f000460: 4080b000 4080b800 4080c000 4080c800    @...@...@...@...
9f000470: 4080d000 4080d800 4080e000 40809000    @...@...@...@...
9f000480: 40809800 401a6000 241bfffe 035bd024    @...@.`.$....[.$
9f000490: 40806800 409a6000 40806800 40804800    @.h.@.`[email protected][email protected].
9f0004a0: 40805800 24080002 40888000 04110002    @.X.$...@.......
9f0004b0: 00000000 9f003900 03e0e021 8fe90000    ......9....!....
9f0004c0: 0120e021 3c0fbd00 8df80000 3c191234    . .!<.......<..4
9f0004d0: 37395678 17190005 00000000 2419ffff    79Vx........$...
9f0004e0: adf90000 1000000a 00000000 adf90000    ................
9f0004f0: 3c0fb806 35ef001c 8df80000 3c190100    <...5.......<...
hornet>
9f000500: 0319c025 adf80000 1000ffff 00000000    ...%............
9f000510: 8f990008 0320f809 00000000 00000000    ..... ..........
9f000520: 8f99000c 0320f809 00000000 00000000    ..... ..........
9f000530: 8f880010 25080540 01000008 00000000    ....%..@........
9f000540: 3c04bf00 34840004 24080044 ac880000    <...4...$..D....
9f000550: 8f990014 0320f809 00000000 24080003    ..... ......$...
9f000560: 40888000 8f990018 0320f809 00000000    @........ ......
9f000570: 3c088000 35081000 251d0000 8f99001c    <...5...%.......
9f000580: 03200008 00000000 0080e821 3c089f00    . .........!<...
9f000590: 8f8b0010 256b05ec 8d6afff4 3c0b0004    ....%k...j..<...
9f0005a0: 014b5020 00c04821 03807021 3c019f00    .KP ..H!..p!<...
9f0005b0: 0381e022 0386e020 038e7022 8d0b0000    ..."... ..p"....
9f0005c0: ad2b0000 25080004 0148082a 1020fffb    .+..%....H.*. ..
9f0005d0: 25290004 20c805ec 01000008 00000000    %).. ...........
9f0005e0: 9f003994 9f0039c0 00000025 8d0bfffc    ..9...9....%....
9f0005f0: 238c0008 240a0002 8d890000 11200002    #...$........ ..
hornet>
9f000600: 012e4820 ad890000 214a0001 014b082a    ..H ....!J...K.*
9f000610: 1420fff9 218c0004 8d09fff4 8d0afff8    . ..!...........
9f000620: 012e4820 014e5020 2129fffc 21290004    ..H .NP !)..!)..
9f000630: 012a082a 5420fffd ad200000 00a02021    .*.*T ... .... !
9f000640: 8f990020 03200008 00c02821 1000ffff    ... . ....(!....
9f000650: 1000ffff 00000000 00000000 00000000    ................
9f000660: 3c1c0000 279c32a0 0399e021 27bdffe0    <...'.2....!'...
9f000670: afbf001c afb00018 afbc0010 03408021    .............@.!
9f000680: 8f990024 0411063f 00000000 8fbc0010    ...$...?........
9f000690: ae020010 8e020010 2c420001 8fbf001c    ........,B......
9f0006a0: 8fb00018 03e00008 27bd0020 3c1c0000    ........'.. <...
9f0006b0: 279c3254 0399e021 8f820010 8c4239a4    '.2T...!.....B9.
9f0006c0: 8f830010 8c6339a0 00621823 0083182b    .....c9..b.#...+
9f0006d0: 10600005 8f830010 00821021 ac6239a4    .`.........!.b9.
9f0006e0: 03e00008 00441023 03e00008 00001021    .....D.#.......!
9f0006f0: 03e00008 00001021 03e00008 00000000    .......!........
hornet>
9f000700: 1000ffff 00000000 3c1c0000 279c31f8    ........<...'.1.
9f000710: 0399e021 27bdff90 afbf006c afb10068    ...!'......l...h
9f000720: afb00064 afbc0010 00a08021 8f820010    ...d.......!....
9f000730: ac4539a0 3c04fff7 00a42021 8f820010    .E9.<..... !....
9f000740: ac4439a4 8f820010 ac4439a8 00002821    .D9......D9...(!
9f000750: 3c060009 8f990028 04110106 00000000    <......(........
9f000760: 8fbc0010 3c029f00 8f83002c 00621021    ....<......,.b.!
9f000770: 00508023 27a40018 02002821 24060040    .P.#'.....(!$..@
9f000780: 8f990030 04110110 00000000 8fbc0010    ...0............
9f000790: 3c022705 24421956 8fa30018 1462001f    <.'.$B.V.....b..
9f0007a0: 8fbf006c 8fb1001c afa0001c 00002021    ...l.......... !
9f0007b0: 27a50018 24060040 8f990034 04110168    '[email protected]
9f0007c0: 00000000 8fbc0010 14510014 8fbf006c    .........Q.....l
9f0007d0: afa00058 26040040 8fa50024 8fa60028    ...X&..@...$...(
9f0007e0: 27a70058 8f990038 041101df 00000000    '..X...8........
9f0007f0: 8fbc0010 14400009 8fbf006c 8f440010    [email protected]..
hornet>
9f000800: 8fb90028 0320f809 00000000 8fbc0010    ...(. ..........
9f000810: 8f99003c 0411ffba 00000000 8fb10068    ...<...........h
9f000820: 8fb00064 03e00008 27bd0070 3c1c0000    ...d....'..p<...
9f000830: 279c30d4 0399e021 27bdffb0 afbf004c    '.0....!'......L
9f000840: afb20048 afb10044 afb00040 afbc0010    ...H...D...@....
9f000850: 27ba0018 03402021 00002821 24060024    '....@ !..(!$..$
9f000860: 8f990028 041100c3 00000000 8fbc0010    ...(............
9f000870: 8f820040 8c590000 1320000d 00408021    [email protected]... ...@.!
9f000880: 0320f809 00000000 8fbc0010 10400005    . ...........@..
9f000890: 26100004 2610fffc 8f99003c 0411ff98    &...&......<....
9f0008a0: 00000000 8e190000 1720fff5 00000000    ......... ......
9f0008b0: 8f420010 3c038000 00431021 2405f000    .B..<....C.!$...
9f0008c0: 00451024 3c129f00 8f850044 02459023    .E.$<......D.E.#
9f0008d0: 02429021 2402c000 02429024 3c02fff6    .B.!$....B.$<...
9f0008e0: 3442ffd0 02421021 af420000 2450ffdc    4B...B.!.B..$P..
9f0008f0: 3c11fff8 02118821 ac510014 2631fff0    <......!.Q..&1..
hornet>
9f000900: 2404fff0 02248824 ae200000 ae20fffc    $....$.$. ... ..
9f000910: ac430018 8f440010 ac44001c 8f430008    .C...D...D...C..
9f000920: ac430000 02002021 03402821 24060024    .C.... !.@(!$..$
9f000930: 8f990048 04110099 00000000 8fbc0010    ...H............
9f000940: 2624fff8 02002821 02403021 8f99004c    &$....(!.@0!...L
9f000950: 0411ff0d 00000000 8fbc0010 8fbf004c    ...............L
9f000960: 8fb20048 8fb10044 8fb00040 03e00008    ...H...D...@....
9f000970: 27bd0050 00000000 00000000 00000000    '..P............
9f000980: 80830000 10600009 00801021 00801821    .....`.....!...!
9f000990: 24630001 80640000 1480fffe 24630001    $c...d......$c..
9f0009a0: 2463ffff 10000003 80a40000 00801821    $c.............!
9f0009b0: 80a40000 a0640000 24630001 1480fffc    .....d..$c......
9f0009c0: 24a50001 03e00008 00000000 80830000    $...............
9f0009d0: 00052e00 00052e03 1065000c 00801021    .........e.....!
9f0009e0: 14600007 24420001 2442ffff 03e00008    .`..$B..$B......
9f0009f0: 00001021 10600007 00000000 24420001    ...!.`......$B..
hornet>
9f000a00: 80430000 1465fffb 00000000 03e00008    .C...e..........
9f000a10: 00000000 00001021 03e00008 00000000    .......!........
9f000a20: 80820000 10400008 00801021 24420001    .....@.....!$B..
9f000a30: 80430000 1460fffe 24420001 2442ffff    .C...`..$B..$B..
9f000a40: 03e00008 00441023 00441023 03e00008    .....D.#.D.#....
9f000a50: 00000000 10a0000f 00801021 80820000    ...........!....
9f000a60: 1040000b 00852821 00801021 24420001    .@....(!...!$B..
9f000a70: 10450008 00000000 80430000 1460fffc    .E.......C...`..
9f000a80: 24420001 2442ffff 03e00008 00441023    $B..$B.......D.#
9f000a90: 00801021 00441023 03e00008 00000000    ...!.D.#........
9f000aa0: 80870000 10e00004 00001021 80a80000    ...........!....
9f000ab0: 15000010 00000000 03e00008 00000000    ................
9f000ac0: 10e60006 24630001 80660000 14c0fffc    ....$c...f......
9f000ad0: 00000000 03e00008 00000000 24840001    ............$...
9f000ae0: 80870000 14e00003 24420001 03e00008    ........$B......
9f000af0: 00000000 10e8fff9 00a01821 1000fff2    ...........!....
hornet>
9f000b00: 24630001 80870000 10e00016 00000000    $c..............
9f000b10: 80a80000 1000000d 00801021 14e60004    ...........!....
9f000b20: 24630001 03e00008 00000000 24630001    $c..........$c..
9f000b30: 80660000 14c0fff9 00000000 24420001    .f..........$B..
9f000b40: 80470000 10e00009 00000000 1100fffb    .G..............
9f000b50: 00000000 14e8fff5 00a01821 03e00008    ...........!....
9f000b60: 00000000 03e00008 00001021 03e00008    ...........!....
9f000b70: 00001021 10c00007 00801021 00801821    ...!.......!...!
9f000b80: 00863021 a0650000 24630001 1466fffd    ..0!.e..$c...f..
9f000b90: 00000000 03e00008 00000000 10c00008    ................
9f000ba0: 00801021 00801821 00863021 90a40000    ...!...!..0!....
9f000bb0: a0640000 24630001 1466fffc 24a50001    .d..$c...f..$...
9f000bc0: 03e00008 00000000 00a4182b 1460000b    ...........+.`..
9f000bd0: 00801021 10c00007 00801821 00863021    ...!.......!..0!
9f000be0: 90a40000 a0640000 24630001 1466fffc    .....d..$c...f..
9f000bf0: 24a50001 03e00008 00000000 10c0fffd    $...............
hornet>
9f000c00: 00861821 00a62821 00663023 2463ffff    ...!..(!.f0#$c..
9f000c10: 24a5ffff 90a40000 1466fffc a0640000    $........f...d..
9f000c20: 03e00008 00000000 10c00013 00803821    ..............8!
9f000c30: 90840000 90a20000 00821023 10400009    ...........#.@..
9f000c40: 00a01821 03e00008 00000000 24630001    ...!........$c..
9f000c50: 90e40000 90620000 00821023 14400007    .....b.....#.@..
9f000c60: 00000000 24c6ffff 14c0fff8 24e70001    ....$.......$...
9f000c70: 03e00008 00000000 00001021 03e00008    ...........!....
9f000c80: 00000000 3c1c0000 279c2c7c 0399e021    ....<...'.,|...!
9f000c90: 27bdffd0 afbf002c afb40028 afb30024    '......,...(...$
9f000ca0: afb20020 afb1001c afb00018 afbc0010    ... ............
9f000cb0: 00808821 00a09021 00a02021 8f990050    ...!...!.. !...P
9f000cc0: 0411ff57 00000000 8fbc0010 00408021    ...W.........@.!
9f000cd0: 1040001a 00409821 02202021 8f990050    .@...@.!.  !...P
9f000ce0: 0411ff4f 00000000 8fbc0010 0040a021    ...O.........@.!
9f000cf0: 0050102a 1440000e 02202021 02402821    .P.*.@...  !.@(!
hornet>
9f000d00: 02003021 8f990054 0411ffc7 00000000    ..0!...T........
9f000d10: 8fbc0010 10400009 2694ffff 0293102a    .....@..&......*
9f000d20: 14400005 26310001 1000fff4 02202021    .@..&1.......  !
9f000d30: 10000002 00008821 00008821 02201021    .......!...!. .!
9f000d40: 8fbf002c 8fb40028 8fb30024 8fb20020    ...,...(...$...
9f000d50: 8fb1001c 8fb00018 03e00008 27bd0030    ............'..0
9f000d60: 3c1c0000 279c2ba0 0399e021 2cc30008    <...'.+....!,...
9f000d70: 1460004f 00041027 24c6fff8 000658c2    .`.O...'$.....X.
9f000d80: 24aa0008 000b18c0 01435021 00a01821    $........CP!...!
9f000d90: 8f870010 24e734b0 90640000 00442026    ....$.4..d...D &
9f000da0: 308400ff 00042080 00872021 8c880000    0..... ... !....
9f000db0: 00021202 01021026 90640001 00442026    .......&.d...D &
9f000dc0: 308400ff 00042080 00872021 8c880000    0..... ... !....
9f000dd0: 00021202 01024026 90620002 01021026    ......@&.b.....&
9f000de0: 304200ff 00021080 00471021 8c440000    0B.......G.!.D..
9f000df0: 00084202 00882026 90620003 00821026    ..B... &.b.....&
hornet>
9f000e00: 304200ff 00021080 00471021 8c420000    0B.......G.!.B..
9f000e10: 00042202 00441026 90640004 00442026    .."..D.&.d...D &
9f000e20: 308400ff 00042080 00872021 8c890000    0..... ... !....
9f000e30: 00021202 01224826 90620005 01221026    ....."H&.b...".&
9f000e40: 304200ff 00021080 00471021 8c480000    0B.......G.!.H..
9f000e50: 00094a02 01094026 90620006 01021026    ..J...@&.b.....&
9f000e60: 304200ff 00021080 00471021 8c440000    0B.......G.!.D..
9f000e70: 00084202 00882026 90620007 00821026    ..B... &.b.....&
9f000e80: 304200ff 00021080 00471021 8c420000    0B.......G.!.B..
9f000e90: 00042202 24630008 1543ffbf 00441026    ..".$c...C...D.&
9f000ea0: 256b0001 000b58c0 00ab2821 30c60007    %k....X...(!0...
9f000eb0: 10c0000d 00a63021 8f840010 248434b0    ......0!....$.4.
9f000ec0: 90a30000 00431826 306300ff 00031880    .....C.&0c......
9f000ed0: 00641821 8c630000 00021202 24a50001    .d.!.c......$...
9f000ee0: 14a6fff7 00621026 03e00008 00021027    .....b.&.......'
9f000ef0: 3c1c0000 279c2a10 0399e021 27bdffd8    <...'.*....!'...
hornet>
9f000f00: afbf0024 afb10020 afb0001c afbc0010    ...$... ........
9f000f10: 00801021 10c0000e 00c08021 8f910010    ...!.......!....
9f000f20: 8e2339b0 00a02021 00432821 8f990048    .#9... !.C(!...H
9f000f30: 0411ff1a 00000000 8fbc0010 8e2239b0    ............."9.
9f000f40: 02028021 ae3039b0 10000002 24020001    ...!.09.....$...
9f000f50: 00001021 8fbf0024 8fb10020 8fb0001c    ...!...$... ....
9f000f60: 03e00008 27bd0028 3c1c0000 279c2998    ....'..(<...'.).
9f000f70: 0399e021 27bdff90 afbf006c afbe0068    ...!'......l...h
9f000f80: afb70064 afb60060 afb5005c afb40058    ...d...`...\...X
9f000f90: afb30054 afb20050 afb1004c afb00048    ...T...P...L...H
9f000fa0: afbc0020 00809821 afa50074 afa60078    ... ...!...t...x
9f000fb0: afa7007c 27a50038 24060005 8f990010    ...|'..8$.......
9f000fc0: 27390ef0 0411ffca 00000000 8fbc0020    '9.............
9f000fd0: 10400071 2411ffe0 00008021 24120001    [email protected]$......!$...
9f000fe0: 0000a021 0000b021 8f950010 241700ff    ...!...!....$...
9f000ff0: 241e0008 02602021 27a50040 24060001    $....` !'..@$...
hornet>
9f001000: 26b90ef0 0411ffba 00000000 8fbc0020    &..............
9f001010: 10400063 93a20040 00571826 0003900b    [email protected][email protected].&....
9f001020: 2a030004 10600004 001018c0 00621004    *....`.......b..
9f001030: 10000003 02c2b021 02221004 0282a021    .......!.".....!
9f001040: 26100001 161effeb 26310008 16400056    &.......&[email protected]
9f001050: 00000000 16800056 27a40028 27a50038    .......V'..('..8
9f001060: 24060005 8f990058 04110091 00000000    $......X........
9f001070: 8fbc0020 14400050 8fa20028 8fa4002c    ... [email protected]...(...,
9f001080: 00821021 24040300 00442004 24840736    ...!$....D .$..6
9f001090: 00042040 8f99005c 0411fd84 00000000    .. @...\........
9f0010a0: 8fbc0020 12c00007 afa20034 8fa4007c    ... .......4...|
9f0010b0: 0096182b 8fa70078 0003380b 10000002    ...+...x..8.....
9f0010c0: 00e01821 00001821 8fa40074 2486fff3    ...!...!...t$...
9f0010d0: 10c00009 00002821 8f840010 8c8539b0    ......(!......9.
9f0010e0: 00c52021 8fa70074 00e4202b 10800002    .. !...t.. +....
9f0010f0: 02652821 00002821 10400009 00402021    .e(!..(!.@...@ !
hornet>
9f001100: 14600003 00000000 16c00006 8f990060    .`.............`
9f001110: 14a00009 00000000 10c00007 00402021    .............@ !
9f001120: 8f990060 0411fd74 00000000 8fbc0020    ...`...t.......
9f001130: 10000022 24100001 afa30010 afb60014    ..."$...........
9f001140: 27a20044 afa20018 27a40028 27a70040    '..D....'..('..@
9f001150: 8f990064 04110077 00000000 8fbc0020    ...d...w.......
9f001160: 14400005 00408021 8fa20044 8fa3007c    .@...@.!...D...|
9f001170: 10000002 ac620000 24100001 8fa40034    .....b..$......4
9f001180: 8f990060 0411fd5c 00000000 8fbc0020    ...`...\.......
9f001190: 1000000b 02001021 10000008 24100001    .......!....$...
9f0011a0: 10000006 24100001 10000004 24100001    ....$.......$...
9f0011b0: 10000002 24100001 24100001 02001021    ....$...$......!
9f0011c0: 8fbf006c 8fbe0068 8fb70064 8fb60060    ...l...h...d...`
9f0011d0: 8fb5005c 8fb40058 8fb30054 8fb20050    ...\...X...T...P
9f0011e0: 8fb1004c 8fb00048 03e00008 27bd0070    ...L...H....'..p
9f0011f0: 00001021 40825800 03e00008 40824800    [email protected][email protected].
hornet>
9f001200: 40024800 03e00008 00441023 3c1c0000    @.H......D.#<...
9f001210: 279c26f4 0399e021 27bdffe0 afbf001c    '.&....!'.......
9f001220: afb00018 afbc0010 00808021 00002021    ...........!.. !
9f001230: 8f990068 0411fff2 00000000 8fbc0010    ...h............
9f001240: 8f440000 8f430004 30630001 14600007    .D...C..0c...`..
9f001250: 3c03431b 001018c0 00108140 00708021    <[email protected].!
9f001260: 00101880 10000007 02038021 8c84002c    ...........!...,
9f001270: 3463de83 00830019 00001810 00031c82    4c..............
9f001280: 72038002 40044800 00822023 0090202b    [email protected]... #.. +
9f001290: 1480fffc 8fbf001c 8fb00018 03e00008    ................
9f0012a0: 27bd0020 00000000 00000000 00000000    '.. ............
9f0012b0: 28c60005 14c0001d 24020001 90a20000    (.......$.......
9f0012c0: 2c4300e1 10600017 2c43002d 14600008    ,C...`..,C.-.`..
9f0012d0: ac800008 00001821 2442ffd3 304200ff    .......!$B..0B..
9f0012e0: 2c45002d 10a0fffc 24630001 ac830008    ,E.-....$c......
9f0012f0: 2c430009 14600008 ac800004 00001821    ,C...`.........!
hornet>
9f001300: 2442fff7 304200ff 2c450009 10a0fffc    $B..0B..,E......
9f001310: 24630001 ac830004 ac820000 03e00008    $c..............
9f001320: 00001021 03e00008 24020001 03e00008    ...!....$.......
9f001330: 00000000 27bdffb8 afbe0044 afb70040    ....'......D...@
9f001340: afb6003c afb50038 afb40034 afb30030    ...<...8...4...0
9f001350: afb2002c afb10028 afb00024 8fb10058    ...,...(...$...X
9f001360: 8fb3005c 8c90000c 24020001 8c960008    ...\....$.......
9f001370: 02c2b004 8c830004 00621004 2442ffff    .........b..$B..
9f001380: afa20010 8c950000 ace00000 8fa20060    ...............`
9f001390: ac400000 8c880004 02a84021 24020300    .@........@!$...
9f0013a0: 01024004 25080736 11000009 26d6ffff    ..@.%..6....&...
9f0013b0: 02001821 00001021 24090400 a4690000    ...!...!$....i..
9f0013c0: 24420001 0048202b 1480fffc 24630002    $B...H +....$c..
9f0013d0: 00a63021 14a6027c 24a40001 1000024a    ..0!...|$......J
9f0013e0: 24020001 1086024a 00031a00 90820000    $......J........
9f0013f0: 24840001 1488fffb 00621825 16600275    $........b.%.`.u
hornet>
9f001400: 24140001 1000023a 00004821 11600008    $......:..H!.`..
9f001410: 01367824 10c40240 00031a00 00021200    .6x$...@........
9f001420: 908b0000 01631825 24840001 01367824    .....c.%$....6x$
9f001430: 0018c900 032fc821 00196840 020d6821    ...../[email protected]!
9f001440: 95ab0000 000262c2 718b6002 006c902b    ......b.q.`..l.+
9f001450: 12400076 004c1023 01cb1023 00021143    [email protected].#...#...C
9f001460: 01625821 a5ab0000 8fa20014 004a5007    .bX!.........JP.
9f001470: 8fab0010 012b1024 02a21004 01425021    .....+.$.....BP!
9f001480: 000a1240 000a5ac0 01625823 256b0e6c    [email protected]#%k.l
9f001490: 2b020007 1040000a 020b5821 01801021    [email protected]!...!
9f0014a0: 10000035 240a0001 01a01021 294c0100    ...5$......!)L..
9f0014b0: 15800032 0048602b 10000050 314a00ff    ...2.H`+...P1J..
9f0014c0: 01341023 02221021 904f0000 01801021    .4.#.".!.O.....!
9f0014d0: 240a0001 0048602b 11800007 00000000    $....H`+........
9f0014e0: 1086020f 00031a00 00021200 908c0000    ................
9f0014f0: 01831825 24840001 000f7840 31f90100    ...%$.....x@1...
hornet>
9f001500: 25520100 02599021 00129040 01729021    %[email protected].!
9f001510: 964c0000 00026ac2 71ac6802 006db82b    .L....j.q.h..m.+
9f001520: 12e00009 004d1023 01cc1023 00021143    .....M.#...#...C
9f001530: 01826021 a64c0000 1720ffdb 000a5040    ..`!.L... ....P@
9f001540: 10000008 01a01021 006d1823 000c6942    .......!.m.#..iB
9f001550: 018d6023 a64c0000 000a5040 1320ffd3    ..`#.L....P@. ..
9f001560: 254a0001 294c0100 1580ffdb 0048602b    %J..)L.......H`+
9f001570: 10000022 314a00ff 0048602b 11800008    ..."1J...H`+....
9f001580: 000a7840 108601e8 00031a00 00021200    ..x@............
9f001590: 908c0000 01831825 24840001 000a7840    .......%$.....x@
9f0015a0: 016f7821 95ec0000 00026ac2 71ac6802    .ox!......j.q.h.
9f0015b0: 006dc82b 13200007 000a5040 01cc1023    .m.+. ....P@...#
9f0015c0: 00021143 01826021 a5ec0000 10000007    ...C..`!........
9f0015d0: 01a01021 004d1023 006d1823 000c6942    ...!.M.#.m.#..iB
9f0015e0: 018d6023 a5ec0000 254a0001 294c0100    ..`#....%J..)L..
9f0015f0: 1580ffe2 0048602b 314a00ff 02295821    .....H`+1J...)X!
hornet>
9f001600: a16a0000 2b0b0004 156001af 25290001    .j..+....`..%)..
9f001610: 2b0b000a 11600003 00000000 100001ab    +....`..........
9f001620: 2718fffd 100001a9 2718fffa 006c1823    '.......'....l.#
9f001630: 000b5142 016a5823 0048502b 11400007    ..QB.jX#.HP+.@..
9f001640: a5ab0000 108601ba 00031a00 00021200    ................
9f001650: 908a0000 006a1825 24840001 270c00c0    .....j.%$...'...
9f001660: 000c6040 020c6021 958a0000 00025ac2    ..`@..`!......Z.
9f001670: 716a5802 006b902b 12400010 03006821    [email protected]!
9f001680: 01ca1023 00021143 01425021 a58a0000    ...#...C.BP!....
9f001690: 2b180007 00001021 03d8100a 0040c021    +......!.....@.!
9f0016a0: 260a0664 8fa2000c afa2001c 8fa20008    &..d............
9f0016b0: afa2000c 10000094 afb40008 004b1023    .............K.#
9f0016c0: 006b1823 000a5942 014b5023 a58a0000    .k.#..YB.KP#....
9f0016d0: 0048502b 11400008 25ac00cc 10860196    .HP+.@..%.......
9f0016e0: 00031a00 00021200 908a0000 006a1825    .............j.%
9f0016f0: 24840001 25ac00cc 000c6040 020c6021    $...%.....`@..`!
hornet>
9f001700: 958a0000 00025ac2 716a5802 006b902b    ......Z.qjX..k.+
9f001710: 1240002d 004b1023 01ca1023 00021143    [email protected].#...#...C
9f001720: 01421021 a5820000 0168102b 10400008    .B.!.....h.+.@..
9f001730: 272c00f0 10860182 000b5a00 00031a00    ',........Z.....
9f001740: 90820000 00431825 24840001 272c00f0    .....C.%$...',..
9f001750: 000c6040 020c6021 958a0000 000b12c2    ..`@..`!........
9f001760: 704a1002 0062682b 11a00012 01625823    pJ...bh+.....bX#
9f001770: 01ca5823 000b5943 014b5021 11200172    ..X#..YC.KP!. .r
9f001780: a58a0000 2b180007 240a0009 240b000b    ....+...$...$...
9f001790: 0178500a 0140c021 01345023 022a5021    .xP..@.!.4P#.*P!
9f0017a0: 914a0000 02295821 a16a0000 10000147    .J...)X!.j.....G
9f0017b0: 25290001 00621823 000a1142 01421023    %)...b.#...B.B.#
9f0017c0: 1000004b a5820000 006b1823 000a5942    ...K.....k.#..YB
9f0017d0: 014b5023 a58a0000 0048502b 11400008    .KP#.....HP+.@..
9f0017e0: 25ac00d8 1086015a 00031a00 00021200    %......Z........
9f0017f0: 908a0000 006a1825 24840001 25ac00d8    .....j.%$...%...
hornet>
9f001800: 000c6040 020c6021 958a0000 00025ac2    ..`@..`!......Z.
9f001810: 716a5802 006bc82b 13200009 004b1023    qjX..k.+. ...K.#
9f001820: 01ca1023 00021143 01421021 a5820000    ...#...C.B.!....
9f001830: 02801021 8fb40008 1000002d afa20008    ...!.......-....
9f001840: 006b1823 000a5942 014b5023 a58a0000    .k.#..YB.KP#....
9f001850: 0048502b 11400007 00000000 1086013e    .HP+.@.........>
9f001860: 00031a00 00021200 908a0000 006a1825    .............j.%
9f001870: 24840001 25ad00e4 000d6840 020d6821    $...%[email protected]!
9f001880: 95aa0000 000262c2 718a6002 006c582b    ......b.q.`..lX+
9f001890: 1160000b 01805821 01ca1023 00021143    .`....X!...#...C
9f0018a0: 01421021 a5a20000 02801021 8fb4000c    .B.!.......!....
9f0018b0: 8faa0008 afaa000c 1000000d afa20008    ................
9f0018c0: 004c5823 006c1823 000a1142 01421023    .LX#.l.#...B.B.#
9f0018d0: a5a20000 02801021 8fb4001c 8faa000c    .......!........
9f0018e0: afaa001c 8faa0008 afaa000c afa20008    ................
9f0018f0: 2b180007 24020008 240a000b 0158100a    +...$...$....X..
hornet>
9f001900: 0040c021 260a0a68 0168102b 10400007    .@.!&..h.h.+.@..
9f001910: 00000000 10860112 000b5a00 00031a00    ..........Z.....
9f001920: 90820000 00431825 24840001 954c0000    .....C.%$....L..
9f001930: 000b12c2 704c1002 0062682b 11a0000b    ....pL...bh+....
9f001940: 01625823 01cc5823 000b5943 018b6021    .bX#..X#..YC..`!
9f001950: a54c0000 000f9100 26520004 01529021    .L......&R...R.!
9f001960: afa00018 10000027 03c0b821 00621823    .......'...!.b.#
9f001970: 000c1142 01826023 0168102b 10400007    ...B..`#.h.+.@..
9f001980: a54c0000 108600f8 000b5a00 00031a00    .L........Z.....
9f001990: 90820000 00621825 24840001 954d0002    .....b.%$....M..
9f0019a0: 000b62c2 718d6002 006c102b 1040000c    ..b.q.`..l.+.@..
9f0019b0: 01cd1023 00021143 01a21021 a5420002    ...#...C...!.B..
9f0019c0: 000f9100 26520104 01529021 01801021    ....&R...R.!...!
9f0019d0: 240a0008 afaa0018 1000000a 03c0b821    $..............!
9f0019e0: 016c1023 006c1823 000d5942 01ab5823    .l.#.l.#..YB..X#
9f0019f0: a54b0002 25520204 240b0010 afab0018    .K..%R..$.......
hornet>
9f001a00: 24170008 02e06821 240c0001 0048502b    $.....h!$....HP+
9f001a10: 11400008 000c7840 108600d5 00031a00    [email protected]@........
9f001a20: 00021200 908a0000 01431825 24840001    .........C.%$...
9f001a30: 000c7840 024f7821 95ea0000 00025ac2    [email protected]!......Z.
9f001a40: 716a5802 006bc82b 13200007 000c6040    qjX..k.+. ....`@
9f001a50: 01ca1023 00021143 01425021 a5ea0000    ...#...C.BP!....
9f001a60: 10000007 01601021 004b1023 006b1823    .....`.!.K.#.k.#
9f001a70: 000a5942 014b5023 a5ea0000 258c0001    ..YB.KP#....%...
9f001a80: 25adffff 15a0ffe2 0048502b 240a0001    %........HP+$...
9f001a90: 02eab804 8faa0018 0157b823 2b0a0004    .........W.#+...
9f001aa0: 11400079 02ec6021 29940004 03c05821    [email protected]..`!).....X!
9f001ab0: 0194580b 000ba1c0 26940360 0214a021    ..X.....&..`...!
9f001ac0: 240f0006 240d0001 0048502b 11400008    $...$....HP+.@..
9f001ad0: 000dc840 108600a8 00031a00 00021200    ...@............
9f001ae0: 908a0000 01431825 24840001 000dc840    .....C.%$......@
9f001af0: 0299c821 972a0000 00025ac2 716a5802    ...!.*....Z.qjX.
hornet>
9f001b00: 006b902b 12400007 000d6840 01ca1023    [email protected]@...#
9f001b10: 00021143 01425021 a72a0000 10000007    ...C.BP!.*......
9f001b20: 01601021 004b1023 006b1823 000a5942    .`.!.K.#.k.#..YB
9f001b30: 014b5023 a72a0000 25ad0001 25efffff    .KP#.*..%...%...
9f001b40: 15e0ffe2 0048502b 25aaffc0 294b0004    .....HP+%...)K..
9f001b50: 15600049 0140a021 000a6843 25adffff    .`.I.@.!..hC%...
9f001b60: 31540001 294b000e 11600008 36940002    1T..)K...`..6...
9f001b70: 01b4a004 240b02af 016a5023 01545021    ....$....jP#.TP!
9f001b80: 000a5040 10000017 020ab821 25adfffc    ..P@.......!%...
9f001b90: 0048502b 11400007 00000000 10860078    [email protected]
9f001ba0: 00031a00 00021200 908a0000 01431825    .............C.%
9f001bb0: 24840001 00021042 0062502b 15400003    $......B.bP+.@..
9f001bc0: 0014a040 00621823 36940001 25adffff    [email protected].#6...%...
9f001bd0: 15a0fff0 0048502b 26170644 0014a100    .....HP+&..D....
9f001be0: 240d0004 240f0001 24120001 afa90018    $...$...$.......
9f001bf0: 0048482b 11200008 000f5840 10860062    .HH+. [email protected]
hornet>
9f001c00: 00031a00 00021200 90890000 01231825    .............#.%
9f001c10: 24840001 000f5840 02eb5821 95690000    [email protected]!.i..
9f001c20: 000252c2 71495002 006ac82b 13200007    ..R.qIP..j.+. ..
9f001c30: 000f7840 01c91023 00021143 01224821    ..x@...#...C."H!
9f001c40: a5690000 10000008 01401021 004a1023    .i.......@.!.J.#
9f001c50: 006a1823 00095142 012a4823 a5690000    .j.#..QB.*H#.i..
9f001c60: 25ef0001 0292a025 25adffff 15a0ffe0    %......%%.......
9f001c70: 00129040 8fa90018 26940001 12800016    ...@....&.......
9f001c80: 00000000 27180007 0134502b 15400040    ....'....4P+.@.@
9f001c90: 01345823 022b5821 252a0002 014c6021    .4X#.+X!%*...L`!
9f001ca0: 916a0000 02296821 25290001 112c0007    .j...)h!%)...,..
9f001cb0: a1aa0000 0133502b 1540fff9 256b0001    .....3P+.@..%k..
9f001cc0: 10000006 3c030100 0000c021 0133582b    ....<......!.3X+
9f001cd0: 1560fdce 0048582b 3c030100 0043102b    .`...HX+<....C.+
9f001ce0: 10400003 00000000 1086002b 24840001    .@.........+$...
9f001cf0: 00852023 ace40000 8fa20060 ac490000    .. #.......`.I..
hornet>
9f001d00: 10000026 00001021 10000025 8fbe0044    ...&...!...%...D
9f001d10: 10000022 24020001 10000020 24020001    ..."$...... $...
9f001d20: 1000001e 24020001 1000001c 24020001    ....$.......$...
9f001d30: 1000001a 24020001 10000018 24020001    ....$.......$...
9f001d40: 10000016 24020001 10000014 24020001    ....$.......$...
9f001d50: 10000012 24020001 10000010 24020001    ....$.......$...
9f001d60: 1000000e 24020001 1000000c 24020001    ....$.......$...
9f001d70: 1000000a 24020001 10000008 24020001    ....$.......$...
9f001d80: 10000006 24020001 10000004 24020001    ....$.......$...
9f001d90: 10000002 24020001 24020001 8fbe0044    ....$...$......D
9f001da0: 8fb70040 8fb6003c 8fb50038 8fb40034    ...@...<...8...4
9f001db0: 8fb30030 8fb2002c 8fb10028 8fb00024    ...0...,...(...$
9f001dc0: 03e00008 27bd0048 90a30000 1000fd85    ....'..H........
9f001dd0: 24a80005 00004821 00005021 0000c021    $.....H!..P!...!
9f001de0: 24080001 afa80008 240b0001 afab000c    $.......$.......
9f001df0: 24020001 afa2001c 2402ffff 240e0800    $.......$...$...
hornet>
9f001e00: 24080008 01154023 afa80014 3c080100    $.....@#....<...
9f001e10: 1000fd86 241e0003 00000000 00000000    ....$...........
9f001e20: 3c02b804 8c440008 3c030800 00831826    <....D..<......&
9f001e30: ac430008 8c420008 03e00008 00000000    .C...B..........
9f001e40: 3c02b804 8c440008 3c03f7ff 3463ffff    <....D..<...4c..
9f001e50: 00831824 ac430008 8c420008 03e00008    ...$.C...B......
9f001e60: 00000000 3c02b804 8c440008 3c03f7ff    ....<....D..<...
9f001e70: 3463ffff 00831824 3c040800 00641825    4c.....$<....d.%
9f001e80: ac430008 8c420008 03e00008 00000000    .C...B..........
9f001e90: 3c02b804 8c420004 30420800 03e00008    <....B..0B......
9f001ea0: 0002102b 3c02b804 8c440028 3c03ef84    ...+<....D.(<...
9f001eb0: 3463e0fb 00831824 ac430028 8c430028    4c.....$.C.(.C.(
9f001ec0: 8c430028 34638001 ac430028 8c430028    .C.(4c...C.(.C.(
9f001ed0: 3c03b806 8c6500ac 3c040004 00a42025    <....e..<..... %
9f001ee0: ac6400ac 8c6300ac 8c440000 3c030800    .d...c...D..<...
9f001ef0: 00831825 ac430000 8c420000 03e00008    ...%.C...B......
hornet>
9f001f00: 00000000 3c1c0000 279c19fc 0399e021    ....<...'......!
9f001f10: 27bdffe0 afbf001c afbc0010 3c02b800    '...........<...
9f001f20: 24030008 ac43001c 8c43001c 24030009    $....C...C..$...
9f001f30: ac430020 8c420020 8f99006c 0411ffd9    .C. .B. ...l....
9f001f40: 00000000 8fbc0010 8f990070 0411ffc5    ...........p....
9f001f50: 00000000 8fbc0010 8f990074 0411043e    ...........t...>
9f001f60: 00000000 8fbc0010 8f990078 041102e0    ...........x....
9f001f70: 00000000 8fbc0010 8fbf001c 03e00008    ................
9f001f80: 27bd0020 3c1c0000 279c197c 0399e021    '.. <...'..|...!
9f001f90: 27bdffe0 afbf001c afbc0010 8f99007c    '..............|
9f001fa0: 0411ffd8 00000000 8fbc0010 8fbf001c    ................
9f001fb0: 03e00008 27bd0020 3c1c0000 279c1948    ....'.. <...'..H
9f001fc0: 0399e021 3c02b806 8c4200ac 30423000    ...!<....B..0B0.
9f001fd0: 00021302 24030001 1043000f 00000000    ....$....C......
9f001fe0: 10400005 24030002 14430008 00000000    .@..$....C......
9f001ff0: 10000004 8f820010 8f820010 03e00008    ................
hornet>
9f002000: 244238b0 03e00008 244238c4 8f820010    $B8.....$B8.....
9f002010: 03e00008 244238d0 8f820010 03e00008    ....$B8.........
9f002020: 244238b8 00000000 00000000 00000000    $B8.............
9f002030: 10000007 00000000 03e00008 00000000    ................
9f002040: 00000000 00000000 00000000 00000000    ................
9f002050: 3c0fb806 35ef001c 8df80000 3c1900c0    <...5.......<...
9f002060: 37396b30 adf90000 00000000 3c0fb806    79k0........<...
9f002070: 35ef001c 8df80000 3c1900c0 37396330    5.......<...79c0
9f002080: adf90000 00000000 3c0fb806 35ef001c    ........<...5...
9f002090: 8df80000 3c1900c0 37396b30 adf90000    ....<...79k0....
9f0020a0: 00000000 3c0fb806 35ef001c 8df80000    ....<...5.......
9f0020b0: 3c1900c0 37396330 adf90000 00000000    <...79c0........
9f0020c0: 3c0fb806 35ef001c 8df80000 3c1900c0    <...5.......<...
9f0020d0: 37396b30 adf90000 00000000 3c0fb806    79k0........<...
9f0020e0: 35ef001c 8df80000 3c1900c0 37396330    5.......<...79c0
9f0020f0: adf90000 00000000 240d0020 100dfff0    ........$.. ....
hornet> reset

TP-Link WR703n:

Hello,
Can You add support for 16MB Flash Spansion S25FL127S.
I think that must look like this:

In File ar7240_flash.c:

Add:

case 0x012018:
flash_set_geom(SIZE_INBYTES_16MBYTES, 256, SIZE_INBYTES_64KBYTES);
puts("Spansion S25FL127S (16 MB)");
break;

I have no Linux and I don't know how to compile on Windows.
Can You make release with changes for Tp-link WR703N

s25fl127s
Thanks in advance,
Vasil Atanasov

Chipset RTL8881A

I have a board with chipset RTL8881A.

Could this u-boot running on it?
Or if not, what should I do to make it works?

Serial console outputs junks

I have a TPLINK TL-WDR4310 and a Mercury MW4530R. They have basically the same hardware, both with an Atheros AR9344.
When connected to a CH341A based USB-UART adapter (we call it "TTL cable" in Chinese), the routers output junks to my terminal, as seen by the guys here (http://www.right.com.cn/forum/thread-89181-1-1.html), here (http://www.right.com.cn/forum/thread-89038-1-1.html) and here (http://www.right.com.cn/forum/thread-131982-1-1.html).
Here's the output of the TL-WDR4310, and the MW4530R has a similar situation:

root@OpenWrt:/# reboot
root@OpenWrt:/# [   26.760000] br-lan: port 1(eth0.1) entered disabled state
[   26.790000] device eth0.1 left promiscuous mode
[   26.790000] device eth0 left promiscuous mode
[   26.790000] br-lan: port 1(eth0.1) entered disabled state
[   29.360000] Removing MTD device #3 (rootfs_data) with use count 1
[   29.370000] Restarting system.

.%?I?RR***%%?IIRRR?*%%%IIIRRR?*.?H  ���.U.?..1.�B
                                                                  ?.9 2?    �. .HHII?RR**.%?I?RR***%%?IIRRR***%%%I?
.2�(A?&�S   .码?for �.�I360.3.
!.5i  ?�j   
?M!?WiK焦.W25T��B?MBJC!H.ED 
                                 "丈ing.?ini?X+K.ソ?..C?.it..key 
                                                                          .? a]?浇tin.�..j.!?.?�imaV�
                                                                                                              ? 0xN�..0.?.m?�r.e:� O?k%?r3堵?
                                                                                                                                                           R[XV�㈠?:  .R5bス蔗 K?+?Ima?Bb?a 惬辽.seV
                                               .".a s榀���.9M.?BytY.??4..BC!��b?.add?. 0x8.0?j
                                                                                                            .E??poin.�.?0�..

Uk降?e螽?.er?
                 J?ge.�.?
                             ?裳?g .??..C?. ...00. ?+?ver?
                                                                        .3.�(b祀?�Deb?..sq?Y.散jjスサ.) ?.ver??4.6.?..20?..elYX.    Bbス.���.0.0?�AU re?.r ?.?9:&�..20L?h���.00.0?浇?on?.[ear+?.+.ed
                       J烷 00?N�?(M傻.?
[ ...00瓣.k?P�.? A.?�rev
?��.00.0?苯.s:.Uオ?..M?   "�R:4?..!楸 AH?&&  .j?, .?0.0?!?
                                                                                   [ ...00. ?W傻ine?″?ca?5.ap?[.�..0?? memK彘...00.00.0.(醍..
[   .0?.?InZ..ot ??�or Y[彦 - ?.?ng.+.d
+���.00.0菀焦.PF
                   .?es:C?�� 0..0瓣.r缴?l .铝0000?�j?0x.0?.
                                                                       [  .r..0?M?..zo?..t e9.K.X,
?���0.?...?+.emo?.9 ra??                                                                           r?e
                                   [  ..?...� 0?铝0000?�j?0x.0?.
                                                                           [   ...00W�榨? 1医??st.J?Zon??., ?ケ?y 绠.?g 怂��⒔??pa?.�.51?[.�..0??KernY
                  �降man�bス.  .?uTL...0 闼徒?=tWM连LLM&.r?.?peO..hfsI?? noZ.?
[  ..?...R�B.h tX,.entrZY..2.K.r: . .? ..%
[. r00?..en舢.X,.has琚.? e??? 1勇?BordY.'? 65M&��?e?C?   .0.0?J菇de-?,.has
                                                                                               ?.e e.?? 8LN&Bz?.: 3 .翰8 b^W庭
[  .r..0?P?[X.in???on�.? 64-(   播PT,?wX^  b?esZ.. byW止
[ ...00瓣...?d?.X,.32kB    ??y,.
.   .0?.?Wr?穗.rr(�                      E?ca惬.++?? lZ+庭ze ?�逖es
?���0.0.0?..ba.*缮Ctl..?erO..00??.�..0.].Y[K彘 ?.②???Z.vXZ+.e (&?Z�ke颢?code.?纶.瀹�?d, S?.ata   ...nZ�  ..?.?
[  ..0.0?.UB: ?k?bs=N   B].ig..�OrdY.j. ???ct?b��AU王1, ?.?
?��.00.0?I}%RQS?LC? ...00. ?+K?ti?".ay 腚凉.. 27r93.k?IPS.俩?39.?j
                                                                                      [ .0...] ?终.: V.毡t: &?��minZ[]K�30??.�..0??MounWi.? hX.
    ?ble.焉ies邯.j
                     [ .0...] .?.ネter?.?oc
. ...00瓣.ソ.?_?...脱ere�:A%? 阿?22 o?.?e:.�胧j
                                                                ?��.09?..IP*'j.hinYJ?TP-LR?TL-W莫&�.43??.
%�con.北. wZ�.k?rin�
? .0i..0] .?,.? s+.棘氲0> a?j
                                       [. ?..0].%.ost.?. t
                                                                   �胀�00耙00C?�� 0.&&.. p.%? 0??. r?.]..?u颥�诘em 芭00.0j0x?..f].+��..?....%胀 00.0?.? b]..?ur.讠? 0?0?
                                              ?��.33?..ci.0?...0?官.id�.?ratZ??W5
                                                                                                [. 0i..0] ...?.0r0:.I.: a螽牍. [[Y[.?0.0?屡001f.�并bitWC?  0i?.0].?0000??.0:�I.: a.牍. [[Y[.??..0x?..f 甬.5
                                                                                   [ � 0.�.. 瓞
                                                                                                  ..:.0 ?.ス.irq? ?.Z
                                                                                                                                   .
                                                                                                                                     [  .r..0?.?chZ?
?苯cks?..IP.[  ..?.. NQ..gisW..pr镒k奖 fa?+.
?��.36.0?A.out?.? hX.
                             ?ble.焉?s:.2�Bz?er:. 词?�逖.%
A.sta,+汀. hX.
                ?bl濯寡?es孩.?(o?�?3, &??bytY.H. � 0.�.. ?�?d +汀.ablY*寡?es'?什 (?V砷 2,.勇?by?.H?� 0.?.. T(?B.h... c锼??ed.脱.li...096.?�40?
A.en                      ?���.38.0茛
     ..ste.5.���.3.0?.A ha
                                  螈.le Y.?s: ?�Bz?.: 0    ?什.yW芝.+��..?...�Ubパe hX.
                                                                                                    ?ble.焉ies?.�?r?.�. 4? ?W庭
[ � 0...] ?��..脱er?.?oc
                                 ?.ily
[ .0...] ..?s:?赏?n    �B.0    ..) ?北? L.?
[. ?..0]..?ve.胨
                        ..?A?   B.55RY).i5) (?.?(CS.}?IO
                                                                       ..(c).0LK&. Re�B.1 In,
                                                                                                  ?. ?..0]j?倒i hX.�.n sY�⒔ 24??.�.?0??Bloc-b.. Sí
        :.erZ,B�??.?r v瀹.
                                ?r?lo?�.maj?.⑹
+���.44.0??scheV�..oo.e?.W...���.4�...o.?.l?".dli?..st瀹.(defX].
[ ..?00. ?.? 8?z..0"丧?r, L�.?s,JIE.ha?k.nab?VH..�.?0.]...82?.�⒀?A a?5%= 0x?..0 )K?= 11JJ?a 16MM
                                                                                                                                   5
                                                                                                                                    [    0.490000] console [ttyS0] enabled, bootconsole disabled
[    0.490000] console [ttyS0] enabled, bootconsole disabled
[    0.500000] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.510000] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.510000] 5 tp-link partitions found on MTD device spi0.0
[    0.520000] Creating 5 MTD partitions on "spi0.0":
[    0.520000] 0x000000000000-0x000000020000 : "u-boot"
[    0.530000] 0x000000020000-0x000000109d54 : "kernel"
[    0.530000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] 0x000000109d54-0x0000007f0000 : "rootfs"
[    0.550000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.570000] mtd: partition "rootfs" set to be root filesystem
[    0.570000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=510000 
[    0.580000] 0x0000002e0000-0x0000007f0000 : "rootfs_data"
[    0.590000] 0x0000007f0000-0x000000800000 : "art"
[    0.590000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.730000] ag71xx_mdio: probed
[    0.730000] eth0: Atheros AG71xx at 0xb9000000, irq 4
......

Some particular USB-UART adapters may work, but lots not. As tested by jnny188 @ http://www.right.com.cn/forum/thread-131982-1-1.html, a pl-2303hx adapter works.

As seen above, when booting into linux kernel, the output goes perfectly. So this has to be a software problem.

Desble booting from sd card..

Hi
I know this is not right place to ask this question. .
But,I think this pepe2k is right person to ask this question. .
I am using beaglebone black.
And I want to deasble booting from microsd card.
It should on boot from internal emmc to securing my code..
Kindly help me how can I solve my problem of securing my code from copying. ..???
Kindly help me...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.