O_嵌入式专题目录

  本文基于 Orange Pi Lite 开发板,系统为 Debian 2019-11-11


以下待整理


root@OrangePi:/# uname -a
Linux OrangePi 3.4.113+ #4 SMP PREEMPT Tue Nov 5 15:32:50 CST 2019 armv7l GNU/Linux
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb8:size=240x320:offset=0x0:tty=/dev/ttyS1
./QPro/QPro -qpa
sudo modprobe fbtft_device name=adafruit18 busnum=0 gpios=reset:8,dc:7 // speed=16000000
(reset 3V3)

gpios用于指定reset,  dc, led等具体使用哪个io口
mode用于指定spi使用哪种时序
busnum用于指定使用第几个spi控制器
rotate用于指定翻转角度
name用于指定设备名
[ 1103.686236] fbtft_device:  SPI devices registered:
[ 1103.691650] fbtft_device:  'fb' Platform devices registered:
[ 1104.601142] graphics fb8: fb_st7735r frame buffer, 128x160, 40 KiB video memory, 4 KiB buffer memory, fps=20, spi0.0 at 32 MHz
[ 1104.613885] fbtft_device:  GPIOS used by 'adafruit18':
[ 1104.619589] fbtft_device:    'reset' = GPIO8
[ 1104.624353] fbtft_device:    'dc' = GPIO7
[ 1104.628796] fbtft_device:  SPI devices registered:
[ 1104.634137] fbtft_device:      fb_st7735r spi0.0 32000kHz 8 bits mode=0x00
sudo modprobe fbtft_device name=adafruit28 gpios=reset:8,dc:7 rotate=0 fps=30 speed=32000000
sudo modprobe fbtft_device custom name=fb_ili9341 buswidth=8 gpios=reset:8,dc:7 rotate=90  speed=32000000
alias spi:ad7314 ad7314
alias spi:ad7877 ad7877
alias spi:ad7879 ad7879_spi
alias spi:adcxx1s adcxx
alias spi:adcxx2s adcxx
alias spi:adcxx4s adcxx
alias spi:adcxx8s adcxx
alias spi:ads7846 ads7846
alias spi:adt7301 ad7314
alias spi:adt7302 ad7314
alias spi:cx3110x p54spi
alias spi:cyttsp cyttsp_spi
alias spi:cyttsp cyttsp_spi
alias spi:fb_bd663474 fb_bd663474
alias spi:fb_hx8340bn fb_hx8340bn
alias spi:fb_hx8347d fb_hx8347d
alias spi:fb_hx8353d fb_hx8353d
alias spi:fb_ili9320 fb_ili9320
alias spi:fb_ili9325 fb_ili9325
alias spi:fb_ili9340 fb_ili9340
alias spi:fb_ili9341 fb_ili9341
alias spi:fb_ili9486 fb_ili9486
alias spi:fb_pcd8544 fb_pcd8544
alias spi:fb_ra8875 fb_ra8875
alias spi:fb_s6d02a1 fb_s6d02a1
alias spi:fb_s6d1121 fb_s6d1121
alias spi:fb_ssd1289 fb_ssd1289
alias spi:fb_ssd1306 fb_ssd1306
alias spi:fb_ssd1331 fb_ssd1331
alias spi:fb_ssd1351 fb_ssd1351
alias spi:fb_st7735r fb_st7735r
alias spi:fb_tinylcd fb_tinylcd
alias spi:fb_tls8204 fb_tls8204
alias spi:fb_upd161704 fb_upd161704
alias spi:fb_watterott fb_watterott
alias spi:libertas_spi libertas_spi
alias spi:lm70 lm70
alias spi:max1111 max1111
alias spi:p54spi p54spi
alias spi:stlc45xx p54spi
alias spi:tmp121 lm70
alias spi:wl1251 wl1251_spi
alias spi:wl1271 wl12xx_spi
alias touchkitusb usbtouchscreen
rmmod

vi /etc/modules-load.d/modules.conf
fbtft_device

vi /etc/modprobe.d/fbtft.conf
options fbtft_device custom name=fb_ili9341 buswidth=8 gpios=reset:8,dc:7 rotate=0  speed=32000000

sudo apt-get install fbi
wget http://mengze.top/images/head.jpg
fbi -d /dev/fb8 -T 1 -noverbose -a head.jpg



nmtui (wifi)
sudo apt-get install net-tools
sudo apt-get clean


