Skip to contentSkip to conversation

v3.19: Nokia N900 - usb nokia gadget crash

DISCUSSION Pali Rohár 2 participants 6 messages Jan 31, 2015 – Feb 2, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

when I try to modprobe g_nokia.ko gadget module on n900 device, it produce tons on lines to display and then crash and reboot device. So its not working and I (without Nokia (TM) serial console I cannot debug it).

Signature · 2 lines
Pali Rohár
[email protected]
#1 lore raw
Quoted 6 lines · On Saturday 31 January 2015 10:06:11 Pali Rohár wrote:

Hello,

when I try to modprobe g_nokia.ko gadget module on n900 device, it produce tons on lines to display and then crash and reboot device. So its not working and I (without Nokia (TM) serial console I cannot debug it).

When I compile g_nokia into zImage (not as external module) then it kernel loads correctly and usb is working.

Any idea why g_nokia as external kernel module cause problems, but compiled into zImage is working??

Signature · 2 lines
Pali Rohár
[email protected]
#2 lore raw
Quoted 8 lines · Pali Rohár
Quoted 6 lines · On Saturday 31 January 2015 10:06:11 Pali Rohár wrote:

Hello,

when I try to modprobe g_nokia.ko gadget module on n900 device, it produce tons on lines to display and then crash and reboot device. So its not working and I (without Nokia (TM) serial console I cannot debug it).

Quoted 5 lines

When I compile g_nokia into zImage (not as external module) then it kernel loads correctly and usb is working.

Any idea why g_nokia as external kernel module cause problems, but compiled into zImage is working??

what I got here is a WARNING from f_phonet only, I'll look into it. Keep in mind I don't have N900 available, testing with beagleboneblack and AM437x SK.

Signature · 1 line
balbi
#3 lore raw
Quoted 12 lines · Felipe Balbi
Quoted 11 lines · Pali Rohár
Quoted 6 lines · On Saturday 31 January 2015 10:06:11 Pali Rohár wrote:

Hello,

when I try to modprobe g_nokia.ko gadget module on n900 device, it produce tons on lines to display and then crash and reboot device. So its not working and I (without Nokia (TM) serial console I cannot debug it).

When I compile g_nokia into zImage (not as external module) then it kernel loads correctly and usb is working.

Quoted 6 lines
Quoted 2 lines

Any idea why g_nokia as external kernel module cause problems, but compiled into zImage is working??

what I got here is a WARNING from f_phonet only, I'll look into it. Keep in mind I don't have N900 available, testing with beagleboneblack and AM437x SK.

looks like there's a bug with MUSB too which needs fixing for that. Did you get "inconsistent lock stae" WARN ?

Signature · 1 line
balbi
#4 lore raw
Quoted 17 lines · On Monday 02 February 2015 23:27:27 Felipe Balbi wrote:
Quoted 16 lines · Felipe Balbi
Quoted 14 lines · Pali Rohár
Quoted 6 lines · On Saturday 31 January 2015 10:06:11 Pali Rohár wrote:

Hello,

when I try to modprobe g_nokia.ko gadget module on n900 device, it produce tons on lines to display and then crash and reboot device. So its not working and I (without Nokia (TM) serial console I cannot debug it).

When I compile g_nokia into zImage (not as external module) then it kernel loads correctly and usb is working.

Any idea why g_nokia as external kernel module cause problems, but compiled into zImage is working??

Quoted 6 lines
Quoted 3 lines

what I got here is a WARNING from f_phonet only, I'll look into it. Keep in mind I don't have N900 available, testing with beagleboneblack and AM437x SK.

looks like there's a bug with MUSB too which needs fixing for that. Did you get "inconsistent lock stae" WARN ?

I cannot read any message after I modprobe g_nokia.ko

I just see that kernel try to overwrite couple of lines on n900 display and after 1-3 seconds device reboot.

Signature · 2 lines
Pali Rohár
[email protected]
#5 lore raw
Quoted 22 lines · Pali Rohár
Quoted 21 lines · On Monday 02 February 2015 23:27:27 Felipe Balbi wrote:
Quoted 19 lines · Felipe Balbi
Quoted 8 lines · Pali Rohár
Quoted 6 lines · On Saturday 31 January 2015 10:06:11 Pali Rohár wrote:

Hello,

when I try to modprobe g_nokia.ko gadget module on n900 device, it produce tons on lines to display and then crash and reboot device. So its not working and I (without Nokia (TM) serial console I cannot debug it).

Quoted 6 lines

When I compile g_nokia into zImage (not as external module) then it kernel loads correctly and usb is working.

Any idea why g_nokia as external kernel module cause problems, but compiled into zImage is working??

what I got here is a WARNING from f_phonet only, I'll look into it. Keep in mind I don't have N900 available, testing with beagleboneblack and AM437x SK.

Quoted 7 lines
Quoted 2 lines

looks like there's a bug with MUSB too which needs fixing for that. Did you get "inconsistent lock stae" WARN ?

I cannot read any message after I modprobe g_nokia.ko

I just see that kernel try to overwrite couple of lines on n900 display and after 1-3 seconds device reboot.

alright, I guess I found both bugs. I'll send patches soon.

Signature · 1 line
balbi