From: Andrew Lunn <andrew@lunn.ch>
To: Rogan Dawes <rogan@dawes.za.net>
Cc: "Fabio Estevam" <festevam@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-mtd <linux-mtd@lists.infradead.org>,
"Miquel Raynal" <miquel.raynal@bootlin.com>,
"Lothar Waßmann" <LW@karo-electronics.de>,
"Marek Vasut" <marex@denx.de>
Subject: Re: Trying to boot mainline on Wink Hub v1
Date: Sun, 25 Jun 2023 17:24:22 +0200 [thread overview]
Message-ID: <f2570cf9-d01f-431b-832c-deae7a8f4c61@lunn.ch> (raw)
In-Reply-To: <CAOYdKdhuVbzavb9CJYqOLXX7PYCbOGzmeUg2eTgF1saTviCo-Q@mail.gmail.com>
> I *think* my problem is that U-Boot is not aware of the device tree,
> as I have been passing it as an appended item to the kernel, thinking
> that U-Boot was not Device-Tree compliant. Consequently, it is unable
> to patch it with the contents of the mtdparts environment variable,
> and hence the kernel never knows to go looking for the mtd partitions.
You should be able to fully describe the MTD partition in DT. For
example, from arch/arm/boot/dts/kirkwood-dockstar.dts.
&nand {
status = "okay";
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@100000 {
label = "uImage";
reg = <0x0100000 0x400000>;
};
partition@500000 {
label = "data";
reg = <0x0500000 0xfb00000>;
};
};
You can then continue with appending the DT blob to the kernel. All
the bootloader needs to do is load the kernel.
Andrew
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2023-06-25 15:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAOYdKdhscu_NDetiWDgm7bqh-Tf7kqGMHYOvOE0sQh2dU3t64g@mail.gmail.com>
2023-06-24 14:36 ` Trying to boot mainline on Wink Hub v1 Fabio Estevam
2023-06-25 7:54 ` Rogan Dawes
2023-06-25 15:24 ` Andrew Lunn [this message]
2023-06-25 19:31 ` Rogan Dawes
2023-06-25 21:09 ` Rogan Dawes
2023-06-25 21:38 ` Andrew Lunn
2023-06-26 1:58 ` Rogan Dawes
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=f2570cf9-d01f-431b-832c-deae7a8f4c61@lunn.ch \
--to=andrew@lunn.ch \
--cc=LW@karo-electronics.de \
--cc=festevam@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marex@denx.de \
--cc=miquel.raynal@bootlin.com \
--cc=rogan@dawes.za.net \
/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