2016年12月28日 星期三
2016年11月30日 星期三
AER: Corrected error received: id=
有時侯插上 mini PCIE device時, 會在 dmesg 出現 AER: Corrected error received: id 相關錯誤訊息, 導致系統無法關機, 在開機選項加入"pci=nomsi,noaer"
[ 5295.215718] pcieport 0000:00:1c.0: AER: Corrected error received: id=00e0
[ 5295.215739] pcieport 0000:00:1c.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=00e0(Transmitter ID)
[ 5295.215796] pcieport 0000:00:1c.0: device [8086:a110] error status/mask=00001000/00002000
[ 5295.215837] pcieport 0000:00:1c.0: [12] Replay Timer Timeout
[ 5295.215739] pcieport 0000:00:1c.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=00e0(Transmitter ID)
[ 5295.215796] pcieport 0000:00:1c.0: device [8086:a110] error status/mask=00001000/00002000
[ 5295.215837] pcieport 0000:00:1c.0: [12] Replay Timer Timeout
解決方式:
# vim /etc/default/grub
================================================
GRUB_CMDLINE_LINUX_DEFAULT="quiet pci=nomsi,noaer"
================================================
# update-grub
# reboot
2016年11月21日 星期一
3G/4G Module測試方式
3G/4G Module測試可以使用 wvdial 工具
1. 產生 /etc/wvdial.conf 設定檔
# wvdialconf
2. 修改 /etc/wvdial 設定檔
# vim /etc/wvdial.conf
===================================
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
; Phone =
ISDN = 0
; Username =>
; Password =
Modem = /dev/ttyACM0
Baud = 2400
===================================
修改為
===================================
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = *99#
ISDN = 0
Username = NA
Password = pass
Modem = /dev/ttyACM0
Baud = 2400
[Dialer pin]
Init3 = AT+CPIN=0000 => "0000"為PIN碼
===================================
3. /etc/resolv.conf 加入DNS IP
# vim /etc/resolv.conf
===================================
nameserver 168.95.1.1
nameserver 168.85.192.1
===================================
1. 產生 /etc/wvdial.conf 設定檔
# wvdialconf
2. 修改 /etc/wvdial 設定檔
# vim /etc/wvdial.conf
===================================
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
; Phone =
ISDN = 0
; Username =
; Password =
Modem = /dev/ttyACM0
Baud = 2400
===================================
修改為
===================================
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone = *99#
ISDN = 0
Username = NA
Password = pass
Modem = /dev/ttyACM0
Baud = 2400
[Dialer pin]
Init3 = AT+CPIN=0000 => "0000"為PIN碼
===================================
3. /etc/resolv.conf 加入DNS IP
# vim /etc/resolv.conf
===================================
nameserver 168.95.1.1
nameserver 168.85.192.1
===================================
4. 執行 wvdial 就能上網
# wvdial
如果SIM卡有PIN碼,
第一次執行:
# wvdial pin
第二次執行:
# wvdial
如果SIM卡有PIN碼,
第一次執行:
# wvdial pin
第二次執行:
# wvdial
2016年11月1日 星期二
cc1: error: code model kernel does not support PIC mode
Ubuntu 16.10 在編譯 modules 時, 會出現 cc1: error: code model kernel does not support PIC mode 這個錯誤, 可以在Makefile 裡加入 "-fno-pic" 這樣編譯就能成功
2016年10月12日 星期三
PC104 COM Linux setting
1) 首先BIOS須將PC104所需要的address空下來給PC104使用
2) 如果板子有其他COM, 先在BIOS下disable
3) 在Linux下使用setserial將設定寫入
# setserial /dev/ttyS0 port 0x3F8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS1 port 0x2F8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS2 port 0x3E8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS3 port 0x2E8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS4 port 0x240 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS5 port 0x248 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS6 port 0x250 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS7 port 0x258 irq 5 uart 16550A baud_base 115200
2) 如果板子有其他COM, 先在BIOS下disable
3) 在Linux下使用setserial將設定寫入
# setserial /dev/ttyS0 port 0x3F8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS1 port 0x2F8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS2 port 0x3E8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS3 port 0x2E8 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS4 port 0x240 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS5 port 0x248 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS6 port 0x250 irq 5 uart 16550A baud_base 115200
# setserial /dev/ttyS7 port 0x258 irq 5 uart 16550A baud_base 115200
2016年9月12日 星期一
bad interpreter: No such file or directory
執行寫好的 shell 時, 出現 /bin/sh^M: bad interpreter: No such file or directory 的錯誤, 主要是 dos / unix format 的問題, 開啟vi輸入 :set ff=unix 然後存檔離開就可以執行
2016年8月29日 星期一
2016年7月21日 星期四
VLC Multicast Streaming 設定
最近因工作需要, 記錄VLC Multicast Streaming環境
幾個地方需要注意:
1.IGMP需v2以上版本
# echo 2 > /proc/sys/net/ipv4/conf/eth0/force_igmp_version
2.Reverse Path Filtering需要關閉
# echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
3.Routing需要設對
# route add -net 239.1.1.0 netmask 255.255.255.0 dev eth0
4.確認Route
# route -n
Server:
$ vlc abc.avi :sout='#rtp{mux=ts, dst=239.1.1.17, port=5004}'
Client:
$ vlc rtp://@239.1.1.17:5004
Reference:
http://newtoypia.blogspot.tw/2014/11/vlc.html
http://www.cas.idv.tw/Documents/Multimedia/VLC.asp
http://owen-hsu.blogspot.tw/2011/05/vlc-multicast-streaming.html
幾個地方需要注意:
1.IGMP需v2以上版本
# echo 2 > /proc/sys/net/ipv4/conf/eth0/force_igmp_version
2.Reverse Path Filtering需要關閉
# echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
3.Routing需要設對
# route add -net 239.1.1.0 netmask 255.255.255.0 dev eth0
4.確認Route
# route -n
Server:
$ vlc abc.avi :sout='#rtp{mux=ts, dst=239.1.1.17, port=5004}'
Client:
$ vlc rtp://@239.1.1.17:5004
Reference:
http://newtoypia.blogspot.tw/2014/11/vlc.html
http://www.cas.idv.tw/Documents/Multimedia/VLC.asp
http://owen-hsu.blogspot.tw/2011/05/vlc-multicast-streaming.html
2016年7月19日 星期二
VirtualBox 注意事項
Linux OS安裝完後, 需要再安裝Gust Additions CD映象
# apt-get install dkms
裝置 -> 插入 Gust Additions CD映象
點選"CD"執行, 執行完畢後重開機
訂閱:
文章 (Atom)