JCB100 디버깅 설정

 


문서 개요

본 문서는 JCB100의 Debug Port 와 USB2Serial(TTL)를 연결하여 시스템에서 출력되는 메시지를 확인 하는 방법을 설명합니다.

하드웨어 연결

전원이 Off된 상태에서 아래와 같이 하드웨어 선을 연결합니다.

USB2Serial모듈을 Host PC에 USB케이블로 연결합니다.

 

HOST PC에서 minicom과 같은 UART 통신을 위한 앱을 실행합니다. 다음은 사용된 minicom을 이용하여 Ubuntu에서 디버깅 메시지를 확인 하는 설정을 설명합니다.

minicom을 이용한 UART 통신

Minicom이 깔려 있지 않다면 다음 명령어를 통해 설치

$ sudo apt install minicom

 

minicom설정

#Host pc에서 아래의 명령어로 실행 $ sudo minicom -s
  • 위의 화면이 나오고 serial port setup을 선택

  • E 키를 눌러 위의 사진처럼 Bps/Par/Bits를 115200 8N1로 설정한다

  • 설정을 유지하기 위해서는 “Save setup as dfl” 로 설정을 저장한다.

 

minicom 실행

$ minicom -D /dev/ttyUSB[JCB와 연결된 USB번호] # 예시) $ minicom -D /dev/ttyUSB0

 

결과 예시

# 부팅시 메시지

nvidia-desktop login: [0000.231] [L4T TegraBoot] (version 00.00.2018.01-l4t-8728f3cb)
[0000.236] Processing in cold boot mode Bootloader 2
[0000.241] A02 Bootrom Patch rev = 1023
[0000.244] Power-up reason: pmc por
[0000.247] No Battery Present
[0000.250] pmic max77620 reset reason
[0000.253] pmic max77620 NVERC : 0x80

…..(중략)…

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.253-tegra (root@hyunoh-LIVA-Z3E-PLUS) (gcc version 7.3.1 20180425 [linaro-7.3-20183
[ 0.000000] Boot CPU: AArch64 Processor [411fd071]
[ 0.000000] OF: fdt:memory scan node memory@80000000, reg size 32,
[ 0.000000] OF: fdt: - 80000000 , 7ee00000
[ 0.000000] OF: fdt: - 100000000 , 7f200000
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000070006000 (options '')
[ 0.000000] bootconsole [uart8250] enabled
[ 1.079721] tegradc tegradc.1: dpd enable lookup fail:-19
[ 1.585450] Host read timeout at address 545c00c4
[ 1.814842] imx219 7-0010: imx219_board_setup: error during i2c read probe (-121)
[ 1.822488] imx219 7-0010: board setup failed
[ 1.850910] imx219 8-0010: imx219_board_setup: error during i2c read probe (-121)
[ 1.858495] imx219 8-0010: board setup failed
[ 2.656718] cgroup: cgroup2: unknown option "nsdelegate"
[ 4.018308] using random self ethernet address
[ 4.027050] using random host ethernet address
[ 4.458286] random: crng init done
[ 4.461692] random: 7 urandom warning(s) missed due to ratelimiting
[ 4.747757] using random self ethernet address
[ 4.761556] using random host ethernet address
[ 5.954515] Bridge firewalling registered
[ 7.153356] mcp25xxfd spi0.0 (unnamed net_device) (uninitialized): Failed to detect MCP2518FD (osc=0x00000000).
[ 7.235316] mcp25xxfd spi0.1 (unnamed net_device) (uninitialized): Failed to detect MCP2518FD (osc=0x00000000).

Ubuntu 18.04.6 LTS nvidia-desktop ttyS0

nvidia-desktop login:

# 부팅시 메시지

nvidia-desktop login: [0000.231] [L4T TegraBoot] (version 00.00.2018.01-l4t-8728f3cb)
[0000.236] Processing in cold boot mode Bootloader 2
[0000.241] A02 Bootrom Patch rev = 1023
[0000.244] Power-up reason: pmc por
[0000.247] No Battery Present
[0000.250] pmic max77620 reset reason
[0000.253] pmic max77620 NVERC : 0x80

…..(중략)…

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.253-tegra (root@hyunoh-LIVA-Z3E-PLUS) (gcc version 7.3.1 20180425 [linaro-7.3-20183
[ 0.000000] Boot CPU: AArch64 Processor [411fd071]
[ 0.000000] OF: fdt:memory scan node memory@80000000, reg size 32,
[ 0.000000] OF: fdt: - 80000000 , 7ee00000
[ 0.000000] OF: fdt: - 100000000 , 7f200000
[ 0.000000] earlycon: uart8250 at MMIO32 0x0000000070006000 (options '')
[ 0.000000] bootconsole [uart8250] enabled
[ 1.079721] tegradc tegradc.1: dpd enable lookup fail:-19
[ 1.585450] Host read timeout at address 545c00c4
[ 1.814842] imx219 7-0010: imx219_board_setup: error during i2c read probe (-121)
[ 1.822488] imx219 7-0010: board setup failed
[ 1.850910] imx219 8-0010: imx219_board_setup: error during i2c read probe (-121)
[ 1.858495] imx219 8-0010: board setup failed
[ 2.656718] cgroup: cgroup2: unknown option "nsdelegate"
[ 4.018308] using random self ethernet address
[ 4.027050] using random host ethernet address
[ 4.458286] random: crng init done
[ 4.461692] random: 7 urandom warning(s) missed due to ratelimiting
[ 4.747757] using random self ethernet address
[ 4.761556] using random host ethernet address
[ 5.954515] Bridge firewalling registered
[ 7.153356] mcp25xxfd spi0.0 (unnamed net_device) (uninitialized): Failed to detect MCP2518FD (osc=0x00000000).
[ 7.235316] mcp25xxfd spi0.1 (unnamed net_device) (uninitialized): Failed to detect MCP2518FD (osc=0x00000000).

Ubuntu 18.04.6 LTS nvidia-desktop ttyS0

nvidia-desktop login:

ALL AI