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:

root@sunxi-a10:~# gdisk /dev/mmcblk0
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/mmcblk0: 15564800 sectors, 7.4 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): C4F5FE4D-CC74-45A3-A54C-06D6C0F8524A
Partition table holds up to 56 entries
First usable sector is 16, last usable sector is 15564784
Partitions will be aligned on 2048-sector boundaries
Total free space is 4065 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048        15562751   7.4 GiB     8300


Thanks

Michal

-- 
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.

Reply via email to