User's Manual

Table Of Contents
AI7688H User Manual
-17-
Copyright@2016 AcSiP
3.7 Change bootloader Console
If you want to use another UART port as the bootloader console, you need to modify the
bootloader.
# Get bootloader source code
# modify the file board/rt2880/serial.h
/*
* UART registers
*/
#if defined (MT7621_FPGA_BOARD) || defined (MT7621_ASIC_BOARD) || defined
(MT7628_FPGA_BOARD) || defined (MT7628_ASIC_BOARD)
#define RT2880_UART1 0x0C00 /* UART Lite */
#define RT2880_UART2 0x0D00 /* UART Lite */
#define RT2880_UART3 0x0E00 /* UART Lite */
//#define CFG_RT2880_CONSOLE RT2880_UART1
#define CFG_RT2880_CONSOLE RT2880_UART3
#else
#define RT2880_UART1 0x0500
#define RT2880_UART2 0x0C00 /* UART Lite */
#define CFG_RT2880_CONSOLE RT2880_UART2
#endif
and modify the CFG_RT2880_CONSOLE configuration.
Note that in bootloader code, RT2880_UART1 refers to UART0(UART_TXD0/UART_TXR0)
and so on. So modify the following modification:
Change this:
//#define CFG_RT2880_CONSOLE RT2880_UART1
#define CFG_RT2880_CONSOLE RT2880_UART3
to this:
#define CFG_RT2880_CONSOLE RT2880_UART1
//#define CFG_RT2880_CONSOLE RT2880_UART3
This changes the bootloader console from UART2 to UART0.
if you also want to change the baudrate, please modify the file include/configs/rt2880.h