How to get almost any USB stick working with a Unifi Security Gateway USG

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • See below for all the info needed:
    I used a SanDisk usb cruzer 16gb usb 2.0 off of ebay for $8 new
    If your USG is bricked the USB might of died, follow these instructions
    to replace and install an older image of the OS to the USB stick inside the USG
    www.darrellmoo...
    Hook up a console cable so you can get the the command prompt.
    the commands used are
    printenv : this prints out the boot loader info
    setenv bootcmd 'sleep 10;usb reset;fatload usb 0 $loadaddr vmlinux.64;bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rootdelay=15 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom)' :this updates the boot loader with the USB reset
    saveenv : this saves the config to the Flash
    use this if you want to revert
    setenv bootcmd 'fatload usb 0 $loadaddr vmlinux.64;bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rootdelay=15 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom)
    hope this helps and please subscribe!

Комментарии • 2

  • @shieldga
    @shieldga Год назад

    Just wanted to say thank you very much for creating this. I restored a USG using this method with a SanDisk Cruzer Fit 16GB. At first it booted up without being able to access the device but I used your instructions and it fired right up.

  • @markbinkerd483
    @markbinkerd483 3 года назад

    Keith, I tried this and it almost works but I can't get to the point where I run the saveenv command. As soon as I enter the setenv and press return it resumes the boot process and the env change is lost for the next boot. In your video the system does not resume after you enter the setenv command. Is there a trick here?