LinuxQuestions.org
Review your favorite Linux distribution.
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 02-01-2010, 11:41 PM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Thumbs up Sdcard on ARM linux


Dear All,

I am looking for a SDcard Sandisk(2GB) linux driver,so that i can use that on AM(9 based based.I am using using Cirrus ARM board.Please help me seraching that driver,os that i can move ahead.

Regards,
Ravi
 
Old 02-02-2010, 09:20 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
SD card support is probably part of the hardware vendor product. You should seek help from them. AFAIK, there is no built-in SD card support on the Cirrus Logic SOCs, so access to SD cards would have to come through a proprietary means.
--- rod.
 
Old 02-02-2010, 11:41 PM   #3
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

Dear Sir,

I have got a driver from which i am trying to run using SPI.The driver log is mentioned below:

#mknod /dev/spisd b 36 0
#cd /home
/home # insmod ep93xx_SD_blk.ko
card size = 1977614336, sector size = 31, wp_grp_size = 127, wp_grp_enable = y
S:00001000 M:fffff000
Sector Zero Partition offset = 87
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0374000
[00000000] *pgd=c5408031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
Modules linked in: ep93xx_SD_blk lirc_edb9307A
CPU: 0
PC is at kfree+0x48/0x9c
LR is at sd_init+0x92c/0xa80 [ep93xx_SD_blk]
pc : [<c0084590>] lr : [<bf00792c>] Not tainted
sp : c0361ca0 ip : c0361cbc fp : c0361cb8
r10: bf004fc0 r9 : 00000014 r8 : 00000014
r7 : c15f9080 r6 : c0361cca r5 : a0000013 r4 : c0361cca
r3 : 00000000 r2 : 00000000 r1 : 000c0361 r0 : c0214c20
Flags: nZcv IRQs off FIQs on Mode SVC_32 Segment user
Control: C000717F
Table: C0374000 DAC: 00000015
Process insmod (pid: 416, stack limit = 0xc0360250)
Stack: (0xc0361ca0 to 0xc0362000)
1ca0: c0361cca 00000087 00000001 c0361f00 c0361cbc bf00792c c0084558 00000079
1cc0: c0361ccc c00b6a94 00007b50 00000000 00000000 00000000 00000000 00000000
1ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1dc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1de0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1e80: 00000000 00000000 000a0200 bcff3f06 00000087 003ae039 00000000 00000000
1ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1ec0: 00000000 00000000 0049aa55 ff000000 02000050 0040ff00 95000000 00000000
1ee0: 00005008 bf004fc0 c542ac00 c542adf0 bf005008 c0361fa4 c0361f04 c005edcc
1f00: bf007010 00000000 bf004fcc c0360000 00000000 00000000 00000000 00000000
1f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1f40: 00000008 00000012 c68092c0 c15e1a80 c68084f8 c6808430 c6808520 c6806000
1f60: 00000000 00000077 00000077 c6808184 c6808548 00000000 00000000 400762b0
1f80: 00004000 befe7e6d 00000080 c0020044 c0360000 00012008 00000000 c0361fa8
1fa0: c001fea0 c005eca8 400762b0 00004000 00012018 00003676 00012008 00000000
1fc0: 400762b0 00004000 befe7e6d 00000003 00012018 befe7e66 00012008 00008ce0
1fe0: 40063d64 befe7cd4 00008ef8 40063d70 20000010 00012018 00000000 00000000
Backtrace:
[<c0084548>] (kfree+0x0/0x9c) from [<bf00792c>] (sd_init+0x92c/0xa80 [ep93xx_SD_blk])
r6 = 00000001 r5 = 00000087 r4 = C0361CCA
[<bf007000>] (sd_init+0x0/0xa80 [ep93xx_SD_blk]) from [<c005edcc>] (sys_init_module+0x134/0x15d8)
r7 = BF005008 r6 = C542ADF0 r5 = C542AC00 r4 = BF004FC0
[<c005ec98>] (sys_init_module+0x0/0x15d8) from [<c001fea0>] (ret_fast_syscall+0x0/0x2c)
Code: e3120901 1590000c e5903000 e2133080 (05833000)
Segmentation fault

This code we are trying for a custom made EP9307A processor based board.
The first 3 lines are correct output,as expected.

But i am not able mount "/dev/spisd" on to a directory,to access the contents of it.It is giving me error "no device of this name is existing"

Please help me in sorting this issue.

Regards,
Ravi

Last edited by ravi_chobey; 02-02-2010 at 11:42 PM.
 
Old 02-03-2010, 08:03 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Clearly, the driver is broken. Are you sure it was built for the architecture on which you are trying to run it? Have you supplied all arguments it may require?
--- rod.
 
  


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
Linux Mint 7 does not Recognize SDCard Drive mejohnsn Linux Mint 8 10-31-2009 07:33 AM
Compile the linux2.6.14.1 for arm must ues the arm-linux-gcc-3.4.4? frankyue Linux - Embedded & Single-board computer 2 12-20-2008 07:28 AM
Thinkpad T60 SD slot bootable? Plan to install Slax linux onto a 4 or 8 GB SDcard jang Linux - Laptop and Netbook 3 12-17-2006 08:33 AM
SDCard Partition Problems ch4se Linux - Hardware 1 08-14-2005 07:44 PM

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

All times are GMT -5. The time now is 06:03 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