Fast Development Kit(FDK)-根文件系統功能

常見bash命令

內存讀寫

root@t2080rdb:~# memtool md -h
md - memory display

Usage: md [-bwlqsx] REGION

Display (hex dump) a memory region.

Options:
  -b        byte access
  -w        word access (16 bit)
  -l        long access (32 bit)
  -q        quad access (64 bit)
  -s <FILE> display file (default /dev/mem)
  -x        swap bytes at output

Memory regions can be specified in two different forms: START+SIZE
or START-END, If START is omitted it defaults to 0x100
Sizes can be specified as decimal, or if prefixed with 0x as hexadecimal.
An optional suffix of k, M or G is for kbytes, Megabytes or Gigabytes.
root@t2080rdb:~# 
root@t2080rdb:~# 
root@t2080rdb:~# memtool mw -h 
mw - memory write

Usage: mw [-bwlqd] OFFSET DATA...

Write DATA value(s) to the specified REGION.

Options:
  -b        byte access
  -w        word access (16 bit)
  -l        long access (32 bit)
  -q        quad access (64 bit)
  -d <FILE> write file (default /dev/mem)

uart

microcom

root@t2080rdb:~# jjip -i uart -s 0xffd700000 -c eb -r str -k 75000000 -p 115200 -m 485
root@t2080rdb:~# jjip -h
Usage: jjip [OPTION]...
test fpga ip function

-i [type],        type: uart spi i2c
-s [addr],        ip physical start address
-c  [cmd],        cmd: tx rx eb
                    tx: send data
                    rx: receive data
                    eb: echo back
-t [data],        data for send
                    hex<xxx>, xxx are hex format
                    str<xxx>, xxx are string
-r [data],        rx display mode and rx num: hex<num> str<num>
-k  [num],        ip clk freq
-p  [num],        trans speed
-m [mode],        ip mode
                    uart: lite 232 485 422
                    spi: 0~3, bit0[GENSPI_CPHA] bit1[GENSPI_CPOL]
                    i2c: slave addr 8bit
-h       ,        show this help

Example:
test uart: jjip -i uart -s 0xa0000000 -c eb -r str -k 100000000 -p 115200 -m lite
test spi: jjip -i spi -s 0xa0000000 -c tx -t hex000155aa55aa -r hex -k 100000000 -p 1000000 -m 0
test i2c: jjip -i spi -s 0xa0000000 -c tx -t hex5101 -r hex4

can

canconfig cansend

i2c

spi

usb

pci

busybox自帶的lspci功能很弱,需要pciutils來獲取全功能的lspci

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章