This shows you the differences between two versions of the page.
— |
midge:howto_5120 [2018/04/09 15:36] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== 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 | ||
+ | * [[amilda-middle|Amilda middle firmware way]] | ||
+ | * [[HTTP_Upgrade|HTTP Upgrade by Petr Novak way]] (very old and deprecated) | ||
+ | |||
+ | ==== 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<code> | ||
+ | ADM5120 Boot: | ||
+ | </code> | ||
+ | * Quickly press space 3 times, you should see following menu: <file> | ||
+ | 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 : | ||
+ | </file> | ||
+ | * 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: <code> | ||
+ | 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 : | ||
+ | </code> | ||
+ | * Press 'c' to exit <code> | ||
+ | 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. | ||
+ | ... | ||
+ | </code> | ||
+ | |||
+ | ==== 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 ===== | ||
+ | <html> | ||
+ | <font color="grey" size="-1"> | ||
+ | </html> | ||
+ | ===== 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** | ||
+ | <code sh> | ||
+ | UPGRADE_SERVER=http://midge.vlad.org.ua | ||
+ | UPGRADE_DIR=firmware | ||
+ | </code> | ||
+ | |||
+ | ==== examples ==== | ||
+ | === Usage === | ||
+ | <code> | ||
+ | midge# upgrade | ||
+ | Usage: /sbin/upgrade initfs|kernel|firmware | ||
+ | </code> | ||
+ | === Upgrading inital rootfs === | ||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
+ | <note warning> | ||
+ | After upgrade initial root filesystem you should reboot or you can get unpredictable result | ||
+ | </note> | ||
+ | |||
+ | === Upgrading linux kernel === | ||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
+ | <html> | ||
+ | </font> | ||
+ | </html> | ||