Skip to content

Instantly share code, notes, and snippets.

Created June 14, 2013 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5785661 to your computer and use it in GitHub Desktop.
Save anonymous/5785661 to your computer and use it in GitHub Desktop.
Flash TS-7250 boards
See
http://wiki.embeddedarm.com/wiki/Getting%20Started%20with%20TS-Linux%20ARM
http://wiki.embeddedarm.com/wiki/Linux_for_ARM_on_TS-72XX_User%27s_Guide
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7250-linux/
# apt-get install nfs-kernel-server tftpd xinetd
Setup TFTP
# vi /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
# mkdir /tftpboot
# cp ../vmlinux-7250-ts11.bin /tftpboot/
# service xinetd restart
Setup NFS
# mkdir /export
# vi /etc/exports
/export 192.168.0.0/24(rw,fsid=0,insecure,no_subtree_check,async)
# tar xvjf tslinux-08-24-2006.tar.bz2 -C /export/
# cp tslinux-08-24-2006.tar.bz2 /export/
# service nfs-kernel-server restart
Load Kernel from TFTP and write it to flash
RedBoot> load -r -b 0x00218000 -h 192.168.0.1 vmlinux-7250-ts11.bin
RedBoot> fis delete vmlinux
RedBoot> fis create -b 0x00218000 -l 0x144000 vmlinux
RedBoot> fconfig
Run script at boot: true[ENTER]
Boot script:
.. fis load vmlinux
.. exec -c "console=ttyAM1,115200 root=/dev/mtdblock1"
Enter script, terminate with empty line
>> fis load vmlinux[ENTER]
>> exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"[ENTER]
>> [ENTER]
...
Update RedBoot non-volatile configuration - continue (y/n)? y[ENTER]
Use that loaded kernel to boot with root file system from NFS
RedBoot> exec -c "console=ttyAM0,115200 ip=192.168.0.50 nfsroot=192.168.0.1:/export"
The system should bootup fine. Login using root (no password)
mount -t yaffs /dev/mtdblock/1 /mnt
rm -rf /mnt/*
tar xvjf /tslinux-08-24-2006.tar.bz2 -C /mnt
RedBoot> exec -c "console=ttyAM0,115200 ip=192.168.0.50 root=/dev/mtdblock1"
Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment