2011年9月30日 星期五

2011年9月29日 星期四

Git Tutorials

中文
新人 Git 版本控制教學 | 小惡魔 - 電腦技術 - 工作筆記 - AppleBOY
http://blog.wu-boy.com/2012/02/how-to-use-git-version-control-for-new-beginner/
http://www.slideshare.net/appleboy/introduction-to-git-11436559

(Print this for reference.)
Zach Rusin’s Git Cheat Sheet
http://byte.kde.org/~zrusin/git/git-cheat-sheet-large.png

(Provide live demonstrations for each commands)
Git GoogleTechTalks/Randal Schwartz
http://www.youtube.com/watch?v=8dhZ9BXQgc4


(This document provide some explanations of git commands for their functionalities in the language of SVN. It doesn't really correctly describe the GIT, but it's a good start for SVN users.)
Git - SVN Crash Course
http://git.or.cz/course/svn.html

GitCasts
http://gitcasts.com/

Git Setup and Init
http://blip.tv/file/4094595
Git Normal Workflow
http://blip.tv/file/4094611
Git Interactive Add
http://blip.tv/file/4094632
Git Log
http://blip.tv/file/4094673
Git Browsing
http://blip.tv/file/4094687
Git Branching and Merging
http://blip.tv/file/4094707
Git Rebasing
http://blip.tv/file/4094727
Git Distributed Workflow
http://blip.tv/file/4094740
Creating Empty Branches
http://blip.tv/file/4094760
RailsConf 2008 Talk
http://blip.tv/file/4094854




More...

Git The Basics Tutorial
http://excess.org/article/2008/07/ogre-git-tutorial/

Tech Talk: Linus Torvalds on git
http://www.youtube.com/watch?v=4XpnKHJAok8



Git cheat sheets
http://help.github.com/git-cheat-sheets/

Git - Fast Version Control System
http://git-scm.com/

2011年9月26日 星期一

Rebuilding git-svn metadata

git svn init svn://localhost/xxxx/trunk
git update-ref refs/remotes/git-svn master
git svn fetch

Rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87 ...
r1 = b55058aa44bb117c6c1c7e5f73ffd2153fe5cbed
r2 = be1b2adc46c2d24919bb5670b8eb8f1e4db1ba73
(................)
r2976 = 95e59b550d6fe29d26f5056ebaf1b1d42fc387b7
r2977 = c65e902e8e9e1398094142d8fc7800ed72e3104a
Done rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87
The SVN URL string must be exactly the same as the one recorded in the log.
commit c65e902e8e9e1398094142d8fc7800ed72e3104a
Author: X <X@c27b2ed6-37b1-4487-878e-468635907f87>
Date: Thu Sep 22 04:08:39 2011 +0000

mesg...


git-svn-id: svn://localhost/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87
If the SVN URL is different, you will get the following:
Rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87 ...
Done rebuilding .git/svn/refs/remotes/git-svn/.rev_map.c27b2ed6-37b1-4487-878e-468635907f87

(.......................)

Last fetched revision of refs/remotes/git-svn was r2977, but we are about to fetch: r1!
If you want to change the SVN URL, e.g.  "svn://localhost/xxx/trunk" to "svn://192.168.1.1/xxxx/trunk", you can do "git commit --amend" to alter the last commit's git-svn-id from
git-svn-id: svn://localhost/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87
to
git-svn-id: svn://192.168.1.1/xxx/trunk@2977 c27b2ed6-37b1-4487-878e-468635907f87
And set the git-svn to the new commit and run "git svn fetch"


Rebuilding git-svn metadata
http://utsl.gen.nz/talks/git-svn/intro.html#howto-track-rebuildmeta

2011年9月14日 星期三

2011年9月13日 星期二

dma-mapping

ad642d9 ARM: 6188/1: Add a config option for the ARM11MPCore DMA cache maintenance workaround
ca57926 ARM: 6187/1: The v6_dma_inv_range() function must preserve data on SMP


2ffe2da ARM: dma-mapping: fix for speculative prefetching
702b94b ARM: dma-mapping: remove dmac_clean_range and dmac_inv_range
a9c9147 ARM: dma-mapping: provide per-cpu type map/unmap functions
93f1d62 ARM: dma-mapping: simplify dma_cache_maint_page
65af191 ARM: dma-mapping: move selection of page ops out of dma_cache_maint_cont
4ea0d73 ARM: dma-mapping: push buffer ownership down into dma-mapping.c
18eabe2 ARM: dma-mapping: introduce the idea of buffer ownership

2.6.35 cache operation

pci_dma_sync_single_for_device
dma_sync_single_for_device
dma_sync_single_range_for_device
__dma_single_cpu_to_dev
___dma_single_cpu_to_dev
dmac_map_area = cpu_cache.dma_map_area
v6_dma_map_area

if (DMA_FROM_DEVICE) v6_dma_inv_range
v6_dma_clean_range



pci_dma_sync_single_for_cpu
dma_sync_single_for_cpu
dma_sync_single_range_for_cpu
__dma_single_dev_to_cpu
___dma_single_dev_to_cpu
dmac_unmap_area = cpu_cache.dma_unmap_area
v6_dma_unmap_area
if(!DMA_TO_DEVICE) v6_dma_inv_range



  • ...for_cpu
    • FROM_DEVICE: inv
    • TO_DEVICE: N/A
    • BIDIRECTIONAL: inv
  • ...for_device
    • FROM_DEVICE: inv, clean
    • TO_DEVICE: clean
    • BIDIRECTIONAL: clean

Linux term/arm's cache op
v6_dma_inv_range ==> inv
v6_dma_clean_range ==> clean
v6_dma_flush_range ==> clean+inv

2011年9月7日 星期三

VirtualBox can't operate in VMX root mode

SOLVED - Can't operate in VMX root mode?
http://forum.virtualbox.org/viewtopic.php?f=1&p=156122

sudo modprobe -r kvm_intel