2008-11-06 10:35:56     SD-Card problem with BF537 and uClinux2006R2

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-11-06 10:35:56     SD-Card problem with BF537 and uClinux2006R2

Patrick Hotz (GERMANY)

Message: 64775   

 

I have big problems with my SD-Card

 

The SD-Card is connected with SPI and PF6 (CS 4)....

The card is a 64MB SanDisk SD-Card

I use a custom board and uClinux 2006R2 / u-boot 1.1.3

 

root:~> cat /proc/spi_mmc

Driver build date: Nov  6 2008

Driver author: Hans Eklund(hans@rubico.se)

SPI CLK: 400 KHz

SPI CS : 4

Error/Status log[0xNEW, 0x0000, 0xOLDEST]. Total: 0

E:  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000

0x0000 0x0000 0x0000 0x0000 0x0000

S:  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000

0x0000 0x0000 0x0000 0x0000 0x0000

No MMC/SD card found.

 

 

 

root:~> mkdosfs /dev/mmc

mkdosfs 2.10 (22 Sep 2003)

New MMC/SD card found: 61 MB | CS channel on PF4

spi_mmc: spi_mmc1

root:~> Hardware Trace:

0 Target : <0x00004d6c> { _dump_stack + 0x0 }

   Source : <0x000ba080> { _elv_dequeue_request + 0x3c }

1 Target : <0x000ba080> { _elv_dequeue_request + 0x3c }

   Source : <0x000ba052> { _elv_dequeue_request + 0xe }

2 Target : <0x000ba044> { _elv_dequeue_request + 0x0 }

   Source : <0x00101ebe> { _spi_mmc_transfer_worker + 0x116 }

3 Target : <0x00101eb8> { _spi_mmc_transfer_worker + 0x110 }

   Source : <0x000ce54c> { _add_timer_randomness + 0x118 }

4 Target : <0x000ce546> { _add_timer_randomness + 0x112 }

   Source : <0x0000a2f8> { ___wake_up + 0x2c }

5 Target : <0x0000a2e0> { ___wake_up + 0x14 }

   Source : <0x0000a2ca> { ___wake_up_common + 0x52 }

6 Target : <0x0000a2c4> { ___wake_up_common + 0x4c }

   Source : <0x0000a294> { ___wake_up_common + 0x1c }

7 Target : <0x0000a278> { ___wake_up_common + 0x0 }

   Source : <0x0000a2dc> { ___wake_up + 0x10 }

8 Target : <0x0000a2cc> { ___wake_up + 0x0 }

   Source : <0x000ce542> { _add_timer_randomness + 0x10e }

9 Target : <0x000ce532> { _add_timer_randomness + 0xfe }

   Source : <0x000ce564> { _add_timer_randomness + 0x130 }

10 Target : <0x000ce55c> { _add_timer_randomness + 0x128 }

   Source : <0x000ce370> { _credit_entropy_store + 0x2c }

11 Target : <0x000ce344> { _credit_entropy_store + 0x0 }

   Source : <0x000ce558> { _add_timer_randomness + 0x124 }

12 Target : <0x000ce550> { _add_timer_randomness + 0x11c }

   Source : <0x000ce530> { _add_timer_randomness + 0xfc }

13 Target : <0x000ce524> { _add_timer_randomness + 0xf0 }

   Source : <0x000ce51e> { _add_timer_randomness + 0xea }

14 Target : <0x000ce506> { _add_timer_randomness + 0xd2 }

   Source : <0x000ce4fe> { _add_timer_randomness + 0xca }

15 Target : <0x000ce4f6> { _add_timer_randomness + 0xc2 }

   Source : <0x000ce56e> { _add_timer_randomness + 0x13a }

Stack from 00247eec:

        01a13000 000ba084 01a9c7b4 00000008 00006280 02400100 00101eb8 00101ec2

        01a9d1c8 00226720 00226728 0000001f 0040a000 00000001 00101da8 0001c16a

        001a4c1c 00226720 00226728 0000ffff 00226738 001ce4c4 00000000 00000000

        00246000 00246000 00000000 00000000 0001c936 00226730 00226720 00237f44

        00226728 00247f98 00000000 00000000 00000000 00000000 00000001 00000000

        00246000 00010000 00000000 00000000 00234820 0000ad98 00100100 00200200

Call Trace:

       <0x0001f85a> { _kthread + 0xd6 }

       <0x0001c834> { _worker_thread + 0x0 }

       <0x0001f784> { _kthread + 0x0 }

       <0x0000192e> { _kernel_thread_helper + 0x6 }

 

 

kernel BUG at block/elevator.c:534!

Kernel panic - not syncing: BUG!

 

 

 

i dont know what i can do......

 

 

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2008-11-06 10:51:32     Re: SD-Card problem with BF537 and uClinux2006R2

Frank Van Hooft (CANADA)

Message: 64776   

 

You're using ucLinux 2006R2 which is pretty old. I'm using the SD card OK on a BF537 running 2008R1. Are you able to upgrade?

QuoteReplyEditDelete

 

 

2008-11-06 16:25:48     Re: SD-Card problem with BF537 and uClinux2006R2

Patrick Hotz (GERMANY)

Message: 64784   

 

My problem is that i must use u-boot 1.1.3 on my board and i was not successful to run a newer uClinux-dist.

I try it tomorrow to use the 2008R1.5.

 

i am new with this system and i must learn much more to understand anything....

TranslateQuoteReplyEditDelete

 

 

2008-11-06 16:32:44     Re: SD-Card problem with BF537 and uClinux2006R2

Michael Hennerich (GERMANY)

Message: 64786   

 

update u-boot

 

-Michael

Attachments

    Outcomes