1. pc host
apt install tftpd-hpa
gedit /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/mnt/harddisk/upload"
TFTP_ADDRESS="192.168.59.228:69"
TFTP_OPTIONS="-c -l -s"
#-c: Allow new files to be created
#-l: Run the server in standalone (listen) mode, rather than run from inetd.
#-s: Change root directory on startup.
2.
chmod -R 755 /mnt/harddisk/upload
service tftpd-hpa restart
cp -f $HOME/InsydeProject/insyde_repo/out/Build.ast2500evb/ast2500evb-rom.ima /mnt/harddisk/upload
3. target board get client file
su
cd /var/tmp
tftp -g -r ast2500evb-rom.ima 192.168.59.228
flash_eraseall /dev/mtd0
dd if=./ast2500evb-rom.ima of=/dev/mtd0
reboot
4. setting mac on target
su
# close bonding mode
cmdtool 0x20 0xF8 0x40 0x00 0x00
# Enable Manufacture mode
cmdtool 0x20 0x18 0x05 0x50 0x25 0x65 0x48 0x3b 0x66 0x70 0x35 0x24 0x4d 0x5f 0x5b 0x4d 0x77 0x4a 0x42;
#assign mac
MAC="0xA0 0xA1 0xA2 0xA3 0xA4 0xA5";
cmdtool 0x20 0x30 0x01 0x01 0x05 $MAC;
# enable bonding mode
cmdtool 0x20 0xF8 0x40 0x00 0x01
5. (use bond0 substitute to eth0)
su
ifconfig bond0 192.168.59.227 netmask 255.255.0.0
route add default gw 192.168.59.254
6. first login target
using IE connect
https://192.168.59.227
user/password -> root / root
#change to
user/password -> root / Insyde00
7. fixed ip forever
https://192.168.59.227
configuration -> ipv4 network -> use the following ip address (radio button enable)
ip address: 192.168.59.227
subnet mask: 255.255.0.0
gateway: 192.168.59.254
#then reboot board
沒有留言:
張貼留言