DEVICE TREE(UART4) YOCTO PROBLEM [SOLVED]

Moderators: Oren.R, Eran.M, fradensky

cevatbostancioglu
Posts: 3
Joined: Thu Sep 01, 2016 6:23 am

DEVICE TREE(UART4) YOCTO PROBLEM [SOLVED]

Postby cevatbostancioglu » Tue Sep 06, 2016 8:09 am

Hello , we are using imx6-ul board for our projects. we are changing device tree structre with these guide:
http://variwiki.com/index.php?title=DART-6UL_UART

and recompiling zImage and device trees with these guide:
http://variwiki.com/index.php?title=DAR ... ut_of_tree
they are working as mentoined , no compile error , no permission errors. but when we try to boot imx6 with sd card boot option , debug window just stops when kernel is starting , this is boot log:

Code: Select all

U-Boot SPL 2015.10 (Sep 05 2016 - 18:25:03)

i.MX6UL SOC

Part number: VSM-6UL-701

Assembly: AS160606579

Date of production: 2016 Jul 26

DART-6UL configuration: NAND WIFI

Ram size: 512

Boot Device: SD



U-Boot 2015.10 (Sep 05 2016 - 18:25:03 +0300)


CPU:   Freescale i.MX6UL rev1.1 792 MHz (running at 396 MHz)

CPU:   Industrial temperature grade (-40C to 105C) at 40C

Reset cause: POR

Board: MX6UL Variscite DART

I2C:   ready

DRAM:  512 MiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1

*** Warning - bad CRC, using default environment


In:    serial

Out:   serial

Err:   serial

switch to partitions #0, OK

mmc0 is current device

Net:   got MAC0 address from fuse: f8:dc:7a:08:ac:9c

FEC0

Hit any key to stop autoboot:  1  0

switch to partitions #0, OK

mmc0 is current device

switch to partitions #0, OK

mmc0 is current device

reading boot.scr

** Unable to read file boot.scr **

reading zImage

6228864 bytes read in 286 ms (20.8 MiB/s)

CRC32 for 82000000 ... 882fffff ==> 74e97ef6

Booting from mmc ...

reading imx6ul-var-dart-sd_nand.dtb

Invalid FAT entry

4096 bytes read in 18 ms (221.7 KiB/s)

Kernel image @ 0x82000000 [ 0x000000 - 0x5f0b80 ]

## Flattened Device Tree blob at 83000000

   Booting using the fdt blob at 0x83000000

   Using Device Tree in place at 83000000, end 8300b2db


Starting kernel ...


i added uart4 device tree structre code as follows(http://variwiki.com/index.php?title=DART-6UL_UART):
<imx6ul-var-dart.dtsi>

Code: Select all

/*  tx and rx only UART ttymxc3  */
&uart4 {
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_uart4_1>;
   status = "okay";
};

/* Variscite Uart4 support */
         pinctrl_uart4_1: uart4grp-1 {    /* RX/TX only */
            fsl,pins = <
               MX6UL_PAD_UART4_TX_DATA__UART4_DCE_TX 0x1b0b1
         MX6UL_PAD_UART4_RX_DATA__UART4_DCE_RX 0x1b0b1
            >;
         };


i just added these lines to imx6ul-var-dart.dtsi file , i also try before changing imx6-pinfunc.h file with fido,jethro yocto dist but uart4 doesn't worked.

now i am using DART-6UL Yocto Jethro R1 but before i try these setups with fido distro. i never saw /dev/ttymcx3 device and i also try it with /dev/tty4 , /dev/tty3 devices but doesn't worked.

so do you have any idea how i can open uart4 perip. on kernel or runtime and i saw many post on forum , they are just editing these file and they saw /dev/ttymxc3.

thank you.

Cevat

cevatbostancioglu
Posts: 3
Joined: Thu Sep 01, 2016 6:23 am

Re: DEVICE TREE(UART4) YOCTO PROBLEM

Postby cevatbostancioglu » Tue Nov 01, 2016 1:19 pm

i will try it tomorrow. thanks.

cevatbostancioglu
Posts: 3
Joined: Thu Sep 01, 2016 6:23 am

Re: DEVICE TREE(UART4) YOCTO PROBLEM [SOLVED]

Postby cevatbostancioglu » Tue Nov 08, 2016 10:47 am

Hello , we saw ttymxc3 our board , tx works good but device can't rx data from host computer to dart-6ul.


Return to “Yocto”

Who is online

Users browsing this forum: No registered users and 1 guest

cron