Gentoo Archives: gentoo-user

From: john <jdm@×××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB Problems
Date: Sun, 12 Jun 2011 19:04:46
Message-Id: 20110612194520.0f649340@arcticwolf.myzen.co.uk
In Reply to: Re: [gentoo-user] USB Problems by meino.cramer@gmx.de
1 On Sun, 12 Jun 2011 16:45:38 +0200
2 meino.cramer@×××.de wrote:
3
4 > john <jdm@×××××××××××××××××××.uk> [11-06-12 16:36]:
5 > > Gents
6 > >
7 > > Whenever I insert external USB device my machine locks and I have
8 > > to do a hard reset (sys req does not even work). I have tried this
9 > > in a graphical environment and without. Machine boots up fine with
10 > > USB keyboard and mouse but will not boot up with usb storage
11 > > (memory stick
12 > > - tried several)
13 > >
14 > > I have recently upgrade kernel to 2.6.38-r6 when this error started
15 > > (approx). Hav also tried 2.6.38-r7 (which according to bugzilla
16 > > should fix an issue similar to this) the error still happens.
17 > >
18 > > Any suggestions on kernel config options, debugging would be
19 > > appreciated. And how to trap full error message.
20 > >
21 > > Error message alongs these lines
22 > >
23 > > Kernel panic not syncing - fatal exception in iterrupt
24 > > ksoftirqd/1 Not tainted
25 > >
26 > >
27 > >
28 > >
29 > > --
30 > > --------------
31 > > --------------
32 > > John D Maunder
33 > > jdm@×××××××××××××××××××.uk
34 > >
35 >
36 > Hi John,
37 >
38 > may be this could help to track th eerror more closely:
39 > Recompile the kernel with CONFIG_USB_DEBUG set.
40 > If not already done, enable CONFIG_MAGIC_SYSRQ and
41 > read about the available commands in the according
42 > docs under /usr/src/linux/Documentation/.
43 > This is a overall life saver in many other cases too.
44 > But it may be a security hole also -- you can disable
45 > it in /proc/ later.
46 > If possible change /etc/fstab to mount the partition
47 > to which logging will go with the "sync" option so
48 > every log entry will go directly onto the bare metal
49 > instead of a RAM buffer.
50 >
51 > Reboot into console mode (no X).
52 > cd to the logging directory and
53 > do a tail -f onto the logfile in question
54 >
55 > Insert the "USB stick of death" ;) and
56 > see, whether you can see anything in the
57 > tailed log.
58 >
59 > If not do the magic sysrq dance to sync hds,
60 > remount readonly and finally reboot.
61 >
62 > Take a closer look into the resulting logs.
63 >
64 > Good luck!
65 >
66 > Nevertheless have a nice weekend!
67 > Best regards,
68 > mcc
69 >
70 >
71 >
72
73 Thanks mmc,
74 CONFIG_MAGIC_SYSRQ and CONFIG_USB_DEBUG set to y
75
76 When I plug in USB device SYSREQ does not work. I have tested when
77 system is normal and all ok with SYSREQ so USB device is locking up
78 system completely.
79
80 I have put sync in mount table but when device is inserted error log
81 is not being produced (in /var/log/messages, etc). I may end up having
82 to take a photo of error log(lol). Or there maybe some other way of
83 catching error which Gentoo gurus may advise.
84
85 I have tried 3 memory sticks and they all lock system up. These work
86 on another PC using Arch and work on this PC dual booting with Windows.
87 I have a usb hard drive which works ok so it is a memory stick only
88 issue!!!!????
89
90 Hmmm.
91
92 --
93 --------------
94 --------------
95 John D Maunder
96 jdm@×××××××××××××××××××.uk

Replies

Subject Author
Re: [gentoo-user] USB Problems meino.cramer@×××.de