Le mardi 07 avril 2015 à 09:30 +0200, Michal Suchanek a écrit :
> On 7 April 2015 at 08:26, Hans de Goede <[email protected]> wrote:
> > Hi,
> >
> > On 06-04-15 23:13, Paul Kocialkowski wrote:
> >>
> >> (Resent from the correct address, sorry)
> >>
> >> I fancied the idea of using a GPT/EFI partition table for sdcards used
> >> on sunxi devices, but it seems that GPT takes the first 34 sectors of
> >> the card (with sectors of 512B, that's the first 17kiB), while the
> >> U-Boot SPL starts at sector 16 (that's at 8kiB), so there is a conflict
> >> here.
> >>
> >> Is anyone aware of another offset from which U-Boot SPL could be load by
> >> the bootrom? I have started reverse engineering the bootrom code to find
> >> out if there is such a thing in place (which I very much doubt, but who
> >> knows, maybe Allwinner thought about this), but I'd appreciate any info
> >> before spending too much time on it.
> >
> >
> > Too the best of my knowledge the bootloader / SPL must start at 8kiB so
> > using gpt is not an option.
> >
> 
> It is possible to use a 56 entry gpt:

[sniper]

Sweet, thanks a lot for your help! It works fine with Linux and U-Boot.

Here is what I get on U-Boot:
Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000010      0x0000004f      "u-boot-spl"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   78c62e70-f816-4b22-a87b-b6d16f74927a
  2     0x00000050      0x0000043f      "u-boot"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   23cbce04-9b90-4bd3-b936-755709f6131b
  3     0x00000440      0x0000053f      "u-boot-env"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   f9cb8108-6e2a-4cec-91b5-bbe76ab31303
  4     0x00002000      0x00e37ff0      "rootfs"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   c9040a2a-d7b2-4a2e-920f-2bcf2b804b43

This way, I'll eventually be able to reflash U-Boot, the U-Boot SPL and
erase the env using the fastboot USB gadget function!

-- 
Paul Kocialkowski, Replicant developer

Replicant is a fully free Android distribution running on several
devices, a free software mobile operating system putting the emphasis on
freedom and privacy/security.

Website: http://www.replicant.us/
Blog: http://blog.replicant.us/
Wiki/tracker/forums: http://redmine.replicant.us/

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to