LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-12-2008, 06:47 PM   #1
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 1
USB issues after switching to PSRAM


Hi everyone,

My development board has two memory banks, SDRAM (128MB) and PSRAM (16MB). I've got the linux kernel booting from only the PSRAM, but I can't get a USB Flash Drive to work properly. It is being detected, but I get the following messages:
---------------------------------------------------------------
usb 1-1: reset high speed USB device using fsl-ehci and address 4
sd 2:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
---------------------------------------------------------------

This ONLY occurs when I use the PSRAM on the board. I've made no changes to the drivers and my changes to kernel source were minimal. I only changed the following (zreladdr, param_phys-y, PHYS_OFFSET).

I'm at a complete loss on how to fix this but it's critical for me to use PSRAM. Any help is greatly appreciated.

Thanks!
 
Old 08-13-2008, 04:08 PM   #2
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by sg83 View Post
Hi everyone,

My development board has two memory banks, SDRAM (128MB) and PSRAM (16MB). I've got the linux kernel booting from only the PSRAM, but I can't get a USB Flash Drive to work properly. It is being detected, but I get the following messages:
---------------------------------------------------------------
usb 1-1: reset high speed USB device using fsl-ehci and address 4
sd 2:0:0:0: [sda] Result: hostbyte=0x05 driverbyte=0x00
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
---------------------------------------------------------------

This ONLY occurs when I use the PSRAM on the board. I've made no changes to the drivers and my changes to kernel source were minimal. I only changed the following (zreladdr, param_phys-y, PHYS_OFFSET).

I'm at a complete loss on how to fix this but it's critical for me to use PSRAM. Any help is greatly appreciated.

Thanks!
To add some more info, the /proc/<pid>/status for the usb-storage processes shows that it is in the "D" state forever. It also shows:

voluntary_ctxt_switches: 182
nonvoluntary_ctxt_switch: 50

When I use SDRAM, the nonvoluntary_ctxt_switches are not nearly as high
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinking of switching to Linux, have questions and issues JC Denton Linux - Newbie 18 04-30-2008 11:47 PM
Switching over issues andrew285 SUSE / openSUSE 24 07-22-2006 09:55 AM
Possible Issues from switching motherboard & processor? metebelis13 Linux - General 1 03-11-2006 07:56 PM
Unusual issues switching from Slamd64 to Slackware Dymitry Slackware 2 02-12-2006 11:21 PM
Resolv.conf issues when switching from eth to ppp Supp0rtLinux Linux - Networking 2 12-30-2001 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration