-
-
Save agners/5785663 to your computer and use it in GitHub Desktop.
TS-7250 Reflash root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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