http://phorum.study-area.org/index.php/topic,15553.html
http://www.ntu.beautifulworldco.com/weblog/?p=385
rsync server
/etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to am ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
# log_on_failure += USERID
}
/etc/rsyncd.conf
[VT250]
path = /media/disk-4/BACKUP
auth users = gigijoe
uid = root
gid = root
secrets file = /etc/rsyncd.secrets
read only = no
[VT300]
path = /media/disk-4/BACKUP
auth users = gigijoe
uid = root
gid = root
secrets file = /etc/rsyncd.secrets
read only = no
/etc/rsyncd.secrets
gigijoe:xxxxxxxx
rsync client
sudo /usr/bin/rsync -vzrtopgl --progress --delete /home/gigijoe/VT250 gigijoe@127.0.0.1::VT250
sudo /usr/bin/rsync -vzrtopgl --progress --delete /home/gigijoe/VT300 gigijoe@127.0.0.1::VT300
-a, --archive 權限保存模式
-H, --hard-links 保留硬式連結
-D, --devices 保留device資訊(root only)
-S, --sparse 嘗試去處理稀疏的檔案,讓這些檔案在目的端佔去較少的磁碟空間.
-t, --times 保留時間點
-v , --verbose 複雜的輸出訊息,若要在背景執行請拿掉此參數
參數詳細說明
http://yes.dyndns.tv:84/dom/blog/rsync.htm
2009年4月22日 星期三
2009年4月16日 星期四
ffmpeg encode mp3
http://howto-pages.org/ffmpeg/
從avi檔案中取出mp3 audio
ffmpeg -i 影片/JerryCCanonRock.avi JerryCCanonRock.mp3
CD wav 檔轉 mp3 bitrate 320k
ffmpeg -ab 320k -i 桌面/Track\ 10.wav NR.mp3
gigijoe@gigijoe-laptop:~$ ffmpeg -ab 320k -i 桌面/Track\ 10.wav NR.mp3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on Mar 12 2008 14:31:53, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu4)
Input #0, wav, from '桌面/Track 10.wav':
Duration: 00:08:57.5, start: 0.000000, bitrate: 1411 kb/s
Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
File 'NR.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp2, to 'NR.mp3':
Stream #0.0: Audio: mp2, 44100 Hz, stereo, 320 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 20996kB time=537.5 bitrate= 320.0kbits/s
video:0kB audio:20996kB global headers:0kB muxing overhead 0.000000%
Ubuntu CD ripper
https://help.ubuntu.com/community/CDRipping#RubyRipper
http://ubuntuforums.org/showthread.php?t=295698&page=3
Encode mp3 from DVD .vob file
gigijoe@user-desktop:~/ffmpeg$ ./ffmpeg -i /media/cdrom0/VIDEO_TS/VTS_01_0.VOB -ab 320k ./VTS_01_0.mp3
FFmpeg version SVN-r18658, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-gpl
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.27. 0 / 52.27. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Apr 22 2009 15:18:23, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Input #0, mpeg, from '/media/cdrom0/VIDEO_TS/VTS_01_0.VOB':
Duration: 00:00:59.93, start: 0.330078, bitrate: 1311 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x20]: Subtitle: dvdsub
Stream #0.2[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
Output #0, mp3, to './VTS_01_0.mp3':
Stream #0.0: Audio: libmp3lame, 48000 Hz, stereo, s16, 320 kb/s
Stream mapping:
Stream #0.2 -> #0.0
Press [q] to stop encoding
size= 7033kB time=180.05 bitrate= 320.0kbits/s
video:0kB audio:7033kB global headers:0kB muxing overhead 0.000444%
http://forum.doom9.org/archive/index.php/t-134588.html
2009年4月5日 星期日
Debian 5.0.0 PowerPC
忍了很久終於把 MAC mini 上的 OS X 給換成linux ppc.
這台MAC mini已經用了四年多了CPU是G4 1.42G, Ram 1G.
安裝很容易,安裝光碟放進去重開機按著C鍵不放從光碟開機,其他的程序就跟X86 linux一樣.
還是linux比較習慣,resource消耗也少多了
gigijoe@debian:~$ dmesg
[ 0.000000] Using PowerMac machine description
[ 0.000000] Total memory = 1024MB; using 2048kB for hash table (at cfe00000)
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.26-1-powerpc (Debian 2.6.26-13lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 Fri Mar 13 23:21:57 UTC 2009
[ 0.000000] Found initrd at 0xc1a00000:0xc2115000
[ 0.000000] Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0xd2
[ 0.000000] Mapped at 0xff7c0000
[ 0.000000] Found a Intrepid mac-io controller, rev: 0, mapped at 0xff740000
[ 0.000000] Processor NAP mode on idle enabled.
[ 0.000000] PowerMac motherboard: Mac mini
[ 0.000000] console [udbg0] enabled
[ 0.000000] Entering add_active_range(0, 0, 262144) 0 entries of 256 used
[ 0.000000] Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus number: 0->0
[ 0.000000] PCI host bridge /pci@f0000000 ranges:
[ 0.000000] MEM 0x00000000f1000000..0x00000000f1ffffff -> 0x00000000f1000000
[ 0.000000] IO 0x00000000f0000000..0x00000000f07fffff -> 0x0000000000000000
[ 0.000000] MEM 0x0000000090000000..0x000000009fffffff -> 0x0000000090000000
[ 0.000000] Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0
[ 0.000000] PCI host bridge /pci@f2000000 (primary) ranges:
[ 0.000000] MEM 0x00000000f3000000..0x00000000f3ffffff -> 0x00000000f3000000
[ 0.000000] IO 0x00000000f2000000..0x00000000f27fffff -> 0x0000000000000000
[ 0.000000] MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000
[ 0.000000] Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus number: 0->0
[ 0.000000] PCI host bridge /pci@f4000000 ranges:
[ 0.000000] MEM 0x00000000f5000000..0x00000000f5ffffff -> 0x00000000f5000000
[ 0.000000] IO 0x00000000f4000000..0x00000000f47fffff -> 0x0000000000000000
[ 0.000000] via-pmu: Server Mode is disabled
[ 0.000000] PMU driver v2 initialized for Core99, firmware: 55
[ 0.000000] nvram: Checking bank 0...
[ 0.000000] nvram: gen0=168, gen1=167
[ 0.000000] nvram: Active bank is: 0
[ 0.000000] nvram: OF partition at 0x410
[ 0.000000] nvram: XP partition at 0x1020
[ 0.000000] nvram: NR partition at 0x1120
[ 0.000000] Top of RAM: 0x40000000, Total RAM: 0x40000000
[ 0.000000] Memory hole size: 0MB
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0 -> 196608
[ 0.000000] Normal 196608 -> 196608
[ 0.000000] HighMem 196608 -> 262144
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0 -> 262144
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] DMA zone: 1536 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 195072 pages, LIFO batch:31
[ 0.000000] Normal zone: 0 pages used for memmap
[ 0.000000] HighMem zone: 512 pages used for memmap
[ 0.000000] HighMem zone: 65024 pages, LIFO batch:15
[ 0.000000] Movable zone: 0 pages used for memmap
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: root=/dev/hda3 ro
[ 0.000000] mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs
[ 0.000000] mpic: ISU size: 64, shift: 6, mask: 3f
[ 0.000000] mpic: Initializing for 64 sources
[ 0.000000] PID hash table entries: 4096 (order: 12, 16384 bytes)
[ 0.000000] GMT Delta read from XPRAM: 0 minutes, DST: off
[ 0.000000] time_init: decrementer frequency = 41.620997 MHz
[ 0.000000] time_init: processor frequency = 1416.666661 MHz
[ 0.000000] clocksource: timebase mult[601af77] shift[22] registered
[ 0.000000] clockevent: decrementer mult[aa7] shift[16] cpu[0]
[ 0.000618] Console: colour dummy device 80x25
[ 0.001126] console handover: boot [udbg0] -> real [tty0]
[ 0.002329] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.003146] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.062578] High memory: 262144k
[ 0.062584] Memory: 1024848k/1048576k available (3760k kernel code, 22972k reserved, 152k data, 347k bss, 220k init)
[ 0.062766] Calibrating delay loop... 83.20 BogoMIPS (lpj=166400)
[ 0.144730] Security Framework initialized
[ 0.144754] SELinux: Disabled at boot.
[ 0.144764] Capability LSM initialized
[ 0.144786] Mount-cache hash table entries: 512
[ 0.145083] device-tree: Duplicate name in /cpus/PowerPC,G4@0, renamed to "l2-cache#1"
[ 0.146368] Initializing cgroup subsys ns
[ 0.146378] Initializing cgroup subsys cpuacct
[ 0.146384] Initializing cgroup subsys devices
[ 0.146876] net_namespace: 652 bytes
[ 0.147131] NET: Registered protocol family 16
[ 0.148271] KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000
[ 0.148284] channel 0 bus
[ 0.148289] channel 1 bus
[ 0.148310] KeyWest i2c @0x80018000 irq 26 /pci@f2000000/mac-io@17/i2c@18000
[ 0.148318] channel 0 bus
[ 0.148327] PMU i2c /pci@f2000000/mac-io@17/via-pmu@16000/pmu-i2c
[ 0.148335] channel 1 bus
[ 0.148340] channel 2 bus
[ 0.148397] PCI: Probing PCI hardware
[ 0.152019] usbcore: registered new interface driver usbfs
[ 0.152145] usbcore: registered new interface driver hub
[ 0.152218] usbcore: registered new device driver usb
[ 0.165391] NET: Registered protocol family 2
[ 0.168734] Switched to high resolution mode on CPU 0
[ 0.200802] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.201247] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.202621] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.202982] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.202997] TCP reno registered
[ 0.212869] NET: Registered protocol family 1
[ 0.213075] checking if image is initramfs... it is
[ 0.960810] Freeing initrd memory: 7252k freed
[ 0.961513] Thermal assist unit not available
[ 0.961619] setup_kcore: restrict size=3fffffff
[ 0.962226] audit: initializing netlink socket (disabled)
[ 0.962265] type=2000 audit(1238919580.960:1): initialized
[ 0.962466] highmem bounce pool size: 64 pages
[ 0.962573] VFS: Disk quotas dquot_6.5.1
[ 0.962622] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.962667] msgmni has been set to 1505
[ 0.962838] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.962856] io scheduler noop registered
[ 0.962864] io scheduler anticipatory registered
[ 0.962872] io scheduler deadline registered
[ 0.962888] io scheduler cfq registered (default)
[ 0.963317] radeonfb 0000:00:10.0: enabling device (0006 -> 0007)
[ 1.160573] radeonfb (0000:00:10.0): Invalid ROM signature 0 should be 0xaa55
[ 1.160581] radeonfb: Retrieved PLL infos from Open Firmware
[ 1.160593] radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=190.00 Mhz, System=250.00 MHz
[ 1.160606] radeonfb: PLL min 12000 max 35000
[ 1.257754] i2c-adapter i2c-2: unable to read EDID block.
[ 1.409750] i2c-adapter i2c-2: unable to read EDID block.
[ 1.561749] i2c-adapter i2c-2: unable to read EDID block.
[ 1.792727] radeonfb: Monitor 1 type DFP found
[ 1.792734] radeonfb: EDID probed
[ 1.792741] radeonfb: Monitor 2 type DFP found
[ 1.792749] radeonfb: EDID probed
[ 1.831384] Console: switching to colour frame buffer device 160x64
[ 1.856203] radeonfb (0000:00:10.0): ATI Radeon 5962 "Yb"
[ 1.860046] Generic non-volatile memory driver v1.1
[ 1.860296] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[ 1.861022] pmac_zilog: 0.6 (Benjamin Herrenschmidt )
[ 1.861273] ttyPZ0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Serial port
[ 1.861572] ttyPZ1 at MMIO 0x80013000 (irq = 23) is a Z85c30 ESCC - Serial port
[ 1.861905] Serial: MPC52xx PSC UART driver
[ 1.863956] brd: module loaded
[ 1.864133] MacIO PCI driver attached to Intrepid chipset
[ 1.865571] input: Macintosh mouse button emulation as /class/input/input0
[ 1.866164] Uniform Multi-Platform E-IDE driver
[ 1.866322] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[ 1.866630] adb: starting probe task...
[ 1.866763] adb: finished probe task...
[ 1.867045] ide-pmac 0002:20:0d.0: enabling device (0000 -> 0002)
[ 2.884726] ide0: Found Apple UniNorth ATA-6 controller, bus ID 3, irq 39
[ 2.884966] Probing IDE interface ide0...
[ 3.172906] hda: ST9808210A, ATA DISK drive
[ 3.620901] hdb: MATSHITACD-RW CW-8124, ATAPI CD/DVD-ROM drive
[ 3.676828] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 3.677067] hda: UDMA/100 mode selected
[ 3.677450] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 3.677616] hdb: UDMA/33 mode selected
[ 3.677881] ide0 at 0xf1012000-0xf1012070,0xf1012160 on irq 39
[ 4.696726] ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 24
[ 4.696958] Probing IDE interface ide1...
[ 5.264819] ide1 at 0xf1006000-0xf1006070,0xf1006160 on irq 24
[ 5.265175] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.265312] Apple USB OHCI 0001:10:18.0 disabled by firmware
[ 5.265510] Apple USB OHCI 0001:10:19.0 disabled by firmware
[ 5.265704] ohci_hcd 0001:10:1a.0: enabling device (0000 -> 0002)
[ 5.265910] ohci_hcd 0001:10:1a.0: OHCI Host Controller
[ 5.266239] ohci_hcd 0001:10:1a.0: new USB bus registered, assigned bus number 1
[ 5.266501] ohci_hcd 0001:10:1a.0: irq 29, io mem 0x80083000
[ 5.340584] usb usb1: configuration #1 chosen from 1 choice
[ 5.340845] hub 1-0:1.0: USB hub found
[ 5.340985] hub 1-0:1.0: 2 ports detected
[ 5.444964] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[ 5.445186] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.453065] usb usb1: Product: OHCI Host Controller
[ 5.460860] usb usb1: Manufacturer: Linux 2.6.26-1-powerpc ohci_hcd
[ 5.468696] usb usb1: SerialNumber: 0001:10:1a.0
[ 5.476537] ohci_hcd 0001:10:1b.0: enabling device (0000 -> 0002)
[ 5.484398] ohci_hcd 0001:10:1b.0: OHCI Host Controller
[ 5.492308] ohci_hcd 0001:10:1b.0: new USB bus registered, assigned bus number 2
[ 5.500113] ohci_hcd 0001:10:1b.0: irq 63, io mem 0x80082000
[ 5.580543] usb usb2: configuration #1 chosen from 1 choice
[ 5.588299] hub 2-0:1.0: USB hub found
[ 5.596008] hub 2-0:1.0: 3 ports detected
[ 5.704914] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 5.712799] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.720658] usb usb2: Product: OHCI Host Controller
[ 5.728464] usb usb2: Manufacturer: Linux 2.6.26-1-powerpc ohci_hcd
[ 5.736298] usb usb2: SerialNumber: 0001:10:1b.0
[ 5.744030] ohci_hcd 0001:10:1b.1: enabling device (0000 -> 0002)
[ 5.751818] ohci_hcd 0001:10:1b.1: OHCI Host Controller
[ 5.759656] ohci_hcd 0001:10:1b.1: new USB bus registered, assigned bus number 3
[ 5.767562] ohci_hcd 0001:10:1b.1: irq 63, io mem 0x80081000
[ 5.848545] usb usb3: configuration #1 chosen from 1 choice
[ 5.856592] hub 3-0:1.0: USB hub found
[ 5.864579] hub 3-0:1.0: 2 ports detected
[ 5.972900] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 5.981059] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.989185] usb usb3: Product: OHCI Host Controller
[ 5.997241] usb usb3: Manufacturer: Linux 2.6.26-1-powerpc ohci_hcd
[ 6.005336] usb usb3: SerialNumber: 0001:10:1b.1
[ 6.013369] usb 2-1: new full speed USB device using ohci_hcd and address 2
[ 6.032812] mice: PS/2 mouse device common for all mice
[ 6.040909] platform ppc-rtc.0: rtc core: registered ppc_md as rtc0
[ 6.049600] TCP cubic registered
[ 6.057623] NET: Registered protocol family 17
[ 6.065853] registered taskstats version 1
[ 6.074129] input: PMU as /class/input/input1
[ 6.098886] platform ppc-rtc.0: setting system clock to 2009-04-05 08:19:46 UTC (1238919586)
[ 6.107028] Freeing unused kernel memory: 220k init
[ 6.189085] usb 2-1: configuration #1 chosen from 1 choice
[ 6.198953] hub 2-1:1.0: USB hub found
[ 6.208793] hub 2-1:1.0: 3 ports detected
[ 6.333093] usb 2-1: New USB device found, idVendor=05ac, idProduct=1003
[ 6.341315] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6.349609] usb 2-1: Product: Hub in Apple Extended USB Keyboard
[ 6.357894] usb 2-1: Manufacturer: Mitsumi Electric
[ 6.407183] PowerMac i2c bus pmu 2 registered
[ 6.415768] PowerMac i2c bus pmu 1 registered
[ 6.424351] PowerMac i2c bus mac-io 0 registered
[ 6.432803] PowerMac i2c bus uni-n 1 registered
[ 6.441255] PowerMac i2c bus uni-n 0 registered
[ 6.610586] usb 2-1.1: new full speed USB device using ohci_hcd and address 3
[ 6.741379] usb 2-1.1: configuration #1 chosen from 1 choice
[ 6.751529] usb 2-1.1: New USB device found, idVendor=04b4, idProduct=6830
[ 6.760040] usb 2-1.1: New USB device strings: Mfr=56, Product=78, SerialNumber=100
[ 6.768534] usb 2-1.1: Product: USB2.0 Storage Device
[ 6.776994] usb 2-1.1: Manufacturer: Cypress Semiconductor
[ 6.785508] usb 2-1.1: SerialNumber: DEF109BB9F84
[ 7.022351] usb 2-1.2: new low speed USB device using ohci_hcd and address 4
[ 7.141075] usb 2-1.2: configuration #1 chosen from 1 choice
[ 7.151131] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c016
[ 7.159885] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7.168440] usb 2-1.2: Product: Optical USB Mouse
[ 7.176919] usb 2-1.2: Manufacturer: Logitech
[ 7.398250] usb 2-1.3: new full speed USB device using ohci_hcd and address 5
[ 7.519950] usb 2-1.3: configuration #1 chosen from 1 choice
[ 7.531053] usb 2-1.3: New USB device found, idVendor=05ac, idProduct=020b
[ 7.539872] usb 2-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 7.548496] usb 2-1.3: Product: Apple Extended USB Keyboard
[ 7.557145] usb 2-1.3: Manufacturer: Mitsumi Electric
[ 8.338342] SCSI subsystem initialized
[ 8.381810] ehci_hcd 0001:10:1b.2: enabling device (0004 -> 0006)
[ 8.390515] ehci_hcd 0001:10:1b.2: EHCI Host Controller
[ 8.399192] ehci_hcd 0001:10:1b.2: new USB bus registered, assigned bus number 4
[ 8.487990] hda: max request size: 512KiB
[ 8.512816] Initializing USB Mass Storage driver...
[ 8.574731] scsi0 : SCSI emulation for USB Mass Storage devices
[ 8.583688] usbcore: registered new interface driver usb-storage
[ 8.592384] USB Mass Storage support registered.
[ 8.601036] usb-storage: device found at 3
[ 8.601039] usb-storage: waiting for device to settle before scanning
[ 8.601070] ehci_hcd 0001:10:1b.2: irq 63, io mem 0x80080000
[ 8.609790] usb 2-1: USB disconnect, address 2
[ 8.618656] usb 2-1.1: USB disconnect, address 3
[ 8.627741] usb 2-1.2: USB disconnect, address 4
[ 8.636471] usb 2-1.3: USB disconnect, address 5
[ 8.677563] ehci_hcd 0001:10:1b.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[ 8.686345] usb usb4: configuration #1 chosen from 1 choice
[ 8.694979] hub 4-0:1.0: USB hub found
[ 8.703465] hub 4-0:1.0: 5 ports detected
[ 8.737344] hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63
[ 8.746282] hda: cache flushes supported
[ 8.754946] hda: [mac] hda1 hda2 hda3 hda4
[ 8.786659] hdb: ATAPI 61X DVD-ROM CD-R/RW drive, 2048kB Cache
[ 8.795296] Uniform CD-ROM driver Revision: 3.20
[ 8.864924] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[ 8.873705] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 8.882142] usb usb4: Product: EHCI Host Controller
[ 8.890527] usb usb4: Manufacturer: Linux 2.6.26-1-powerpc ehci_hcd
[ 8.898923] usb usb4: SerialNumber: 0001:10:1b.2
[ 8.907390] sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com)
[ 8.981102] PHY ID: 4061e4, addr: 0
[ 8.982035] eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:0d:93:79:09:46
[ 8.990705] eth0: Found BCM5221 PHY
[ 8.999002] ohci1394 0002:20:0e.0: enabling device (0000 -> 0002)
[ 9.058884] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[40] MMIO=[f5000000-f50007ff] Max Packet=[2048] IR/IT contexts=[8/8]
[ 9.248974] usbcore: registered new interface driver hiddev
[ 9.504745] usb 2-1: new full speed USB device using ohci_hcd and address 6
[ 9.677387] usb 2-1: configuration #1 chosen from 1 choice
[ 9.687314] hub 2-1:1.0: USB hub found
[ 9.697216] hub 2-1:1.0: 3 ports detected
[ 9.820871] usb 2-1: New USB device found, idVendor=05ac, idProduct=1003
[ 9.829725] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9.838359] usb 2-1: Product: Hub in Apple Extended USB Keyboard
[ 9.846943] usb 2-1: Manufacturer: Mitsumi Electric
[ 10.066093] usb 2-1.1: new full speed USB device using ohci_hcd and address 7
[ 10.172770] usb 2-1.1: not running at top speed; connect to a high speed hub
[ 10.197778] usb 2-1.1: configuration #1 chosen from 1 choice
[ 10.208141] scsi1 : SCSI emulation for USB Mass Storage devices
[ 10.217481] usb 2-1.1: New USB device found, idVendor=04b4, idProduct=6830
[ 10.226255] usb 2-1.1: New USB device strings: Mfr=56, Product=78, SerialNumber=100
[ 10.234986] usb 2-1.1: Product: USB2.0 Storage Device
[ 10.243652] usb 2-1.1: Manufacturer: Cypress Semiconductor
[ 10.252326] usb 2-1.1: SerialNumber: DEF109BB9F84
[ 10.262086] usb-storage: device found at 7
[ 10.262091] usb-storage: waiting for device to settle before scanning
[ 10.396871] ieee1394: Host added: ID:BUS[0-00:1023] GUID[000d93fffe790946]
[ 10.469875] usb 2-1.2: new low speed USB device using ohci_hcd and address 8
[ 10.589622] usb 2-1.2: configuration #1 chosen from 1 choice
[ 10.600700] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c016
[ 10.609474] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 10.618180] usb 2-1.2: Product: Optical USB Mouse
[ 10.626840] usb 2-1.2: Manufacturer: Logitech
[ 10.846728] usb 2-1.3: new full speed USB device using ohci_hcd and address 9
[ 10.969439] usb 2-1.3: configuration #1 chosen from 1 choice
[ 10.980558] usb 2-1.3: New USB device found, idVendor=05ac, idProduct=020b
[ 10.989477] usb 2-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 10.998246] usb 2-1.3: Product: Apple Extended USB Keyboard
[ 11.006989] usb 2-1.3: Manufacturer: Mitsumi Electric
[ 11.024830] input: Logitech Optical USB Mouse as /class/input/input2
[ 11.044792] input,hidraw0: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0001:10:1b.0-1.2
[ 11.060832] input: Mitsumi Electric Apple Extended USB Keyboard as /class/input/input3
[ 11.084792] input,hidraw1: USB HID v1.10 Keyboard [Mitsumi Electric Apple Extended USB Keyboard] on usb-0001:10:1b.0-1.3
[ 11.105075] input: Mitsumi Electric Apple Extended USB Keyboard as /class/input/input4
[ 11.124785] input,hidraw2: USB HID v1.10 Device [Mitsumi Electric Apple Extended USB Keyboard] on usb-0001:10:1b.0-1.3
[ 11.134517] usbcore: registered new interface driver usbhid
[ 11.143995] usbhid: v2.6:USB HID core driver
[ 11.380905] eth0: Link is up at 100 Mbps, full-duplex.
[ 11.840675] PM: Starting manual resume from disk
[ 11.941912] kjournald starting. Commit interval 5 seconds
[ 11.951819] EXT3-fs: mounted filesystem with ordered data mode.
[ 14.239574] udevd version 125 started
[ 15.262428] usb-storage: device scan complete
[ 15.269422] scsi 1:0:0:0: Direct-Access Maxtor 7 Y250M0 PQ: 0 ANSI: 0
[ 17.424536] Linux agpgart interface v0.103
[ 17.492062] agpgart: Detected Apple UniNorth 2 chipset
[ 17.502182] agpgart: configuring for size idx: 8
[ 17.511942] agpgart: AGP aperture is 32M @ 0x0
[ 19.246779] Driver 'sd' needs updating - please use bus_type methods
[ 19.266300] sd 1:0:0:0: [sda] 490234752 512-byte hardware sectors (251000 MB)
[ 19.288213] sd 1:0:0:0: [sda] Write Protect is off
[ 19.298070] sd 1:0:0:0: [sda] Mode Sense: 33 00 00 00
[ 19.298075] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 19.317133] sd 1:0:0:0: [sda] 490234752 512-byte hardware sectors (251000 MB)
[ 19.339050] sd 1:0:0:0: [sda] Write Protect is off
[ 19.348833] sd 1:0:0:0: [sda] Mode Sense: 33 00 00 00
[ 19.348838] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 19.358574] sda: sda1 sda2
[ 19.392857] sd 1:0:0:0: [sda] Attached SCSI disk
[ 19.663431] snd-aoa-fabric-layout: found bus with layout 58
[ 19.673181] snd-aoa-fabric-layout: Using direct GPIOs
[ 19.698643] snd-aoa-fabric-layout: can use this codec
[ 21.992606] Adding 3026680k swap on /dev/hda4. Priority:-1 extents:1 across:3026680k
[ 22.496189] EXT3 FS on hda3, internal journal
[ 23.243553] loop: module loaded
[ 26.001578] eth0: Link is up at 100 Mbps, full-duplex.
[ 26.010543] eth0: Pause is disabled
[ 29.221538] NET: Registered protocol family 10
[ 29.230394] lo: Disabled Privacy Extensions
[ 29.715191] lp: driver loaded but no devices found
[ 34.881448] RPC: Registered udp transport module.
[ 34.889886] RPC: Registered tcp transport module.
[ 34.983177] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 35.095500] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[ 35.136243] NFSD: starting 90-second grace period
[ 39.316729] eth0: no IPv6 routers present
[ 42.332358] NET: Registered protocol family 5
[ 44.621628] [drm] Initialized drm 1.1.0 20060810
[ 44.648160] [drm] Initialized radeon 1.29.0 20080528 on minor 0
[ 45.297912] agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
[ 45.297931] agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
[ 45.672224] [drm] Setting GART location based on new memory map
[ 45.672245] [drm] Loading R200 Microcode
[ 45.672300] [drm] writeback test succeeded in 1 usecs
[ 55.196744] eth0: no IPv6 routers present
[ 5726.292606] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 5727.365865] hfs: write access to a journaled filesystem is not supported, use the force option at your own risk, mounting read-only.
[ 5727.433567] UDF-fs: No VRS found
[ 5727.588076] ISO 9660 Extensions: RRIP_1991A
這台MAC mini已經用了四年多了CPU是G4 1.42G, Ram 1G.
安裝很容易,安裝光碟放進去重開機按著C鍵不放從光碟開機,其他的程序就跟X86 linux一樣.
還是linux比較習慣,resource消耗也少多了
gigijoe@debian:~$ dmesg
[ 0.000000] Using PowerMac machine description
[ 0.000000] Total memory = 1024MB; using 2048kB for hash table (at cfe00000)
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.26-1-powerpc (Debian 2.6.26-13lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 Fri Mar 13 23:21:57 UTC 2009
[ 0.000000] Found initrd at 0xc1a00000:0xc2115000
[ 0.000000] Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0xd2
[ 0.000000] Mapped at 0xff7c0000
[ 0.000000] Found a Intrepid mac-io controller, rev: 0, mapped at 0xff740000
[ 0.000000] Processor NAP mode on idle enabled.
[ 0.000000] PowerMac motherboard: Mac mini
[ 0.000000] console [udbg0] enabled
[ 0.000000] Entering add_active_range(0, 0, 262144) 0 entries of 256 used
[ 0.000000] Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus number: 0->0
[ 0.000000] PCI host bridge /pci@f0000000 ranges:
[ 0.000000] MEM 0x00000000f1000000..0x00000000f1ffffff -> 0x00000000f1000000
[ 0.000000] IO 0x00000000f0000000..0x00000000f07fffff -> 0x0000000000000000
[ 0.000000] MEM 0x0000000090000000..0x000000009fffffff -> 0x0000000090000000
[ 0.000000] Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0
[ 0.000000] PCI host bridge /pci@f2000000 (primary) ranges:
[ 0.000000] MEM 0x00000000f3000000..0x00000000f3ffffff -> 0x00000000f3000000
[ 0.000000] IO 0x00000000f2000000..0x00000000f27fffff -> 0x0000000000000000
[ 0.000000] MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000
[ 0.000000] Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus number: 0->0
[ 0.000000] PCI host bridge /pci@f4000000 ranges:
[ 0.000000] MEM 0x00000000f5000000..0x00000000f5ffffff -> 0x00000000f5000000
[ 0.000000] IO 0x00000000f4000000..0x00000000f47fffff -> 0x0000000000000000
[ 0.000000] via-pmu: Server Mode is disabled
[ 0.000000] PMU driver v2 initialized for Core99, firmware: 55
[ 0.000000] nvram: Checking bank 0...
[ 0.000000] nvram: gen0=168, gen1=167
[ 0.000000] nvram: Active bank is: 0
[ 0.000000] nvram: OF partition at 0x410
[ 0.000000] nvram: XP partition at 0x1020
[ 0.000000] nvram: NR partition at 0x1120
[ 0.000000] Top of RAM: 0x40000000, Total RAM: 0x40000000
[ 0.000000] Memory hole size: 0MB
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0 -> 196608
[ 0.000000] Normal 196608 -> 196608
[ 0.000000] HighMem 196608 -> 262144
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0 -> 262144
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] DMA zone: 1536 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 195072 pages, LIFO batch:31
[ 0.000000] Normal zone: 0 pages used for memmap
[ 0.000000] HighMem zone: 512 pages used for memmap
[ 0.000000] HighMem zone: 65024 pages, LIFO batch:15
[ 0.000000] Movable zone: 0 pages used for memmap
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: root=/dev/hda3 ro
[ 0.000000] mpic: Setting up MPIC " MPIC 1 " version 1.2 at 80040000, max 4 CPUs
[ 0.000000] mpic: ISU size: 64, shift: 6, mask: 3f
[ 0.000000] mpic: Initializing for 64 sources
[ 0.000000] PID hash table entries: 4096 (order: 12, 16384 bytes)
[ 0.000000] GMT Delta read from XPRAM: 0 minutes, DST: off
[ 0.000000] time_init: decrementer frequency = 41.620997 MHz
[ 0.000000] time_init: processor frequency = 1416.666661 MHz
[ 0.000000] clocksource: timebase mult[601af77] shift[22] registered
[ 0.000000] clockevent: decrementer mult[aa7] shift[16] cpu[0]
[ 0.000618] Console: colour dummy device 80x25
[ 0.001126] console handover: boot [udbg0] -> real [tty0]
[ 0.002329] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.003146] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.062578] High memory: 262144k
[ 0.062584] Memory: 1024848k/1048576k available (3760k kernel code, 22972k reserved, 152k data, 347k bss, 220k init)
[ 0.062766] Calibrating delay loop... 83.20 BogoMIPS (lpj=166400)
[ 0.144730] Security Framework initialized
[ 0.144754] SELinux: Disabled at boot.
[ 0.144764] Capability LSM initialized
[ 0.144786] Mount-cache hash table entries: 512
[ 0.145083] device-tree: Duplicate name in /cpus/PowerPC,G4@0, renamed to "l2-cache#1"
[ 0.146368] Initializing cgroup subsys ns
[ 0.146378] Initializing cgroup subsys cpuacct
[ 0.146384] Initializing cgroup subsys devices
[ 0.146876] net_namespace: 652 bytes
[ 0.147131] NET: Registered protocol family 16
[ 0.148271] KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000
[ 0.148284] channel 0 bus
[ 0.148289] channel 1 bus
[ 0.148310] KeyWest i2c @0x80018000 irq 26 /pci@f2000000/mac-io@17/i2c@18000
[ 0.148318] channel 0 bus
[ 0.148327] PMU i2c /pci@f2000000/mac-io@17/via-pmu@16000/pmu-i2c
[ 0.148335] channel 1 bus
[ 0.148340] channel 2 bus
[ 0.148397] PCI: Probing PCI hardware
[ 0.152019] usbcore: registered new interface driver usbfs
[ 0.152145] usbcore: registered new interface driver hub
[ 0.152218] usbcore: registered new device driver usb
[ 0.165391] NET: Registered protocol family 2
[ 0.168734] Switched to high resolution mode on CPU 0
[ 0.200802] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.201247] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.202621] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.202982] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.202997] TCP reno registered
[ 0.212869] NET: Registered protocol family 1
[ 0.213075] checking if image is initramfs... it is
[ 0.960810] Freeing initrd memory: 7252k freed
[ 0.961513] Thermal assist unit not available
[ 0.961619] setup_kcore: restrict size=3fffffff
[ 0.962226] audit: initializing netlink socket (disabled)
[ 0.962265] type=2000 audit(1238919580.960:1): initialized
[ 0.962466] highmem bounce pool size: 64 pages
[ 0.962573] VFS: Disk quotas dquot_6.5.1
[ 0.962622] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.962667] msgmni has been set to 1505
[ 0.962838] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.962856] io scheduler noop registered
[ 0.962864] io scheduler anticipatory registered
[ 0.962872] io scheduler deadline registered
[ 0.962888] io scheduler cfq registered (default)
[ 0.963317] radeonfb 0000:00:10.0: enabling device (0006 -> 0007)
[ 1.160573] radeonfb (0000:00:10.0): Invalid ROM signature 0 should be 0xaa55
[ 1.160581] radeonfb: Retrieved PLL infos from Open Firmware
[ 1.160593] radeonfb: Reference=27.00 MHz (RefDiv=12) Memory=190.00 Mhz, System=250.00 MHz
[ 1.160606] radeonfb: PLL min 12000 max 35000
[ 1.257754] i2c-adapter i2c-2: unable to read EDID block.
[ 1.409750] i2c-adapter i2c-2: unable to read EDID block.
[ 1.561749] i2c-adapter i2c-2: unable to read EDID block.
[ 1.792727] radeonfb: Monitor 1 type DFP found
[ 1.792734] radeonfb: EDID probed
[ 1.792741] radeonfb: Monitor 2 type DFP found
[ 1.792749] radeonfb: EDID probed
[ 1.831384] Console: switching to colour frame buffer device 160x64
[ 1.856203] radeonfb (0000:00:10.0): ATI Radeon 5962 "Yb"
[ 1.860046] Generic non-volatile memory driver v1.1
[ 1.860296] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[ 1.861022] pmac_zilog: 0.6 (Benjamin Herrenschmidt )
[ 1.861273] ttyPZ0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Serial port
[ 1.861572] ttyPZ1 at MMIO 0x80013000 (irq = 23) is a Z85c30 ESCC - Serial port
[ 1.861905] Serial: MPC52xx PSC UART driver
[ 1.863956] brd: module loaded
[ 1.864133] MacIO PCI driver attached to Intrepid chipset
[ 1.865571] input: Macintosh mouse button emulation as /class/input/input0
[ 1.866164] Uniform Multi-Platform E-IDE driver
[ 1.866322] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[ 1.866630] adb: starting probe task...
[ 1.866763] adb: finished probe task...
[ 1.867045] ide-pmac 0002:20:0d.0: enabling device (0000 -> 0002)
[ 2.884726] ide0: Found Apple UniNorth ATA-6 controller, bus ID 3, irq 39
[ 2.884966] Probing IDE interface ide0...
[ 3.172906] hda: ST9808210A, ATA DISK drive
[ 3.620901] hdb: MATSHITACD-RW CW-8124, ATAPI CD/DVD-ROM drive
[ 3.676828] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 3.677067] hda: UDMA/100 mode selected
[ 3.677450] hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 3.677616] hdb: UDMA/33 mode selected
[ 3.677881] ide0 at 0xf1012000-0xf1012070,0xf1012160 on irq 39
[ 4.696726] ide1: Found Apple KeyLargo ATA-3 controller, bus ID 0, irq 24
[ 4.696958] Probing IDE interface ide1...
[ 5.264819] ide1 at 0xf1006000-0xf1006070,0xf1006160 on irq 24
[ 5.265175] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.265312] Apple USB OHCI 0001:10:18.0 disabled by firmware
[ 5.265510] Apple USB OHCI 0001:10:19.0 disabled by firmware
[ 5.265704] ohci_hcd 0001:10:1a.0: enabling device (0000 -> 0002)
[ 5.265910] ohci_hcd 0001:10:1a.0: OHCI Host Controller
[ 5.266239] ohci_hcd 0001:10:1a.0: new USB bus registered, assigned bus number 1
[ 5.266501] ohci_hcd 0001:10:1a.0: irq 29, io mem 0x80083000
[ 5.340584] usb usb1: configuration #1 chosen from 1 choice
[ 5.340845] hub 1-0:1.0: USB hub found
[ 5.340985] hub 1-0:1.0: 2 ports detected
[ 5.444964] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[ 5.445186] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.453065] usb usb1: Product: OHCI Host Controller
[ 5.460860] usb usb1: Manufacturer: Linux 2.6.26-1-powerpc ohci_hcd
[ 5.468696] usb usb1: SerialNumber: 0001:10:1a.0
[ 5.476537] ohci_hcd 0001:10:1b.0: enabling device (0000 -> 0002)
[ 5.484398] ohci_hcd 0001:10:1b.0: OHCI Host Controller
[ 5.492308] ohci_hcd 0001:10:1b.0: new USB bus registered, assigned bus number 2
[ 5.500113] ohci_hcd 0001:10:1b.0: irq 63, io mem 0x80082000
[ 5.580543] usb usb2: configuration #1 chosen from 1 choice
[ 5.588299] hub 2-0:1.0: USB hub found
[ 5.596008] hub 2-0:1.0: 3 ports detected
[ 5.704914] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 5.712799] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.720658] usb usb2: Product: OHCI Host Controller
[ 5.728464] usb usb2: Manufacturer: Linux 2.6.26-1-powerpc ohci_hcd
[ 5.736298] usb usb2: SerialNumber: 0001:10:1b.0
[ 5.744030] ohci_hcd 0001:10:1b.1: enabling device (0000 -> 0002)
[ 5.751818] ohci_hcd 0001:10:1b.1: OHCI Host Controller
[ 5.759656] ohci_hcd 0001:10:1b.1: new USB bus registered, assigned bus number 3
[ 5.767562] ohci_hcd 0001:10:1b.1: irq 63, io mem 0x80081000
[ 5.848545] usb usb3: configuration #1 chosen from 1 choice
[ 5.856592] hub 3-0:1.0: USB hub found
[ 5.864579] hub 3-0:1.0: 2 ports detected
[ 5.972900] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[ 5.981059] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.989185] usb usb3: Product: OHCI Host Controller
[ 5.997241] usb usb3: Manufacturer: Linux 2.6.26-1-powerpc ohci_hcd
[ 6.005336] usb usb3: SerialNumber: 0001:10:1b.1
[ 6.013369] usb 2-1: new full speed USB device using ohci_hcd and address 2
[ 6.032812] mice: PS/2 mouse device common for all mice
[ 6.040909] platform ppc-rtc.0: rtc core: registered ppc_md as rtc0
[ 6.049600] TCP cubic registered
[ 6.057623] NET: Registered protocol family 17
[ 6.065853] registered taskstats version 1
[ 6.074129] input: PMU as /class/input/input1
[ 6.098886] platform ppc-rtc.0: setting system clock to 2009-04-05 08:19:46 UTC (1238919586)
[ 6.107028] Freeing unused kernel memory: 220k init
[ 6.189085] usb 2-1: configuration #1 chosen from 1 choice
[ 6.198953] hub 2-1:1.0: USB hub found
[ 6.208793] hub 2-1:1.0: 3 ports detected
[ 6.333093] usb 2-1: New USB device found, idVendor=05ac, idProduct=1003
[ 6.341315] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 6.349609] usb 2-1: Product: Hub in Apple Extended USB Keyboard
[ 6.357894] usb 2-1: Manufacturer: Mitsumi Electric
[ 6.407183] PowerMac i2c bus pmu 2 registered
[ 6.415768] PowerMac i2c bus pmu 1 registered
[ 6.424351] PowerMac i2c bus mac-io 0 registered
[ 6.432803] PowerMac i2c bus uni-n 1 registered
[ 6.441255] PowerMac i2c bus uni-n 0 registered
[ 6.610586] usb 2-1.1: new full speed USB device using ohci_hcd and address 3
[ 6.741379] usb 2-1.1: configuration #1 chosen from 1 choice
[ 6.751529] usb 2-1.1: New USB device found, idVendor=04b4, idProduct=6830
[ 6.760040] usb 2-1.1: New USB device strings: Mfr=56, Product=78, SerialNumber=100
[ 6.768534] usb 2-1.1: Product: USB2.0 Storage Device
[ 6.776994] usb 2-1.1: Manufacturer: Cypress Semiconductor
[ 6.785508] usb 2-1.1: SerialNumber: DEF109BB9F84
[ 7.022351] usb 2-1.2: new low speed USB device using ohci_hcd and address 4
[ 7.141075] usb 2-1.2: configuration #1 chosen from 1 choice
[ 7.151131] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c016
[ 7.159885] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 7.168440] usb 2-1.2: Product: Optical USB Mouse
[ 7.176919] usb 2-1.2: Manufacturer: Logitech
[ 7.398250] usb 2-1.3: new full speed USB device using ohci_hcd and address 5
[ 7.519950] usb 2-1.3: configuration #1 chosen from 1 choice
[ 7.531053] usb 2-1.3: New USB device found, idVendor=05ac, idProduct=020b
[ 7.539872] usb 2-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 7.548496] usb 2-1.3: Product: Apple Extended USB Keyboard
[ 7.557145] usb 2-1.3: Manufacturer: Mitsumi Electric
[ 8.338342] SCSI subsystem initialized
[ 8.381810] ehci_hcd 0001:10:1b.2: enabling device (0004 -> 0006)
[ 8.390515] ehci_hcd 0001:10:1b.2: EHCI Host Controller
[ 8.399192] ehci_hcd 0001:10:1b.2: new USB bus registered, assigned bus number 4
[ 8.487990] hda: max request size: 512KiB
[ 8.512816] Initializing USB Mass Storage driver...
[ 8.574731] scsi0 : SCSI emulation for USB Mass Storage devices
[ 8.583688] usbcore: registered new interface driver usb-storage
[ 8.592384] USB Mass Storage support registered.
[ 8.601036] usb-storage: device found at 3
[ 8.601039] usb-storage: waiting for device to settle before scanning
[ 8.601070] ehci_hcd 0001:10:1b.2: irq 63, io mem 0x80080000
[ 8.609790] usb 2-1: USB disconnect, address 2
[ 8.618656] usb 2-1.1: USB disconnect, address 3
[ 8.627741] usb 2-1.2: USB disconnect, address 4
[ 8.636471] usb 2-1.3: USB disconnect, address 5
[ 8.677563] ehci_hcd 0001:10:1b.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[ 8.686345] usb usb4: configuration #1 chosen from 1 choice
[ 8.694979] hub 4-0:1.0: USB hub found
[ 8.703465] hub 4-0:1.0: 5 ports detected
[ 8.737344] hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63
[ 8.746282] hda: cache flushes supported
[ 8.754946] hda: [mac] hda1 hda2 hda3 hda4
[ 8.786659] hdb: ATAPI 61X DVD-ROM CD-R/RW drive, 2048kB Cache
[ 8.795296] Uniform CD-ROM driver Revision: 3.20
[ 8.864924] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[ 8.873705] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 8.882142] usb usb4: Product: EHCI Host Controller
[ 8.890527] usb usb4: Manufacturer: Linux 2.6.26-1-powerpc ehci_hcd
[ 8.898923] usb usb4: SerialNumber: 0001:10:1b.2
[ 8.907390] sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com)
[ 8.981102] PHY ID: 4061e4, addr: 0
[ 8.982035] eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:0d:93:79:09:46
[ 8.990705] eth0: Found BCM5221 PHY
[ 8.999002] ohci1394 0002:20:0e.0: enabling device (0000 -> 0002)
[ 9.058884] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[40] MMIO=[f5000000-f50007ff] Max Packet=[2048] IR/IT contexts=[8/8]
[ 9.248974] usbcore: registered new interface driver hiddev
[ 9.504745] usb 2-1: new full speed USB device using ohci_hcd and address 6
[ 9.677387] usb 2-1: configuration #1 chosen from 1 choice
[ 9.687314] hub 2-1:1.0: USB hub found
[ 9.697216] hub 2-1:1.0: 3 ports detected
[ 9.820871] usb 2-1: New USB device found, idVendor=05ac, idProduct=1003
[ 9.829725] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9.838359] usb 2-1: Product: Hub in Apple Extended USB Keyboard
[ 9.846943] usb 2-1: Manufacturer: Mitsumi Electric
[ 10.066093] usb 2-1.1: new full speed USB device using ohci_hcd and address 7
[ 10.172770] usb 2-1.1: not running at top speed; connect to a high speed hub
[ 10.197778] usb 2-1.1: configuration #1 chosen from 1 choice
[ 10.208141] scsi1 : SCSI emulation for USB Mass Storage devices
[ 10.217481] usb 2-1.1: New USB device found, idVendor=04b4, idProduct=6830
[ 10.226255] usb 2-1.1: New USB device strings: Mfr=56, Product=78, SerialNumber=100
[ 10.234986] usb 2-1.1: Product: USB2.0 Storage Device
[ 10.243652] usb 2-1.1: Manufacturer: Cypress Semiconductor
[ 10.252326] usb 2-1.1: SerialNumber: DEF109BB9F84
[ 10.262086] usb-storage: device found at 7
[ 10.262091] usb-storage: waiting for device to settle before scanning
[ 10.396871] ieee1394: Host added: ID:BUS[0-00:1023] GUID[000d93fffe790946]
[ 10.469875] usb 2-1.2: new low speed USB device using ohci_hcd and address 8
[ 10.589622] usb 2-1.2: configuration #1 chosen from 1 choice
[ 10.600700] usb 2-1.2: New USB device found, idVendor=046d, idProduct=c016
[ 10.609474] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 10.618180] usb 2-1.2: Product: Optical USB Mouse
[ 10.626840] usb 2-1.2: Manufacturer: Logitech
[ 10.846728] usb 2-1.3: new full speed USB device using ohci_hcd and address 9
[ 10.969439] usb 2-1.3: configuration #1 chosen from 1 choice
[ 10.980558] usb 2-1.3: New USB device found, idVendor=05ac, idProduct=020b
[ 10.989477] usb 2-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 10.998246] usb 2-1.3: Product: Apple Extended USB Keyboard
[ 11.006989] usb 2-1.3: Manufacturer: Mitsumi Electric
[ 11.024830] input: Logitech Optical USB Mouse as /class/input/input2
[ 11.044792] input,hidraw0: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0001:10:1b.0-1.2
[ 11.060832] input: Mitsumi Electric Apple Extended USB Keyboard as /class/input/input3
[ 11.084792] input,hidraw1: USB HID v1.10 Keyboard [Mitsumi Electric Apple Extended USB Keyboard] on usb-0001:10:1b.0-1.3
[ 11.105075] input: Mitsumi Electric Apple Extended USB Keyboard as /class/input/input4
[ 11.124785] input,hidraw2: USB HID v1.10 Device [Mitsumi Electric Apple Extended USB Keyboard] on usb-0001:10:1b.0-1.3
[ 11.134517] usbcore: registered new interface driver usbhid
[ 11.143995] usbhid: v2.6:USB HID core driver
[ 11.380905] eth0: Link is up at 100 Mbps, full-duplex.
[ 11.840675] PM: Starting manual resume from disk
[ 11.941912] kjournald starting. Commit interval 5 seconds
[ 11.951819] EXT3-fs: mounted filesystem with ordered data mode.
[ 14.239574] udevd version 125 started
[ 15.262428] usb-storage: device scan complete
[ 15.269422] scsi 1:0:0:0: Direct-Access Maxtor 7 Y250M0 PQ: 0 ANSI: 0
[ 17.424536] Linux agpgart interface v0.103
[ 17.492062] agpgart: Detected Apple UniNorth 2 chipset
[ 17.502182] agpgart: configuring for size idx: 8
[ 17.511942] agpgart: AGP aperture is 32M @ 0x0
[ 19.246779] Driver 'sd' needs updating - please use bus_type methods
[ 19.266300] sd 1:0:0:0: [sda] 490234752 512-byte hardware sectors (251000 MB)
[ 19.288213] sd 1:0:0:0: [sda] Write Protect is off
[ 19.298070] sd 1:0:0:0: [sda] Mode Sense: 33 00 00 00
[ 19.298075] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 19.317133] sd 1:0:0:0: [sda] 490234752 512-byte hardware sectors (251000 MB)
[ 19.339050] sd 1:0:0:0: [sda] Write Protect is off
[ 19.348833] sd 1:0:0:0: [sda] Mode Sense: 33 00 00 00
[ 19.348838] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 19.358574] sda: sda1 sda2
[ 19.392857] sd 1:0:0:0: [sda] Attached SCSI disk
[ 19.663431] snd-aoa-fabric-layout: found bus with layout 58
[ 19.673181] snd-aoa-fabric-layout: Using direct GPIOs
[ 19.698643] snd-aoa-fabric-layout: can use this codec
[ 21.992606] Adding 3026680k swap on /dev/hda4. Priority:-1 extents:1 across:3026680k
[ 22.496189] EXT3 FS on hda3, internal journal
[ 23.243553] loop: module loaded
[ 26.001578] eth0: Link is up at 100 Mbps, full-duplex.
[ 26.010543] eth0: Pause is disabled
[ 29.221538] NET: Registered protocol family 10
[ 29.230394] lo: Disabled Privacy Extensions
[ 29.715191] lp: driver loaded but no devices found
[ 34.881448] RPC: Registered udp transport module.
[ 34.889886] RPC: Registered tcp transport module.
[ 34.983177] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 35.095500] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[ 35.136243] NFSD: starting 90-second grace period
[ 39.316729] eth0: no IPv6 routers present
[ 42.332358] NET: Registered protocol family 5
[ 44.621628] [drm] Initialized drm 1.1.0 20060810
[ 44.648160] [drm] Initialized radeon 1.29.0 20080528 on minor 0
[ 45.297912] agpgart: Putting AGP V2 device at 0000:00:0b.0 into 4x mode
[ 45.297931] agpgart: Putting AGP V2 device at 0000:00:10.0 into 4x mode
[ 45.672224] [drm] Setting GART location based on new memory map
[ 45.672245] [drm] Loading R200 Microcode
[ 45.672300] [drm] writeback test succeeded in 1 usecs
[ 55.196744] eth0: no IPv6 routers present
[ 5726.292606] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 5727.365865] hfs: write access to a journaled filesystem is not supported, use the force option at your own risk, mounting read-only.
[ 5727.433567] UDF-fs: No VRS found
[ 5727.588076] ISO 9660 Extensions: RRIP_1991A
2009年3月26日 星期四
2009年3月23日 星期一
Java初探
好幾年前就想要用Java,只是工作上一直沒機會用上.
最近想要用Java applet加強web server的功能就著手來study囉
1.Java 既是編譯也是直譯式語言
編譯式語言的優點 : 較有效率及執行速度快
直譯式語言的優點 : 跨平台的可移植性佳
Java Source Code -> [ Compile ] -> Java Instruction Binary
Java Instruction Binary -> [ Interpreter ] -> Running on Java Virtual Machine
2.Java沒有指標 (pointer)
Java使用參考(reference)來達到指標的功能.
參考的好處是有型別處理的能力,因此安全性增加許多
3.Java會紀錄run time type
有了 run time type, Java 可以安全的做多型及強制轉型
4.Java具有真正的資料安全措施
在C++可以透過private宣告保護data / function member.
但這種保護可以透過指標便可輕易的存取.常聽到的溢位攻擊大致上就是運用這種惡意指標的方式
Java 有三層安全性保護
Byte-code verifier, class loader, security manager
其中Byte-code verifier就能防止溢位存取的發生
Security manager能限制程式的執行,例如不允許程式網路連線.
5.Java不支援運算子overload
6.Java中的陣列是特殊的物件型態
宣告型別為String的陣列變數 String [] arrayStr;
arrayStr此時還沒有陣列實體
Alloc陣列實體 arrayStr = new String [10];
陣列中的元素是該陣列型別的reference,並非實體
因此陣列初始的元素都是null reference
anonymous array
Func( new String [] { "string 0", "string 1", "string 2"});
7.Java中local variable必須明確賦值初始化
最近想要用Java applet加強web server的功能就著手來study囉
1.Java 既是編譯也是直譯式語言
編譯式語言的優點 : 較有效率及執行速度快
直譯式語言的優點 : 跨平台的可移植性佳
Java Source Code -> [ Compile ] -> Java Instruction Binary
Java Instruction Binary -> [ Interpreter ] -> Running on Java Virtual Machine
2.Java沒有指標 (pointer)
Java使用參考(reference)來達到指標的功能.
參考的好處是有型別處理的能力,因此安全性增加許多
3.Java會紀錄run time type
有了 run time type, Java 可以安全的做多型及強制轉型
4.Java具有真正的資料安全措施
在C++可以透過private宣告保護data / function member.
但這種保護可以透過指標便可輕易的存取.常聽到的溢位攻擊大致上就是運用這種惡意指標的方式
Java 有三層安全性保護
Byte-code verifier, class loader, security manager
其中Byte-code verifier就能防止溢位存取的發生
Security manager能限制程式的執行,例如不允許程式網路連線.
5.Java不支援運算子overload
6.Java中的陣列是特殊的物件型態
宣告型別為String的陣列變數 String [] arrayStr;
arrayStr此時還沒有陣列實體
Alloc陣列實體 arrayStr = new String [10];
陣列中的元素是該陣列型別的reference,並非實體
因此陣列初始的元素都是null reference
anonymous array
Func( new String [] { "string 0", "string 1", "string 2"});
7.Java中local variable必須明確賦值初始化
2009年3月18日 星期三
VT300 Screen Shot
Graphic User Interface System Information
Resolution : 480 x 272 16bits
Low level engine : Nano-X
Font : FireFly (UTF-8)
Features :
1.Window Manager
2.Alpha Blending Window
3.Break edge window
4.Shadow Font
5.Scale jpeg image
6.Editor, Menu, Radio Button, Combo Box, Tab Window
2009年3月1日 星期日
轉載 max mp3 frame size
[mad-dev] max mp3 frame size?
Rob Leslie rob@mars.orgThu, 17 Jan 2002 16:54:05 -0800
- Previous message: [mad-dev] max mp3 frame size?
- Next message: [mad-dev] max mp3 frame size?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Joshua Haberman wrote:
> Currently Audacity uses a 64k input buffer when reading mp3s with libmad.
> This has worked great for the most part, but I've received a report that
> one particular mp3 will put Audacity into an infinite loop upon import.
> Since a trace revealed that the input callback was looping endlessly, I
> suspected that the buffer wasn't big enough to hold an entire frame, and
> the input callback was sending libmad the same partial frame over and over.
>
> I suggested that this user double the input buffer size, and that fixed
> the problem.
>
> Earlier when I asked you about this issue, you said mp3 frames are
> relatively small (around 418 bytes) so I'm very surprised that 64k wasn't
> big enough to hold an entire frame. Can you think of any other reason why
> increasing the buffer size would solve this problem?
Sounds like it could be a bug in your input/streaming code, triggered by the
unlucky buffer size? Out of curiosity, what bitrate and sampling frequency was
the mp3 that caused problems?
> Is there a maximum size for mp3 frames that I could safely set as the
> buffer size, or would I have to dynamically size the buffer to be
> completely safe?
The absolute theoretical maximum frame size is 2881 bytes: MPEG 2.5 Layer II,
8000 Hz @ 160 kbps, with a padding slot. (Such a frame is unlikely, but it was
a useful exercise to compute all possible frame sizes.) Add to this an 8 byte
MAD_BUFFER_GUARD, and the minimum buffer size you should be streaming to
libmad in the general case is 2889 bytes.
Theoretical frame sizes for Layer III range from 24 to 1441 bytes, but there
is a "soft" limit imposed by the standard of 960 bytes. Nonetheless MAD can
decode frames of any size as long as they fit entirely in the buffer you pass,
not including the MAD_BUFFER_GUARD bytes.
A 64K buffer is surely large enough, which makes me think you have a different
kind of problem...
--
Rob Leslie
rob@mars.org
訂閱:
文章 (Atom)