Flashing Your 4526 Soekris Node: Step 4

Step 4: Upgrade the node

  1. Log into the node using the root password. [usually "changeme"]
  2. You need to change a few variables to enable the upgrade.
    • > stty <space> erase Control-v <Backspace>
    • > ifconfig sip0
      Find a line that looks something like this:
      inet 10.168.64.254 netmask 0xffffff00
    • > ifconfig sip0 inet 10.168.64.254 netmask 0xffffff00 -alias
    • > ifconfig sip0
      You should now see a line that looks something like this:
      inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255.
    • Ping the server to verify your connection:
      > ping 192.168.1.101 -c 5
      You should see lines like this:
      64 bytes from 192.168.1.101: icmp_seq=0 ttl=64 time=0.656 m
  3. Let's upgrade the node:
    • > upgrade -f -C blah@192.168.1.101:/tftpboot/upgrade.tgz
      [where blah is your user name.]
      If that is successful, you should see something like this:
       
      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.
      
    • Because you won't be an authenticated user, you will be prompted to verify that you want to continue. Answer yes.
      The authenticity of host '192.168.1.101 (192.168.1.101)' 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
      
    • You will also need to enter your password on the freebsd computer.
      Warning: Permanently added '192.168.1.101' (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).
       #
      
    • After that runs, type the following at the command line to reboot the node:
      $ reboot
  4. You will want to exit Tip now. Do that, you should first unplug the serial cable, then enter the following command: <Ctrl>~D [i.e. <Ctrl>-<Shift>-~, release the keys, and then <Ctrl>-<Shift>-d].

Congratulations! If you made it this far, you are ready to put the node on the roof and get to work!