Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: motg driver, panic



On 08/12/14 03:41, John Klos wrote:
Hi,

I just tried to compile a netbsd-7 kernel for a Beaglebone Black and it got stuck here:

--- motg.o ---
/usr/src/sys/dev/usb/motg.c: In function 'motg_device_ctrl_close':
/usr/src/sys/dev/usb/motg.c:1857:21: error: unused variable 'sc' [-Werror=unused-variable]
  struct motg_softc *sc = pipe->device->bus->hci_private;
                     ^
/usr/src/sys/dev/usb/motg.c: In function 'motg_device_ctrl_done':
/usr/src/sys/dev/usb/motg.c:1882:20: error: unused variable 'otgpipe' [-Werror=unused-variable]
  struct motg_pipe *otgpipe = (struct motg_pipe *)xfer->pipe;
                    ^
/usr/src/sys/dev/usb/motg.c: In function 'motg_device_data_start1':
/usr/src/sys/dev/usb/motg.c:1934:11: error: variable 'val' set but not used [-Werror=unused-but-set-variable]
  uint32_t val;
           ^
/usr/src/sys/dev/usb/motg.c: In function 'motg_device_data_close':
/usr/src/sys/dev/usb/motg.c:2333:21: error: unused variable 'sc' [-Werror=unused-variable]
  struct motg_softc *sc = pipe->device->bus->hci_private;
                     ^
/usr/src/sys/dev/usb/motg.c: In function 'motg_device_data_done':
/usr/src/sys/dev/usb/motg.c:2359:20: error: unused variable 'otgpipe' [-Werror=unused-variable]
  struct motg_pipe *otgpipe = (struct motg_pipe *)xfer->pipe;
                    ^
/usr/src/sys/dev/usb/motg.c: In function 'motg_device_xfer_abort':
/usr/src/sys/dev/usb/motg.c:2423:26: error: 'sc' undeclared (first use in this function)
    cv_wait(&xfer->hccv, &sc->sc_lock);
                          ^
/usr/src/sys/dev/usb/motg.c:2423:26: note: each undeclared identifier is reported only once for each function it appears in

Fixed in -current and pullup requested.


After that, I compiled a kernel without any USB and it paniced on boot:

What's the kernel config file here?


DCDC1: 1500 mV] [DCDC2: 1325 mV] [DCDC3: 1100 mV]
omapdmtimer0 at obio0 addr 0x48040000-0x48040fff intr 68: DMTIMER2
omapdmtimer1 at obio0 addr 0x44e31000-0x44e31fff intr 67: DMTIMER1ms
omapdmtimer2 at obio0 addr 0x48044000-0x48044fff intr 92: DMTIMER4
omapwdt32k0 at obio0 addr 0x44e35000-0x44e35fff: rev 0.1
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Fatal kernel mode data abort: 'External Non-Linefetch Abort (S)'
trapframe: 0x80681ee8
FSR=00001808, FAR=e2331010, spsr=60000193
r0 =00000000, r1 =e2331000, r2 =00000010, r3 =00000002
r4 =000003e8, r5 =9ffa0120, r6 =8063a240, r7 =00000002
r8 =80651254, r9 =806431c0, r10=87ffc01b, r11=80681f54
r12=8030db64, ssp=80681f38, slr=80444d6c, pc =8030db64

Stopped in pid 0.1 (system) at  netbsd:generic_bs_w_4:  str r3, [r1, r2]

backtrace required, please


Ideas?

John


NIck


Home | Main Index | Thread Index | Old Index