mount /dev/mmcblk0p1 /projects/mnt
cd /projects/mnt
git clone https://github.com/linux-sunxi/sunxi-tools
cd sunxi-tools
make
cd ..
sunxi-tools/bin2fex ./script.bin ./script.fex
[uart_para3] uart_used = 1 uart_port = 3 uart_type = 2 uart_tx = port:PG06<4><1><default><default> uart_rx = port:PG07<4><1><default><default>
sunxi-tools/fex2bin ./script.fex ./script_changed.bin
Testen mit:
dmesg | grep uart
[ 0.624293] [uart]: used uart info.: 0xc9 [ 0.629014] [uart]: serial probe 0 irq 33 mapbase 0x01c28000 [ 0.655253] sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A [ 1.395339] [uart]: serial probe 3 irq 36 mapbase 0x01c28c00 [ 1.427200] sunxi-uart.3: ttyS1 at MMIO 0x1c28c00 (irq = 36) is a U6_16550A [ 1.439012] [uart]: serial probe 6 irq 51 mapbase 0x01c29800 [ 1.470806] sunxi-uart.6: ttyS2 at MMIO 0x1c29800 (irq = 51) is a U6_16550A [ 1.482628] [uart]: serial probe 7 irq 52 mapbase 0x01c29c00 [ 1.514441] sunxi-uart.7: ttyS3 at MMIO 0x1c29c00 (irq = 52) is a U6_16550A
Entnommen aus:
http://linux-sunxi.org/Fex_Guide#.5Buart_para1.5D
http://linux-sunxi.org/A20/PIO port:<port><mux feature><pullup/down><drive capability><output level>
Keine Kommentare:
Kommentar veröffentlichen