Re: MT7621 help

2025-07-30 Thread Daniel Golle
Hi Roy, On Tue, Jul 29, 2025 at 09:44:29PM -0500, Roy Walker wrote: > I was attempting to put OpenWRT on a TP-Link Festa F61. I messed up and > wiped out the u-boot image. I am trying to build a new u-boot image and > ymodem it there. Followed the exact steps here: > https://docs.u-boot.org/en/

Re: [PATCH 1/1] net: phy: Add the Airoha EN8811H PHY driver

2025-04-19 Thread Daniel Golle
Hi Lucien, Hi Marek, On Fri, Apr 18, 2025 at 11:57:19PM +0800, Lucien.Jheng wrote: > Hi Marek Vasut > > Thanks for the review. > > The next commit will change the loading of the PHY firmware to the > filesystem on a block device. Please keep in mind that most systems using this PHY are (like th

Re: [PATCH 2/2] tools/fit_check_sign: make key optional

2025-03-28 Thread Daniel Golle
On Sat, Mar 29, 2025 at 03:13:01AM +, Daniel Golle wrote: > Allow invoking fit_check_sig without the key parameter, allowing to > validate only checksums and hashes for unsigned images. Sadly I've missed making the munmap() of the key_blob conditional as well, and while glibc

Re: [PATCH] Add 'bootsource' /chosen property

2025-02-20 Thread Daniel Golle
On Thu, Feb 20, 2025 at 04:04:27PM +0100, Quentin Schulz wrote: > Hi Daniel, > > On 2/15/25 4:13 PM, Daniel Golle wrote: > > Hi Quentin, > > > > On 10 February 2025 16:25:23 UTC, Quentin Schulz > > wrote: > > > [...] > > > What I can say fro

Re: [PATCH] Add 'bootsource' /chosen property

2025-02-15 Thread Daniel Golle
Hi Quentin, On 10 February 2025 16:25:23 UTC, Quentin Schulz wrote: > [...] >What I can say from glancing at the code is that for Rockchip they do the >following: > >Register a bootsource type (e.g. MMC, SPI, I2C, USB, etc...), a bootsource >instance of that type (e.g. MMC0, SPI3, I2C7, ...).

Re: [PATCH v2 1/3] menu: fix the logic checking whether ESC key is pressed

2024-11-02 Thread Daniel Golle
On Fri, Nov 01, 2024 at 03:20:11PM +0800, Weijie Gao wrote: > Hi Daniel, > > On Thu, 2024-10-31 at 19:16 +0000, Daniel Golle wrote: > > External email : Please do not click links or open attachments until > > you have verified the sender or the content. > > > >

Re: [PATCH v2 1/3] menu: fix the logic checking whether ESC key is pressed

2024-10-31 Thread Daniel Golle
he down array key sequence hasn't be fully received. > > But bootmenu_loop just did a mdelay(10), and then treated it as a > single ESC key press event. It didn't even try tstc() again after > the 10ms timeout. > > This patch fixes this issue by letting bootmenu_loop

Re: [PATCH v2 2/3] menu: add support to check if menu needs to be reprinted

2024-10-31 Thread Daniel Golle
if the menu was not changed. It can save time > for serial-based menu to handle more input data. > > Signed-off-by: Weijie Gao Reviewed-by: Daniel Golle Tested-by: Daniel Golle > --- > boot/pxe_utils.c | 2 +- > cmd/bootmenu.c | 2 +- > cmd/eficonfig

Re: [PATCH v2 3/3] bootmenu: add reprint check

2024-10-31 Thread Daniel Golle
On Tue, Oct 29, 2024 at 05:47:22PM +0800, Weijie Gao wrote: > Record the last active menu item and check if it equals to the > current selected item before reprint. > > Signed-off-by: Weijie Gao Reviewed-by: Daniel Golle Tested-by: Daniel Golle > --- > c

Re: [PATCH] menu: fix the logic checking whether ESC key is pressed

2024-10-26 Thread Daniel Golle
Hi! On Mon, Oct 21, 2024 at 08:56:42AM +0800, Weijie Gao wrote: > It's observed that the bootmenu on a serial console sometimes > incorrectly quitted with superfluous characters filled to command > line input: > > > *** U-Boot Boot Menu *** > > > > 1. Startup system (Default) > > 2. Up

Re: Missing eth1addr for Banana Pi BPI-R3

2024-07-04 Thread Daniel Golle
On Fri, Jul 05, 2024 at 11:05:31AM +1000, Leith Bade wrote: > Hi, > > I have been investigating how to stop the MAC addresses on my Banana > Pi BPI-R3 from changing on every boot. > > It appears the ethaddr and eth1addr environment variables are used for > this purpose as they are randomly genera

Re: Passing boot logs to Linux?

2023-12-20 Thread Daniel Golle
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 quite

Re: Passing boot logs to Linux?

2023-12-19 Thread Daniel Golle
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 th

[PATCH] configs: set CONFIG_LMB_MAX_REGIONS=64 for MT7988 boards

2023-08-21 Thread Daniel Golle
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

Re: [PATCH] arm: dts: medaitek: convert gmac link mode to 2500base-x for mt7986a-bpi-r3-sd

2023-08-04 Thread Daniel Golle
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

[PATCH] ram: mediatek: mt7629: include

2023-07-31 Thread Daniel Golle
e so SZ_* is defined. Reported-by: Tianling Shen 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/driv

[PATCH] pinctrl: mediatek: set R1/R0 in case pullen/pullsel succeeded

2023-04-12 Thread Daniel Golle
ore the 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

Re: [PATCH v3 08/25] menu: Make use of CLI character processing

2023-04-11 Thread Daniel Golle
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 > -

[PATCH] configs: set CONFIG_LMB_MAX_REGIONS=64 for all mt798[16] boards

2022-11-29 Thread Daniel Golle
/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

Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case

2022-09-04 Thread Daniel Golle
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

Re: [PATCH v2 31/32] tools: mtk_image: add support for nand headers used by newer chips

2022-08-31 Thread Daniel Golle
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 >

Re: [PATCH v2 30/32] tools: mtk_image: split the code of generating NAND header into a new file

2022-08-31 Thread Daniel Golle
OR). 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

