Date: Thu, 27 Jun 2019 02:13:48 +0100 From: Kaya Saman <kayasaman@optiplex-networks.com> To: freebsd-arm@freebsd.org Subject: Re: Pine64-LTS and UART ports Message-ID: <898bc9b4-67ff-b8b2-1431-9721f48fe9a1@optiplex-networks.com> In-Reply-To: <2a5fea7a-add1-99e2-262e-7ee025679eca@optiplex-networks.com> References: <371fe0f0-9f91-e4ba-ff4e-8338fe9d63de@optiplex-networks.com> <20190623235732.4439b707@zeta.dino.sk> <ae92ac02-ce53-18fe-9eab-8b17e8d52cd2@optiplex-networks.com> <20190624133017.5a9689b7@zeta.dino.sk> <62ba1a30-25bc-af65-beb2-0e05dfc76c79@optiplex-networks.com> <20190624164512.0ea5c4d3@zeta.dino.sk> <75d6afff-8d83-57da-0a13-a4977d12cb87@optiplex-networks.com> <20190624204216.GK2903@eldorado> <20aea57b-1ac5-15e9-ab2b-7230b81b8378@optiplex-networks.com> <20190624210245.GL2903@eldorado> <d50bb684-bc50-36a5-e6fe-d418e9d11a85@optiplex-networks.com> <20190625082724.eb46a97c0c708f5dd033405e@bidouilliste.com> <2a5fea7a-add1-99e2-262e-7ee025679eca@optiplex-networks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/25/19 4:24 PM, Kaya Saman wrote: > > On 6/25/19 7:27 AM, Emmanuel Vadot wrote: >> On Mon, 24 Jun 2019 22:14:15 +0100 >> Kaya Saman <kayasaman@optiplex-networks.com> wrote: >> >>> On 6/24/19 10:02 PM, Sergey Manucharian wrote: >>>> Excerpts from Kaya Saman's message from Mon 24-Jun-19 21:58: >>>> [snip] >> =C2=A0 DTS and DTSO needs to be pre-processed by cpp as they use #incl= ude >> directives, you can have a look at sys/tools/fdt/make_dtb.sh and >> make_dtbo.sh >> =C2=A0 If you modify the DTS simply running make buildkernel will comp= ile the >> new one, just make sure to put it on the FAT32 partition in >> dts/allwinner as we need it loaded by u-boot and it can't read ufs. >> > > Thanks Emmanuel! > > > I ran: make=C2=A0 -j4 buildkernel KERNCONF=3DPPSGENERIC > > > Then installed with: make installkernel KERNCONF=3DPPSGENERIC > > > The sun50i-a64-pine64.dts has the modification already suggested: > > > /* On Pi-2 connector */ > &uart2 { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pinctrl-names =3D "default"; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pinctrl-0 =3D <&uart2_pins>; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 status =3D "okay"; > }; > > > Running: ls -l /boot/dtb/allwinner/ > total 140 > -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 19976 Jun 25 16:11 sun50i-a64= -nanopi-a64.dtb > -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20528 Jun 25 16:11 sun50i-a64= -olinuxino.dtb > -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20677 Jun 25 16:11 sun50i-a64= -pine64-plus.dtb > -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20603 Jun 25 16:11 sun50i-a64= -pine64.dtb > -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20585 Jun 25 16:11=20 > sun50i-a64-sopine-baseboard.dtb > -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 23227 Jun 25 16:11 sun50i-h5-= orangepi-pc2.dtb > > > The dtb files have been created and installed by the 'installkernel'=20 > command. > > > Unfortunately though nothing shows up in dmesg or /dev again outside=20 > of the standard uart0? > > > dmesg |grep uart > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 23 on simplebu= s0 > uart0: console (115384,n,8,1) > > > Is there an additional step which needs to be done to get this to work? > > > Regards, > > > Kaya I found the FAT32 partition that Emmanuel mentioned: " just make sure to put it on the FAT32 partition in dts/allwinner as we need it loaded by u-boot and it can't read ufs." So after copying the overlays and allwinner files to=20 /boot/msdos/dtb/overlays and /boot/msdos/dtb/allwinner I have at least=20 some error messages: Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x47ef8000. Loading DTB overlays:=20 'sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer,sun50i-a64-uart2,sun50i-a= 64-uart4' /boot/dtb/overlays/sun50i-a64-sid.dtbo size=3D0x1fd /boot/dtb/overlays/sun50i-a64-ths.dtbo size=3D0x3e8 /boot/dtb/overlays/sun50i-a64-timer.dtbo size=3D0x175 /boot/dtb/overlays/sun50i-a64-uart2.dtbo size=3D0x123 /boot/dtb/overlays/sun50i-a64-uart4.dtbo size=3D0x123 applying DTB overlay '/boot/dtb/overlays/sun50i-a64-sid.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-ths.dtbo' failed to apply overlay: FDT_ERR_NOTFOUND applying DTB overlay '/boot/dtb/overlays/sun50i-a64-timer.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-uart2.dtbo' failed to apply overlay: FDT_ERR_NOTFOUND applying DTB overlay '/boot/dtb/overlays/sun50i-a64-uart4.dtbo' failed to apply overlay: FDT_ERR_NOTFOUND EHCI failed to shut down host controller. ---<<BOOT>>--- The file list: ls -l=C2=A0 /boot/msdos/dtb/allwinner total 140 -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 19976 Dec=C2=A0 7=C2=A0 2018 su= n50i-a64-nanopi-a64.dtb -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 20528 Dec=C2=A0 7=C2=A0 2018 su= n50i-a64-olinuxino.dtb -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 20685 Dec=C2=A0 7=C2=A0 2018 su= n50i-a64-pine64-plus.dtb -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 20603 Jun 27 01:54 sun50i-a64-p= ine64.dtb -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 20585 Dec=C2=A0 7=C2=A0 2018=20 sun50i-a64-sopine-baseboard.dtb -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 23227 Dec=C2=A0 7=C2=A0 2018 su= n50i-h5-orangepi-pc2.dtb ls -l /boot/msdos/dtb/overlays/ total 20 -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 509 Dec=C2=A0 7=C2=A0 201= 8 sun50i-a64-sid.dtbo -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 1000 Dec=C2=A0 7=C2=A0 2018 sun= 50i-a64-ths.dtbo -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 373 Dec=C2=A0 7=C2=A0 201= 8 sun50i-a64-timer.dtbo -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 291 Jun 27 01:50 sun50i-a= 64-uart2.dtbo -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 291 Jun 27 01:50 sun50i-a= 64-uart4.dtbo ls -l /boot/dtb/allwinner total 140 -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 19976 Jun 25 16:11 sun50i-a64-n= anopi-a64.dtb -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20528 Jun 25 16:11 sun50i-a64-o= linuxino.dtb -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20677 Jun 25 16:11 sun50i-a64-p= ine64-plus.dtb -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20603 Jun 25 16:11 sun50i-a64-p= ine64.dtb -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 20585 Jun 25 16:11=20 sun50i-a64-sopine-baseboard.dtb -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 23227 Jun 25 16:11 sun50i-h5-or= angepi-pc2.dtb ls -l /boot/dtb/overlays total 20 -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 509 Jun 25 16:11 sun50i-a= 64-sid.dtbo -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 1000 Jun 25 16:11 sun50i-a64-th= s.dtbo -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 373 Jun 25 16:11 sun50i-a= 64-timer.dtbo -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 291 Jun 24 21:40 sun50i-a= 64-uart2.dtbo -r--r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0=C2=A0 291 Jun 24 21:12 sun50i-a= 64-uart4.dtbo Even with uart2 and uart4 enabled in: sun50i-a64-pine64.dtb I still=20 don't see anything outside of uart0 under dmesg. What else could I try at this stage? Regards, Kaya
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?898bc9b4-67ff-b8b2-1431-9721f48fe9a1>