Skip to content

Instantly share code, notes, and snippets.

@a-a
Last active June 24, 2024 04:49
Show Gist options
  • Select an option

  • Save a-a/f70ba370ffee33e3c1f97072784f3ff4 to your computer and use it in GitHub Desktop.

Select an option

Save a-a/f70ba370ffee33e3c1f97072784f3ff4 to your computer and use it in GitHub Desktop.

Revisions

  1. a-a revised this gist Dec 31, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fuckedifimraisingajtaccaseforthis.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Force Juniper SRX110H2 to accept VDSL PIC firmware from Juniper jfirmware 17 release (For SRX300 series?)
    # it might work, it might not. do this at your own risk etc. i think it rolls back. haven't tried lol.
    # Testing using latest 17.4 release specifically from https://support.juniper.net/support/downloads/?p=junos-srx#sw.
    # At time of writing, "latest" was jfirmware-srxsme-17.4R3.16 - copy your shit to a fat32 usb
    # At time of writing, "latest" was jfirmware-srxsme-17.4R3.16-signed.tgz - copy your shit to a fat32 usb

    # Make usb mountpoint (if you haven't already)
    root@% mkdir /var/tmp/usb
  2. a-a created this gist Dec 31, 2020.
    87 changes: 87 additions & 0 deletions fuckedifimraisingajtaccaseforthis.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,87 @@
    # Force Juniper SRX110H2 to accept VDSL PIC firmware from Juniper jfirmware 17 release (For SRX300 series?)
    # it might work, it might not. do this at your own risk etc. i think it rolls back. haven't tried lol.
    # Testing using latest 17.4 release specifically from https://support.juniper.net/support/downloads/?p=junos-srx#sw.
    # At time of writing, "latest" was jfirmware-srxsme-17.4R3.16 - copy your shit to a fat32 usb

    # Make usb mountpoint (if you haven't already)
    root@% mkdir /var/tmp/usb

    # Mount the USB
    root@% mount_msdosfs /dev/da0s1 /var/tmp/usb

    # CD to the usb
    root@% cd /var/tmp/usb

    # Make a new folder to extract our crap to, and cd into it
    root@% mkdir inside
    root@% cd inside

    # Extract first level of archive so we can get at the next part
    root@% tar -zxf - < ../jfirmware-srxsme-17.4R3.16-signed.tgz

    # Extract second level of archive so we can get to the actual package file
    root@% tar -zxf - < ./jfirmware-srxsme-17.4R3.16.tgz

    # You just extracted an iso9660 file - mount it, this contains our files.
    root@% /sbin/mount_iso --force /cf/var/tmp/usb/inside/packages/jfirmware-srxsme-17.4R3.16 /packages/mnt/jfirmware-srxsme-17.4R3.16 jfirmware-srxsme

    # Symlink jfirmware-srxsme to the new version
    root@% ln -s /packages/mnt/jfirmware-srxsme-17.4R3.16/ /packages/mnt/jfirmware-srxsme

    # Pop into cli, check for new firmware
    root@% cli

    # Show if we have different current vs available versions
    root> show system firmware
    Part Type Tag Current Available Status
    version version
    FPC 1
    PIC 0 VDSLBCM 10 2.16.0 2.20.0 OK <---- HERE!
    Routing Engine 0 RE BIOS 0 2.5 2.8 OK
    Routing Engine 0 RE BIOS Backup 1 2.5 2.8 OK
    Routing Engine 0 RE FPGA 14 1.0.0 1.0.0 OK

    root>


    # If we do, lets request an upgrade
    root> request system firmware upgrade pic fpc-slot 1
    Part Type Tag Current Available Status
    version version
    FPC 1
    PIC 0 VDSLBCM 10 2.16.0 2.20.0 OK
    Perform indicated firmware upgrade ? [yes,no] (no) yes

    Firmware upgrade initiated.
    root>


    # Hammer sh sys firm a few times until the output changes from ERASING to FLASHING to finally.... UPGRADED SUCCESSFULLY

    root> show system firmware
    Part Type Tag Current Available Status
    version version
    FPC 1
    PIC 0 VDSLBCM 10 2.16.0 2.20.0 UPGRADED SUCCESSFULLY
    Routing Engine 0 RE BIOS 0 2.5 2.8 OK
    Routing Engine 0 RE BIOS Backup 1 2.5 2.8 OK
    Routing Engine 0 RE FPGA 14 1.0.0 1.0.0 OK

    root>


    # Now restart FPC 1 and wait a while, you should have new firmware loaded

    root> restart fpc 1
    FPC 1 restarted

    root>


    # Now clean up (if you want to, im not your mom)
    root> exit
    root@% rm /packages/mnt/jfirmware-srxsme
    root@% umount /cf/var/packages/mnt/jfirmware-srxsme-18.4R3.16
    root@% umount /cf/var/tmp/usb

    # Enjoy having vectoring (from at least 2.16.0) plus whatever 2.20.0 gives you, i couldn't be bothered to read the release notes to figure it out when there's no seperate notes for the firmwares