From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25297 invoked by alias); 28 Jan 2014 09:18:42 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 25277 invoked by uid 89); 28 Jan 2014 09:18:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay03.alfahosting-server.de Received: from relay03.alfahosting-server.de (HELO relay03.alfahosting-server.de) (109.237.142.239) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 28 Jan 2014 09:18:37 +0000 Received: by relay03.alfahosting-server.de (Postfix, from userid 1001) id B399D32C0020; Tue, 28 Jan 2014 10:18:33 +0100 (CET) X-Spam-DCC: : Received: from alfa3017.alfahosting-server.de (alfa3017.alfahosting-server.de [109.237.140.28]) by relay03.alfahosting-server.de (Postfix) with ESMTPS id 5DF6B32C0288; Tue, 28 Jan 2014 10:18:32 +0100 (CET) Received: from itrrrauch (p578a450a.dip0.t-ipconnect.de [87.138.69.10]) by alfa3017.alfahosting-server.de (Postfix) with ESMTPA id E5DD32934F50; Tue, 28 Jan 2014 10:18:31 +0100 (CET) From: "Richard Rauch" To: =?UTF-8?B?JyJJbGlqYSBLb2NobyBb0JjQu9C40ZjQsCDQmtC+0YfQvl0iJw==?= , "'Valentin BOUSSON'" Cc: Date: Tue, 28 Jan 2014 09:18:00 -0000 Message-ID: <00fc01cf1c09$ec4f7f30$c4ee7d90$@itrgmbh.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97.3/18407/Tue Jan 28 08:32:25 2014 X-IsSubscribed: yes Subject: [ECOS] Accessing SDHC Cards with 8 GB X-SW-Source: 2014-01/txt/msg00031.txt.bz2 Dear All, has anybody tried already to read from SDHC Cards >=3D 8GByte? We ported SDCard driver to our hardware, which is working well with a bunch= of SDCards. But with SDCards >=3D 8 GByte we have problems. We found , that the eCos FileSystem/Partition Manager is not able to interp= ret the MBR. After analyzing we found strange content of MBR, which we cannot explain. Even if SDCard is formatted with GUUID/GPT format, in MBR/LBA0 there should= be a valid partition entry at offset 0x1BE, which protects the SDCard cont= ent with a "protective" MBR partition entry with code 0xEE. But HexDump of our SDCard shows only text, where the partition table should= be. We verified with formatting the card on different systems (Windows 7 6= 4 Bit, Windows XP 32 Bit), but result is the same. So the MBR in our opinion actually looks invalid, but the SDCard is readabl= e on every PC bases system. We still have not found the key hint in web, how to interpret such an MBR. = Maybe somebody has already an idea. By the way... we found also, that some "8GB Cards" have a few sectors less = than 8GB and this cards are formatted in well known manner. Content of MBR (partition table at 0x1BE has text content only): 000 - EB 58 90 4D 53 44 4F 53 35 2E 30 00 02 08 22 00 |?X.MSDOS 5.0.....=20 010 - 02 00 00 00 00 F8 00 00 3F 00 FF 00 00 00 00 00 |.....?.. ..?.....=20 020 - 00 E0 EC 00 1B 3B 00 00 00 00 00 00 02 00 00 00 |.??..... ........=20 030 - 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |........ ........=20 040 - 00 00 29 91 D3 18 B0 4E 4F 20 4E 41 4D 45 20 20 |....?..N O.NAME..=20 050 - 20 20 46 41 54 33 32 20 20 20 33 C9 8E D1 BC F4 |..FAT32. ..3??.?=20 060 - 7B 8E C1 8E D9 BD 00 7C 88 4E 02 8A 56 40 B4 08 |.?N?... .N.?V...=20 070 - CD 13 73 05 B9 FF FF 8A F1 66 0F B6 C6 40 66 0F |?.s.??? ?f..?.f.=20 080 - B6 D1 80 E2 3F F7 E2 86 CD C0 ED 06 41 66 0F B7 |.?.?..?. ???.Af..=20 090 - C9 66 F7 E1 66 89 46 F8 83 7E 16 00 75 38 83 7E |?f.?f.F? ?...u8?.=20 0A0 - 2A 00 77 32 66 8B 46 1C 66 83 C0 0C BB 00 80 B9 |..w2f.F. f??....?=20 0B0 - 01 00 E8 2B 00 E9 48 03 A0 FA 7D B4 7D 8B F0 AC |..?..?H. .?....?.=20 0C0 - 84 C0 74 17 3C FF 74 09 B4 0E BB 07 00 CD 10 EB |.?t..?t. .....?.?=20 0D0 - EE A0 FB 7D EB E5 A0 F9 7D EB E0 98 CD 16 CD 19 |?.?.??.? .??.?.?.=20 0E0 - 66 60 66 3B 46 F8 0F 82 4A 00 66 6A 00 66 50 06 |f.f.F?.. J.fj.fP.=20 0F0 - 53 66 68 10 00 01 00 80 7E 02 00 0F 85 20 00 B4 |Sfh..... ........=20 100 - 41 BB AA 55 8A 56 40 CD 13 0F 82 1C 00 81 FB 55 |A.?U?V.? ......?U=20 110 - AA 0F 85 14 00 F6 C1 01 0F 84 0D 00 FE 46 02 B4 |?....??. ....?F..=20 120 - 42 8A 56 40 8B F4 CD 13 B0 F9 66 58 66 58 66 58 |B?V..??. .?fXfXfX=20 130 - 66 58 EB 2A 66 33 D2 66 0F B7 4E 18 66 F7 F1 FE |fX?.f3?f ..N.f.??=20 140 - C2 8A CA 66 8B D0 66 C1 EA 10 F7 76 1A 86 D6 8A |??f.?f? ?..v..?=20 150 - 56 40 8A E8 C0 E4 06 0A CC B8 01 02 CD 13 66 61 |V.????.. ?...?.fa=20 160 - 0F 82 54 FF 81 C3 00 02 66 40 49 0F 85 71 FF C3 |..T?.?.. f.I..q??=20 170 - 4E 54 4C 44 52 20 20 20 20 20 20 00 00 00 00 00 |NTLDR... ........=20 180 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |........ ........=20 190 - 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |........ ........=20 1A0 - 00 00 00 00 00 00 00 00 00 00 00 00 0D 0A 52 65 |........ ......Re=20 1B0 - 6D 6F 76 65 20 64 69 73 6B 73 20 6F 72 20 6F 74 |move.dis ks.or.ot=20 1C0 - 68 65 72 20 6D 65 64 69 61 2E FF 0D 0A 44 69 73 |her.medi a.?..Dis=20 1D0 - 6B 20 65 72 72 6F 72 FF 0D 0A 50 72 65 73 73 20 |k.error? ..Press.=20 1E0 - 61 6E 79 20 6B 65 79 20 74 6F 20 72 65 73 74 61 |any.key. to.resta=20 1F0 - 72 74 0D 0A 00 00 00 00 00 AC CB D8 00 00 55 AA |rt...... ..??..U? Thanks Richard -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss