lkml.org 
[lkml]   [2021]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 0/2] sunxi: Enforce consistent MMC numbering
Hi,

On Mon, Apr 19, 2021 at 10:52 AM Samuel Holland <samuel@sholland.org> wrote:
>
> Dealing with the inconsistent numbering has been a major pain, and
> there is a solution with (as far as I can tell) no tangible downsides.
> So let's use it.
>
> Yes, I know the kernel supports UUIDs for root=. But UUIDs do not help
> when referencing the whole, unpartitioned device, like is needed for
> updating the bootloader and firmware. So for the use case of "write a
> bootloader to the SD card, regardless of where the board is currently
> booted from", I know of two options:
> - Dig around in sysfs to find the mmc number from the MMIO address,
> which means I have to know the MMIO addresses for every SoC, or
> - Apply patches like these.
>
> Samuel Holland (2):
> ARM: dts: sunxi: h3/h5: Enforce consistent MMC numbering
> arm64: dts: allwinner: Enforce consistent MMC numbering
>
> arch/arm/boot/dts/sunxi-h3-h5.dtsi | 6 ++++++
> arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 6 ++++++
> arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 6 ++++++

At least with Rockchip this is now done at the board level. IIRC it was
a request from other people to not do it at the SoC level. I don't recall
exactly who though.

ChenYu


> 3 files changed, 18 insertions(+)
>
> --
> 2.26.3
>
>

\
 
 \ /
  Last update: 2021-04-19 05:19    [W:0.063 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site