SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  SRX won't boot and won't start "loader.

    Posted 05-16-2016 03:58

    Small SRX stop to boot.

    Boot process looks like this:

     

    U-Boot 1.1.6-JNPR-2.7 (Build time: Nov 26 2013 - 19:04:49)

    Initializing memory this may take some time...
    Measured DDR clock 266.62 MHz
    SRX_100H2 board revision major:1, minor:0, serial #: BZ1234567890
    OCTEON CN5020-SCP pass 1.1, Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
    DRAM: 2048 MB
    Starting Memory POST...
    Checking datalines... OK
    Checking address lines... OK
    Checking 512K memory for U-Boot... OK.
    Running U-Boot CRC Test... OK.
    Flash: 4 MB
    USB: scanning bus for devices... 3 USB Device(s) found
    scanning bus for storage devices... 1 Storage Device(s) found
    Clearing DRAM........ done
    BIST check passed.
    Boot Media: nand-flash usb
    Net: pic init done (err = 0)octeth0
    POST Passed
    Press SPACE to abort autoboot in 5 seconds
    =>

     

    I try everyfthing. Upgrade (downgrade) u-boot and loader from ftfp and any other internet helps.

    My last chance was booting from usb.

    I was putting usb to working SRX and format this usb.

    Then i was run:

    request system snapshot media usb factory partition

     

    Then i was putting this usb do the death srx and run:

    setenv boot.current alternate <enter>

    saveenv <enter>

    boot <enter>

     

    and ... nothing. 

     

    reset <enter>

    boot <enter>

     

    and ... nothing.

     

    Outlput from printenv in u-boot looks like this:

    baudrate=9600
    ethaddr=10:0e:7e:7b:09:c0
    bootcmd=
    nand_error=0
    bootdelay=5
    boot.curent=alternate
    loaddev=disk66
    boot.devlist=nand-flash:usb
    filesize=9c044
    fileaddr=20000000
    gatewayip=10.10.10.100
    netmask=255.255.255.0
    ipaddr=10.10.10.222
    serverip=10.10.10.225
    bootfile=/kernel
    boot.status=0x1
    boot.current=primary
    loadaddr=0x20000000
    numcores=2
    boot.ver=2.7
    boot.upgrade.loader=0xbfe00000
    boot.upgrade.uboot=0xbfc00000
    boot.btsq.start=0x003fa000
    boot.btsq.len=0x00002000
    boot.env.start=0x003fe000
    boot.env.size=0x00002000
    boot.upgrade.uboot.hdr=0x00000030
    boot.upgrade.uboot.data=0x00000100
    boot.upgrade.loader.hdr=0x002fffc0
    boot.upgrade.loader.data=0x00200000
    stdin=serial
    stdout=serial
    stderr=serial
    env_addr=0xbfffe000
    env_size=0x2000
    flash_base_addr=0xbfc00000
    flash_size=0x400000
    ethact=octeth0
    post.usb=PASSED
    post.eeprom=PASSED
    post.memory=PASSED
    post.uboot-crc=PASSED

    Environment size: 885/8188 bytes

     

    I can't boot from usb and can't boot from tftp. 

    I understand if i have destroyed hdd and can't boot from this nand but why i can't boot from usb?

     

     



  • 2.  RE: SRX won't boot and won't start "loader.

    Posted 05-16-2016 17:00

    I assume the SRX you pulled the USB snapshot from is the same model as the one that has difficulties.  These instructions suggest a slightly different snapshot command you could try.

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB29811

     

    Another approach would be to run a fresh install from the boot loader using the USB as the source drive instead of the TFTP one.

     

    http://www.juniper.net/techpubs/en_US/junos14.1/topics/task/installation/security-junos-os-boot-loader-usb-storage-device-srx-series-device-installing.html



  • 3.  RE: SRX won't boot and won't start "loader.

    Posted 05-17-2016 13:00

    The situation is critical - i have two clients with SRX100 with very similar problem during two days!!!
    Strange coincidence. I start to fear for other small branch SRX.

    First this SRX about which I was started this topic.
    Thanks Spuluka for this links.
    I was founded the same model of SRX100 and was copy snapshoot to the usb (unfortunately 16GB because i can't find smaller).
    I put this pen to the broken SRX and boot. Unfortunately nothing change, SRX not boot from usb. Boot process looks like this:

     

    U-Boot 1.1.6-JNPR-2.7 (Build time: Nov 26 2013 - 19:04:49)

    Initializing memory this may take some time...
    Measured DDR clock 266.62 MHz
    SRX_100H2 board revision major:1, minor:0, serial #: BZ1234567890
    OCTEON CN5020-SCP pass 1.1, Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
    DRAM: 2048 MB
    Starting Memory POST...
    Checking datalines... OK
    Checking address lines... OK
    Checking 512K memory for U-Boot... OK.
    Running U-Boot CRC Test... OK.
    Flash: 4 MB
    USB: scanning bus for devices... 4 USB Device(s) found
    scanning bus for storage devices... 2 Storage Device(s) found
    Clearing DRAM........ done
    BIST check passed.
    Boot Media: nand-flash usb
    Net: pic init done (err = 0)octeth0
    POST Passed
    Press SPACE to abort autoboot in 5 seconds
    =>

     

    Intresting that the first SRX100 from with I try to copy snapshoot did not allow to copy snapshoot. We was decide to restart this SRX and after this restart we have boot process like this:

     

    U-Boot 1.1.6-JNPR-2.8 (Build time: Feb 10 2015 - 01:03:41)

    Initializing memory this may take some time...
    Measured DDR clock 266.62 MHz
    SRX_100_HIGHMEM board revision major:0, minor:0, serial #: AT1234567890
    OCTEON CN5020-SCP pass 1.1, Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
    DRAM: 1024 MB
    Starting Memory POST...
    Checking datalines... OK
    Checking address lines... OK
    Checking 512K memory for U-Boot... OK.
    Running U-Boot CRC Test... OK.
    Flash: 4 MB
    USB: scanning bus for devices... 2 USB Device(s) found
    scanning bus for storage devices... 0 Storage Device(s) found
    Clearing DRAM........ done
    BIST check passed.
    Boot Media: nand-flash usb
    Net: pic init done (err = 0)octeth0
    POST Passed
    Press SPACE to abort autoboot in 1 seconds
    ELF file is 32 bit
    Loading .text @ 0x8f0000a0 (246560 bytes)
    Loading .rodata @ 0x8f03c3c0 (14144 bytes)
    Loading .reginfo @ 0x8f03fb00 (24 bytes)
    Loading .rodata.str1.4 @ 0x8f03fb18 (16516 bytes)
    Loading set_Xcommand_set @ 0x8f043b9c (96 bytes)
    Loading .rodata.cst4 @ 0x8f043bfc (20 bytes)
    Loading .data @ 0x8f044000 (5760 bytes)
    Loading .data.rel.ro @ 0x8f045680 (120 bytes)
    Loading .data.rel @ 0x8f0456f8 (136 bytes)
    Clearing .bss @ 0x8f045780 (11600 bytes)
    ## Starting application at 0x8f0000a0 ...
    Consoles: U-Boot console
    Found compatible API, ver. 2.8

    FreeBSD/MIPS U-Boot bootstrap loader, Revision 2.8
    (slt-builder@svl-ssd-build-vm06.juniper.net, Tue Feb 10 00:32:30 PST 2015)
    Memory: 1024MB
    [1]Booting from nand-flash slice 1
    Un-Protected 1 sectors
    writing to flash...
    Protected 1 sectors

    can't load '/kernel'
    can't load '/kernel.old'
    Press Enter to stop auto bootsequencing and to enter loader prompt.


    Type '?' for a list of commands, 'help' for more detailed help.
    loader>

     

    Situation a little better because we have loader prompt. Unfortunately not much better!
    Device not finding USB. I put usb pen but there is no reaction and device not boot from this usb.
    We try tftp. We set ip,mask, server everything looks grate. We start with command:

     

    loader> install tftp://172.19.50.129/junos-srxsme-12.1X46-D40.2-domestic.tgz

     

    Unfortunately output is always the same:

     

    Target device selected for installation: internal media
    octeth0: Up 1000 Mbps Full duplex (port 0)
    cannot open package (error 60)

     

    On the TFTP we see on every time the same 8568 bytes downloaded by device and then ERROR.
    I was updated files u-boot-crc.bin and loader_crc from version from 2013 to version from 2015 using TFTP and we was trying again. Situation was the same.

     

    In both situation booting from USB dosn't work. In first SRX i don't know what happend and why i can't boot from usb or tftp. In second SRX i think that hdd was destroyed and there is nothing to do with this (but why can't boot from usb?).

     

    Anyone has any idea? Of course there is no support on this device (ehhh) , first of them have 2 years, second have 4.

     



  • 4.  RE: SRX won't boot and won't start "loader.

    Posted 05-17-2016 14:59

    From your descriptions it does seem possible that your internal flash is failing on these devices.  When a copy command like this stops at the same point consistently this tends to support the idea that there is bad media.

     

    One possiblility on why the USB keys are not booting is suggested in this thread, not all sizes and brands seem to be compatible.

     

    https://forums.juniper.net/t5/SRX-Services-Gateway/Booting-from-system-snapshot-on-USB-key/td-p/63053

     

    Also if you can verify the key is formated as fat32, I have seen issues using USB keys in newer formats.



  • 5.  RE: SRX won't boot and won't start "loader.

    Posted 05-23-2016 06:43

    Second device dosn't see any usb devices and when we test a voltage using electric meter on usb port there is nothing from start SRX to shutdown. This device is dead and there is nothing that we can do. USB not boot and TFTP try to download soft but like I write there is error during downloading (more precisely - during writing) proces.  On EX series is posibility to format hdd before start to copy and install, on SRX there is no options for that. We loose this device.

     

    First device start with u-boot properly. SRX sees usb device but not boot unfortunately. We test many usb from many brands and different size. Without success. There is not even a word during the u-boot about  "failed boot from usb" or "problem with booting from usb" or event about 'trying to boot from usb", so I don't know if SRX try to boot from this device or not.

    Maybe someone could confirm me though that my environment variables are ok?

    I'm afraid that it might be all ok but either of the u-boot variables blocks to boot SRX from USB or something similar.



  • 6.  RE: SRX won't boot and won't start "loader.

    Posted 05-23-2016 17:36

    Were you able to confirm or reformat the USB drives using fat32 format?

     

    Also instead of TFTP you can try the USB install, for this you don't need to boot to USB only have the install file on the USB instead of the TFTP server.

     

    http://www.juniper.net/techpubs/en_US/junos14.1/topics/task/installation/security-junos-os-boot-loader-usb-storage-device-srx-series-device-installing.html