How to boot from TFTP server

From Ambedded
Revision as of 05:00, 15 March 2016 by Desmond (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents


Introduction

Mars 200 micro server is coming with u-boot, kernel, and root file system preloaded in internal EMMC partitions.
If you ever need to update it, you will need to let it boot from TFTP server first.
And you will need a TFTP server holding the files you want to update.

Accessing the Console

Connect the serial cable to Mars 200 micro server, set up a terminal 19200,8,n,1.
If you use Mars 200 Server system, and don't have the serial cable, you can also access the console from the BMC SSH connection. Please refer to the User manual to know how to access console of the micro server and how to reset the micro server from BMC.

Boot from TFTP Server

Get the TFTP boot image

wget ftp://your_account:your_password@ambedded.com/mars200/ms/initramfs.img -O initramfs.img
wget ftp://your_account:your_password@ambedded.com/mars200/ms/uImage -O uImage

TFTP boot up the micro server

Power up the micro server, and then interrupt the booting process by pressing a key to stop it on u-boot prompt.
Set up the board IP address and the TFTP server address. < br /> (Note: IP address listed below is just for example, you should update it based on your local network configuration.)

setenv ipaddr 192.168.1.101
setenv serverip 192.168.1.10

Set up the u-boot parameters and do TFTP boot

set bootargs "rw root=/dev/ram0 console=ttyS0,115200 init=sbin/init";
tftp 2000000 uImage;
tftp 2500000 initramfs.img;
bootm 2000000 2500000;

Boot into TFTP boot Linux and login it. (default user name: root, without password)

Personal tools
Namespaces

Variants
Actions
Navigation
Tools