From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olliver Schinagl Subject: Re: [PATCH 1/1] ARM: dts: sunxi: Add a olinuxino-lime2-emmc Date: Tue, 10 May 2016 20:46:37 +0200 Message-ID: <57322C8D.5060806@schinagl.nl> References: <1461827998-12192-1-git-send-email-oliver@schinagl.nl> <57285162.2000704@schinagl.nl> <5729F07C.3080308@schinagl.nl> <948be370-4401-43cb-862e-d4376755a75d@googlegroups.com> <5729F6D6.8030100@schinagl.nl> <4704fa35-9a2a-4e6e-8fd4-f4778405c598@googlegroups.com> <572A0052.9060202@schinagl.nl> <2e745ef7-ddc0-40fc-b867-414543690276@googlegroups.com> <572A10B3.2020803@schinagl.nl> <4375220a-f939-4ed0-a6d7-2cf887b07509@googlegroups.com> <9fe7ebb6-6d74-4b73-b6d6-93b79650cdb6@googlegroups.com> <9745a80b-5444-43f7-b772-68684c96c9e5@googlegroups.com> Reply-To: oliver-dxLnbx3+1qmEVqv0pETR8A@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------090809000806060801090403" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <9745a80b-5444-43f7-b772-68684c96c9e5-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Christo Radev , linux-sunxi Cc: radoslav.kolev-1W28NRE8jL9DPfheJLI6IQ@public.gmane.org, wens-jdAy2FN1RRM@public.gmane.org, maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, tsvetan-kyXcfZUBQGPQT0dZR+AlfA@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org, hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, dev-3kdeTeqwOZ9EV1b7eY7vFQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org This is a multi-part message in MIME format. --------------090809000806060801090403 Content-Type: text/plain; charset=UTF-8; format=flowed Hey Christo, On 10-05-16 19:25, Christo Radev wrote: > Hi Olliver, > > I try to build Armbian with kernel 4.5.0-rc6 by adding the patch as > discussed here > . > In addition I have to add following as well: > | > diff --git a/arch/arm/boot/dts/Makefileb/arch/arm/boot/dts/Makefile > index 95c1923..9d6cfa8100644 > ---a/arch/arm/boot/dts/Makefile > +++b/arch/arm/boot/dts/Makefile > @@-695,6+696,7@@dtb-$(CONFIG_MACH_SUN7I)+=\ > sun7i-a20-olimex-som-evb.dtb \ > sun7i-a20-olinuxino-lime.dtb \ > sun7i-a20-olinuxino-lime2.dtb \ > + sun7i-a20-olinuxino-lime2-emmc.dtb \ > sun7i-a20-olinuxino-micro.dtb \ > sun7i-a20-orangepi.dtb \ > sun7i-a20-orangepi-mini.dtb \ > | > to be able to compile the new sun7i-a20-olinuxino-lime2-emmc.dts file. Good point, I actually forgot that bit in my own Makefile. > > After booting I have renamed it to sun7i-a20-olinuxino-lime2.dts and > reboot lime-eMMC board. why rename it to dts? i'm sure you mean dtb, and I'm guessing because armbian loads that per default. > > Unfortunately, I get some error messages: > | > root@lime2:~# dmesg | grep mmc > [0.000000]Kernelcommand line:console=tty1 root=/dev/mmcblk0p1 rootwait > rootfstype=ext4 cgroup_enable=memory > swapaccount=1sunxi_ve_mem_reserve=0sunxi_g2d_mem_reserve=0sunxi_no_mali_mem_reserve > sunxi_fb_mem_reserve=16hdmi.audio=EDID:0disp.screen0_output_mode=1920x1080p60panic=10consoleblank=0enforcing=0loglevel=1 > [3.721024]sunxi-mmc 1c0f000.mmc:GotCD GPIO > [3.758926]sunxi-mmc 1c0f000.mmc:base:0xf08dc000irq:26 > [3.759832]sunxi-mmc 1c11000.mmc:allocated mmc-pwrseq > [4.528643]sunxi-mmc 1c11000.mmc:fatal err update clk timeout > [4.535700]mmc0:host does notsupport reading read-only switch,assuming > write-enable > [4.538253]mmc0:newhigh speed SDHC card at address 0002 > [4.539066]mmcblk0:mmc0:0002000003.70GiB > [4.540959] mmcblk0:p1 > [4.548773]sunxi-mmc 1c11000.mmc:base:0xf08f2000irq:27 > [6.418686]sunxi-mmc 1c11000.mmc:fatal err update clk timeout > [6.600359]EXT4-fs (mmcblk0p1):mounted filesystem withwriteback data > mode.Opts:(null) > [7.168650]sunxi-mmc 1c11000.mmc:fatal err update clk timeout > [7.918646]sunxi-mmc 1c11000.mmc:fatal err update clk timeout > [9.875182]EXT4-fs (mmcblk0p1):re-mounted.Opts:commit=600,errors=remount-ro > | > > Where could be the problem? Not exactly sure, are you using the correct lime ;) It does look like the correct dtb was used, since the second mmc controller is available. Maybe the bootloader prepares/inits something that is missing? sounds unlikly but possible. Maybe armbian does more changes? > > Best regards > Chris > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. --------------090809000806060801090403 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey Christo,

