Diff for /wikisrc/ports/sandpoint/instsynology.mdwn between versions 1.5 and 1.6

version 1.5, 2014/01/06 15:35:38 version 1.6, 2014/01/06 15:58:44
Line 289  and `serverip` environment variables wit Line 289  and `serverip` environment variables wit
 TFTP and DHCP ([read below](#altboot_install)) you can download  TFTP and DHCP ([read below](#altboot_install)) you can download
 `altboot` like this:  `altboot` like this:
   
     _MPC824X &gt; <strong>setenv ipaddr=192.168.0.106</strong>  <pre>
     _MPC824X &gt; <strong>setenv serverip=192.168.0.5</strong>  _MPC824X &gt; <strong>setenv ipaddr=192.168.0.106</strong>
     _MPC824X &gt; <strong>setenv netmask=255.255.255.0</strong>  _MPC824X &gt; <strong>setenv serverip=192.168.0.5</strong>
     _MPC824X &gt; <strong>tftpboot 0x1000000 altboot.bin</strong>  _MPC824X &gt; <strong>setenv netmask=255.255.255.0</strong>
     ARP broadcast 1  _MPC824X &gt; <strong>tftpboot 0x1000000 altboot.bin</strong>
     TFTP from server 192.168.0.5; our IP address is 192.168.0.106  ARP broadcast 1
     Filename 'altboot.bin'.  TFTP from server 192.168.0.5; our IP address is 192.168.0.106
     Load address: 0x1000000  Filename 'altboot.bin'.
     Loading: ###############  Load address: 0x1000000
     done  Loading: ###############
     Bytes transferred = 74732 (123ec hex)  done
   Bytes transferred = 74732 (123ec hex)
   </pre>
   
 The old firmware (2005) doesn't activate the network at all, so we have  The old firmware (2005) doesn't activate the network at all, so we have
 to download `altboot` into RAM with Kermit protocol over the serial  to download `altboot` into RAM with Kermit protocol over the serial
Line 322  argument to `kermit`. Line 324  argument to `kermit`.
 Load `altboot` into memory using Kermit protocol. The binary is  Load `altboot` into memory using Kermit protocol. The binary is
 relocated at `0x1000000`, so type:  relocated at `0x1000000`, so type:
   
     _MPC824X &gt; <strong>loadb 1000000</strong>  <pre>
     ## Ready for binary (kermit) download ...  _MPC824X &gt; <strong>loadb 1000000</strong>
   ## Ready for binary (kermit) download ...
   </pre>
   
 Now quit your terminal program and launch `kermit cmdfile`. When you are  Now quit your terminal program and launch `kermit cmdfile`. When you are
 already running `kermit`, enter the command mode by typing `CTRL-\`  already running `kermit`, enter the command mode by typing `CTRL-\`
Line 362  OS/sandpoint distribution and copy it in Line 366  OS/sandpoint distribution and copy it in
 Then start the DHCP, NFS or TFTP server and boot the installation kernel  Then start the DHCP, NFS or TFTP server and boot the installation kernel
 from the firmware either with  from the firmware either with
   
     _MPC824X &gt; <strong>go 1000000 tftp:netbsd-INSTALL</strong>  <pre>
   _MPC824X &gt; <strong>go 1000000 tftp:netbsd-INSTALL</strong>
   </pre>
   
 or from NFS:  or from NFS:
   
     _MPC824X &gt; <strong>go 1000000 nfs:netbsd-INSTALL</strong>  <pre>
   _MPC824X &gt; <strong>go 1000000 nfs:netbsd-INSTALL</strong>
   </pre>
   
 Our bootloader configures the hardware, determines the IP address, loads  Our bootloader configures the hardware, determines the IP address, loads
 the kernel via network and launches it:  the kernel via network and launches it:
Line 475  chosen a different address. Line 483  chosen a different address.
 Load `altboot.bin` into memory at `0x1000000` again, as explained above.  Load `altboot.bin` into memory at `0x1000000` again, as explained above.
 Then execute the following commands to write it to Flash ROM:  Then execute the following commands to write it to Flash ROM:
   
     _MPC824X &gt; <strong>protect off all</strong>  <pre>
     Un-Protect Flash Bank # 1  _MPC824X &gt; <strong>protect off all</strong>
     _MPC824X &gt; <strong>erase ff400000 ff41ffff</strong>  Un-Protect Flash Bank # 1
     Erase Flash from 0xff400000 to 0xff41ffff   _MPC824X &gt; <strong>erase ff400000 ff41ffff</strong>
     . done  Erase Flash from 0xff400000 to 0xff41ffff 
     Erased 1 sectors  . done
     _MPC824X &gt; <strong>cp.b 1000000 ff400000 18000</strong>  Erased 1 sectors
     Copy to Flash... done  _MPC824X &gt; <strong>cp.b 1000000 ff400000 18000</strong>
     _MPC824X &gt; <strong>protect on all</strong>  Copy to Flash... done
     Protect Flash Bank # 1  _MPC824X &gt; <strong>protect on all</strong>
   Protect Flash Bank # 1
   </pre>
   
 Finally adapt the `bootcmd` environment string to auto-boot `altboot`  Finally adapt the `bootcmd` environment string to auto-boot `altboot`
 and start the `netbsd` kernel (which is the default name) from `wd0` on  and start the `netbsd` kernel (which is the default name) from `wd0` on
 each reboot:  each reboot:
   
     _MPC824X &gt; <strong>setenv bootcmd cp.b ff400000 1000000 18000\; go 1000000 wd0:</strong>  <pre>
     _MPC824X &gt; <strong>saveenv</strong>  _MPC824X &gt; <strong>setenv bootcmd cp.b ff400000 1000000 18000\; go 1000000 wd0:</strong>
     Saving Environment to Flash...  _MPC824X &gt; <strong>saveenv</strong>
     unProtect FFF40000 ... FFF5FFFF  Saving Environment to Flash...
     Un-Protected 1 sectors  unProtect FFF40000 ... FFF5FFFF
     Erasing Flash...  Un-Protected 1 sectors
     . done  Erasing Flash...
     Erased 1 sectors  . done
     Writing to Flash... done  Erased 1 sectors
     Protected 1 sectors  Writing to Flash... done
   Protected 1 sectors
   </pre>
   
 The `\` is important for `setenv` not to misinterpret the `;` as the end  The `\` is important for `setenv` not to misinterpret the `;` as the end
 of the command.  of the command.
Line 525  explained [above](#altboot). You might w Line 537  explained [above](#altboot). You might w
 image first. Then execute the following commands to overwrite it with  image first. Then execute the following commands to overwrite it with
 `altboot.img`:  `altboot.img`:
   
     _MPC824X &gt; <strong>protect off all</strong>  <pre>
     Un-Protect Flash Bank # 1  _MPC824X &gt; <strong>protect off all</strong>
     _MPC824X &gt; <strong>erase ffc00000 ffc1ffff</strong>  Un-Protect Flash Bank # 1
     Erase Flash from 0xffc00000 to 0xffc1ffff   _MPC824X &gt; <strong>erase ffc00000 ffc1ffff</strong>
     . done  Erase Flash from 0xffc00000 to 0xffc1ffff 
     Erased 1 sectors  . done
     _MPC824X &gt; <strong>cp.b 1000000 ffc00000 18000</strong>  Erased 1 sectors
     Copy to Flash... done  _MPC824X &gt; <strong>cp.b 1000000 ffc00000 18000</strong>
     _MPC824X &gt; <strong>protect on all</strong>  Copy to Flash... done
     Protect Flash Bank # 1  _MPC824X &gt; <strong>protect on all</strong>
   Protect Flash Bank # 1
   </pre>
   
 Optionally you may think about replacing the Linux RAM disk image at the  Optionally you may think about replacing the Linux RAM disk image at the
 second address (`0xffe00000` in the example above) by an empty PPCBoot  second address (`0xffe00000` in the example above) by an empty PPCBoot

Removed from v.1.5  
changed lines
  Added in v.1.6


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb