但是很奇怪,一直都沒有 timetag 功能。
Opensource 果然,就有人幫忙...
但是版本只有到 1.7
build 的方法很簡單,就 clone下來 make 就可以...
./picocom --help picocom v1.7+ Usage is: picocom [options] <tty device> Options are: --<baud> <baudrate> --<f>low s (=soft) | h (=hard) | n (=none) --<p>arity o (=odd) | e (=even) | n (=none) --<d>atabits 5 | 6 | 7 | 8 --<e>scape <char> --<noi>nit --no<r>eset --no<l>ock --<s>end-cmd <command> --recei<v>e-cmd <command> --<t>imestamp --<h>elp <?> indicates the equivalent short option. Short options are prefixed by "-" instead of by "--".所以加上 timetag 的 option 是 -t
./picocom -t -b 115200 /dev/ttyUSB0 picocom v1.7+ port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : C-a noinit is : no noreset is : no nolock is : no send_cmd is : ascii_xfr -s -v -l10 receive_cmd is : rz -vv Terminal ready 0:00.002 Welcome to Ambarella 0:00.006 Ambarella login: 0:09.447 [ 0.000000] Booting Linux on physical CPU 0x0 0:09.451 [ 0.000000] Linux version 4.14.181 (webb-li@rdsuper) (gcc version 8.2.1 20180802 (Linaro GCC 8.2-2018.08~dev)) #1 SMP PREEMPT Fri May 7 14:27:31 CST 2021 0:09.464 [ 0.000000] Boot CPU: AArch64 Processor [410fd034] 0:09.469 [ 0.000000] Machine model: Ambarella CV25 Hazelnut Board 0:09.474 [ 0.000000] Reserved memory: created CMA memory pool at 0x000000000cc00000, size 48 MiB 0:09.482 [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool 0:09.490 [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000010000000, size 508 MiB 0:09.498 [ 0.000000] OF: reserved mem: initialized node iav@0x10000000, compatible id shared-dma-pool 0:09.507 [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000030000000, size 252 MiB 0:09.515 [ 0.000000] OF: reserved mem: initialized node cavalry@0x30000000, compatible id shared-dma-pool 0:09.524 [ 0.000000] On node 0 totalpages: 261632 0:09.528 [ 0.000000] DMA zone: 4088 pages used for memmap 0:09.532 [ 0.000000] DMA zone: 0 pages reserved 0:09.536 [ 0.000000] DMA zone: 261632 pages, LIFO batch:31 0:09.541 [ 0.000000] percpu: Embedded 19 pages/cpu s38552 r8192 d31080 u77824 0:09.547 [ 0.000000] pcpu-alloc: s38552 r8192 d31080 u77824 alloc=19*4096 0:09.553 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 0:09.558 [ 0.000000] Detected VIPT I-cache on CPU0 0:09.562 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 0:09.568 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 257544 0:09.575 [ 0.000000] Kernel command line: console=ttyS0 noinitrd root=/dev/mmcblk0p8 rw rootfstype=ext4 init=/linuxrc rootwait loglevel=8 0:09.587 [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) 0:09.593 [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) 0:09.600 [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) 0:09.607 [ 0.000000] Memory: 192952K/1046528K available (5118K kernel code, 488K rwdata, 1452K rodata, 320K init, 227K bss, 26184K reserved, 827392K cma-reserved) ..
退出key 是 C-a, C-x,如果要改...
--- 例如 picocom 作為 pi 的 console,進入 pi 後,開啟 pi 上面的 picocom,這時候,用 C-a, C-x 就會退出整個 pi...
可以用 option -e
picocom -e b這樣,退出就變成..C-b, C-x
沒有留言:
張貼留言