Console Re-Install on Netgate SG-1100 Fails with Bad Device USB 0
-
@mer The download definitely is, it’s a .gz file. Windows etcher will write that without extracting but it doesn’t calculate the space needed correctly. It just fails. The 2100 image needed an 8 GB stick…about 4.5 IIRC.
-
@steveits thanks I thought the download was, I spaced out and dd'd the .gz file directly to the USB stick and got the same error. Only did that once.
-
Thank you all. I thought I used gzip to extract the image, but now I’m thinking I could have spaced on that. One thing I wonder about is the file system on my USB drive. I formatted it using vfat (fat32) from my Linux Mint box, & wondering if that could be the culprit. If I understood the documentation properly, using fat32 I could create a conf directory & put a previous backup there as config.xml. My configuration is relatively simple & seems like I could restore the previous configuration using the gui, once everything is back up & running. Any suggestions on formatting the USB drive & config restore would be appreciated.
Thanks,
-Rick -
@rickster439489 I think you’re making it more complex doing it manually. Etcher will write the image with partitions for you.
https://docs.netgate.com/pfsense/en/latest/solutions/sg-1100/reinstall-pfsense.html
-> https://docs.netgate.com/reference/create-flash-media.html -
@steveits
I give it again today using my Mac. For a sanity check, I checked the shasum again of the original image & it matches. Also, downloaded etcher to create the image, & used new media again this time. It's a 128GB drive, so space should not be a problem. Connected up my USB cable to the console port of the Netgate, & proceeded to get the same message again:
Marvell>> run usbrecovery
switch to partitions #0, OK
mmc1(part 0) is current device
MMC erase: dev # 1, block # 0, count 4194304 ... 4194304 blocks erased: OK
resetting USB...
USB0: Register 2000104 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB1: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
I'm out of ideas completely now. & obviously bummed I can't get this to work. I really wonder if I'm doing something stupid I'm totally overlooking. Any words of wisdom would be appreciated.
Thanks,
-Rick -
@rickster439489 said in Console Re-Install on Netgate SG-1100 Fails with Bad Device USB 0:
** Bad device usb 0 **
per https://docs.netgate.com/pfsense/en/latest/solutions/sg-1000/faq.html
that is "...normal when the boot environment supports booting from the USB OTG port, but there is no bootable media connected to the OTG port."
Maybe it doesn't like the USB stick? 128GB too big? Perhaps @stephenw10 may have insight.
-
@rickster439489 I just hit this on my SG-3100, and I found that before typing "run recovery" at the prompt, I needed to run "usb reset" until my USB device was actually found (turned out to be twice). After that I had no issues. Hope this works for you too.
-
@endotronic
Thanks for the suggestion. I tried it a half dozen times or so, & did not get any different results. What I find interesting, is the commands identify my USB drive, but not the storage device. I'm wondering if the device not being found is referencing storage on the Netgate itself.
Marvell>> usb reset
resetting USB...
USB0: Register 2000104 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB1: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Another thing I noticed is the USB drive configured by Etcher contains four files that don't seem a little odd. If I view them in a bash session on my mac this is what I see:
rick-MacBook-Pro:~ rick$ ls -lahrt /Volumes/DTBFAT0/
total 127
-rwxrwxrwx 1 rick staff 13K Feb 10 20:11 armada-3720-sg2100.dtb
-rwxrwxrwx 1 rick staff 18K Feb 10 20:11 armada-3720-sg1100.dtb
-rwxrwxrwx 1 rick staff 13K Feb 10 20:11 armada-3720-netgate-2100.dtb
-rwxrwxrwx 1 rick staff 18K Feb 10 20:11 armada-3720-netgate-1100.dtb
drwxrwxrwx@ 1 rick staff 1.0K Apr 30 10:58 .
drwxr-xr-x 4 root wheel 128B Apr 30 10:58 ..
drwxrwxrwx 1 rick staff 512B Apr 30 10:58 .fseventsd
This seems to be really odd, & not what I would expect for firmware. Can anyone please validate those are the right files & sizes I should be seeing?
Thanks for any suggestions,
-Rick -
@rickster439489
One last observation, if I look at the original downloaded firmware image using the gunzip, here is what I see:
rick-MacBook-Pro:pfSense rick$ gunzip -lv pfSense-plus-compat-recovery-23.01-RELEASE-aarch64.img.gz
method crc date time compressed uncompressed ratio uncompressed_name
defla 41b432cd Apr 2 18:02 1816266884 1073741824 -69.2% pfSense-plus-compat-recovery-23.01-RELEASE-aarch64.imgIt's a stupid observation, but this is very different file contents from what I see on the USB drive itself. Again, a reality check on the files would be really helpful.
Thanks,
-Rick -
@rickster439489 said in Console Re-Install on Netgate SG-1100 Fails with Bad Device USB 0:
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) foundWhen you see this do "usb reset" until it shows. If it fails multiple times then try the other port. If it fails there try another flash drive.
-
@rcoleman-netgate If you keep having issues reply to your email that the link came via and TAC will help.
-
If it doesn't find the storage device in u-boot then it doesn't like the drive for one reason or another. I've got a couple drives here that work in some but not all of my lab devices, it varies a bit by size make/model, USB 2 vs 3 and so on. If you have a USB 2.0 8-16GB drive or so that's probably your best bet for compatibility, but that isn't a definite rule.
-
I know this is an old thread, but In the interest of closure, I just had exactly this problem.
I was using a flashed uSD card - I tried many, but settled on a relatively old one - Flash with either Balena Etcher, or the Raspberry Pi ImagerMy problem: The uSD to USB adapter. I was using a relatively new USB3 one (Blue on the inside) ... It doesn't like those for some reason. Get your hands on an older USB2 adapter, that isn't blue
For reference, I plugged it into the USB socket on the left, NOT the SS Socket on the right. This worked. -
Yes, I have found that forcing a USB3 flash device to use USB2 often allows it to work. Additionally the opposite is often true. If a USB2 device isn't recognised try moving that to the USB3 port.