Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[SRX] How to install software using TFTPBoot method on SRX300 series

1

0

Article ID: KB32115 KB Last Updated: 29 Jan 2021Version: 2.0
Summary:

This article explains how to install software using the TFTPBoot method on SRX300 Series.

Currently, there is documentation on how to install software using the TFTPBoot method on the SRX100, SRX210, and SRX650 Services Gateways. However, the procedure on SRX300 series has a few differences.

 

Solution:

Prerequisites

  1. The device with or without Junos OS software image

  2. The device with U-boot and Loader up and running

  3. TFTP server available and loaded with the Junos OS package to be installed on the device

  4. TFTP server with Bootstrap Protocol (BOOTP) or DHCP support

If BOOTP or DHCP support is not available, then you need to configure the gateway IP address, device IP address, and the netmask manually by setting environment variables.

  1. Functional network connectivity between the device and the TFTP server

  2. Ethernet interface support for the kernel of the device. This support is required to stream the Junos image from the TFTP server to the device.

Accessing the U-Boot Prompt

To access the U-boot prompt:

  1. Console access to the device.

  2. Reboot the device.

During reboot, the following messages are displayed:

U-Boot 2013.07-JNPR-3.1 (Build time: May 03 2016 - 23:50:19)
 
Using DRAM size from environment: 4096 MBytes
checkboard siege
SATA0: not available
SATA1: not available
SATA BIST STATUS = 0x0
SRX_345 board revision major:1, minor:7, serial #: CZ2222AABBCC
OCTEON CN7130-AAP pass 1.2, Core clock: 1600 MHz, IO clock: 600 MHz, DDR clock: 667 MHz (1334 Mhz DDR)
Base DRAM address used by u-boot: 0x10f000000, size: 0x1000000
DRAM: 4 GiB
Clearing DRAM...... done
SF: Detected MX25L6405D with page size 256 Bytes, erase size 64 KiB, total 8 MiB
PCIe: Port 0 link active, 1 lanes, speed gen2
PCIe: Link timeout on port 1, probably the slot is empty
PCIe: Port 2 not in PCIe mode, skipping
Net:   octrgmii0
octeon_fdt_broadcom_config: Unknown broadcom phy for octrgmii0
Interface 4 has 1 ports (AGL)
Type the command 'usb start' to scan for USB storage devices.
 
Boot Media: eUSB usb
Found TPM SLB9660 TT 1.2 by Infineon
TPM initialized
Hit any key to stop autoboot:  0 
  1. Press any key to stop autoboot.

The ‘Octeon srx_345_ram#’  prompt appears.

Notes:

  • On older SRX branch devices, we need to access the U-boot prompt by stopping autoboot.

  • On SRX300 series devices, the U-boot prompt has been changed to the 'Octeon srx_345_ram#' prompt.

On old SRX branch devices (SRX100, SRX210, and SRX650 Services Gateways):

Reboot the device.

During reboot, the following messages are displayed:

Root Hub 0: 3 USB Device(s) found
Root Hub 1: 1 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found

Then you are prompted with:

Press the space bar to abort autoboot in 10 seconds: 0

Press any key to stop autoboot.

The U-boot prompt appears.

Example for Setting Up Environment Variables

When you reboot a device, the following messages are displayed. Follow the instructions to access the U-boot prompt and set environment variables at that prompt.

…
Boot Media: eUSB usb
Found TPM SLB9660 TT 1.2 by Infineon
TPM initialized
Hit any key to stop autoboot:  0
Octeon srx_345_ram#                  
Octeon srx_345_ram# setenv ipaddr 192.168.1.1
Octeon srx_345_ram# setenv netmask 255.255.255.0
Octeon srx_345_ram# setenv gatewayip 192.168.1.2
Octeon srx_345_ram# saveenv
Saving Environment to SPI Flash...
...

Notes:

  • On old SRX branch devices, the command below is used to set the environment variables.

  • On SRX300 series devices, the command is different.

On old SRX branch devices (SRX100, SRX210, and SRX650 Services Gateways):

Set environment variables for BOOTP or DHCP support.

If the TFTP server does not support BOOTP or DHCP, set the following environmental variables:

set gatewayip = gateway IP Address
set ipaddr = IP Address of the device
set netmask = netmask
set serverIP = server IP

Accessing the Loader Prompt

To access the Loader prompt:

  1. Console access to the device.

  2. Reboot the device.

During reboot, the following message is displayed:

Loading /boot/defaults/loader.conf

After this message appears, you are prompted with:

Hit [Enter] to boot immediately,or space bar for command prompt.

  1. Press the space bar to get to the Loader prompt. 

The loader> prompt appears.

Installing JUNOS Software Using TFTPBOOT

To install the software image on the internal flash of the device:

  1. Go to the Loader prompt. For more information on accessing the Loader prompt, see Accessing the Loader Prompt section above.

  2. Enter the following command at the Loader prompt:

Loader>install URL

Where URL is tftp://host/package

Example

Loader>install tftp://192.168.1.2/junos-srxsme-15.1X49-D90.7-domestic.tgz

The Loader gets the IP address of the device, the IP address of the TFTP server, the IP address of the gateway, and the netmask.

Using this information, the Loader accesses the Junos package on the TFTP server and streams the installation files to the kernel using TFTP. The Loader loads and boots the kernel.

  1. The install script available in the installation file executes. This script does the following:

  • Enables the Ethernet interface

  • Downloads the Junos package from the server using TFTP

  • Installs the package on the internal flash

After the installation of the software image, the device boots from the internal flash.

Note: Please connect the TFTP server with the fxp port of SRX300 series.

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search