On 10-05-16 19:25, Christo Radev wrote:<= br>
Hi Olliver,

I try to build Armbian with kernel 4.5.0-rc6 by adding the patch as discussed here.
In addition I have to add following as well:
diff --git a= /arch<= /span>/arm/boot<= /span>/dts/Makef= ile b/arch<= /span>/arm/boot<= /span>/dts/Makef= ile
index
95c1923..9d6cf= a8 10064= 4
--- a/arch<= /span>/arm/boot<= /span>/dts/Makef= ile
+++ b/arch<= /span>/arm/boot<= /span>/dts/Makef= ile
@@ -695,6 +696,7 @@ dtb<= /span>-$(CONFI= G_MACH_SUN7I) +=3D<= /span> \
=C2=A0 =C2=A0 =C2=A0sun7i
-a20-olime= x-som-evb.dtb <= /span>\
=C2=A0 =C2=A0 =C2=A0sun7i
-a20-olinu= xino-lime<= /span>.dtb <= /span>\
=C2=A0 =C2=A0 =C2=A0sun7i
-a20-olinu= xino-lime2= .dtb <= /span>\
+ =C2=A0 =C2=A0sun7i-a20-olinu= xino-lime2= -emmc<= /span>.dtb <= /span>\
=C2=A0 =C2=A0 =C2=A0sun7i
-a20-olinu= xino-micro= .dtb <= /span>\
=C2=A0 =C2=A0 =C2=A0sun7i
-a20-orang= epi.dtb <= /span>\
=C2=A0 =C2=A0 =C2=A0sun7i
-a20-orang= epi-mini<= /span>.dtb <= /span>\
to be able to compile the new sun7i-a20-olinuxino-lime2-emmc.dts file.
Good point, I actually forgot that bit in my own Makefile.

After booting I have renamed it to sun7i-a20-olinuxino-lime2.dts and reboot lime-eMMC board.
why rename it to dts? i'm sure you mean dtb, and I'm guessing because armbian loads that per default.

Unfortunately, I get some error messages:
root@lime2:~# dmesg | grep mmc
[ =C2=A0 =C2=A0= 0.000= 000] Kerne= l command line: console=3Dtty1 root=3D/dev/mmcbl= k0p1 rootwait rootfstype=3Dext4 cgroup_enable=3Dmemor= y swapaccount=3D1 sunxi_ve_mem_reserve=3D0 sunxi_g2d_mem_reserve=3D0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=3D16 hdmi= .audio= =3DEDID<= /span>:0 disp= .scree= n0_output_mode=3D1920x= 1080p60 pani= c=3D10 consoleblank=3D0 enforcing=3D0 loglevel=3D1
[ =C2=A0 =C2=A0= 3.721= 024] sunx= i-mmc <= /span>1c0f0= 00.mmc: Got CD GPIO
[ =C2=A0 =C2=A0= 3.758= 926] sunx= i-mmc <= /span>1c0f0= 00.mmc: base<= /span>:0xf08= dc000 irq<= /span>:26
[ =C2=A0 =C2=A0= 3.759= 832] sunx= i-mmc <= /span>1c110= 00.mmc: allocated mmc-pwrseq
[ =C2=A0 =C2=A0= 4.528= 643] sunx= i-mmc <= /span>1c110= 00.mmc: fata= l err update clk timeout
[ =C2=A0 =C2=A0= 4.535= 700] mmc0= : host does not support reading read-only switc= h, assuming write-enable
[ =C2=A0 =C2=A0= 4.538= 253] mmc0= : new high speed SDHC card at address 0002
[ =C2=A0 =C2=A0= 4.539= 066] mmcblk0: mmc0:0002<= /span> 00000= 3.70<= /span> GiB
[ =C2=A0 =C2=A0= 4.540= 959] =C2=A0mmcblk0: p1
[ =C2=A0 =C2=A0= 4.548= 773] sunx= i-mmc <= /span>1c110= 00.mmc: base<= /span>:0xf08= f2000 irq<= /span>:27
[ =C2=A0 =C2=A0= 6.418= 686] sunx= i-mmc <= /span>1c110= 00.mmc: fata= l err update clk timeout
[ =C2=A0 =C2=A0= 6.600= 359] EXT4= -fs (mmcbl= k0p1): mounted filesystem with writeback data mode. Opts<= /span>: (null<= /span>)
[ =C2=A0 =C2=A0= 7.168= 650] sunx= i-mmc <= /span>1c110= 00.mmc: fata= l err update clk timeout
[ =C2=A0 =C2=A0= 7.918= 646] sunx= i-mmc <= /span>1c110= 00.mmc: fata= l err update clk timeout
[ =C2=A0 =C2=A0= 9.875= 182] EXT4= -fs (mmcbl= k0p1): re-mount= ed. Opts<= /span>: commit=3D600,error= s=3Dremou= nt-ro

Where could be the problem?
Not exactly sure, are you using the correct lime ;)

It does look like the correct dtb was used, since the second mmc controller is available. Maybe the bootloader prepares/inits something that is missing? sounds unlikly but possible. Maybe armbian does more changes?

Best regards
Chris


--
You received this message because you are subscribed to the Google Groups &= quot;linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to linux-s= unxi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit http= s://groups.google.com/d/optout.
--------------090809000806060801090403--