Re: [PATCH v2 29/32] tools: mtk_image: split gfh header verification into a new function

2022-08-31 Thread Daniel Golle
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 > > Reviewed-by: Simon Glass > Signed-off-by: Weijie Gao > --- > v2 ch

Re: [PATCH v2 28/32] cpu: add basic cpu driver for MediaTek ARM chips

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v2 26/32] clk: mediatek: add clock driver support for MediaTek MT7986 SoC

2022-08-31 Thread Daniel Golle
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 >

Re: [PATCH v2 25/32] clk: mediatek: add CLK_XTAL support for clock driver

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v2 24/32] clk: mediatek: add infrasys clock mux support

2022-08-31 Thread Daniel Golle
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 > --- > v2 chang

Re: [PATCH v2 23/32] clk: mediatek: add support to configure clock driver parent

2022-08-31 Thread Daniel Golle
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 >

Re: [PATCH v2 22/32] clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching clock parent of xtal clock

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v2 21/32] pinctrl: mediatek: add pinctrl driver for MT7986 SoC

2022-08-31 Thread Daniel Golle
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 > -

Re: [PATCH v2 16/32] spi: add support for MediaTek spi-mem controller

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v2 15/32] watchdog: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v2 14/32] timer: mtk: add support for MediaTek MT7981/MT7986 SoCs

2022-08-31 Thread Daniel Golle
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:

Re: [PATCH v2 11/32] arm: dts: mt7622: force high-speed mode for uart

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v2 10/32] serial: mtk: add support for using dynamic baud clock souce

2022-08-31 Thread Daniel Golle
7623) and 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

Re: [PATCH v2 09/32] net: mediatek: add support for MediaTek MT7981/MT7986

2022-08-31 Thread Daniel Golle
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:

Re: [PATCH v2 08/32] net: mediatek: add support for PDMA v2

2022-08-31 Thread Daniel Golle
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 ++

Re: [PATCH v2 07/32] net: mediatek: stop using bitfileds for DMA descriptors

