Xiaomi 3G (MIR3G) - Breed bootloader - Configure Dual boot OpenWrt / PandoraBox / Padvan


#1

Hi,

I own an Xiaomi MIR3G -and i have installed "Breed boot-loader". Actually the documentation is very poor on this boot loader but i have understood that i can dual boot flashing 2 firmware.

I would like to install as:

  • Primary Boot - OpenWrt 18.06.1 (as is evolving the most)
  • Secondary Boot - Newer vesrion of OpenWrt or PandoraBox or Padvan just for testing

Now, i was able to install them as in the breed web interface you have to choose in which partition 1 or 2 you want to install the firmware but i have no clue how to switch from one to the other and if that configuration is actually possible.

Thanks
Attaros


#2

You gotta change the boot address var to match either kernel 1/2.


#3

See below.


#4

I found this:

Option 6 in menu "Firmware startup settings" (http://192.168.1.1/envedit.html)
-> Click "Add Entry"
first field = autoboot.command
second field = boot flash 0x600000

Questions:

  1. boot flash 0x600000 will boot Firmware 1 or Firmware 2 ? How do i calculate the value?

  2. what must i specify for the other firmware ?

  3. i tried to flash OpenWrt in the Firmware 2 but i chose the sysupgrade.tar which is not supported. How do i build a .bin for flashing OpenWrt to Firmware 2 ?

  4. I have at the moment PandoraBox in Firmware 1. I want to add Padvan or OpenWRt as Firmware 2. Can i flash Padavan directly in BREED ?

Just doing this to be agile in switching firmware to test WIFI performance.

Ciao
Attaros


#5

Hello Attaros,
I found this thread because I flashed my Xiaomi 3g router with Openwrt LEDE and LuCI. After experiencing wifi problems, I installed Breed bootloader for flashing Padavan or Pandora. But since i flashed this bootloader, impossible to install any firmware. I can enter in Breed bootloader, I can flash padavan or Openwrt, the installation progression goes till 100%. When I reboot nothing happend as I have not flashed anything.
I have no access to ssh but only to Telnet. How did you managed to fix your router as you had the same issue.
Thanks for your help.


#6

Hello Testeur. Try to restore stock (Chinese) firmware:

  1. download developers firmware: www1.miwifi.com/miwifi_download.html → ROM → ROM for R3G 开发版 (you need ROM for R3G 开发版 not ROM for R3G 稳定版)

  2. Boot to BREED, and remove all custom env variables from menu item 6 (from top, beetwen menu item "chinesesymbols R3G" and "R3G Bdata")

  3. Flash firmware to SECOND partition without reboot (uncheck "Reboot" checkbox)
    https://telegra.ph/file/7ea9117eb702433feab6c.png

  4. Flash firmware to FIRST partition with reboot

After reboot, go to 192.168.31.1 and you should see default Chinese interface.

Now. you can flash Padavan. Boot to BREED again.

  1. create env variable
    Breed_Web2

  2. Flash Padavan to SECOND partition without reboot

  3. Flash Padavan to FIRST partition with reboot


#7

Hi. I have face problem like @Testeur, do all step like you do: Flash developement rom, boot ok, router boot to xiaomi firmware
I flash padavan again, but now all lan ports are no connect. How i can connect to ssh after breed to restore mtd to bootloader? tks.


#8

Good, at least the router is not bricked.

I don't think the problem is in the Breed. You even can flash Padavan from stock without Breed.
Maybe this Padavan build is not for 3G? How you obtain it?

You want to restore original bootloader? This is easy if you create mtd backup BEFORE flashing BREED.


#9

Tks for your reply.
Seen like that i flash firmware to a wrong partition(1 and 2)
Now my router can only run stock firmware correcly.
All lan port will not work if i flash padavan or oprnwrt or pandorabox
I want to restore like out of box but breed still there. How i can restore stock bootloader and quit of breed? Breed only acept telnet.
I want to restore via failsafe but when i press reset after power on, it boot to breed
Wait your helps. Tks you


#10

No matter. Router can boot from any partition (autoboot.command points Breed to boot partition). For example, I always flash Padavan to both partitions.

Hmmm... maybe you just have wrong crimped cable? I met reviews that alternative firmware does not work with cables crimped crossover. Only straight will work.

If you don't have backup, created BEFORE Breed flashing, you cannot restore stock bootloader. But you can ask someone to share mtd1 partition backup. mtd1 on stock firmware = bootloader

This is mtd1 from my backup (from stock firmware)

CRC-32: 2edbfadc
MD5: efdd4d3fe0a5876243ac5a0e990134e4
you can flash this via Breed (to Bootloader partition)
or from stock firmware via mtd write /tmp/mtdblock1.bin Bootloader (issued in SSH consiole)


#11

Tks very much. I will try to restore bootloader. I have straight cables. Again, tks you. :slight_smile:


#12

How can I flash stock to one partition (to flash OpenWRT) and Padavan to another? The goal is to have a dual boot system: 1. Padavan 2. OpenWRT. And how do I select which system will be started?


#13

How can I flash stock to one partition (to flash OpenWRT) and Padavan to another?

From Breed bootloader

And how do I select which system will be started?

From Breed bootloader.

0x200000 = partition 1
0x600000 = partition 2

But if you boot to Padavan, you loose stock settings and and vice versa - if you boot into Padavan and reboot to stock, all Padavan settings will be wiped.