[Solved] How to repair Firmware in Oolite8.0 Dev boards using serial port

  • Connect serial and Ethernet to eth0 on the router.

  • in Ubuntu in Terminal:

    :~$ sudo apt-get install screen
    :~$ sudo mkdir -p /tmp/tftp/
    :~$ sudo cp openwrt-ramips-mt7621-oolite-v8-32MB-15.05-v20160905.bin /tmp/tftp/test.bin
    :~$ sudo ip addr add 192.168.1.3/24 dev eth0
    :~$ sudo dnsmasq -d --port=0 --enable-tftp --tftp-root=/tmp/tftp/
    dnsmasq: started, version 2.78 DNS disabled
    dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
    dnsmasq-tftp: TFTP root is /tmp/tftp/

  • now in different terminal: sudo screen /dev/ttyUSB0 57600. Start router, select option 1 or 2 to load Firmware, 4 for check env:

    Please choose the operation:
    1: Load system code to SDRAM via TFTP.
    2: Load system code then write to Flash via TFTP.
    3: Boot system code via Flash (default).
    4: Entr boot command line interface.
    7: Load Boot Loader code then write to Flash via Serial.
    9: Load Boot Loader code then write to Flash via TFTP.

    You choosed 4

    4: System Enter Boot Command Line Interface.

    U-Boot 1.1.3 (Mar 31 2017 - 10:58:58)
    printenv
    bootcmd=tftp
    bootdelay=3
    baudrate=57600
    ethaddr="00:AA:BB:CC:DD:10"
    ipaddr=192.168.1.1
    serverip=192.168.1.3
    stdin=serial
    stdout=serial
    stderr=serial

    Environment size: 149/4092 bytes

  • go to Failsafe mode:
    Press the [f] key and hit [enter] to enter failsafe mode
    mount_root
    firstboot
    rm -r /overlay/*
    mtd -r erase rootfs_data
    reboot -f

1 Like