[Macchiato] SD problems

Ard Biesheuvel ard.biesheuvel at linaro.org
Fri Jun 16 09:35:11 BST 2017


On 16 June 2017 at 10:28, Marcin Wojtas <mw at semihalf.com> wrote:
> Steve,
>
> 2017-06-15 18:07 GMT+02:00 Steve McIntyre <steve at einval.com>:
>> On Thu, Jun 15, 2017 at 02:35:31AM +0200, Marcin Wojtas wrote:
>>>2017-06-15 1:50 GMT+02:00 Steve McIntyre <steve at einval.com>:
>>>>
>>>> On Wed, Jun 14, 2017 at 08:09:49PM +0200, Marcin Wojtas wrote:
>>>> >Hi Steve,
>>>> >
>>>> >I tried two different SD cards, both worked, so maybe I was lucky. Anyway, are
>>>> >you sure, you have MBR partition table + the first (boot) partition starts at
>>>> >4096?
>>>>
>>>> Ummm. Sure about 4096? I've been using dd to write images, offset by
>>>> just one 512-byte sector.
>>>
>>>Yes, I'm sure of that. From what I know, the bootrom recognizes
>>>partition table, and expect first one (with the image burnt) to be
>>>@4096. Anyway, I'm happy it's working now.
>>
>> OK, fair enough. I was just following the instructions at
>>
>>   https://wiki.solid-run.com/doku.php?id=products:a8040:software:development:u-boot_atf
>>
>> and using
>>
>>   dd if=flash-image.bin of=/dev/sdX bs=512 seek=1
>>
>> If there's meant to be a partition table in sector 0 that points to a
>> partition at offset 4096, this is the first I've heard of it - thanks
>> for clarifying!
>>
>
> I got to know about 4096 first partition's offset at:
> http://wiki.macchiatobin.net/tiki-index.php
> Actually until Wednesday I wasn't aware, that SolidRun maintained
> their own wiki.
>

Hi,

The boot ROM simply probes a number of offsets, and I never put the
image anywhere except at the start of the second sector, which works
reliably when I use either of the two working uSD cards I have. So I
would be very surprised if putting the image elsewhere would solve
Steve's problem.

-- 
Ard.



More information about the Macchiato mailing list