cpu型號:mx515
cpu核:arm cortexa8
mx51 uboot 改變控制台
freescale uboot_imx 預設使用uart1作為console即控制台,我們的專案uart2和微控制器通訊。
為了方便除錯,測試uart2,我把uart2作為console,可以排除uart2的**設定問題。
其方法如下:
1.在配置檔案中設定uart2
feilong@feilong-desktop:~/uboot-imx$ svn diff include/configs/mx51_vdphone.h
index: include/configs/mx51_vdphone.h
--- include/configs/mx51_vdphone.h (revision 184)
+++ include/configs/mx51_vdphone.h (working copy)
@@ -68,7 +68,8 @@
* hardware drivers
#define config_mx51_uart 1
-#define config_mx51_uart1 1
+//#define config_mx51_uart1 1
+#define config_mx51_uart2 1
@@ -118,7 +119,7 @@
/* allow to overwrite serial and ethaddr */
#define config_env_overwrite
-#define config_cons_index 1
+#define config_cons_index 2
#define config_baudrate 115200
#define config_sys_baudrate_table
2.在板子初始化檔案中配置uart2引腳為uart2模式
feilong@feilong-desktop:~/uboot-imx$ svn diff board/freescale/mx51_bbg/mx51_bbg.c
index: board/freescale/mx51_bbg/mx51_bbg.c
--- board/freescale/mx51_bbg/mx51_bbg.c (revision 136)
+++ board/freescale/mx51_bbg/mx51_bbg.c (working copy)
@@ -238,6 +238,20 @@
writel(0x00000004, 0x73fa83ec);
+static void setup_uart2(void)
+ unsigned int pad = pad_ctl_hys_enable | pad_ctl_pke_enable |
+ pad_ctl_pue_pull | pad_ctl_drv_high;
+ mxc_request_iomux(mx51_pin_uart2_rxd, iomux_config_alt0);
+ mxc_iomux_set_pad(mx51_pin_uart2_rxd, pad | pad_ctl_sre_fast);
+ mxc_request_iomux(mx51_pin_uart2_txd, iomux_config_alt0);
+ mxc_iomux_set_pad(mx51_pin_uart2_txd, pad | pad_ctl_sre_fast);
+ /* enable gpio1_9 for clk0 and gpio1_8 for clk02 */
+ writel(0x00000004, 0x73fa83e8);
+ writel(0x00000004, 0x73fa83ec);
void setup_nfc(void)
/* enable nfc iomux */
@@ -711,6 +725,7 @@
gd->bd->bi_boot_params = phys_sdram_1 + 0x100;
setup_uart();
+ setup_uart2();
setup_nfc();
setup_expio();
setup_fec();
feilong@feilong-desktop:~/uboot-imx$
imx515 wince6 0下配置GPIO中斷
最近在wince平台下使用到了外部中斷功能,做個記錄,使用的是飛思卡爾的imx515晶元 1 配置管腳為gpio管腳 ddkiomuxsetpinmux ddk iomux pin csi1 d9,ddk iomux pin muxmode alt3,ddk iomux pin sion regul...
imx6 Uboot 移植小結
imx6 uboot移植參考nxp freescale 官方文件 i.mx 6 bsp porting guide 此次的uboot基於u boot v2014.04版本,參考板為imx6qsabreauto,目標板命名為myboard cp r board freescale mx6qsabrea...
編譯IMX6ULL的u boot和kernel原始碼
ubuntu14.04的編譯環境 第乙個 號,普通使用者 chmod x fsl imx x11 glibc x86 64 meta toolchain qt5 cortexa7hf neon toolchain 4.1.15 2.1.0.sh fsl imx x11 glibc x86 64 me...