Netgate sg-2440 kernel panics on reboot if iphone is connected to usb?
-
I recently tried instructions at joshspicer's website in an attempt to hotspot tether my iphone (11 Pro Max) to a Netgate SG-2440 box , but only got far enough for the system to recognize the network interface without getting it to recognize an ip address other than 0.0.0.0. Thinking a reboot might help, I attempted that but found that it would never fully come up.
After connecting to the serial console, I discovered it was repeatedly crashing. If I unplugged the iphone however, it would come up fine. I googled for this but wasn't able to find anyone else who ran into this situation so I'm wondering if there is something unique to my situation. This is the screen captured output right before the panic:
Initializing.................. done. Starting device manager (devd)...done. Loading configuration......done. umass0: at uhub1, port 4, addr 4 (disconnected) da0 at umass-sim0 bus 0 scbus4 target 0 lun 0 da0: <Generic Ultra HS-COMBO 1.98> s/n 000000225001 detached (da0:umass-sim0:0:0:0): Periph destroyed umass0: detached Updating configufsync: giving up on dirty (error = 6) 0xfffff80008392000: tag devfs, type VCHR usecount 1, writecount 0, refcount 75 rdev 0xfffff80004c37e00 flags (VI_DOOMED|VI_ACTIVE) v_object 0xfffff800049b7780 ref 0 pages 562 cleanbuf 57 dirtybuf 15 lock type devfs: EXCL by thread 0xfffff80008fe7000 (pid 400, php-cgi, tid 100120) dev ufsid/5e7fb4ac10bb37a9 panic: softdep_deallocate_dependencies: dangling deps cpuid = 0 KDB: enter: panic [ thread pid 400 tid 100120 ] Stopped at kdb_enter+0x3b: movq $0,kdb_why
I'm not using any usb storage -- is pfsense detecting mass storage on the phone and crashing when attempting to mount it?
If I plug the phone in after it has fully booted, the system remains stable.
2.4.5-RELEASE (amd64)
built on Tue Mar 24 15:25:53 EDT 2020
FreeBSD 11.3-STABLE -
Do you have the iphone interface assigned?
The mass storage you see there (da0) is the on board eMMC on the SG-2440, that's expected.
Steve
-
@stephenw10 said in Netgate sg-2440 kernel panics on reboot if iphone is connected to usb?:
Do you have the iphone interface assigned?
Yeah, ue0 was assigned to one of the unused OPT interfaces.
I'm not certain, but I think I was able to solve this by setting a kernel quirk that changed the usb config to the third index for the iphone usb device (This might have been advice you gave in an older thread here). Apparently running usbconfig to do this in a local boot file doesn't happen soon enough?
I think I'm going to use one of those netgear devices and tether the iphone to the pfsense router that way. Apple's insistence on prompting to "trust this computer" at each reboot isn't ideal, and I wasn't able to get traffic through the interface other than dns queries (I actually had to choose "reset network settings" on the phone before it would even issue one of those 172 ip addresses to the WAN -- dhcp client requests went unanswered previously).
-
Ah, yes, if it tries to boot and finds the assigned interface missing then you will see problems. I would not normally expect a panic though.
An Ethernet connected external modem will give far better results pretty much every time.
Steve