How to show Debug message during mfgtool burning

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show Debug message during mfgtool burning

274 Views
wangvictor
Contributor III

Hi, I'm using i.MX6 sabresd for my layer.

I wanna show the debug message from uart2 during mfgtool burning.

I've settings my dts under mfgtool-linux-imx/4.1.15-r0/git/arch/arm/boot/dts/XXX.dts

Also I modify the mx6sabresd.c which is located at u-boot-imx/2015.04-r0/git/board/freescale/mx6sabresd/.

This is what I try to modified.

static iomux_v3_cfg_t const uart1_pads[] = {
MX6_PAD_CSI0_DAT10__UART1_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_CSI0_DAT11__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
};/*ttymxc0*/

to

static iomux_v3_cfg_t const uart1_pads[] = {
MX6_PAD_EIM_D26__UART2_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_EIM_D27__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_EIM_A25__GPIO5_IO02 | MUX_PAD_CTRL(NO_PAD_CTRL),
};/*ttymxc1*/

Besides, I also modify this two file which are mx6sabre_common.h and mx6sabresd.h.

Below is what I have modified.

For mx6sabre_common.h

#define CONFIG_CONS_INDEX                       1

to

#define CONFIG_CONS_INDEX                       2 /*1 to 2*/

For mx6sabresd.h

#define CONFIG_MXC_UART_BASE UART1_BASE 
#define CONFIG_CONSOLE_DEV "ttymxc0"

to

#define CONFIG_MXC_UART_BASE UART2_BASE /*UART1_BASE to UART2_BASE*/
#define CONFIG_CONSOLE_DEV "ttymxc1" /*ttymxc0 to ttymxc1*/

But I still cannot show the debug message.

However I can show the kernel message after I burning the image and reboot the system.

How can I solve this problem?

Thanks in Advanced!

Tags (2)
0 Kudos
1 Reply

93 Views
jerrylain
Contributor II

Did you put your dtb and u-boot file to BootStrap location? I mean, mfgtool will burn a u-boot and kernel first, then burn your real image. So need to put your modified file to 2 locations.