reset command doesn't work on MT7628 (CPU: MediaTek MT7628A ver:1 eco:2)
Andrii Voloshyn
a.voloshyn at d.mobilunity.com
Wed Aug 12 14:48:41 CEST 2020
Hi Stefan,
---- On Wed, 12 Aug 2020 15:08:41 +0300 Stefan Roese <sr at denx.de> wrote ----
> Hi Andrew,
>
> On 12.08.20 14:04, Andrii Voloshyn wrote:
> > Hi Stefan,
> >
> > > Hi Andrew,
> > >
> > > (added Weijie to Cc)
> > >
> > > On 12.08.20 09:18, Andrii Voloshyn wrote:
> > > > Hi there,
> > > >
> > > > There is one issue, I experience with (U-Boot 2020.07) on MT7628DAN, "reset" command issued in hush prompt
> > > > causes board to hang, until I do a power cycle. On the other hand there is no such issue on mt7688 board.
> > >
> > > Do you see no further output? Or is it perhaps stuck at the DDR init
> > > code in SPL? Can you please post the log (complete boot log with reset
> > > command)?
> >
> > There is only "resetting..." printed, once the reset command is executed.
>
> I see. Thanks.
>
> > By the way, I am not using SPL loader.
>
> Why not? Did you give the version with SPL a try? Here most of the
> lowlevel init stuff is executed. Something might be missing in the
> general HW setup if its not used.
Then I will need to flash two binaries, spl + uboot, right?
In any case SPL is optional, at least it should be. :) on this hw.
>
> How are you running the non-SPL (main) U-Boot on your board? Do you
> load it via an old U-Boot? Or is it configured for SPI flash usage
> without SPL instead?
I am running the way it was done prior to recent SPL changes.
SPI NOR flash is mapped to 0x9c000000 address, and that's what the text base address is set to when SPL is disabled:
arch/mips/mach-mtmips/Konfig
config SYS_TEXT_BASE
>---default 0x9c000000 if !SPL
>---default 0x80200000 if SPL
Also, I'd like to note that all other functionality in the u-boot works fine, booting of FIT images, other commands I use,
the only problem is with the reset command.
When I trigger reset manually (writing to RSTCTL register), I get the same behavior:
mw 0x10000034 0x1
>
> > Console output below:
> >
> > U-Boot 2020.07
> >
> > CPU: MediaTek MT7628A ver:1 eco:2
> > Boot: DDR2, SPI-NOR 3-Byte Addr, CPU clock from XTAL
> > Clock: CPU: 580MHz, Bus: 193MHz, XTAL: 40MHz
> > Model: test
> > DRAM: 64 MiB
> > Loading Environment from SPI Flash... SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
> > OK
> > Net:
> > Warning: eth at 10110000 (eth0) using random MAC address - ba:f6:29:35:59:b5
> > eth0: eth at 10110000
> > Hit any key to stop autoboot: 0
> > => reset
> > resetting ...
>
> Thanks,
> Stefan
>
Thanks.
Andrii
More information about the U-Boot
mailing list