Mbded
Mbded

Reputation: 1916

Why boot system, load two versions of u-boot?

I have a gateway device with MT7620a in MIPS architecture. The device has installed OpenWRT. If I connect to device via UART with the goal of flashing new firmware I see something I don't understand, MCU loading two version U-Boot.

Here is Log System after start

U-Boot 1.1.3 (Apr 27 2015 - 13:54:38)

Board: Ralink APSoC DRAM:  128 MB
relocate_code Pointer at: 87fb8000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: 1c 70 18 1c 70 (70181c70)
find flash: EN25QH128A
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 1024 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Apr 27 2015  Time:13:54:38

Of course I have a few additional questions in this issue:

  1. What is different between these U-Boot ?
  2. Why does my device need two versions U-Boot ?
  3. Whether this u-boots need separate *.bin image or these is together in one image *.bin ? In my device is only one partition for u-boot image and one partition for variables:
    • mtd0: 00030000 00010000 "u-boot"
    • mtd1: 00010000 00010000 "u-boot-env"

Upvotes: 2

Views: 1185

Answers (2)

user5071535
user5071535

Reputation: 1412

As Alexandre Belloni said, there is probably only one version of U-Boot on your device, it just has two different version identifiers.

The reason for this is that manufacturers often need to modify the U-Boot source code in order to get it to operate on their device, or to add features.

On your device, it looks like the version of U-Boot that Ralink pulled from the official U-Boot source code repository is 1.1.3. Ralink's own internal version number that they use for tracking their internal modifications is 4.3.0.0.

Upvotes: 2

Alexandre Belloni
Alexandre Belloni

Reputation: 2304

There is probably only one u-boot and "Ralink UBoot Version: 4.3.0.0" is an internal u-boot version for Ralink.

Upvotes: 0

Related Questions