This how-to document is designed to walk people through the process of upgrading the CUWiN software on a Soekris 4526 board using a FreeBSD operating system.
Three different command line prompts will be used: # indicates the normal user; $ indicates the root user; and > indicates a prompt from the node. All key strokes (e.g. Shift, Control, Enter, etc...) will use the following syntax: <key> [e.g. <Shift>, <Ctrl>, etc.].
For text editing, we use VI, but feel free to use whatever text editor you like. Some useful vi commands:
<i> - enter the edit mode to change text
<Esc> - to escape the edit mode
:q! - to exit without saving changes
<Shift>zz - to save changes and exit
$ /etc/rc.d/sshd start$ ifconfig -ainet 10.23.54.27 netmask 0xffffff00 broadcast 10.23.54.255inet”. Record this a second time, replacing the digits following the last period with “254”. In our example, this would be 10.23.54.254 – this is the ip address of the node.$ ssh root@10.23.54.254root” and the default password is “changme”. If you have changed the password, use that password.$ stty <space> erase Control-v <Backspace>blah” with your username on your local machine, and the ip address with the ip address of your machine (from step C.2). The “~” stands for you home directory. If the file is not in your home directory, replace “~/” with the correct path to the upgrade file. Also, replace “upgrade.tgz” with the correct name of the upgrade file that you downloaded from the website. If you wish to erase the current configuraton file on the node and use the default one provided in the upgrade, replace the “-f” with a “-C -f”.$ upgrade -f blah@10.23.54.27:~/upgrade.tgz “The authenticity of host '10.23.54.27 (10.23.54.27)' can't be established. DSA key fingerprint is a8:75:fe:7d:46:b7:a8:05:65:77:43:7a:67:e7:a4:fc. Are you sure you want to continue connecting (yes/no)?”
Respond by typing “yes”.
upgrade” command).fdisk: DIOCGDEFLABEL: Invalid argument fdisk: DIOCGDINFO: Invalid argument Disk: /dev/rwd0d NetBSD disklabel disk geometry: cylinders: 977, heads: 4, sectors/track: 32 (128 sectors/cylinder) total sectors: 125056 BIOS disk geometry: cylinders: 977, heads: 4, sectors/track: 32 (128 sectors/cylinder) total sectors: 210453442400 Partition 0: NetBSD (sysid 169) start 32, size 62512 (31 MB, Cyls 0-488/2/17) Making partition 0 active. Preparing for upgrade on /dev/wd0e. /dev/rwd0e: 30.5MB (62512 sectors) block size 8192, fragment size 1024 using 4 cylinder groups of 7.63MB, 977 blks, 1920 inodes. super-block backups (for fsck_ffs -b #) at: 32, 15664, 31296, 46928, Installing the upgrade. The authenticity of host '10.23.54.27 (10.23.54.27)' can't be established. DSA key fingerprint is a8:75:fe:7d:46:b7:a8:05:65:77:43:7a:67:e7:a4:fc. Are you sure you want to continue connecting (yes/no)?yes Warning: Permanently added '10.23.54.27' (DSA) to the list of known hosts. Password: 100% |*************************************| 4041 KB 237.68 KB/s --:-- ETA Updating etc/fstab Updating primary bootstrap Updating active partition Disk: /dev/rwd0d NetBSD disklabel disk geometry: cylinders: 977, heads: 4, sectors/track: 32 (128 sectors/cylinder) total sectors: 125056 BIOS disk geometry: cylinders: 977, heads: 4, sectors/track: 32 (128 sectors/cylinder) total sectors: 210453442400 Partition 1: NetBSD (sysid 169) start 62544, size 62512 (31 MB, Cyls 488/2/17-977) Making partition 1 active. Copying existing /etc/cuw_config. Upgrade complete (/dev/wd0e). #
$ reboot