tried to implement this in a way that makes it easy to verify that
the existing codepaths are not hurt in case UBI support is disabled.
Thank you for your advise!
Daniel
--
Signed-off-by: Daniel Golle dan...@makrotopia.org
---
tools/env/Makefile | 5
tools/env/fw_env.c | 74
Hi,
On Thu, Aug 11, 2016 at 05:18:08AM -0700, J Mo wrote:
>
>
> On 08/11/2016 04:28 AM, J Mo wrote:
> >
> > Hm, I just found another example. I don't know why this didn't turn up
> > in my searches yesterday since it's a perfect match with the EXACT
> > error. This too was on a QSDK AP148:
> >
On Thu, Aug 11, 2016 at 02:22:58PM +0200, Richard Weinberger wrote:
> Did you intentional drop linux-mtd from the CC's after I offered you
> to discuss your patches on linux-mtd? ;-)
I replied twice, once including all the CC's with the intention to
contribute to the general debate. And once to
Hi J,
On Thu, Aug 11, 2016 at 06:15:32AM -0700, J Mo wrote:
>
>
> On 08/11/2016 05:31 AM, Daniel Golle wrote:
> > That's what I told you in the previous mail, removing the rootfs=
> > parameter from the dts should do the trick, because you just cannot
> >
Hi Richard,
On Thu, Aug 11, 2016 at 11:51:10AM +0200, Richard Weinberger wrote:
> Hi!
>
> On Thu, Aug 11, 2016 at 4:26 AM, J Mo wrote:
> > I tried re-flashing my UBI and tftpbooting my kernel before u-boot could
> > ever get a chance to mangle it, and now I get much further,
msdc_of_to_plat().
Only set plat->cfg.f_max to the default maximum value in case it is
not already set to a sane value.
Fixes: e58e68d93e ("mmc: mtk-sd: assign plat->cfg.f_max with a correct value")
Cc: Stefan Roese
Cc: Weijie Gao
Signed-off-by: Daniel Golle
---
drivers/mmc/mtk
On Thu, Oct 21, 2021 at 09:08:46PM -0600, Simon Glass wrote:
> At present U-Boot environment variables, and thus scripts, are defined
> by CONFIG_EXTRA_ENV_SETTINGS. It is painful to add large amounts of text
> to this file and dealing with quoting and newlines is harder than it
> should be. It
Hi,
I writing in the hope that someone has a good idea about why U-boot is
handing over a broken memory address for a loaded ramdisk which results
in Linux crashing very early on boot on MediaTek's MT7623N SoC (ARMv7).
If anyone has a good idea why this is happening, I'd be very glad, as
this
Hi again,
On Mon, Jul 19, 2021 at 06:34:38PM +0100, Daniel Golle wrote:
> ...
>Loading Ramdisk to ff4b9000, end ff9fab18 ... OK
>^^
>Using Device Tree in place at 889f9288, end 88a04534
>
> Starting kernel ...
> ...
> [
On Tue, Mar 22, 2022 at 10:09:38PM +0100, Heinrich Schuchardt wrote:
> On 3/22/22 14:18, Daniel Golle wrote:
> > Hi Heinrich,
> >
> > On Tue, Mar 22, 2022 at 09:29:54AM +0100, Heinrich Schuchardt wrote:
> > > On 3/22/22 00:22, Daniel Golle wrote:
> > &g
It can be useful for the OS (Linux) to know which configuration has
been chosen by U-Boot when launching a FIT image.
Store the name of the FIT configuration node used in a new string
attribute called 'bootconf' in the '/chosen' node in device tree.
Signed-off-by: Daniel Golle
---
boot/image
Hi Heinrich,
On Tue, Mar 22, 2022 at 09:29:54AM +0100, Heinrich Schuchardt wrote:
> On 3/22/22 00:22, Daniel Golle wrote:
> > It can be useful for the OS (Linux) to know which configuration has
> > been chosen by U-Boot when launching a FIT image.
> > Store the name of the F
It can be useful for the OS (Linux) to know which configuration has
been chosen by U-Boot when launching a FIT image.
Store the name of the FIT configuration node used in a new string
property called 'u-boot,bootconf' in the '/chosen' node in device tree.
Signed-off-by: Daniel Golle
---
v2
Hi Detlev,
I've recently tried to update U-Boot from 2022.01 to 2022.04 and
noticed a regression introduced by the commit below.
While the unwanted error message ("Add 'reserved-memory' node failed:
FDT_ERR_EXISTS") no longer appears, I now see a lengthy kernel stack
trace in Linux instead:
...
Hi!
I'm about to bump the U-Boot build for MediaTek MT7622 boards in
OpenWrt to U-Boot 2022.04. While practially everything seems to work
fine, I've noticed an error message early in the serial output which
was not present in U-Boot 2022.01. It is even followed by a bunch of
random characters
bytes below 0x8000.
device tree - allocation error
Fixes: bc4adc97cfb ("board: mediatek: add MT7988 reference boards")
Reported-by: Lorenzo Bianconi
Signed-off-by: Daniel Golle
---
configs/mt7988_rfb_defconfig| 1 +
configs/mt7988_sd_rfb_defconfig | 1 +
2 files changed, 2
;a=blob;f=package/boot/uboot-mediatek/patches/050-mt7622-enable-pstore.patch
u-boot config:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/boot/uboot-mediatek/patches/404-add-bananapi_bpi-r64_defconfigs.patch
Cheers
Daniel
>
> Detlev.
>
> On Monday, April 11
of exactly that 'ramoops' node already existing, which is fine.
Thank you again for resolving this issue!
Cheers
Daniel
>
> Regards,
>
> Detlev.
>
> On Monday, April 18, 2022 7:50:36 P.M. EDT Daniel Golle wrote:
> > Hi Detlev,
> >
> > On Mon, Apr 18
Hi Rafal,
Hi Miguel,
On Mon, Apr 11, 2022 at 11:00:32AM +0200, Miquel Raynal wrote:
> On Wed, 2022-04-06 at 14:32:24 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote:
> > From: Rafał Miłecki
> >
> > Until this change MTD subsystem supported handling partitions only with
> > MTD partitions parsers.
On Sat, Jun 25, 2022 at 10:10:08AM +0200, Kegl Rohit wrote:
> Hello!
>
> Is it possible to store the environment inside a mtd partition when
> using a single qspi nand chip as storage?
> CONFIG_MTD_SPI_NAND=y
>
> The idea is to separate the NAND into two system A/B.
> [...]
>
>
s about the gobbled serial output issue?
It would be nice to update uboot-mediatek in OpenWrt to v2022.04, so
MT798x patches will easily apply on top.
Cheers
Daniel
>
> Best Regards
>
> Weijie
>
> -邮件原件-
> 发件人: Daniel Golle
> 发送时间: 2022年4月12日 6:44
> 收件人: u-
>
> Some examples:
> 1. U-Boot environment variables
> 2. Device calibration data
> 3. Default setup (e.g. initial password)
>
> Signed-off-by: Rafał Miłecki
This is very useful and can replace the downstream hacks we are
currently using for this purpos
: 'compression' nodes for ramdisks are deprecated, please fix your .its
file!
no longer shows if the compression node is actually absent.
Signed-off-by: Daniel Golle
---
v2: fix typo 'imape_comp' vs. 'image_comp'
boot/bootm.c | 6 ++
boot/image-fit.c | 3 +--
cmd/ximg.c | 7 ++-
3
: 'compression' nodes for ramdisks are deprecated, please fix your .its
file!
no longer shows if the compression node is actually absent.
Signed-off-by: Daniel Golle
---
boot/bootm.c | 6 ++
boot/image-fit.c | 3 +--
cmd/ximg.c | 7 ++-
3 files changed, 5 insertions(+), 11 deletions
Chage variable name 'imape_comp' to the supposedly intended name
'image_comp'.
Signed-off-by: Daniel Golle
---
boot/bootm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/boot/bootm.c b/boot/bootm.c
index 86dbfbcfed..4de573e24e 100644
--- a/boot/bootm.c
+++ b/boot
Chage variable name 'imape_comp' to the supposedly intended name
'image_comp'.
Signed-off-by: Daniel Golle
---
v4: add missing name replacement
boot/bootm.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/boot/bootm.c b/boot/bootm.c
index 86dbfbcfed..63c79a9cfc
: 'compression' nodes for ramdisks are deprecated, please fix your .its
file!
no longer shows if the compression node is actually absent.
Signed-off-by: Daniel Golle
---
v2: fix typo 'imape_comp' vs. 'image_comp'
v3: rather fix the typo everywhere in an additional patch before
v4: rebase on updated patch
On Mon, Aug 29, 2022 at 08:30:14PM -0600, Simon Glass wrote:
> On Fri, 26 Aug 2022 at 21:15, Daniel Golle wrote:
> >
> > Chage variable name 'imape_comp' to the supposedly intended name
>
> Change
Can you fix that on-the-fly while comitting or should I repost with
t
On Sun, Sep 04, 2022 at 12:28:24PM -0700, Tony Dinh wrote:
> Hi Pali,
>
> On Sun, Sep 4, 2022 at 2:37 AM Pali Rohár wrote:
> >
> > On Saturday 03 September 2022 20:01:45 Tony Dinh wrote:
> > > Hi Pali,
> > >
> > > On Sat, Sep 3, 2022 at 6:29 PM Pali Rohár wrote:
> > > >
> > > > Do various small
On Wed, Aug 31, 2022 at 07:00:17PM +0800, Weijie Gao wrote:
> This patch adds basic support for MediaTek MT7986 SoC.
> This include the file that will initialize the SoC after boot and its
> device tree.
>
> Signed-off-by: Weijie Gao
Tested on Bananapi BPi-R3 (MT7986A).
Tested-b
On Wed, Aug 31, 2022 at 07:04:12PM +0800, Weijie Gao wrote:
> Add eMMC and SDXC support for MediaTek MT7981/MT7986 SoCs
> Both chips support SDXC and eMMC 4.5. MT7986A supports eMMC 5.1.
>
Tested on Bananapi BPi-R3 (MT7986A) with both eMMC and SDMMC.
Tested-by: Daniel Golle
&
em easily.
Tested on Bananapi BPi-R64 (MT7622) and BPi-R2 (MT7623).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes:
> Fix typo in commit message
> ---
> drivers/net/mtk_eth.c | 144 ++--
riginal mtk_soc to allow
> the driver be able handle newer hardwares.
Tested on Bananapi BPi-R64 (MT7622) and Bananapi BPi-R2 (MT7623).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2c changes:
> Add description for new struct
4 (MT7623) and
Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Ramon Fried
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes:
> Add description for new fields
> ---
> drivers/net/mtk_eth.c | 54 ++
On Wed, Aug 31, 2022 at 07:04:29PM +0800, Weijie Gao wrote:
> This patch adds support for MediaTek MT7981 and MT7986. Both chips uses
> PDMA v2.
>
Tested on Bananapi BPi-R2 (MT7623), Bananapi BPi-R64 (MT7623) and
Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
> Reviewed-by:
Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes:
> Add description for priv struct
> Fix the type of clk_rate
> ---
> drivers/serial/serial_mtk.c | 80 ++
On Wed, Aug 31, 2022 at 07:04:40PM +0800, Weijie Gao wrote:
> This patch add general-purpose timer support for MediaTek MT7981/MT7986.
> These two SoCs uses a newer version of timer with its register definition
> slightly changed.
>
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by:
napi BPi-R64 (MT7622).
Fixes unstable console issues previously observed on MT7622 systems.
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes: none
> ---
> arch/arm/dts/mt7622.dtsi | 1 +
> 1 file changed, 1 inserti
On Wed, Aug 31, 2022 at 07:04:45PM +0800, Weijie Gao wrote:
> This patch adds support for spi-mem controller found on newer MediaTek SoCs
> This controller supports Single/Dual/Quad SPI mode.
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Gla
On Wed, Aug 31, 2022 at 07:04:42PM +0800, Weijie Gao wrote:
> Add watchdog support for MediaTek MT7986 SoC
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes: none
> ---
> driver
On Wed, Aug 31, 2022 at 07:04:57PM +0800, Weijie Gao wrote:
> This patch adds pinctrl and gpio support for MT7986 SoC
>
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes: none
> -
On Wed, Aug 31, 2022 at 07:05:06PM +0800, Weijie Gao wrote:
> This patch adds support for a clock node to configure its parent clock
> where possible.
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
>
rent logic will make entire clock driver not working.
>
> This patch adds a flag to indicate that whether a clock driver needs clocks
> with ID=0 to call mtk_topckgen_get_mux_rate.
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Sig
On Wed, Aug 31, 2022 at 07:05:13PM +0800, Weijie Gao wrote:
> This patch adds clock driver support for MediaTek MT7986 SoC
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Sean Anderson
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
>
On Wed, Aug 31, 2022 at 07:05:09PM +0800, Weijie Gao wrote:
> This patch adds infrasys clock mux support for mediatek clock drivers.
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v
On Wed, Aug 31, 2022 at 07:05:20PM +0800, Weijie Gao wrote:
> Add basic CPU driver used to retrieve CPU model information.
>
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
> Signed-off-by: Weijie Gao
> ---
> v2 changes: new
> ---
> drivers/cpu/Makefil
On Wed, Aug 31, 2022 at 07:05:11PM +0800, Weijie Gao wrote:
> This adds the CLK_XTAL macro/flag to allow modeling clocks which are
> directly connected to the xtal clock.
Tested on Bananapi BPi-R3 (MT7986A).
Tested-by: Daniel Golle
>
> Signed-off-by: Weijie Gao
> ---
> v
er.
Tested ARM Trusted Firmware-A bl2 images generated for
Bananapi R64 (MT7622; eMMC, SDMMC, SPI-NAND),
UniFi 6 LR (MT7622; SPI-NOR) and
Bananapi BPi-R3 (MT7986A; eMMC, SDMMC, SPI-NAND, SPI-NOR).
Also tested MT7621 images still work fine on ZBT-WG3526 (MT7621; SPI-NOR).
Tested-by: Daniel Golle
I-NOR).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes:
> Add comments
> Call mtk_nand_header_size only for NAND/SNAND to avoid NULL pointer access
> ---
> tools/Makefile
C, SPI-NAND),
UniFi 6 LR (MT7622; SPI-NOR) and
Bananapi BPi-R3 (MT7986A; eMMC, SDMMC, SPI-NAND, SPI-NOR).
Also tested MT7621 images still work fine on ZBT-WG3526 (MT7621; SPI-NOR).
Tested-by: Daniel Golle
>
> Reviewed-by: Simon Glass
> Signed-off-by: Weijie Gao
> ---
> v2 changes
Hi Weijie,
please see one comment in-line below:
On Thu, Aug 04, 2022 at 11:36:50AM +0800, Weijie Gao wrote:
> The predefined NAND headers take too much spaces in the mtk_image.c.
> Moving them into a new file can significantly improve the readability of
> both mtk_image.c and the new
-08-04 at 16:50 +0800, Weijie Gao wrote:
> > Hi Daniel,
> >
> > Thanks for the reminder.
> > I found more errornous line-breaks in other patches...
> > I'll find a way to fix that.
> >
> > Best Regards,
> > Weijie
> >
> > On T
: 'compression' nodes for ramdisks are deprecated, please fix your .its
file!
no longer shows if the compression node is actually absent.
Signed-off-by: Daniel Golle
---
boot/bootm.c | 6 ++
boot/image-fit.c | 3 +--
cmd/ximg.c | 7 ++-
3 files changed, 5 insertions(+), 11 deletions
On Fri, Aug 12, 2022 at 07:02:17PM +0800, Weijie Gao wrote:
> On Tue, 2022-08-09 at 11:10 +0200, Daniel Golle wrote:
> > Hi Weijie,
> >
> > On Thu, Aug 04, 2022 at 11:35:03AM +0800, Weijie Gao wrote:
> > > This patch adds general board files based on MT7986
Hi Weijie,
happy to see this series posted!
Trying to apply it unfortunately fails due to errornous line-breaks,
supposedly inserted by your MUA, see below.
I didn't go beyond the first patch and it'd be nice if you report the
whole series without the wrong line-breaks.
Cheers
Daniel
On
Hi Weijie,
On Thu, Aug 04, 2022 at 11:35:03AM +0800, Weijie Gao wrote:
> This patch adds general board files based on MT7986 SoCs.
>
> The SD/eMMC controller on MT7986A and MT7986B have different pin
> configurations so that four different reference board configs has to be
> added.
>
>
/e3489a697b404bd47447190cd2e5adf090ae61c2.1667687249.git.lore...@kernel.org/
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=eed4f1ddad8c5ad7596b229caec8bd7b477b81ee
Signed-off-by: Daniel Golle
---
configs/mt7981_emmc_rfb_defconfig| 1 +
configs
he originally intended and correct behavior
and also change the descriptive comment accordingly.
Fixes: dafe0fbfb0f3 ("pinctrl: mediatek: rewrite mtk_pinconf_set and related
functions")
Signed-off-by: Daniel Golle
---
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 4 ++--
1 file chan
On Fri, Jan 06, 2023 at 08:52:26AM -0600, Simon Glass wrote:
> Avoid duplicating some of the escape-sequence processing here and use the
> CLI function instead.
>
> Signed-off-by: Simon Glass
> ---
>
> [...]
> diff --git a/common/menu.c b/common/menu.c
> index 7db98942a61..45f36ae3ede 100644
>
Signed-off-by: Daniel Golle
---
drivers/ram/mediatek/ddr3-mt7629.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ram/mediatek/ddr3-mt7629.c
b/drivers/ram/mediatek/ddr3-mt7629.c
index 1737fdac970..f65fcf179cf 100644
--- a/drivers/ram/mediatek/ddr3-mt7629.c
+++ b/drivers/ram/m
On Fri, Aug 04, 2023 at 09:01:55AM +0800, Weijie Gao wrote:
> The mt7531 of bpi-r3 is connected to mt7986 with 2.5Gbps HSGMII, not the
> regular 1Gbps SGMII.
>
> Signed-off-by: Weijie Gao
Reviewed-by: Daniel Golle
> ---
> This is a supplement to commit:
> aef54ea1 (arm: d
Hi Bence,
On Tue, Dec 19, 2023 at 08:08:48PM +, Csókás Bence wrote:
> Hi!
>
> Is passing the U-Boot boot log to Linux supported yet? We are working
> with a third-party solution, which works, but is a bit hacky, so I was
> wondering if an official solution has been merged yet.
>
> I saw
On Thu, Dec 21, 2023 at 12:55:20AM +0100, Dragan Simic wrote:
> On 2023-12-21 00:27, Csókás Bence wrote:
> > Not every system has eMMC/uSD, and as you said, these arguments don't
> > hold for a 4 MB SPI NAND, for example, one you might find in an OpenWrt
> > router for example. Whereas RAM is
63 matches
Mail list logo