xref: /openbmc/u-boot/tools/kermit/flash_param (revision 936f575e)
1#!/usr/bin/kermit +
2# usage: ./flash_param parameters
3# Parameters: IP Address       ETH Address        ERIC Number
4# Format:     xxx.xxx.xxx.xxx  xx:xx:xx:xx:xx:xx  xxxx
5
6set line /dev/ttyS0
7set speed 115200
8set serial 8N1
9set carrier-watch off
10set handshake none
11#set flow-control none
12set flow-control xon/xoff
13#robust
14set file type bin
15set file name lit
16set rec pack 1000
17set send pack 1000
18set window 5
19set prompt Kermit>
20#robust
21# Milliseconds to pause between each OUTPUT character
22set output pacing 1
23
24out \13
25in 10 =>
26#first erase the environment memory within NVRAM
27out mw f0000000 0 200\13
28in 10 =>
29out reset\13
30in 5 autoboot
31out \13\13
32in 10 =>
33#set additional env parameter
34out setenv ethaddr \%2\13
35in 10 =>
36out setenv serial# ERIC 1.0 \%3\13
37in 10 =>
38out setenv eric_id \%3\13
39in 10 =>
40#out setenv prec_videocard_bus unknown\13
41#in 10 =>
42#out setenv prec_bios_type unknown\13
43#in 10 =>
44out setenv eric_passwd .eRIC.\13
45in 10 =>
46#out setenv bootargs root=/dev/ram ramdisk_size=8192 init=/sbin/init ip=\%1:192.168.1.100:192.168.1.254:255.255.255.0\13
47#out setenv bootargs root=/dev/ram ramdisk_size=8192 init=/sbin/init ip=\%1:192.168.0.1\13
48#out setenv bootargs root=/dev/ram ramdisk_size=8192 init=/sbin/init ip=\%1\13
49out setenv bootargs console=/dev/ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.26:/eric_root_devel ip=\%1:192.168.1.26\13
50in 10 =>
51out setenv bootcmd bootm FFC00000\13
52in 10 =>
53out saveenv\13
54in 10 =>
55out reset\13
56in 5 autoboot
57out \13\13
58in 10 =>
59quit
60exit 0
61