Should I enable UART3 (/dev/ttymxc2) (pin 47,53) and UART5 (/dev/ttymxc4) (pin 48,49) on Udoo dual CS975REVD BD REVD I modified the file Kernel_Unico/arch/arm/mach-mx6/board-mx6sdl_seco_UDOO.h of the las Git disabled: uart3 // MX6DL_PAD_EIM_D24__GPIO_3_24, // MX6DL_PAD_EIM_D25__GPIO_3_25 // MX6DL_PAD_EIM_D24__GPIO_MODE, // MX6DL_PAD_EIM_D25__GPIO_MODE, uart5 // MX6DL_PAD_KEY_ROW1__GPIO_4_9, // pin 48 // MX6DL_PAD_KEY_COL1__GPIO_4_8, // pin 49 // MX6DL_PAD_KEY_COL1__GPIO_MODE, // MX6DL_PAD_KEY_ROW1__GPIO_MODE, enabled: MX6DL_PAD_EIM_D24__UART3_TXD, MX6DL_PAD_EIM_D25__UART3_RXD, MX6DL_PAD_KEY_ROW1__UART5_RXD, MX6DL_PAD_KEY_COL1__UART5_TXD, modified the file Kernel_Unico/arch/arm/mach-mx6/board-mx6_seco_UDOO.c static inline void mx6q_seco_UDOO_init_uart(void) { imx6q_add_imx_uart(0, NULL); imx6q_add_imx_uart(1, NULL); imx6q_add_imx_uart(2, NULL); imx6q_add_imx_uart(3, NULL); imx6q_add_imx_uart(4, NULL); } at boot shows the following error: [ 0.582020] > UDOO dual [ 0.585793] > rev C Called set_gpios_direction [ 0.590475] Test and set gpios directions and values by Gionji feat. Ekirei test [ 0.613162] #### FAILED Eported gpio 8. error : -16 [ 0.618173] #### FAILED Eported gpio 7. error : -16 checked with dmesg and setserial ubuntu@udoo:~$ dmesg | grep tty [ 1.402802] imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX [ 1.409832] imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX [ 1.416351] console [ttymxc1] enabled, bootconsole disabled [ 1.428889] imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX [ 1.435894] imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX [ 1.442793] imx-uart.4: ttymxc4 at MMIO 0x21f4000 (irq = 62) is a IMX ubuntu@udoo:~$ setserial -g /dev/ttymxc[01234] /dev/ttymxc0: Permission denied /dev/ttymxc1: Permission denied /dev/ttymxc2, UART: undefined, Port: 0x0000, IRQ: 60 /dev/ttymxc3, UART: undefined, Port: 0x0000, IRQ: 61 /dev/ttymxc4, UART: undefined, Port: 0x0000, IRQ: 62 serial ports do not work. To do some other changes? Tanks
I had a similar problem. /dev/ttymxc2 and /dev/ttymxc4 belonged to root. Code: $ ls -al /dev/ttymxc* crw------- 1 root root 207, 16 Jun 24 13:43 /dev/ttymxc0 crw------- 1 ubuntu tty 207, 17 Jun 24 14:05 /dev/ttymxc1 crw------- 1 root root 207, 18 Jun 24 14:00 /dev/ttymxc2 crw-rw-r-- 1 root intserial 207, 19 Jun 24 13:43 /dev/ttymxc3 crw------- 1 root root 207, 20 Jun 24 14:00 /dev/ttymxc4 and so the normal user had no access to it ...
Regarding the permissions on UDOObuntu we used the file named /etc/udev/rules.d/10-imx.rules for the serial ttymxc3. The other serials may be managed the same way.