/ 雑記帳

何やってんだか...pci パススルー (2)

Fedora18をOracle VM VirtualBox上にインストールしてPT1を認識させた。
recpt1、b25等もインストールして動作テストするも録画できず?
それと一度でも認識させるとホスト側に再起動するまでは帰って来なくなる?
原因不明で今日も寝られない(笑)


— posted by くま at 11:54 pm   pingTrackBack [0]

CPUの数って関係あるの?

CPUが4コアのPCでビルドしたmplayerを2コアのPCで実行出来ない。
知りませんでした(笑)
    
MPlayer UNKNOWN-4.4.3 (C) 2000-2010 MPlayer Team
    
MPlayer interrupted by signal 4 in module: unknown
- MPlayer crashed by an 'Illegal Instruction'.
It usually happens when you run it on a CPU different than the one it was
compiled/optimized for.
Verify this!
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

— posted by くま at 12:07 pm   pingTrackBack [0]

何やってんだか...pci パススルー

$ lspci -tv
+-1e.0-[05]--+-00.0 Xilinx Corporation Device 211a
  

$ lspci -vv -s 05:00.0
05:00.0 Multimedia controller: Xilinx Corporation Device 211a (rev 01)
Subsystem: Device ef11:dee5
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Latency: 64
Region 0: Memory at fbfff000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: pt1-pci
Kernel modules: pt1_drv, earth-pt1
   

$ VBoxManage list vms

"vbox-xp_1" {4adce3a0-e2e7-48af-95da-1e0dcda97678}
"ubuntu12.10" {f277e7db-36e6-4dd4-92b0-1e0f5a9f0d17}
"ubuntu-test" {2b494e56-03a0-4988-9869-5d519f321851}
"vbox-xp_1_CH9" {a0875204-a8d6-40e1-9b6f-904f46c8375a}
"ubuntu12.10_clone" {04d4e7c1-fad0-4434-ad69-3db12b644f71}
   

$ VBoxManage modifyvm 04d4e7c1-fad0-4434-ad69-3db12b644f71 --pciattach 05:00.0
   
$ lspci | grep 05:00.0
05:00.0 Multimedia controller: Xilinx Corporation Device 211a (rev 01)

— posted by くま at 05:46 pm   pingTrackBack [0]

Xが突然起動しなくなった時は

ランレベル3でログインして下の作業を実施する。
   
# Xorg -configure
# mv -f /root/xorg.conf.new /etc/X11/xorg.conf
# startx
   
最悪の場合のテキストモードで起動する場合は
# vi /etc/inittab
これでランレベルを3(txtモード)で起動して復旧する。

— posted by くま at 03:22 pm   pingTrackBack [0]

おまけ 

QR-code-write
gnome-terminal --working-directory=/home/kkuma/desktop -e "sh -c 'qrencode --o test.png `cat %u`'"

http://kkuma.sytes.net/douga/out.ogg

— posted by くま at 11:54 pm   pingTrackBack [0]

 

Zbar CentOS6.4

Zbarというバーコード(QRコード)を扱えるようにするパッケージをインストール
してみた。以下これだけ必要であった。
   
zbar-0.10-7.el6.i686
libv4l-0.6.3-2.el6.i686
ImageMagick-6.5.4.7-6.el6_2.i686
libgomp-4.4.7-3.el6.i686
librsvg2-2.26.0-5.el6_1.1.0.1.centos.i686
libcroco-0.6.2-5.el6.i686
libwmf-lite-0.2.8.4-22.el6.centos.i686
ghostscript-8.70-15.el6_4.1.i686
libgsf-1.14.15-5.el6.i686
bzip2-libs-1.0.5-7.el6_0.i686
ImageMagick-c++-devel-6.5.4.7-6.el6_2.x86_64
qrencode-3.2.0-1.el6.rf.x86_64
    
USBカメラで認識する事を確認できた。
画像の読み取り時にコマンドを発行するのは面倒なのでドラッグアンドドロップで
読み取れるアイコンを作成した。コマンドは以下のとおり
   
gnome-terminal -e "sh -c 'zbarimg -q %u;exec bash'"
ドラッグアンドドロップすれば端末が立ち上がって読み取り内容が表示される。

Screenshot



Screenshot-1



— posted by くま at 07:46 am   pingTrackBack [0]

ウイルス対策 clamd

いつもの事ですが
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.97.6 Recommended version: 0.97.8
   
Dependencies Resolved

========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Updating:
clamav x86_64 0.97.8-1.el6 epel 10 M
Updating for dependencies:
clamav-db x86_64 0.97.8-1.el6 epel 56 M
clamd x86_64 0.97.8-1.el6 epel 132 k

Transaction Summary
========================================================================================================================
Upgrade 3 Package(s)

Total download size: 67 M
Is this ok [y/N]:

— posted by くま at 05:01 pm   pingTrackBack [0]

<< 2013.5 >>
SMTWTFS
   1234
5678910 11
1213 1415 161718
19 20 21 2223 2425
26272829 30 31 
 
























T: Y: ALL: Online:
ThemePanel
Created in 0.0470 sec.