[Tokyodebian-commits] TokyoDebian CVS update: monthly-report debianmeetingresume200607.tex debianmeetingresume200607.pdf debianmeetingresume200607-presentation.tex debianmeetingresume200607-presentation.pdf debianmeetingresume200607-presentation-english.tex debianmeetingresume200607-presentation-english.pdf ChangeLog

tokyodebian CVS Commit tokyodebian-commits at lists.alioth.debian.org
Sun Jul 23 06:00:56 UTC 2006


  User: dancer  
  Date: 06/07/23 06:00:56

  Modified:    .        debianmeetingresume200607.tex
                        debianmeetingresume200607.pdf
                        debianmeetingresume200607-presentation.tex
                        debianmeetingresume200607-presentation.pdf
                        ChangeLog
  Added:       .        debianmeetingresume200607-presentation-english.tex
                        debianmeetingresume200607-presentation-english.pdf
  Log:
  iSight/linux-uvc documentation added
  initial english translation.
  
  Revision  Changes    Path
  1.18      +30 -31    monthly-report/debianmeetingresume200607.tex
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607.tex?annotate=1.18&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607.tex?rev=1.18&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607.tex.diff?r1=1.18&r2=1.17&cvsroot=
  
  -----------------------------------
  
  Index: debianmeetingresume200607.tex
  ===================================================================
  RCS file: /cvsroot/tokyodebian/monthly-report/debianmeetingresume200607.tex,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- debianmeetingresume200607.tex	17 Jul 2006 05:55:50 -0000	1.17
  +++ debianmeetingresume200607.tex	23 Jul 2006 06:00:54 -0000	1.18
  @@ -785,6 +785,36 @@
   ユーザ空間で利用できるドライバは作成しておきました。
   \footnote{\url{http://www.netfort.gr.jp/~dancer/diary/daily/2006-Jul-12.html.ja}}
   
  +\subsubsection{iSight}
  +
  +iSight は linux-uvcデバイスです。
  +ファームウェアのロードが必要です。
  +次の手順でインストールができます。
  +
  +\begin{itemize}
  + \item \texttt{apt-get install linux-uvc-tools linux-uvc-source}
  + \item \texttt{module-assistant auto-install linux-uvc}
  +\end{itemize}
  +
  +アプリケーションはekigaなどを利用しましょう。
  +v4l2デバイスなので、v4l2対応のソフトウェアが必要です。
  +
  +\begin{itemize}
  + \item \texttt{apt-get install ekiga libpt-plugins-v4l2}
  +\end{itemize}
  +
  +実際にロードするには、Mac OS Xのデバイスドライバに入っているファームウェ
  +アをロードしてからモジュールをロードします。ドライバのある場所のディレク
  +トリ階層が深いので注意。
  +
  +\begin{itemize}
  + \item \texttt{sudo mount /dev/sda2 /mnt/macosx}
  + \item \texttt{sudo macbook-isight-firmware-loader \\
  +       /mnt/mac/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns(次の行に続く)\\/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport}
  + \item \texttt{modprobe uvcvideo}
  +\end{itemize}
  +
  +
   \subsubsection{未確認のデバイス、手法}
   
   Debianを自動起動させる方法がわかりません、rEFItはデフォルトでは、MacOSX
  @@ -811,37 +841,6 @@
           0,7,0     7) *
   \end{commandline}
   
  -内蔵のiSightはcapture device として認識されます。
  -USB video classのデバイスだそうです。
  -
  -\begin{commandline}
  -$ sane-find-scanner
  -
  -  # sane-find-scanner will now attempt to detect your scanner. If the
  -  # result is different from what you expected, first make sure your
  -  # scanner is powered up and properly connected to your computer.
  -
  -  # No SCSI scanners found. If you expected something different, make sure that
  -  # you have loaded a kernel SCSI driver for your SCSI adapter.
  -
  -found USB scanner (vendor=0x05ac, product=0x8300) at libusb:001:003
  -  # Your USB scanner was (probably) detected. It may or may not be supported by
  -
  -$ lsusb -v -s 001:003 
  -
  -Bus 001 Device 003: ID 05ac:8300 Apple Computer, Inc.
  -Device Descriptor:
  -  bLength                18
  -  bDescriptorType         1
  -  bcdUSB               2.00
  -  bDeviceClass          255 Vendor Specific Class
  -  bDeviceSubClass       255 Vendor Specific Subclass
  -  bDeviceProtocol       255 Vendor Specific Protocol
  -  bMaxPacketSize0        64
  -
  -以下略
  -\end{commandline}
  -
   バックライトの制御ができるドライバは作成されているので、2.6.18か19くらい
   には入るのではないでしょうか。
   
  
  
  
  1.19      +810 -871  monthly-report/debianmeetingresume200607.pdf
  
  	<<Binary file>>
  
  
  1.10      +15 -1     monthly-report/debianmeetingresume200607-presentation.tex
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607-presentation.tex?annotate=1.10&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607-presentation.tex?rev=1.10&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607-presentation.tex.diff?r1=1.10&r2=1.9&cvsroot=
  
  -----------------------------------
  
  Index: debianmeetingresume200607-presentation.tex
  ===================================================================
  RCS file: /cvsroot/tokyodebian/monthly-report/debianmeetingresume200607-presentation.tex,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- debianmeetingresume200607-presentation.tex	21 Jul 2006 18:31:47 -0000	1.9
  +++ debianmeetingresume200607-presentation.tex	23 Jul 2006 06:00:55 -0000	1.10
  @@ -157,6 +157,7 @@
   	変なアーキテクチャのマシンをいじりたい!
   
      \item 内蔵キーボード、iSight、リモコン、あらゆるものがUSB接続
  +   \item Intel Core Duo: dual-core CPU
    \end{itemize}
   \end{minipage}
   \end{center}
  @@ -351,6 +352,19 @@
    \end{itemize}
   \end{frame}
   
  +\begin{frame}
  + \frametitle{linux-uvc}
  + \begin{itemize}
  +  \item \texttt{sudo apt-get install linux-uvc-source linux-uvc-tools}
  +  \item \texttt{sudo m-a prepare}
  +  \item \texttt{sudo m-a a-i linux-uvc}
  +  \item \texttt{sudo macbook-isight-firmware-loader \\
  +       /mnt/mac/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns\\/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport}
  +  \item \texttt{sudo modprobe uvcvideo}
  +  \item \texttt{sudo apt-get install ekiga libpt-plugins-v4l2}
  + \end{itemize}
  +\end{frame}
  +
   \section{副次的な目標}
   
   \subsection{どんなハックをしたか}
  @@ -367,6 +381,7 @@
   	パッチ
     \item IR receiver hack: プレゼンテーションをリモコンで実施するため
     \item Debian refit パッケージ作成
  +  \item linux-uvc パッケージ作成
    \end{itemize}
   \end{frame}
   
  @@ -398,7 +413,6 @@
   \begin{itemize}
    \item suspend/sleep
    \item CD-Rの動作にはパッチが必要という噂
  - \item 内蔵iSightは USB Video Classらしく、まだうまく動かないという噂
    \item バックライトについては最近ドライバが出てきましたが、MacBookで動く
          のか?
    \item bluetooth については未検証
  
  
  
  1.13      +2068 -1723monthly-report/debianmeetingresume200607-presentation.pdf
  
  	<<Binary file>>
  
  
  1.150     +8 -0      monthly-report/ChangeLog
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/ChangeLog?annotate=1.150&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/ChangeLog?rev=1.150&content-type=text/x-cvsweb-markup&cvsroot=
  
  CVSWeb: Diff to previous version:   http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/ChangeLog.diff?r1=1.150&r2=1.149&cvsroot=
  
  -----------------------------------
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvsroot/tokyodebian/monthly-report/ChangeLog,v
  retrieving revision 1.149
  retrieving revision 1.150
  diff -u -r1.149 -r1.150
  --- ChangeLog	19 Jul 2006 13:20:20 -0000	1.149
  +++ ChangeLog	23 Jul 2006 06:00:56 -0000	1.150
  @@ -1,3 +1,11 @@
  +2006-07-23  Junichi Uekawa  <dancer at debian.org>
  +
  +	* debianmeetingresume200607-presentation-english.tex: English version.
  +
  +	* debianmeetingresume200607-presentation.tex (Units): add linux-uvc
  +
  +	* debianmeetingresume200607.tex (PCI): add isight notes.
  +
   2006-07-19  Junichi Uekawa  <dancer at debian.org>
   
   	* TODO: create a TODO list for future plans.
  
  
  
  1.1                  monthly-report/debianmeetingresume200607-presentation-english.tex
  
  CVSWEB Options: -------------------
  
  CVSWeb: Annotate this file:            http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607-presentation-english.tex?annotate=1.1&cvsroot=
  
  CVSWeb: View this file:             http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/tokyodebian/monthly-report/debianmeetingresume200607-presentation-english.tex?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot=
  
  -----------------------------------
  
  Index: debianmeetingresume200607-presentation-english.tex
  ===================================================================
  %; whizzy document
  % latex beamer presentation.
  % platex, latex-beamer でコンパイルすることを想定. 
  
  % 実行順番
  % sudo  ~/bin/usb-macbook-ir.c &
  % real presentation (shell-command (concat "DISPLAY=:0.1 xpdf -fullscreen " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))
  % DISPLAY=:0.1 xpdf -fullscreen 
  
  \documentclass[cjk,dvipdfm]{beamer}
  \usetheme{Warsaw}
  %  preview (shell-command (concat "xpdf " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))
  %  presentation (shell-command (concat "xpdf -fullscreen " (replace-regexp-in-string "tex$" "pdf"(buffer-file-name)) "&"))
  
  %http://www.naney.org/diki/dk/hyperref.html
  %日本語EUC系環境の時
  \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}
  %シフトJIS系環境の時
  %\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
  
  \title{Wonderful World of Mactel Debian }
  \subtitle{TLUG}
  \author{Junichi Uekawa dancer at debian.org}
  \date{2006年7月29日}
  
  % 三択問題用
  \newcounter{santakucounter}
  \newcommand{\santaku}[5]{%
  \addtocounter{santakucounter}{1}
  \frame{\frametitle{問題\arabic{santakucounter}. #1}
  %問題\arabic{santakucounter}. #1
  \begin{minipage}[t]{0.7\hsize}
   \begin{itemize}
   \item □ A #2\\
   \item □ B #3\\
   \item □ C #4\\
   \end{itemize}
  \end{minipage}
  }
  \frame{\frametitle{問題\arabic{santakucounter}. #1}
  %問題\arabic{santakucounter}. #1
  \begin{minipage}[t]{0.7\hsize}
  \begin{itemize}
  \item □ A #2\\
  \item □ B #3\\
  \item □ C #4\\
  \end{itemize}
  \end{minipage}
  \begin{minipage}[t]{0.2\hsize}
  答えは:
  
  
  \vspace{1cm}
  
  {\huge \hspace{1cm}#5}
  \end{minipage}}
  }
  
  
  \begin{document}
  \frame{\titlepage{}}
  
  
  
  \section{Intro}
  
  \begin{frame}
  \frametitle{Who am I?}
  \begin{itemize}[<+->]
   \item Junichi Uekawa 上川 純一
   \item Debian Developer
   \item Bought MacBook at end of June 2006
  \end{itemize}
  \end{frame}
  
  \section{Why Debian on Macbook}
  
  \begin{frame}
  \frametitle{What's new in Debian on MacBook}
  \begin{center}
  \begin{minipage}{0.8\hsize}
    \begin{itemize}
     \item New architecture\\
  	Boots with EFI\\
  	Want to play with machine with weird architecture
  
     \item Everything is connected via USB, including built-in keyboard,
  	mouse, iSight, IR-remote.
     \item Intel Core Duo: dual-core CPU
   \end{itemize}
  \end{minipage}
  \end{center}
  \end{frame}
  
  \begin{frame}
  \frametitle{EFI: a Good News}
  
  \begin{tabular}[t]{|p{8em}|p{8em}|p{8em}|}
  \hline
   & BIOS & EFI \\
  \hline
  Partition & MBR: 4 (basic) & GPT: 128 \\
  \hline
  Filesystem & Mystery & Reads FAT \\
  \hline
  Execution format & What? & PE32+ \\
  \hline
  \end{tabular}
  \end{frame}
  
  
  \begin{frame}
  \frametitle{EFI: command-line}
  
  Allows use of MS-DOS-like command-line\\
  You can enter commands even before boot-loader starts!
  
  EFI$>$ fs0:\\
  EFI fs0:$>$ cd EFI\\
  EFI fs0:$\backslash{}$EFI$>$ cd dancer\\
  EFI fs0:$\backslash{}$EFI$\backslash{}$dancer$>$ cd refit\\
  EFI fs0:$\backslash{}$EFI$\backslash{}$dancer$\backslash{}$refit$>$ dir\\
  refit.efi\\
   EFI fs0:$\backslash{}$EFI$\backslash{}$debian$\backslash{}$refit$>$ refit
  
  \end{frame}
  
  \section{Debian on Macbook}
  
  \begin{frame}
   \frametitle{dual-booting Mac OS X and Debian}
   \begin{minipage}{0.5\hsize}
    \begin{itemize}
     \item Buy MacBook
     \item Process partition from Mac OS X
     \item Install rEFIt 
     \item Install Debian
     \item Configuration
    \end{itemize}
   \end{minipage}
  \end{frame}
  
  \subsection{Buy MacBook} 
  
  \begin{frame}
   \frametitle{Buy MacBook}
   \begin{minipage}{0.5\hsize}
    \begin{itemize}
     \item Click!
    \end{itemize}
   \end{minipage}
  \end{frame}
  
  \subsection{Process partition from Mac OS X}
  
  \begin{frame}
   \frametitle{Process partition from Mac OS X}
  \begin{itemize}
   \item Online resize possible with recent Mac OS X\\
         \texttt{Mac OS X$\sharp$  sudo diskutil resizevolume disk0s2 20G}
  \end{itemize}
  \end{frame}
  
  \subsection{Install rEFIt}
  
  \begin{frame}
   \frametitle{Install rEFIt}
   \begin{itemize}
    \item run bless on Mac OS X, make rEFIt at boot
    \item When downloading binary from \url{http://refit.sourceforge.net/}
    \begin{itemize}
     \item Extract files to \texttt{/efi}, or somewhere
     \item Run \texttt{./enable.sh} (It will run \texttt{bless} for you)
    \end{itemize} 
    \item When using Debian refit package
    \begin{itemize}
     \item copy \texttt{/usr/lib/refit/} to Mac OS X partition
     \item \texttt{sudo bless --folder [full path to directory with
  	 refit.efi] --file [full path to refit.efi]}
    \end{itemize}
   \item rEFIt screen will show after a reboot
   \end{itemize}
  \end{frame}
  
  \begin{frame}
  \frametitle{Boot sequence}
  \begin{minipage}[t]{0.4\hsize}
  % dot -Tps -o bootchain.ps bootchain.dot
  \includegraphics[height=1\hsize]{image200607/bootchain.ps}
  \end{minipage}
  \begin{minipage}[t]{0.58\hsize}
  \includegraphics[width=1\hsize]{image200607/screen1.png}
  \end{minipage}
  \end{frame}
  
  \subsection{Install Debian}
  
  \begin{frame}
   \frametitle{Install Debian}
  \begin{itemize}
   \item etch after July 2006 will probably work\\
         Install partition must be partition 3 or 4.
   \item Boot loader is lilo, but it won't work
   \item parted will create GPT table, but destroy MBR.\\
         move to command-console with Alt-F2\\
         synchronise with gptsync command\\
         return with Alt-F1
   \item Install lilo to partition
   \item Linux is now selectable from rEFIt after reboot
  \end{itemize}
  \end{frame}
  
  \begin{frame}
  \frametitle{MBR vs GPT}
  Shows up differently even on same disk\\
  \begin{minipage}[t]{0.68\hsize} 
  MBR
  
  {\scriptsize
   Disk /dev/sda: 80.0 GB, 80026361856 bytes\\
  255 heads, 63 sectors/track, 9729 cylinders\\
  Units = cylinders of 16065 * 512 = 8225280 bytes\\
  
     Device Boot      Start         End      Blocks   Id  System\\
  /dev/sda1               1          26      204819+  ee  EFI GPT\\
  /dev/sda2              26        2637    20971520   af  Unknown\\
  /dev/sda3   *        2637        2758      976563   ef  EFI (FAT-12/16/32)\\
  /dev/sda4            2758        5190    19531250+  ef  EFI (FAT-12/16/32)\\
  }
  \end{minipage}
  \begin{minipage}[t]{0.30\hsize}
  GPT\\
  
  {\small
   major minor  $\sharp{}$blocks  name\\
  
     8     0   78150744 sda\\
     8     1     204800 sda1\\
     8     2   20971520 sda2\\
     8     3     976563 sda3\\
     8     4   19531250 sda4\\
     8     5    2929688 sda5\\
  }
  \end{minipage}
  \end{frame}
  
  \subsection{Configuration}
  
  \begin{frame}
   \frametitle{X configuration}
  \begin{itemize}
   \item i810
   \item use 915resolution to set to 1280x800
   \item \texttt{xkbset m} will help with lack of right/middle mouse buttons
  \end{itemize}
  \end{frame}
  
  \begin{frame}
   \frametitle{kernel configuration}
  \begin{itemize}
   \item Older kernels before 2.6.17 seems to panic 4/5 times.
   \item rtc.ko seems to be broken, use rtc-dev.ko
   \item sound:\texttt{snd\_hda\_intel}
   \item NW: sky2\\
         wifi: madwifi
   \item CPU frequency can be controlled with \texttt{cpufreq\_centrino};
         \texttt{apt-get install cpufreqd}
  \end{itemize}
  \end{frame}
  
  \begin{frame}
   \frametitle{madwifi}
   \begin{itemize}
    \item \texttt{sudo apt-get install madwifi-source madwifi-tools madwifi-doc}
    \item \texttt{sudo m-a prepare}
    \item \texttt{sudo m-a a-i madwifi}
    \item \texttt{sudo modprobe ath\_pci}
    \item<2-> sometimes seems to hang at boot; stability is not too good.
   \end{itemize}
  \end{frame}
  
  \begin{frame}
   \frametitle{linux-uvc}
   \begin{itemize}
    \item \texttt{sudo apt-get install linux-uvc-source linux-uvc-tools}
    \item \texttt{sudo m-a prepare}
    \item \texttt{sudo m-a a-i linux-uvc}
    \item \texttt{sudo macbook-isight-firmware-loader \\
         /mnt/mac/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns\\/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport}
    \item \texttt{sudo modprobe uvcvideo}
    \item \texttt{sudo apt-get install ekiga libpt-plugins-v4l2}
   \end{itemize}
  \end{frame}
  
  \section{Other goals}
  
  \subsection{What I hacked}
  
  \begin{frame}
   \frametitle{Patches I made for this presentation}
  
  Using Debian enough for preparing for presentations.
  
   \begin{itemize}[<+->]
    \item 377198: module-assistant: kernel modules cannot be built for 2.6.18-rc1
    \item 247602: xpdf-reader: fullscreen with metacity and other NETWM
  	window managers
    \item IR receiver hack: do presentation with IR remote.
    \item Debian refit package
    \item linux-uvc package
   \end{itemize}
  \end{frame}
  
  \subsection{IR remote}
  
  \begin{frame}
   \frametitle{USB device}
  
  \begin{minipage}[t]{0.4\hsize}
    \begin{itemize}
    \item<1-> IR remote
    \item<1-> USB HID device
    \item<2-> libusb and libXtst\\
         3-minute hacking
    \item<3-> There is already a kernel driver, you could do all this with
         xmodmap.
   \end{itemize}
  \end{minipage}
  \begin{minipage}[t]{0.5\hsize}
   \onslide<2->\includegraphics[width=2\hsize]{image200607/usbir.png}
  \end{minipage}
  \end{frame}
  
  
  
  \begin{frame}
  \frametitle{What next?}
  Devices that I haven't touched yet
  \begin{itemize}
   \item suspend/sleep
   \item CD-R writing
   \item backlight control
   \item bluetooth
   \item other yet unknown features ..
  \end{itemize}
  \end{frame}
  
  \end{document}
  
  
  
  1.1                  monthly-report/debianmeetingresume200607-presentation-english.pdf
  
  	<<Binary file>>
  
  



More information about the Tokyodebian-commits mailing list