Need help with u-boot & linux for Yocto build!!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need help with u-boot & linux for Yocto build!!

Jump to solution
1,461 Views
dtvs
Contributor II

I am using Yocto frame work for building the image.

The board used is Wandboard-quad (version c1).

Used the Yocto- dizzy branch.

Build is successfull.

Is Kernel location path below is correct ?

 fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard.

Is U-boot location path below is correct ?

 fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/u-boot-fslc.

Labels (2)
1 Solution
1,139 Views
aravinthkumarja
Senior Contributor II

Hi harsh,

The above mentioned u-boot and linux paths are correct.

Regards,

Aravinth

View solution in original post

3 Replies
1,139 Views
dtvs
Contributor II

Thank you for the reply.

I have customized the .dtsi file in the kernel.

I have modified the imx6qdl.dtsi and imx6qdl-wandboard.dtsi file for enabling the UART2 port on the wandboard.

After changing the .dtsi how to proceed ?not able to get the clear idea!!

Actions done:

1)I used the command from build directory .. bitbake core-image-minimal ---> After running the image I didn't see ttymxc1,

(after executing the ls /dev command.)

2)method:--

After executing the below commands how to load the image?Executed from the build directory..

bitbake -c devshell virtual/kernel

make dtbs

bitbake -c deploy -f virtual/kernel

0 Kudos
1,139 Views
dtvs
Contributor II

I'm trying to use the UART-2 Ports on Wand Board Quad(Ver C1). I have modified the imx6qdl.dtsi and imx6qdl-wandboard.dtsi file for enabling the UART2 port on the Wandboard-Quad.After executing commands
--> cat /dev/ttymxc1 &
-->echo 1234567890 > /dev/ttymxc1
But I'm not getting the echo response for the command executed.(pin 6 --U2_RXand pin 14-U2_TX are shorted ).

*************************************

below path location of git where the changes were made
************************************************************
/home/lablinux/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard/3.10.17-r0/git/arch/arm/boot/dts

Below Changes done in sourcefile --> imx6qdl.dtsi
--------------------------------------------
pinctrl_uart2_3: uart2grp-3 { /* DTE mode */
            fsl,pins = <
                MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
                MX6QDL_PAD_SD4_DAT5__UART2_RTS_B   0x1b0b1
                MX6QDL_PAD_SD4_DAT6__UART2_CTS_B   0x1b0b1
                MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
            >;
        };

below path location of git where the changes were made (imx6qdl-wandboard.dtsi)
------------------------------------------------------
pinctrl_gpio: commented this two pins.
/*MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x4001b0b0 /* GPIO3_27 EDM pin 258 */
/*MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x4001b0b0 /* GPIO3_26 EDM pin 259 */

added below to support uart2

&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart2_3>;
status = "okay";
};

After making the above changes i executed the below commands

-->bitbake -c devshell virtual/kernel (From build directory /home/lablinux/fsl-community-bsp/build)

-->make dtbs (from /home/lablinux/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard/3.10.17-r0/git/)

-->bitbake -c deploy -f virtual/kernel (From build directory /home/lablinux/fsl-community-bsp/build).

then executed

-->bitbake core-image-minimal (From build directory /home/lablinux/fsl-community-bsp/build)

After this loaded the core-image-minimal.sdcard on the SD card using the dd command.

I am able to see the ttymxc1 after executing ls /dev.

But after executing below commands

--> cat /dev/ttymxc1 &
-->echo 1234567890 > /dev/ttymxc1

i am not seeing the echoing (Shorting of tx and rx taken care).(Also ran a serial test and observed the TX(14 pin) line on Oscilloscope no signals are appearing).

Used as reference the below link-->Wandboard Discussion Forums • View topic - Enable Second UART (Kernel 3.10 with Device Tree) 

Please let me know above steps followed for dtsi changes are correct.??and why tthe communication is not happening..

0 Kudos
1,140 Views
aravinthkumarja
Senior Contributor II

Hi harsh,

The above mentioned u-boot and linux paths are correct.

Regards,

Aravinth