[U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

Frank Wunderlich frank-w at public-files.de
Sat Nov 17 11:23:08 UTC 2018


got it...on this sd-card i had no uEnv.txt and did not check for its existance but tried to load it...

created a uenv.txt and not more problem. i have to change my environment to check for file first before do the other steps

sorry for inconveniences

regards Frank

> Gesendet: Samstag, 17. November 2018 um 11:20 Uhr
> Von: "Frank Wunderlich" <frank-w at public-files.de>
> An: "Frank Wunderlich" <frank-w at public-files.de>
> Cc: "Ryder Lee" <ryder.lee at mediatek.com>, "Tom Rini" <trini at konsulko.com>, "Steven Liu" <steven.liu at mediatek.com>, u-boot at lists.denx.de
> Betreff: Aw: Re: [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629
>
> v3 has the same problem if i use same uEnv.txt and disable bootmenu in include/configs/mt7623.h
> 
> #define CONFIG_MENU_SHOW
> #define CONFIG_BOOTDELAY 3
> 
> without the change in header i come directly to my bootmenu-entry 0 defined here and not to bootmenu (seems it is selected instead of running bootcmd=reloadmenu which loads uenv.txt from sdcard):
> https://github.com/frank-w/u-boot/blob/7a31819225b51d41cd6f1202250c2316e274aacf/uEnv.txt#L35
> 
> if i cancel this (to get in console) i can do a printenv
> 
> i guess its a problem with bootcmd in combination with the load of uEnv.txt from sdcard, show menu and go back to console
> 
> any hints how to debug this? menu is shown good and kernel-startup works, but go back to console and do a printenv kills uboot
> 
> regards Frank
> 
> > Gesendet: Samstag, 17. November 2018 um 10:37 Uhr
> > Von: "Frank Wunderlich" <FrankWu at gmx.de>
> > An: "Ryder Lee" <ryder.lee at mediatek.com>
> > Cc: "Tom Rini" <trini at konsulko.com>, "Ryder Lee" <ryder.lee at mediatek.com>, "Steven Liu" <steven.liu at mediatek.com>, u-boot at lists.denx.de, "Roy Luo" <cheng-hao.luo at mediatek.com>
> > Betreff: Re: [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629
> >
> > Hi,
> > 
> > tested this patchset on top of 2018-11 final and got an issue.
> > 
> > if i bootup this uboot, enter console and make a printenv, uboot gets stuck with strange chars after printing then env
> > 
> > because my env got load from emmc by default i had reset my env and writing it again (env default -a;printenv;saveenv). after boot again, i have same issue.
> > 
> > after writing my v4 (based on rc3) i see this issue too...any idea how i can sort this out?
> > 
> > you can look into my code at github
> > 
> > https://github.com/frank-w/u-boot/tree/bpi-r2_v5 //based on 2018-11 with v5-patches
> > https://github.com/frank-w/u-boot/tree/bpi-r2_v4 //based on rc3 with v4-patches
> > https://github.com/frank-w/u-boot/tree/bpi-r2_v3 //based on rc3 with v3-patches does not have this issue
> > 
> > regards Frank
> > 
> > 
> > > Gesendet: Donnerstag, 15. November 2018 um 03:07 Uhr
> > > Von: "Ryder Lee" <ryder.lee at mediatek.com>
> > > An: "Tom Rini" <trini at konsulko.com>, "Simon Glass" <sjg at chromium.org>, "Albert Aribaud" <albert.u.boot at aribaud.net>
> > > Cc: "Ryder Lee" <ryder.lee at mediatek.com>, "Steven Liu" <steven.liu at mediatek.com>, "Roy Luo" <cheng-hao.luo at mediatek.com>, u-boot at lists.denx.de
> > > Betreff: [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629
> > >
> > > Hello,
> > > 
> > > This is the new round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629,
> > > and the most of the drivers are based on mainline Linux, such as clock, timer, mmc,
> > > pinctrl, UART, watchdog, power domain and device tree.
> > > 
> > > Ryder
> > > 
> > > Ryder Lee (16):
> > >   tools: MediaTek: add MTK boot header generation to mkimage
> > >   arm: dts: MediaTek: add device tree for MT7629
> > >   arm: dts: MediaTek: add device tree for MT7623
> > >   arm: MediaTek: add basic support for MT7629 boards
> > >   clk: MediaTek: add clock driver for MT7629 SoC.
> > >   clk: MediaTek: add clock driver for MT7623 SoC.
> > >   timer: MediaTek: add timer driver for MediaTek SoCs
> > >   watchdog: MediaTek: add watchdog driver for MediaTek SoCs
> > >   pinctrl: MediaTek: add pinctrl driver for MT7629 SoC
> > >   pinctrl: MediaTek: add pinctrl driver for MT7623 SoC
> > >   power domain: MediaTek: add power domain driver for MT7629 SoC
> > >   power domain: MediaTek: add power domain driver for MT7623 SoC
> > >   serial: MediaTek: add high-speed uart driver for MediaTek SoCs
> > >   ram: MediaTek: add DDR3 driver for MT7629 SoC
> > >   doc: README.mediatek: Add a simple README for MediaTek
> > >   MAINTAINERS: add an entry for MediaTek
> > > 
> > > Weijie Gao (2):
> > >   arm: MediaTek: add basic support for MT7623 boards
> > >   mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC
> > > 
> > >  MAINTAINERS                                   |   20 +
> > >  Makefile                                      |   20 +
> > >  arch/arm/Kconfig                              |   16 +
> > >  arch/arm/Makefile                             |    1 +
> > >  arch/arm/dts/Makefile                         |    4 +
> > >  arch/arm/dts/mt7623.dtsi                      |  255 +++++
> > >  arch/arm/dts/mt7623n-bananapi-bpi-r2.dts      |  207 ++++
> > >  arch/arm/dts/mt7629-rfb-u-boot.dtsi           |   24 +
> > >  arch/arm/dts/mt7629-rfb.dts                   |   70 ++
> > >  arch/arm/dts/mt7629.dtsi                      |  244 +++++
> > >  arch/arm/include/asm/arch-mediatek/gpio.h     |    9 +
> > >  arch/arm/include/asm/arch-mediatek/misc.h     |   17 +
> > >  arch/arm/mach-mediatek/Kconfig                |   39 +
> > >  arch/arm/mach-mediatek/Makefile               |    7 +
> > >  arch/arm/mach-mediatek/cpu.c                  |   34 +
> > >  arch/arm/mach-mediatek/init.h                 |   11 +
> > >  arch/arm/mach-mediatek/mt7623/Makefile        |    4 +
> > >  arch/arm/mach-mediatek/mt7623/init.c          |   54 +
> > >  arch/arm/mach-mediatek/mt7623/lowlevel_init.S |   22 +
> > >  arch/arm/mach-mediatek/mt7623/preloader.h     |   99 ++
> > >  arch/arm/mach-mediatek/mt7629/Makefile        |    4 +
> > >  arch/arm/mach-mediatek/mt7629/init.c          |  128 +++
> > >  arch/arm/mach-mediatek/mt7629/lowlevel_init.S |   50 +
> > >  arch/arm/mach-mediatek/spl.c                  |   43 +
> > >  board/mediatek/mt7623/Kconfig                 |   13 +
> > >  board/mediatek/mt7623/MAINTAINERS             |    7 +
> > >  board/mediatek/mt7623/Makefile                |    3 +
> > >  board/mediatek/mt7623/mt7623_rfb.c            |   16 +
> > >  board/mediatek/mt7629/Kconfig                 |   17 +
> > >  board/mediatek/mt7629/MAINTAINERS             |    7 +
> > >  board/mediatek/mt7629/Makefile                |    3 +
> > >  board/mediatek/mt7629/mt7629_rfb.c            |   16 +
> > >  common/image.c                                |    1 +
> > >  configs/mt7623n_bpir2_defconfig               |   54 +
> > >  configs/mt7629_rfb_defconfig                  |   73 ++
> > >  doc/README.mediatek                           |  221 ++++
> > >  drivers/clk/Makefile                          |    1 +
> > >  drivers/clk/mediatek/Makefile                 |    7 +
> > >  drivers/clk/mediatek/clk-mt7623.c             |  870 +++++++++++++++
> > >  drivers/clk/mediatek/clk-mt7629.c             |  709 +++++++++++++
> > >  drivers/clk/mediatek/clk-mtk.c                |  493 +++++++++
> > >  drivers/clk/mediatek/clk-mtk.h                |  194 ++++
> > >  drivers/mmc/Kconfig                           |   11 +
> > >  drivers/mmc/Makefile                          |    1 +
> > >  drivers/mmc/mtk-sd.c                          | 1394 +++++++++++++++++++++++++
> > >  drivers/pinctrl/Kconfig                       |    1 +
> > >  drivers/pinctrl/Makefile                      |    1 +
> > >  drivers/pinctrl/mediatek/Kconfig              |   15 +
> > >  drivers/pinctrl/mediatek/Makefile             |    7 +
> > >  drivers/pinctrl/mediatek/pinctrl-mt7623.c     | 1284 +++++++++++++++++++++++
> > >  drivers/pinctrl/mediatek/pinctrl-mt7629.c     |  409 ++++++++
> > >  drivers/pinctrl/mediatek/pinctrl-mtk-common.c |  553 ++++++++++
> > >  drivers/pinctrl/mediatek/pinctrl-mtk-common.h |  184 ++++
> > >  drivers/power/domain/Kconfig                  |    7 +
> > >  drivers/power/domain/Makefile                 |    1 +
> > >  drivers/power/domain/mtk-power-domain.c       |  406 +++++++
> > >  drivers/ram/Makefile                          |    1 +
> > >  drivers/ram/mediatek/Makefile                 |    7 +
> > >  drivers/ram/mediatek/ddr3-mt7629.c            |  766 ++++++++++++++
> > >  drivers/serial/Kconfig                        |   20 +
> > >  drivers/serial/Makefile                       |    1 +
> > >  drivers/serial/serial_mtk.c                   |  268 +++++
> > >  drivers/timer/Kconfig                         |    7 +
> > >  drivers/timer/Makefile                        |    1 +
> > >  drivers/timer/mtk_timer.c                     |   85 ++
> > >  drivers/watchdog/Kconfig                      |    8 +
> > >  drivers/watchdog/Makefile                     |    1 +
> > >  drivers/watchdog/mtk_wdt.c                    |  135 +++
> > >  include/configs/mt7623.h                      |   56 +
> > >  include/configs/mt7629.h                      |   57 +
> > >  include/dt-bindings/clock/mt7623-clk.h        |  413 ++++++++
> > >  include/dt-bindings/clock/mt7629-clk.h        |  206 ++++
> > >  include/dt-bindings/power/mt7623-power.h      |   19 +
> > >  include/dt-bindings/power/mt7629-power.h      |   13 +
> > >  include/image.h                               |    1 +
> > >  scripts/Makefile.spl                          |   11 +
> > >  tools/Makefile                                |    1 +
> > >  tools/mtk_image.c                             |  749 +++++++++++++
> > >  tools/mtk_image.h                             |  199 ++++
> > >  79 files changed, 11386 insertions(+)
> > >  create mode 100644 arch/arm/dts/mt7623.dtsi
> > >  create mode 100644 arch/arm/dts/mt7623n-bananapi-bpi-r2.dts
> > >  create mode 100644 arch/arm/dts/mt7629-rfb-u-boot.dtsi
> > >  create mode 100644 arch/arm/dts/mt7629-rfb.dts
> > >  create mode 100644 arch/arm/dts/mt7629.dtsi
> > >  create mode 100644 arch/arm/include/asm/arch-mediatek/gpio.h
> > >  create mode 100644 arch/arm/include/asm/arch-mediatek/misc.h
> > >  create mode 100644 arch/arm/mach-mediatek/Kconfig
> > >  create mode 100644 arch/arm/mach-mediatek/Makefile
> > >  create mode 100644 arch/arm/mach-mediatek/cpu.c
> > >  create mode 100644 arch/arm/mach-mediatek/init.h
> > >  create mode 100644 arch/arm/mach-mediatek/mt7623/Makefile
> > >  create mode 100644 arch/arm/mach-mediatek/mt7623/init.c
> > >  create mode 100644 arch/arm/mach-mediatek/mt7623/lowlevel_init.S
> > >  create mode 100644 arch/arm/mach-mediatek/mt7623/preloader.h
> > >  create mode 100644 arch/arm/mach-mediatek/mt7629/Makefile
> > >  create mode 100644 arch/arm/mach-mediatek/mt7629/init.c
> > >  create mode 100644 arch/arm/mach-mediatek/mt7629/lowlevel_init.S
> > >  create mode 100644 arch/arm/mach-mediatek/spl.c
> > >  create mode 100644 board/mediatek/mt7623/Kconfig
> > >  create mode 100644 board/mediatek/mt7623/MAINTAINERS
> > >  create mode 100644 board/mediatek/mt7623/Makefile
> > >  create mode 100644 board/mediatek/mt7623/mt7623_rfb.c
> > >  create mode 100644 board/mediatek/mt7629/Kconfig
> > >  create mode 100644 board/mediatek/mt7629/MAINTAINERS
> > >  create mode 100644 board/mediatek/mt7629/Makefile
> > >  create mode 100644 board/mediatek/mt7629/mt7629_rfb.c
> > >  create mode 100644 configs/mt7623n_bpir2_defconfig
> > >  create mode 100644 configs/mt7629_rfb_defconfig
> > >  create mode 100644 doc/README.mediatek
> > >  create mode 100644 drivers/clk/mediatek/Makefile
> > >  create mode 100644 drivers/clk/mediatek/clk-mt7623.c
> > >  create mode 100644 drivers/clk/mediatek/clk-mt7629.c
> > >  create mode 100644 drivers/clk/mediatek/clk-mtk.c
> > >  create mode 100644 drivers/clk/mediatek/clk-mtk.h
> > >  create mode 100644 drivers/mmc/mtk-sd.c
> > >  create mode 100644 drivers/pinctrl/mediatek/Kconfig
> > >  create mode 100644 drivers/pinctrl/mediatek/Makefile
> > >  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7623.c
> > >  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7629.c
> > >  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> > >  create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-common.h
> > >  create mode 100644 drivers/power/domain/mtk-power-domain.c
> > >  create mode 100644 drivers/ram/mediatek/Makefile
> > >  create mode 100644 drivers/ram/mediatek/ddr3-mt7629.c
> > >  create mode 100644 drivers/serial/serial_mtk.c
> > >  create mode 100644 drivers/timer/mtk_timer.c
> > >  create mode 100644 drivers/watchdog/mtk_wdt.c
> > >  create mode 100644 include/configs/mt7623.h
> > >  create mode 100644 include/configs/mt7629.h
> > >  create mode 100644 include/dt-bindings/clock/mt7623-clk.h
> > >  create mode 100644 include/dt-bindings/clock/mt7629-clk.h
> > >  create mode 100644 include/dt-bindings/power/mt7623-power.h
> > >  create mode 100644 include/dt-bindings/power/mt7629-power.h
> > >  create mode 100644 tools/mtk_image.c
> > >  create mode 100644 tools/mtk_image.h
> > > 
> > > -- 
> > > 1.9.1
> > > 
> > > _______________________________________________
> > > U-Boot mailing list
> > > U-Boot at lists.denx.de
> > > https://lists.denx.de/listinfo/u-boot
> > > 
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > https://lists.denx.de/listinfo/u-boot
> > 
> 


More information about the U-Boot mailing list