User Tools

Site Tools


midge:howto_5120

Install

For the installation midge to your router, you should go by following steps:

Download

See Download section

Upload firmware

There is no way to direct upload firmware over HTTP. But you can try

Upload firmware to the router over console cable

Currently you can upload firmware over serial console_cable (but i have plans to add web-upgrade support)

  • Connect console cable to PC
  • Start terminal program (minicom, HyperTerminal, etc)
  • Setup 115200 8N1, no hardware handshaking
  • Turn on power to the router
  • On screen you will see prompt
    ADM5120 Boot:
  • Quickly press space 3 times, you should see following menu:
    ADM5120 Boot: <--- press space 3x times
    
    Linux Loader Menu
    ====================
    (a) Download vmlinuz to flash ...
    (b) Download vmlinuz to sdram (for debug) ...
    (c) Exit
    
    Please enter your key :
  • Press 'a'

<note tip> In case of problems if you using minicom

  • wait ~7 secs after press of (a) in bootloader and before press of Ctrl-Z in minicom
  • type some junk after press of (a) in bootloader and before press of Ctrl-Z in minicom
  • power off and on your router
  • additional hints for minicom you find here: minicom
  • try to use download script

</note>

  • Transmit firmware file with XMODEM
  • After transmitting you should see following picture:
    Downloading.......................PASS
    
    Eraseing nor flash.......PASS
    
    Programming nor flash...PASS
    
    
    Linux Loader Menu
    ====================
    (a) Download vmlinuz to flash ...
    (b) Download vmlinuz to sdram (for debug) ...
    (c) Exit
    
    Please enter your key : 
  • Press 'c' to exit
    Please enter your key : c
    jump to linux code!!
    LINUX started...
    ADM5120 Demo board
    CPU revision is: 0001800b
    Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
    Primary data cache 8kB, 2-way, linesize 16 bytes.
    Linux version 2.4.31-MIPS-01.00 (vlad@woody) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110.1)) #116 5
    am5120_setup() starts.
    ...

Login

  • login as root and password midge

Change parameters

  • password
  • /etc/hostname
  • /etc/network/interfaces
  • /etc/resolv.conf
  • /etc/midge.conf
  • /etc/ipkg.conf (optional) - see Packages section

Enjoy

Outdated

<font color="grey" size="-1">

Upgrade

midge has /sbin/upgrade script which can be used for upgrade:

  • initial root filesystem
  • kernel
  • and whole firmware (kernel + initfs + blank jffs2)

<note warning> On upgrading firmware completely, you will loss data on your root filesystem </note> <note warning> After upgrade you should reboot device by power OFF/ON (root jffs2 partition will be broken) </note> You can change upgrade server and dir in /etc/midge.conf

UPGRADE_SERVER=http://midge.vlad.org.ua
UPGRADE_DIR=firmware

examples

Usage

midge# upgrade
Usage: /sbin/upgrade initfs|kernel|firmware

Upgrading inital rootfs

midge# upgrade initfs
Upgrading initial root file system...
Connecting to midge.vlad.org.ua[212.1.120.85]:80
initfs-jffs2-latest. 100% |*****************************|   504 KB    00:00 ETA
7+1 records in
7+1 records out

<note warning> After upgrade initial root filesystem you should reboot or you can get unpredictable result </note>

Upgrading linux kernel

midge# upgrade kernel
Upgrading kernel...
Connecting to midge.vlad.org.ua[212.1.120.85]:80
vmlinuz-jffs2-latest 100% |*****************************|   615 KB    00:00 ETA
9+1 records in
9+1 records out

</font>

midge/howto_5120.txt · Last modified: 2018/04/09 15:36 (external edit)