Re: [PATCH 0/3] Fix broken bananapi m2 devicetree/regulators

From: Philipp Rossak
Date: Sun Feb 11 2018 - 06:30:40 EST


Am Sonntag, den 11.02.2018, 10:55 +0300 schrieb Sergey Suloev:
> On 02/11/2018 01:07 AM, Philipp Rossak wrote:
> >
> >
> > On 10.02.2018 22:08, Sergey Suloev wrote:
> > > On 02/11/2018 12:01 AM, Philipp Rossak wrote:
> > > > Hey Sergey,
> > > >
> > > > Thanks for mentioning, but I think the problem has nothing to
> > > > doÂ
> > > > with those patches. I tested them with the v4.15.0 Kernel since
> > > > thisÂ
> > > > is the last stable release and we are right now in the merging
> > > > window.
> > > >
> > > > I tested the latest mainline, without those patches and the
> > > > kernelÂ
> > > > is not booting (I can't see any uart output).
> > > >
> > > > Thanks,
> > > > Philipp
> > > >
> > > > On 10.02.2018 14:56, Sergey Suloev wrote:
> > > > > On 02/09/2018 08:52 PM, Philipp Rossak wrote:
> > > > > > This patchseries fixes the bananapi m1 devicetree, to be
> > > > > > able toÂ
> > > > > > boot again.
> > > > > > The first two patches update/improve the devicetree and the
> > > > > > lastÂ
> > > > > > patch adds
> > > > > > all missing regulators.
> > > > > >
> > > > > > Regards,
> > > > > > Philipp
> > > > > >
> > > > > > Philipp Rossak (3):
> > > > > > ÂÂ arm: dts: sun6i: a31s: bpi-m2: update mmc supply nodes
> > > > > > ÂÂ arm: dts: sun6i: a31s: bpi-m2: improve pmic properties
> > > > > > ÂÂ arm: dts: sun6i: a31s: fix: bpi-m2: add missing
> > > > > > regulators
> > > > > >
> > > > > > Â arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 70Â
> > > > > > +++++++++++++++++++++++-
> > > > > > Â 1 file changed, 67 insertions(+), 3 deletions(-)
> > > > > >
> > > > >
> > > > > patches are not working
> > > > >
> > > > > Thanks
> > > > >
> > >
> > > same problem, but after applying the patches my device is till
> > > hanging.
> > >
> > >
> >
> > Can you please share a bootlog? Here is mine [1]. As you can see
> > I'mÂ
> > able to boot.
> > I build it with this branch [2]. For testing you should replace
> > theÂ
> > dtb and the uImage/zImage
> >
> > Philipp
> >
> >
> > [1]: https://pastebin.com/mVjv3LDf
> > [2]:Â
> > https://github.com/embed-3d/linux/tree/testing/bpi-m2-regulator-tes
> > t-2
>
> My dmesg is very similar to yours unless it hangs on the last line
> [1].Â
> For this test I used kernel from tag v4.15 with no additional
> patching.
>
> [1] https://pastebin.com/3a6bk5Dk
>
>

For me it looks like you have a different kernel and also an different
dtb that you patch! And you are applying also a fixup script.
These patches should be applied on top of linux mainline.

fixup script:
Applying kernel provided DT fixup script (sun6i-a31s-fixup.scr)


Linux versions:
4.15.0-00003-g1bbe5edde691 vs 4.15.0-sunxi-dirty

In addition to that you are also booting into fb/hdmi.

If you use my branch (uImage and dtb) and replace the current boot.cmd
with this (to get the boot.scr you need to use mkimage) it should work:

setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
panic=10
load mmc 0:1 0x43000000 ${fdtfile} || load mmc 0:1 0x43000000
boot/${fdtfile}
load mmc 0:1 0x42000000 uImage || load mmc 0:1 0x42000000 boot/uImage
bootm 0x42000000 - 0x43000000