linux-amlogic.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Fenkart <afenkart@gmail.com>
To: Neil Armstrong <narmstrong@baylibre.com>
Cc: linux-amlogic@lists.infradead.org, krzysztof.michonski@digitalstrom.com
Subject: Re: amlogic mmc_partitions support
Date: Mon, 14 Jan 2019 15:42:01 +0100	[thread overview]
Message-ID: <CALtMJEB=tt+Cr5Avq2m2Y15T0JsXn9FW50=x+pTw-OQe3yQN4A@mail.gmail.com> (raw)
In-Reply-To: <1d699426-5744-5149-f136-66db54b87056@baylibre.com>

Hi Neil,

Am Mo., 14. Jan. 2019 um 11:00 Uhr schrieb Neil Armstrong
<narmstrong@baylibre.com>:
>
>
> Basically, Amlogic uses the eMMC main partition as a MTD devices and uses a
> custom DT partition scheme to export named MTD partitions to user-space.

I've seen the dt section about partitions, but the partition table is
also stored on the emmc.
It's at an offset (36 MB) and uses a custom c struct.

#define     MAX_MMC_PART_NUM                32

struct partitions {
    /* identifier string */
    char name[MAX_PART_NAME_LEN];
    /* partition size, byte unit */
    uint64_t size;
    /* offset within the master space, byte unit */
    uint64_t offset;
    /* master flags to mask out for this partition */
    unsigned mask_flags;
};

struct mmc_partitions_fmt {
    char magic[4];
    unsigned char version[12];
    int part_num;
    int checksum;
    struct partitions partitions[MAX_MMC_PART_NUM];
};

I'm trying to create a prototype. Is this something that could be
mainlined then?

> > Anybody else that tries to support the existing amlogic partition
> > format, not the implementation, as is. I want to upgrade the kernel
> > via fw upgrade on existing installations, but not touch the u-boot nor
> > the formatting.
>
> Some people forward ported it, and is available on some git repos around the
> Khadas VIM support.

thanks,

/Andi

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

      parent reply	other threads:[~2019-01-14 14:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-14  9:54 amlogic mmc_partitions support Andreas Fenkart
2019-01-14 10:00 ` Neil Armstrong
2019-01-14 14:35   ` Peter Korsgaard
2019-01-14 14:46     ` Neil Armstrong
2019-01-14 14:42   ` Andreas Fenkart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALtMJEB=tt+Cr5Avq2m2Y15T0JsXn9FW50=x+pTw-OQe3yQN4A@mail.gmail.com' \
    --to=afenkart@gmail.com \
    --cc=krzysztof.michonski@digitalstrom.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=narmstrong@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).