Serial Port not working

Discussion in 'UDOO NEO' started by pavan, Jul 12, 2019.

  1. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    serial port not working in UDOO neo.
    Can any one help to resolve the issue.
     
    huthamcau likes this.
  2. evaloverde

    evaloverde Administrator Staff Member

    Joined:
    Apr 29, 2019
    Messages:
    236
    Likes Received:
    60
    Ciao Pavan, could you please provide more details? We need them to help resole your issue
     
    huthamcau and ektor5 like this.
  3. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    sudo ./mkudoobuntu.sh udoo-neo desktop

    Using above command i was create *.img file and after that i was flashed to SD card.
    Inserted to UDOO-NEO board. That time

    UART_1_TX 47 UART1_TXD GPIO_4 IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO04 ALT0 - UART1_TX_DATA
    UART_1_RX 46 UART1_RXD GPIO_5 IOMUXC_SW_MUX_CTL_PAD_GPIO1_IO05 ALT0 - UART1_RX_DATA

    This pins connected to DB9 female connected and female connector. Like below.

    <UDOO-NEO> ==> (46,47) <====> DB9 female connector <===> USB-serial cable <====> PC

    Cable not problem, it working i was used for other also.

    In minicom following configurations i have done: ( same as showed in udoo-doc site)

    | A - Serial Device : /dev/ttyUSB0 |
    | B - Lockfile Location : /var/lock |
    | C - Callin Program : |
    | D - Callout Program : |
    | E - Bps/Par/Bits : 115200 8N1 |
    | F - Hardware Flow Control : No |
    | G - Software Flow Control : No |

    In Minicom terminal showing all "JUNK VALUES"

    This is the problem.
    Thanks,
    Pavan.
     
    huthamcau likes this.
  4. ektor5

    ektor5 Administrator Staff Member

    Joined:
    Jul 1, 2013
    Messages:
    97
    Likes Received:
    48
    Hi @pavan,
    Have you tried with the precompiled official images in the Download section?
    https://www.udoo.org/downloads/

    Also, send the model of the serial adapter and post a picture of the setup.

    Thanks,
    Ek5
     
    huthamcau and evaloverde like this.
  5. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    Hi Ektor,

    Thanks for response.

    I have tried two official images, still i am facing same issue. "Junk values" displaying in minicom.
    https://www.udoo.org/downloads/ == > below two image collected from this link.
    udoobuntu-udoo-neo-desktop_2.3.0.zip
    udoobuntu-udoo-neo-minimal_2.3.0.zip

    dmesg of serial console after connect.

    [20628.388413] usb 2-2: new full-speed USB device number 18 using xhci_hcd
    [20628.542764] usb 2-2: New USB device found, idVendor=0403, idProduct=6001
    [20628.542768] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [20628.542771] usb 2-2: Product: USB Serial Converter
    [20628.542773] usb 2-2: Manufacturer: FTDI
    [20628.542775] usb 2-2: SerialNumber: FTAJM0V7
    [20628.546249] ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
    [20628.546317] usb 2-2: Detected FT232RL
    [20628.546542] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0

    With other serial cable also tried, same problem in that cable also.

    UDOO NEO
    UART_1_TX 47 ==> 2 Pin of DB9
    UART_1_RX 46 ==> 3 Pin of DB9
    GND pin ==> 5 Pin of DB9

    Still if any thing wrong in my procedure, please tell me.

    Thanks,
    Pavan.
     
    huthamcau likes this.
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    huthamcau, evaloverde and ektor5 like this.
  7. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    huthamcau likes this.
  8. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    Hi Ek5, waltervl and team,

    Thanks a lot .... i have tried with "cp21x converter" same cable. Now it is working fine ... :).
     
    huthamcau likes this.
  9. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    Hi Team,

    How to create own SD card partition and how to write SPL,Uboot to SD card.

    While write to SD card i am facing below issue.

    Could you please help on this.
    Code:
    linux$
    linux$ lsblk
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda      8:0    0 465.8G  0 disk
    ├─sda1   8:1    0  95.4G  0 part /
    ├─sda2   8:2    0   3.8G  0 part [SWAP]
    ├─sda3   8:3    0   250G  0 part /media/linux/d3013e39-a19c-402e-8736-0ccd0b2bb896
    └─sda4   8:4    0 116.6G  0 part /media/linux/3b7afe20-bab2-406a-8c64-811e78f911e2
    sdb      8:16   1   7.5G  0 disk
    ├─sdb1   8:17   1    32M  0 part /media/linux/boot1
    └─sdb2   8:18   1   2.6G  0 part /media/linux/udoobuntu
    sr0     11:0    1  1024M  0 rom 
    linux$
    linux$
    linux$
    linux$
    linux$
    linux$ ls
     SPL          u-boot.img             zImage        dts
     System.map 
    linux$ sudo dd if=SPL of=/dev/sdb1 seek=1 bs=1k
    [sudo] password for linux:
    31+0 records in
    31+0 records out
    31744 bytes (32 kB, 31 KiB) copied, 0.000417137 s, 76.1 MB/s
    linux$
    linux$
    linux$ ls
     SPL          u-boot.img             zImage        dts
     System.map
    linux$
    linux$ sudo dd if=u-boot.img of=/dev/sdb1 seek=69 bs=1k
    230+1 records in
    230+1 records out
    236260 bytes (236 kB, 231 KiB) copied, 0.00160651 s, 147 MB/s
    linux$ sync
    linux$
    linux$
    linux$
    ls: cannot access ''$'\022''± 2ε╥'$'\a''ε.Ü_'$'\001': Input/output error
    ls: cannot access ''$'\b''╨"f'$'\v''h'$'\f''i.'$'\001''<'$'\r': Input/output error
    ls: cannot access ''$'\a''εü?'$'\001''≡.'$'\b''╡ ': Input/output error
    ls: cannot access 'ಠ≈m '$'\001''≡.╣² ': Input/output error
    ls: cannot access ''$'\003''╤'$'\001'')'$'\024''┐c#.g#┬': Input/output error
    ls: cannot access ''$'\032''`,J.ó⌡µ': Input/output error
    ls: cannot access 'w └≤'$'\a''0c(.'$'\005''╤ ': Input/output error
    ls: cannot access 'pG.'$'\b''╡ ': Input/output error
    ls: cannot access '#╨'$'\022''KÜi┬≤.AQ┬': Input/output error
    ls: cannot access ''$'\t\003\003''çpgpg.'$'\017''jo': Input/output error
    ls: cannot access ''$'\a''╤'$'\002''≡'$'\003\003\006''!.[': Input/output error
    ls: cannot access '¿°éç.'$'\001''(s': Input/output error
    ls: cannot access 'hfú@'$'\005''Ω'$'\003\001''.ß@'$'\035': Input/output error
    ls: cannot access '─≤'$'\002''D'$'\003''⌠.'$'\b''α─': Input/output error
    ls: cannot access ''$'\032''o'$'\020''▒B⌠@R.'$'\001''α"': Input/output error
    ls: cannot access ''$'\002''(ö┐'$'\030''F.)α'$'\003': Input/output error
    ls: cannot access '└≤ü@'$'\002''('$'\017''╨.'$'\003''('$'\022': Input/output error
    ls: cannot access '@q!⌠@aög.┘j!': Input/output error
    ls: cannot access 'nk'$'\033''h▄ic'$'\006''.'$'\005''╘ ': Input/output error
    ls: cannot access '┬≤Aq┬≤┬T.'$'\002'')'$'\020': Input/output error
    ls: cannot access '/k.'$'\024''0x': No such file or directory
    '¥· !'$'\001''¬.'$'\f''┐'$'\023'                         ''$'\036''H'$'\003''⌐'$'\n''≡Φ■'
    ''$'\001''.'$'\022''&'                                   '%H'$'\v''≡├ #i.$H'
    '▐└¡'$'\v'                                               ''$'\b''╡'$'\b''h'$'\v''≡'$'\002'' .l≥p'
    '╔.'$'\003\003''['                                       '-I'$'\033''≡Ä√.∞╨0'
    '╛.'$'\024''≡ƒ'                                          ''$'\003''!'$'\032''≡î■'$'\a''f'
    '╦■."≡'$'\017'                                           '¬i+`Za.p╜8'
    '■≈\■'$'\f'' ■≈.'$'\025''ⁿ'$'\004'                       '#╣'$'\003''i'$'\023''╣.╜Φ°'
    ''$'\004''≡≡'$'\005\004''≡'$'\017\004''.└≤'$'\a'         'i·'$'\001''≡»·╜Φ.'$'\b''@'$'\f'
    ''$'\a''╤'$'\002''≡'$'\003\003\006''!.['                  jfrnsfjf.Rnô
    ''$'\b''╜'                                               'jh╤p.B°'$'\b'
    ''$'\t''.'$'\002'                                        ''$'\032''`,J.ó⌡µ'
    ''$'\f''≡┤ⁿ'$'\001''! |.'$'\t''%'$'\021'                 ''$'\001\002\032''`'$'\024''JO⌠.ös'$'\023'
    ''$'\r'                                                  ''$'\002''J'$'\023''`pG.'$'\004''!á'
    ''$'\r'                                                  ''\''j'$'\022''α ≈â .&i'$'\a'
    ''$'\r'                                                  '/k.'$'\024''0x'
    ''$'\r'                                                  ''$'\027''k.'$'\024''0X'
    ''$'\r'                                                  'KF'$'\033''hs╡'$'\005''F.'$'\033''l'$'\001'
    ''$'\r'                                                  '┌`kf[n4j.'$'\032''ak'
    ''$'\r'                                                  '≤╨'$'\036''K'$'\032''hB≡.'$'\001\002\032'
    ''$'\020''.,'                                            ''$'\t''k'$'\034''h. h)'
    ''$'\022''.'$'\037\020'                                  '┌küc┌k'$'\020'':.┌cp'
    ''$'\035''°.'$'\001''*'$'\001'                           'k■'$'\001''Ü F.!."≡?'
    ''$'\a''0c('$'\006''╤■≈.ô └'                             '#╨'$'\022''KÜi┬≤.AQ┬'
    '■≈╢■└≤'$'\a''0.d('$'\004'                               'l╣'$'\004''6'$'\b''.±╨.°τq'
    ''$'\a''°└≤'$'\a''0f(.'$'\v''╨ '                          L⌠çç╣CÇç.,
    ''$'\a''.0f '                                            ''$'\n'' LF ≈╓ⁿ.─°╨'
    linux$
    linux$
    linux$
    linux$
    
    After writing SPL and Uboot to SD card, displaying above junk values.

    Can you please suggest me, how to write SPL and Uboot.img file to SD card.

    Thanks,
    Pavan.
     
    Last edited by a moderator: Jul 26, 2019
    huthamcau likes this.
  10. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Please make a new topic for this issue. Personally I have no idea what coused your issue (if it is an issue).
    Try another SD card to double check?
     
    huthamcau likes this.
  11. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    thanks for reply ..

    I have tried with two SD card, with two SD cards i have faced same issue.

    Can you please send me in details steps for create SD card.

    Then i will try one more time on this.
     
    huthamcau likes this.
  12. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I have never done this so I cannot help you. There is only the documentation but you have found that yourself.
     
    huthamcau likes this.
  13. ektor5

    ektor5 Administrator Staff Member

    Joined:
    Jul 1, 2013
    Messages:
    97
    Likes Received:
    48
    huthamcau likes this.
  14. pavan

    pavan UDOOer

    Joined:
    Jul 6, 2019
    Messages:
    14
    Likes Received:
    11
    Hi Ek5 , i have added [solved], to tag.

    Thanks for the information.
     
    huthamcau likes this.

Share This Page