2022-08-31 Thread 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 ++--

Re: [PATCH v2 06/32] net: mediatek: use a struct to cover variations of all SoCs

2022-08-31 Thread Daniel Golle
inal 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

Re: [PATCH v2 05/32] mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCs

2022-08-31 Thread Daniel Golle
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 >

Re: [PATCH v2 01/32] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-31 Thread Daniel Golle
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

Re: [PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-29 Thread Daniel Golle
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 rep

[PATCH v4 2/2] image-fit: don't set compression if it can't be read

2022-08-26 Thread Daniel Golle
RNING: '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

[PATCH v4 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-26 Thread Daniel Golle
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 86

[PATCH v3 2/2] image-fit: don't set compression if it can't be read

2022-08-26 Thread Daniel Golle
RNING: '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(+

[PATCH v3 1/2] bootm: fix typo imape_comp -> image_comp

2022-08-26 Thread Daniel Golle
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/boo

[PATCH v2] image-fit: don't set compression if it can't be read

2022-08-26 Thread Daniel Golle
RNING: '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 +

[PATCH] image-fit: don't set compression if it can't be read

2022-08-15 Thread Daniel Golle
RNING: '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(+

Re: [PATCH 03/31] board: mediatek: add MT7986 reference boards

2022-08-12 Thread Daniel Golle
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

Re: [PATCH 03/31] board: mediatek: add MT7986 reference boards

2022-08-09 Thread Daniel Golle
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. > > Signed-of

Re: [PATCH 01/31] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-06 Thread Daniel Golle
e > > On Thu, 2022-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

Re: [PATCH 29/31] tools: mtk_image: split the code of generating NAND header into a new file

2022-08-05 Thread Daniel Golle
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 mtk_nand_he

Re: [PATCH 01/31] arm: mediatek: add support for MediaTek MT7986 SoC

2022-08-04 Thread Daniel Golle
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 Thu,

Re: 回复: minor regression in U-Boot 2022.04

2022-06-28 Thread Daniel Golle
. Any news 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 >

Re: spi-nand: how to store environment with badblock handling in qspi nand

2022-06-25 Thread Daniel Golle
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. > [...] > > CONFIG_ENV_IS_IN_

Re: [PATCH] dt-bindings: mtd: partitions: add UBI binding

2022-06-10 Thread Daniel Golle
> > 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

Regression? [PATCH 1/2] mtd: call of_platform_populate() for MTD partitions

2022-04-24 Thread Daniel Golle
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. T

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Daniel Golle
x27; node not being added while now it really just errors out in case 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.

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-18 Thread Daniel Golle
penwrt.git;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

[PATCH v2] image-fdt: save name of FIT configuration in '/chosen' node

2022-04-12 Thread Daniel Golle
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:

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-11 Thread Daniel Golle
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: ... [

minor regression in U-Boot 2022.04

2022-04-11 Thread Daniel Golle
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 whic

Re: [PATCH] image-fdt: save name of FIT configuration in '/chosen' node

2022-03-22 Thread Daniel Golle
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: > > > &

Re: [PATCH] image-fdt: save name of FIT configuration in '/chosen' node

2022-03-22 Thread Daniel Golle
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

[PATCH] image-fdt: save name of FIT configuration in '/chosen' node

2022-03-21 Thread Daniel Golle
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 Go

Re: [PATCH v10 3/9] env: Allow U-Boot scripts to be placed in a .env file

2021-11-12 Thread Daniel Golle
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 wou

Re: U-Boot loaded RAMDisk crashes Linux on MT7623

2021-07-19 Thread Daniel Golle
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 ... > ... > [

U-Boot loaded RAMDisk crashes Linux on MT7623

2021-07-19 Thread Daniel Golle
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 curr

[PATCH resend] mmc: mtk-sd: don't ignore max-frequency from device tree

2021-03-15 Thread Daniel Golle
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

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
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, though I'm still > >

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
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 > >

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
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 le

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
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: > >

[U-Boot] [RFC] tools/env: add support for ubi volume chardev

2014-05-22 Thread Daniel Golle
build support for UBI volumes. I 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 --- tools/env/Makefile | 5