Skip to contentSkip to conversation

DoC Debug Level Issue

DISCUSSION David Krause 2 participants 2 messages Mar 9, 2003 – Mar 11, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I have a 64 Mb DoC that boots Linux using GRUB. However, depending on what I set the MTD debug level to, the system will either work well, or hang when accessing the DoC. I am using kernel 2.4.18 with the MTD CVS as of about one week ago. The device has one ext2 partition on it.

With the debug verbosity set to 3 (highest), the system boots fine, but rapidly fills up the kernel log file, especially when the DoC is the only device in the system. With the debug level set to 2 or lower, the system hangs at the point during boot where the kernel tries to launch the init process.

If I boot the system from a hard drive, and then mount the DoC as a separate filesystem, I get similar hang-ups when I try to access the device, again strictly depending on the debug level. Some accesses will work, but an e2fsck will always hang shortly after starting. With the debug level at 3, the e2fsck completes normally in a very short time period.

To clarify, when I say "hang-up", the process I started from the command line never completes, and cannot be killed. I've only been able to access the device by rebooting after this happens. The last thing I usually see in the kernel log is "NFTL read request of ....", but there is no corresponding message that the read request completed.

I've searched the mailing list and seen that several people have posted about a similar issue, but no responses were ever sent to the list.

Any suggestions are appreciated.

-- Dave

#1 lore raw
Quoted 11 lines

I have a 64 Mb DoC that boots Linux using GRUB. However, depending on what I set the MTD debug level to, the system will either work well, or hang when accessing the DoC. I am using kernel 2.4.18 with the MTD CVS as of about one week ago. The device has one ext2 partition on it.

With the debug verbosity set to 3 (highest), the system boots fine, but rapidly fills up the kernel log file, especially when the DoC is the only device in the system. With the debug level set to 2 or lower, the system hangs at the point during boot where the kernel tries to launch the init process.

Quoted 3 lines

Any suggestions are appreciated.

-- Dave

I have been investigating a similar problem with our MPC8260 PCB with a 3.3v 48M DOC using 2.4.10 Kernel.

Found the DOC resets during DoC_ScanChips in DOC2000.c when an invalid second floor is selected. The code locks up unless the floating data bus reads high. Later code seems to re-initialise the DOC....

Try setting MAX_FLOORS in DOC2000.h to 1. Temporary fix but worked for me.

This function does not appear to have changed in later kernels.

Hardware not Linux expert so sorry if email format not correct

John Day

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error please return the message immediately to the sender and delete the message from your systems. Thank you.