Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:fortinet:fortinet_fortiwifi_50e-2r [2024/11/07 07:59] – [OEM installation using the TFTP method] nc1 | toh:fortinet:fortinet_fortiwifi_50e-2r [2024/11/24 08:04] – [OEM installation using the TFTP method] nc1 | ||
|---|---|---|---|
| Line 63: | Line 63: | ||
| -> [[docs: | -> [[docs: | ||
| - | By default, the device uses LAN port 5 for TFTP. This can be verified by accessing option **[R]: Review TFTP parameters** from the boot menu. If necessary, this setting | + | Before you can install OpenWrt on this router, you need to have a TFTP server ready to serve the initial firmware. As of this writing, OpenWrt for FWF-50E-2R is available only in snapshots, so the initial firmware image can be downloaded from here: |
| - | Make sure TFTP settings on the device match your local conditions (you can change settings on the device to match your TFTP server or change settings on your TFTP server to match the device), then use option **[T]: Initiate TFTP firmware transfer** to download and run the initial firmware. The initial firmware will run in-memory, so you will need to perform sysupgrade to have OpenWrt written onto the local storage device. | + | < |
| + | https://downloads.openwrt.org/ | ||
| + | </ | ||
| - | Note that the device has dual firmware layout, so OpenWrt occasionally gets written as backup | + | You need to remember (or write down) TFTP server' |
| - | === Specific values needed for tftp === | + | Before you begin, while your router is still turned off, connect the router' |
| - | <WRAP BOX> | + | <code> |
| - | + | FortiGate-50E (17: | |
| - | FIXME Enter values | + | Ver: |
| + | Serial number: | ||
| + | CPU(00): 1600MHz | ||
| + | Total RAM: 2GB | ||
| + | Initializing boot device... | ||
| + | Initializing MAC... | ||
| + | Please wait for OS to boot, or press any key to display configuration menu. | ||
| + | </ | ||
| - | ^ Bootloader tftp server IPv4 address | + | When you see that last line, press **Enter**. The boot process will stop, and you will be shown a menu: |
| - | ^ Bootloader MAC address (special) | + | |
| - | ^ Firmware tftp image | [[: | + | |
| - | ^ TFTP transfer window | + | |
| - | ^ TFTP window start | approximately FILL-IN seconds after power on | | + | |
| - | ^ TFTP client required IP address | + | |
| < | < | ||
| Line 93: | Line 97: | ||
| Enter C, | Enter C, | ||
| + | </ | ||
| + | From here, you have several options. One is to use option **[R]: Review TFTP parameters** to check the current settings and then, go back to your TFTP server and set it up as the router expects. Another option is to change TFTP settings on the router to match the settings on the TFTP server (the ones you have written down) by using option **[C]: Configure TFTP parameters**. Regardless of which option you chose, when everything is ready, use option **[T]: Initiate TFTP firmware transfer** to download and run the initial firmware. Note that one of the FTFP settings is the port the router will use for the FTFP connection, so be sure to connect the FTFP server to the port on the router on which the router expects a connection. But before you do that, let's discuss yet another option. | ||
| + | |||
| + | There is option **G** not shown on the menu, which allows you to specify TFTP parameters interactively. In the opinion of this writer, this is the easiest path, so let's walk through it. | ||
| + | |||
| + | At the boot menu, press **G**. You will be shown current TFTP settings, one by one, and asked to confirm them by pressing **Enter** or enter different ones. The interaction will look something like this: | ||
| + | |||
| + | < | ||
| + | Please connect TFTP server to Ethernet port ' | ||
| + | |||
| + | Enter TFTP server address [192.168.1.168]: | ||
| + | Enter local address [192.168.1.188]: | ||
| + | Enter firmware image file name [image.out]: | ||
| + | </ | ||
| + | |||
| + | In the example above, the user agreed to default settings for TFTP server IP address and local (meaning, router' | ||
| + | |||
| + | When you enter (or confirm) all settings, the router will attempt to retrieve firmware from the TFTP server. If successful, it will ask you how you want to run the firmware: | ||
| + | |||
| + | < | ||
| + | Connect to tftp server 192.168.1.168 ... | ||
| + | |||
| + | ########### | ||
| + | Image Received. | ||
| + | Checking image... OK | ||
| + | Save as Default firmware/ | ||
| + | </ | ||
| + | |||
| + | If you're nervous about irreparably breaking things, choose option **R**; this will tell the router to boot into OpenWrt but not to save it to storage. If you go this route, you will have to repeat the install procedure when you decide to actually install OpenWrt (for now, it will run in-memory, but will not persist past reboot or shutdown). If you're ready to actually install OpenWrt, use option **D**. Either way, you will see the familiar OpenWrt boot sequence. When the boot sequence is complete, press **Enter** to gain OpenWrt command prompt. | ||
| + | |||
| + | At this point, OpenWrt is running in-memory, so you need to write it to the persistent storage. To do that, you need to perform a sysupgrade. Disconnect your router from the FTFP server and connect one of the router' | ||
| + | |||
| + | < | ||
| + | ping -c 3 google.com | ||
| + | </ | ||
| + | |||
| + | If the connection is active, perform sysupgrade. As of this writing, OpenWrt for FWF-50E-2R is available only in snapshots, so your sysupgrade command will look like this: | ||
| + | |||
| + | < | ||
| + | sysupgrade https:// | ||
| + | </ | ||
| + | |||
| + | Sysupgrade will commence. After firmware is written to persistent storage, the router will reboot, most likely, into OpenWrt. Why most likely? Because this router has dual firmware layout, so OpenWrt occasionally gets written as backup firmware rather than default formware. If that happens, the device will boot with stock firmware following sysupgrade. So if you notice that the device is booting with stock firmware, reboot the device, interrupt the boot to gain access to the boot menu, and use option **[B]: Boot with backup firmware and set as default**; this will tell the device to boot with OpenWrt and set OpenWrt as the default firmware. | ||
| + | |||
| + | === For Reference Only === | ||
| + | |||
| + | <WRAP BOX> | ||
| + | |||
| + | Default TFTP parameters (may have been changed by the previous owner of your router): | ||
| + | |||
| + | < | ||
| Image download port: Port 5 | Image download port: Port 5 | ||
| DHCP status: | DHCP status: | ||
| Line 102: | Line 157: | ||
| TFTP server IP address: 192.168.1.168 | TFTP server IP address: 192.168.1.168 | ||
| Firmware file name: | Firmware file name: | ||
| - | |||
| - | Enter C, | ||
| - | |||
| </ | </ | ||