uboot env:
#update u-boot
setenv serverip 10.0.24.6
setenv gatewayip 10.0.0.254
setenv netmask 255.255.0.0
setenv ipaddr 10.0.24.10
setenv eth1addr 74:FE:29:11:11:20
##### it's for 172 network
setenv serverip 172.17.4.180
setenv gatewayip 172.17.5.254
setenv netmask 255.255.254.0
setenv ipaddr 172.17.4.245
setenv eth1addr 74:FE:39:13:13:13
#####
setenv uboot ESWT000600.bin
setenv ethprime FM1@DTSEC4
setenv ethact FM1@DTSEC4
setenv upspi 'setenv tftproot ; tftp 0x2000000 $tftproot/9113/v0.6b01/$uboot; sf probe; sf update 0x2000000 0 $filesize;saveenv'
run upspi
## for linux boot(either fgn or legacy-bootm)
setenv fgnboot 'setenv tftproot ; tftp 5000000 $tftproot/9113/v0.6b01/ESWT000600.FGN; fgn'
setenv bootargs 'root=/dev/ram rw console=ttyS0,115200 ramdisk_size=15000000 log_buf_len=128K'
save
run fgnboot
#removed from quick start guide
setenv ethaddr 74:FE:48:69:69:20
#mew
sf probe 0; sf erase 0 100000; sf write 1000000 0 $filesize
#yc
tftp lmp-spi-flash-full.bin
sf probe
sf update 0x2000000 0 $filesize
###$#
#setenv uboot lmp-spi-flash-full.bin
setenv dtbfile fsl-t1xxx-32b-t1040rdb.dtb-WR8.0.0.18_standard
setenv kernel fsl-t1xxx-32b-uImage-WR8.0.0.18_standard
setenv rootfs fsl-t1xxx-32b-wrlinux-image-glibc-small-standard-dist.ext2.gz.u-boot
sw_cnt_e:
##### sw_cnt_e
# set 9555 output
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xff
##### sw_cnt_e
# clear interrupt cause
root@localhost:~# ipmitool raw 0x2E 0xC8 0x39 0x28 0x00 0xff
39 28 00
# get interrupt cause
root@localhost:~# ipmitool raw 0x2E 0xC7 0x39 0x28 0x00
39 28 00 00
# un-mask
root@localhost:~# ipmitool raw 0x2E 0xC3 0x39 0x28 0x00 0x00 0x01
39 28 00
# get oem signal (un-mask)
root@localhost:~# ipmitool raw 0x2E 0xC4 0x39 0x28 0x00 0x00
39 28 00 00 01 01
# mask
root@localhost:~# ipmitool raw 0x2E 0xC3 0x39 0x28 0x00 0x00 0x00
39 28 00
# get oem signal (mask)
root@localhost:~# ipmitool raw 0x2E 0xC4 0x39 0x28 0x00 0x00
39 28 00 00 0 01
# set sw_cnt and sysrst_n to output mode
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x06 0xfc
# get confimation
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x01 0x06
fc
# check signal status
root@localhost:~# ipmitool raw 0x2e 0xc4 0x39 0x28 0x00 0x00
39 28 00 00 00 01
# set sw_cnt to low
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xfd
# check signal status
root@localhost:~# ipmitool raw 0x2e 0xc4 0x39 0x28 0x00 0x00
39 28 00 00 00 00
# set sw_cnt to high
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xff
root@localhost:~# ipmitool raw 0x2e 0xc4 0x39 0x28 0x00 0x00
39 28 00 00 00 01
# get interrupt cause
root@localhost:~# ipmitool raw 0x2E 0xC7 0x39 0x28 0x00
# ?
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x01 0x02
ff
#####
Yc.Shih 下午 02:23
Port0 bit[0], bit[1]設成output
Yc.Shih 下午 02:25
ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x06 0xfc
bit[0] pull high, pull low
ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0x00
ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0x01 // pull high
bit[1]
ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0x02 // pull high
ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0x00 // pull low
bit[0]: sysrst#
bit[1]: sw_cnt_e
#####
reset:
# reset test
#####
# set sw_cnt and sysrst_n to output mode
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x06 0xfc
# set 9555 output
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xff
# generates 0x99 sel
ipmitool raw 0x0a 0x44 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x04 0xc2 0x99 0x6f 0x00 0x00 0x00
# reset signal
ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xfe
#####
# un-mask
root@localhost:~# ipmitool raw 0x2E 0xC3 0x39 0x28 0x00 0x00 0x01
39 28 00
# get oem signal (un-mask)
root@localhost:~# ipmitool raw 0x2E 0xC4 0x39 0x28 0x00 0x00
39 28 00 00 01 01
# clear interrupt cause
root@localhost:~# ipmitool raw 0x2E 0xC8 0x39 0x28 0x00 0xff
39 28 00
# get interrupt cause
root@localhost:~# ipmitool raw 0x2E 0xC7 0x39 0x28 0x00
39 28 00 00
#####
SPI boot...
Initializing....using SPD
# get oem signal (un-mask)
root@localhost:~# ipmitool raw 0x2E 0xC4 0x39 0x28 0x00 0x00
39 28 00 00 01 01
# get interrupt cause
root@localhost:~# ipmitool raw 0x2E 0xC7 0x39 0x28 0x00
39 28 00 00
root@localhost:~# ipmitool raw 0x2e 0xc7 0x39 0x28 0x00
39 28 00 06
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x01 0x02
fe
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xff
# program
root@localhost:~# ipmitool raw 0x06 0x52 0x10 0x4e 0x00 0x02 0xf