In meantime, I've soldered pin header for JA2 and it IS serial ^^
starting from arrow symbol 1st pin is GND, 2nd tx, 3rd 3,3v and finally 4th is rx
I'm having problem with U-boot (magic number problem). TFTP is working (yay) but don't have experience with U-Boot
AMAZON_SE # printenv
bootcmd=run flash_flash
bootdelay=3
baudrate=115200
preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo
mem=32M
netdev=eth0
baudrate=115200
rootpath=/opt/nfs
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):on
addmisc=setenv bootargs $(bootargs) console=ttyS0,$(baudrate) ethaddr=$(ethaddr) mem=$(mem) panic=1
flash_nfs=run nfsargs addip addmisc;bootm $(kernel_addr)
ramdisk_addr=B0100000
flash_self=run ramargs addip addmisc;bootm $(kernel_addr) $(ramdisk_addr)
bootfile=uImage
u-boot=u-boot-spi.bin
firmware=firmware.img
fullimage=ifx_adslrt.img
net_nfs=tftp 80500000 $(bootfile);run nfsargs addip addmisc;bootm
root_filesystem=rootfs.img
load=tftp 80500000 $(u-boot)
update=protect off 1:0-2;era 1:0-2;cp.b 80500000 0x0 $(filesize)
flashargs=setenv bootargs root=/dev/mtdblock5
flash_flash=run flashargs addip addmisc; bootm $(kernel_addr)
update_uboot=tftpboot 80400000 $(u-boot); cp.b 80400000 00000000 $(filesize)
update_kernel=tftpboot 80400000 $(bootfile);upgrade 80400000 $(filesize)
update_rootfs=tftpboot 80400000 $(root_filesystem);upgrade 80400000 $(filesize)
update_firmware=tftpboot 80400000 $(firmware);upgrade 80400000 $(filesize)
update_fullimage=tftpboot 80400000 $(fullimage);upgrade 80400000 $(filesize)
reset_uboot_config=mw 80400000 'FFFFFFFF' 0x0008000;cp.b 80400000 0x0013000 0x0008000;reset
part0_begin=0x00000000
part1_begin=0x00010000
part2_begin=0x00040000
total_part=3
flash_end=0x003FFFFF
data_block0=uboot
data_block1=firmware
data_block2=rootfs
data_block3=kernel
data_block4=sysconfig
data_block5=ubootconfig
data_block6=fwdiag
total_db=7
f_uboot_addr=0x00000000
f_uboot_size=0
f_firmware_addr=0x00010000
f_firmware_size=0
f_rootfs_addr=0x00040000
f_rootfs_size=0
f_rootfs_end=0x00040000
f_kernel_addr=0x00030000
kernel_addr=0x00030000
f_kernel_size=0
f_sysconfig_addr=0x003FD200
f_sysconfig_size=0
f_ubootconfig_addr=0x0013000
f_ubootconfig_size=0x0008000
f_fwdiag_addr=0x003FFE00
f_fwdiag_size=0x0200
chipid=1.2
boardid=112233
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:22:6b:fd:a0:af
ethact=AMAZON_SE Switch
filesize=400000
fileaddr=80100000
ipaddr=192.168.1.1
serverip=192.168.1.2
Environment size: 2324/32764 bytes
and commands
AMAZON_SE # ?
? - alias for 'help'
askenv - get environment variables from stdin
asmod - assign!
autoscr - run script from memory
base - print or set address offset
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
burnin - burnin!
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
dhrystone - benchmark
download - download!
echo - echo args to console
eeprom - EEPROM sub-system
go - start application at address 'addr'
help - print online help
led_test - led_test!
loadb - load binary file over serial line (kermit mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
spi_erase - erase serial flash!!
spi_write - write serial flash!!
tftpboot- boot image via network using TFTP protocol
upgrade - forward/backward copy memory to pre-defined flash location
version - print monitor version
I need help with tftp (stock fw is fine for now) to install new fw.
(Last edited by niksa on 25 Aug 2013, 16:47)