Opened 2 years ago

Closed 2 years ago

#11844 closed defect (fixed)

XO-1 external SD card slot detection fails in tests, works with file access

Reported by: earias Owned by: Quozl
Priority: high Milestone:
Component: ofw - open firmware Version: Development firmware
Keywords: Cc: reuben, wmb
Blocked By: Blocking:
Deployments affected: Action Needed: no action
Verified: no

Description (last modified by Quozl)

With SD either present or absent, the external SD card slot test fails:

ok test ext:0
No card in SD slot
ok 

However filesystem access works fine.

The test should not fail if filesystem access is possible.

Change History (17)

comment:1 Changed 2 years ago by earias

  • Priority changed from normal to high

comment:2 Changed 2 years ago by Quozl

  • Action Needed changed from never set to add to build
  • Description modified (diff)
  • Milestone Not Triaged deleted
  • Owner changed from quozl@… to Quozl
  • Status changed from new to assigned
  • Version changed from 1.0 Hardware to Development firmware

Thank you for your problem report.

Fixed by svn 2975, a missing external SD card will no longer halt the test.

Please test with http://dev.laptop.org/~quozl/q2f10jb.rom

Related ticket: #11612.

comment:3 Changed 2 years ago by earias

I have tested http://dev.laptop.org/~quozl/q2f10jb.rom.

Don't show error, but dont detect external sd card.

comment:4 follow-up: Changed 2 years ago by Quozl

Yes, certain SD cards are not detectable, in either Q2E45 or Q2F10. I have one here. Other SD cards work fine.

Please use the show-cid command in Q2F10 to obtain the manufacturing identity of the SD card, like this:

ok select ext:0
ok show-cid

This should print one line of text, please tell me what it says.

comment:5 Changed 2 years ago by earias

Correctly.
The system detects external sd card only if you have disabled-security.

Can you generate q2f11 with #11612 solution?

comment:6 Changed 2 years ago by Quozl

  • Action Needed changed from add to build to no action
  • Resolution set to fixed
  • Status changed from assigned to closed

Q2F11 released.

comment:7 Changed 2 years ago by reuben

  • Resolution fixed deleted
  • Status changed from closed to reopened

It's not clear why this was closed.

comment:8 in reply to: ↑ 4 Changed 2 years ago by reuben

Replying to Quozl:

Yes, certain SD cards are not detectable, in either Q2E45 or Q2F10. I have one here. Other SD cards work fine.

Please use the show-cid command in Q2F10 to obtain the manufacturing identity of the SD card, like this:

ok select ext:0
ok show-cid

This should print one line of text, please tell me what it says.

There are thousands of USB and SD cards in use around the world. OFW should be able to detect the presence of them all; the customer should not have to identify each card, thousands, in use in their deployment.

comment:9 Changed 2 years ago by reuben

  • Cc reuben added

comment:10 Changed 2 years ago by reuben

  • Cc wmb added

Test using q2e41:

-Insert SD Card
-run test /sd
-No result displayed - Assume Pass

-Remove SD Card
-run test /sd
-"No Card Inserted Displayed" displayed

-Insert SD Card
-Boot XO run automatic full tests
-Test /pci/sd@c,1
-No result displayed - Assume Pass

Switch to q2f11:

-Insert (SAME) SD Card
-Launch Graphic Test Menu using left rocker
-Switch to SD
-testing ext:0
-No Card Inserted

-Remove SD Card
-Launch Graphic Test Menu using left rocker
-Switch to SD
-testing ext:0
-No Card Inserted Displayed

-Insert SD Card
-Boot XO run automatic full tests
-testing ext:0 Displayed
-No Card Inserted

The perception from the team at Ceibal is that when the Graphical test menu was back ported to the XO -1 the SD port mapping was not changed correctly.

comment:11 Changed 2 years ago by wmb@…

svn 2990 seems to improve the situation. It fixes a problem that is specific to the SDHCI hardware implementation on XO-1, in which it is necessary to turn on some enable bits before the card insertion bits become visible.

comment:12 Changed 2 years ago by Quozl

  • Action Needed changed from no action to test in build

reviewed and tested svn 2990. reuben, please test build http://dev.laptop.org/~quozl/q2f11jc.rom

comment:13 Changed 2 years ago by Quozl

Any update?

comment:14 Changed 2 years ago by reuben

Waiting for testing.

comment:15 Changed 2 years ago by reuben

Tested okay by earias

comment:16 Changed 2 years ago by Quozl

  • Action Needed changed from test in build to add to release
  • Description modified (diff)
  • Summary changed from Firmware q2f10: Hardware Test: SD shows error. to XO-1 external SD card slot detection fails in tests, works with file access

Thanks, will be in next release.

Adjusted ticket summary and description to match what has been learned.

comment:17 Changed 2 years ago by Quozl

  • Action Needed changed from add to release to no action
  • Resolution set to fixed
  • Status changed from reopened to closed

Is in Q2F12.

Note: See TracTickets for help on using tickets.