#### 查看已安装的软件包列表
dpkg --list
卸载程序和所有配置文件
sudo apt-get --purge remove <programname>
只卸载程序,但保留配置文件
sudo apt-get remove <programname>
wget http://mengze.top/sourcefile/O_CPP%E5%AD%A6%E7%94%9F%E6%88%90%E7%BB%A9%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F/STU1.mp4


sudo apt-get install ffmpeg
sudo apt-get install libsdl2-2.0
sudo apt-get install libsdl2-dev
引用SDL2库编译自己的程序
gcc -o myprogram myprogram.c `sdl2-config --cflags --libs`

···
hg clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
../configure
make
sudo make install
···
sudo apt-get install linphone-nox            #安装linphone,没有图形化界面
sudo apt-get install linphone
linphonec
linphonec> proxy add
Adding new proxy setup. Hit ^D to abort.
Enter proxy sip address: 192.168.1.232
Your identity for this proxy: sip:10002@192.168.1.232
Do you want to register on this proxy (yes/no): no
Specify route if needed:
No route specified.
--------------------------------------------
sip address: <sip:192.168.1.232>
route:
identity: sip:10002@192.168.1.232
register: no
expires: 3600
registered: no
--------------------------------------------
Accept the above proxy configuration (yes/no) ?: yes
Proxy added.

linphonec> register sip:10002@192.168.1.232 sip:192.168.1.232 123456
Can't accept another authentication request.
Consider incrementing MAX_PENDING_AUTH macro.
Registration on <sip:192.168.1.232> successful.

autoanswer enable


call 10000
C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i -enable
linphonec> help register
register <sip identity> <sip proxy> <password>
---------------------------
linphonec> proxy -h
Syntax error.
'proxy list' : list all proxy setups.
'proxy add' : add a new proxy setup.
'proxy remove <index>' : remove proxy setup with number index.
'proxy use <index>' : use proxy with number index as default proxy.
'proxy unuse' : don't use a default proxy.
'proxy show <index>' : show configuration and status of the proxy numbered by index.
'proxy show default' : show configuration and status of the default proxy.
---------------------------
      help    Print commands help.
      call    Call a SIP uri or number
     calls    Show all the current calls with their id and status.
      chat    Chat with a SIP uri
 terminate    Terminate a call
    answer    Answer a call
     pause    pause a call
    resume    resume a call
  transfer    Transfer a call to a specified destination.
conference    Create and manage an audio conference.
      mute    Mute microphone and suspend voice transmission.
    camera    Send camera output for current call.
    unmute    Unmute microphone and resume voice transmission.
playbackga    Adjust playback gain.
  duration    Print duration in seconds of the last call.
autoanswer    Show/set auto-answer mode
     proxy    Manage proxies
 soundcard    Manage soundcards
    webcam    Manage webcams
      ipv6    Use IPV6
       nat    Set nat address
      stun    Set stun server address
  firewall    Set firewall policy
 call-logs    Calls history
    friend    Manage friends
      play    play a wav file
    record    record to a wav file
      quit    Exit linphonec
---------------------------
ortp-error-snd_pcm_avail_update: Broken pipe
ortp-error-*** alsa_can_read fixup, trying to recover
ALSA lib pcm.c:8306:(snd_pcm_recover) overrun occurred
linphonec> soundcard list
0: ALSA: default device
1: ALSA: audiocodec
2: ALSA: sndhdmi
3: OSS: /dev/dsp
4: OSS: /dev/dsp1
5: PulseAudio: default

linphonec> soundcard show
Ringer device: ALSA: default device
Playback device: ALSA: default device
Capture device: ALSA: default device
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '0' WITH GRANT OPTION;
sudo apt-get install gcc bison flex make openssl libmysqlclient-dev perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl libfrontier-rpc-perl libterm-readline-gnu-perl libberkeleydb-perl mysql-server ssh libxml2 libxml2-dev libxmlrpc-core-c3-dev libpcre3 libpcre3-dev subversion libncurses5-dev git ngrep libssl-dev mysql-client
./configure -prefix /opt/Qt-5.12.10-arm/ -release -opensource -make libs -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-libjpeg -qt-zlib -no-opengl -skip qt3d -skip qtcanvas3d -skip qtpurchasing -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -skip qtvirtualkeyboard

评论已关闭

Loading...
Fullscreen Image