2012年6月15日 星期五

[Linux] copy image to tftp && download code into board

#!/bin/bash

# cp file from A place to tftp

cp -a /home/freeman/111.2.1.148/luke/UBEE_D3_CableRG/build/dgwsdk/images/dgwsdk-3.0.0.125-120207.img /home/freeman/tftp

chmod 777 ./dgwsdk-3.0.0.125-120207.img

# change ifconfig eth0 IP address

sudo ifconfig eth2 192.168.100.2

ifconfig

sleep 1

#use xdotool finish download code into board

xdotool key alt+1

xdotool type 'set UBFINAME1 dgwsdk-3.0.0.125-120207.img'

xdotool key 'Return'

xdotool type 'run update1'

xdotool key 'Return'

Related Posts:

0 意見:

張貼留言