As you may known, a repo is a list of git. Mirror a repo equal to mirror all git in this list.
There are several ways to mirror a repo:
1. It's simple to mirror it if it's aosp repo that support mirror already. That's guided by Google:
# Create a local mirror
$ mkdir -p /usr/local/mirror-aosp
$ cd /usr/local/mirror-aosp
$ repo init -u https://android.googlesource.com/mirror/manifest --mirror
$ repo sync
# Clone from your local mirror
$ mkdir aosp
$ cd aosp
$ repo init -u /usr/local/mirror-aosp/platform/manifest.git
# Update local mirror
$ cd /usr/local/mirror-aosp
$ repo sync
2. It's still simple if the repo also provide gitweb. As an example below for case of omapzoom
# Getting the tool
$ wget https://raw.github.com/ndechesne/git-mirror/master/git-mirror;
$ chmod +x git-mirror
# Create a local mirror
$ ./git-mirror -o /path/to/local-mirror/ -s http://git.omapzoom.org -g git://git.omapzoom.org
# Clone from your local mirror
$ mkdir omapzoom
$ cd omapzoom
$ repo init -u /path/to/local-mirror/git.omapzoom.org/platform/manifest.git
# Run again to update it
$ ./git-mirror -o /path/to/local-mirror/ -s http://git.omapzoom.org -g git://git.omapzoom.org
3. It's not simple if the repo does not support repo mirror like aosp also does not provide gitweb. It's CyanogenMod. So, to mirror it
Step1: getting list of git of CyanogenMod repo
Step2: mirror all git in this list
I made a helper sript to do that, please use if you like.
do-mirror-cyanogenmod
Usage:
$ chmod +x do-mirror-cyanogenmod
$ ./do-mirror-cyanogenmod NUMBER_CONCURRENT_DOWNLOAD
Example:
# Create a local mirror
$ mkdir mirror-cyanogenmod
$ cd mirror-cyanogenmod
$ ./do-mirror-cyanogenmod 8
# Clone from local mirror
$ repo init -u /path/to/mirror-cyanogenmod/android.git
# Update local mirror
$ cd /path/to/mirror-cyanogenmod/
$ ./do-mirror-cyanogenmod 8
NOTE: manifest of cyanogenmod usually includes several remotes, you may need to revise it accordingly
Reference:
[Setup git mirror]
http://www.omappedia.com/wiki/Setup_git_mirror
[Downloading the Source Tree]
http://source.android.com/source/downloading.html
Friday, April 12, 2013
Tuesday, December 21, 2010
Beagleboard-xM - Using TFTP To Load Images
All Beagleboard-xM's owners may already known, it's impossible using u-boot to load image into uSDCard or RAM, so far. This's no matter if you do not frequently changing the image but really a trouble if your job needs to do. So, if the u-boot cannot do, why don't let the kernel and busybox does. If you like it, please follow few steps below:
LAMP: By using:
o Kernel which supports mmc driver and ethernet driver
o tinyfs_loader which provides tftp command
Step 1: Setup environment
o A beagleboard-xm with uSDCard
o An tftp, nfs server
Step 2: Install kernel and tinyfs_loader (including busybox)
o A bootable uSDCard/vfat partion, x-loader & u-boot should be there. Still need u-boot, sure :D
o Download an uImage_loader and a tinyfs_loader from there
o Put the uImage_loader to uSDCard/vfat, tinyfs_loader to nfs server (extract tinyfs_loader as sudoers)
Step 3: Change as needed
o loadimage.tftp script in tinyfs_loader is called by init.rc
o Please modify this script as needed. At minimum you should change uImage name and tftp server IP
o By default, after loading image, loadimage.tftp calls to reboot
Step 4: In action
o For loading image, the bootcmd and bootargs should be something like this
# setenv bootcmd 'mmc init; fatload mmc 0 0x80000000 uImage_loader; bootm 0x80000000;'
# setenv bootargs console=ttyS2,115200n8 rootfs=/dev/nfs rw init=/init nfsroot=${SERVER_IP}:/srv/tinyfs_loader ip=${BOARD_IP}
EOL:
o Depend on your habit of using u-boot script, this loading ciruit could be very convenient and fast
o It's possible to get back the image from uSDCard to tftp server
Saturday, November 20, 2010
Wednesday, November 3, 2010
Friday, October 1, 2010
Friday, May 28, 2010
Saturday, May 15, 2010
Monday, May 3, 2010
Brothers (2009/I)
Before leaving on his second tour in Afghanistan, Marine Captain Sam Cahill, a leader, an athlete, a good husband and father, welcomes his screw-up brother Tommy home from prison. He'd robbed a bank. In country, Sam's helicopter is shot down and all are presumed dead. Back home, while Sam wastes away as a prisoner in a remote encampment, Tommy tries to take care of the widow and her two children. While imprisoned, Sam experiences horrors unbearable, so when he's rescued and returns home, he's silent, detached, without affect, and he's convinced his wife and brother have slept together. Demons of war possess him; what will silence them?
http://www.imdb.com/title/tt0765010/
Thursday, April 29, 2010
The Incredible Hulk (2008)
Dr. Bruce Banner, thanks to a gamma ray experiment gone wrong, transforms into a giant green-skinned hulk whenever his pulse rate gets too high. Meanwhile, a soldier uses the same technology to become an evil version of the original.
http://www.imdb.com/title/tt0800080/
Wednesday, April 28, 2010
Pulp Fiction (1994)
The lives of two mob hit men, a boxer, a gangster's wife, and a pair of diner bandits intertwine in four tales of violence and redemption.
http://www.imdb.com/title/tt0110912/
Friday, April 23, 2010
Vicky Cristina Barcelona (2008)
http://www.imdb.com/title/tt0497465/
Saturday, April 17, 2010
Into the Wild (2007)
After graduating from Emory University, top student and athlete Christopher McCandless abandons his possessions, gives his entire $24,000 savings account to charity and hitchhikes to Alaska to live in the wilderness. Along the way, Christopher encounters a series of characters that shape his life.
http://www.imdb.com/title/tt0758758/
Saturday, April 10, 2010
An Education (2009)
A coming-of-age story about a teenage girl in 1960s suburban London, and how her life changes with the arrival of a playboy nearly twice her age.
http://www.imdb.com/title/tt1174732/
Thursday, April 1, 2010
Sunday, February 7, 2010
Tvix6600N - Simply The Best Multimedia Player Ever
Introduction
o A media player
o A product of DVICO Inc., Korean
o One of my most like personal devices
Specification
o Main Chipset: RT1283DD 400MHz processor
o Memory
- Main: 256MB DDR SDRAM
- Flash: 128MB
o Maximum Resolution: up to 1920 x 1080P
o Video Format (Containers)
- MKV, AVI, VOB
- ASF, WMV
- MPEG1/2/4 Elementary (M1V, M2V, M4V)
- MPEG1/2 PS: M2P, MPG
- MPEG2 Transport Stream: TS, TP, TRP, M2TS, MTS, MOD, TOD
- ISO, IFO
- MOV(H.264), MP4
- .MKV, .mpg, .avi, .wmv, .divx, .vob, .tp, .ts, .trp, .dat, .iso, .ifo, .m2ts, .mov, .flv, .rm, .rmvb, .asf, .mts, .mpeg
o Video Codec
- XVID SD/HD
- MPEG 1
- MPEG-2 (MP@HL)
- MPEG-4.2 (ASP@L5, 720p, 1-point GMC)
- WMV9 (MP@HL),
- H.264 (BP@L3, MP@HL4.1)
- VC-1 (MP@HL, AP@L3)
- RealVideo 8/9/10
- FLV(H.263)
o Audio Format (Container)
- AAC, M4A
- MPEG audio (MP1, MP2, MP3, MPA),
- PCM, AC3, FLAC (Audio track in MKV)
- WAV(DTS), WAVPACK, WMA (Lossless not supported)
- Ogg (Audio track in MKV except for 44.1 KHz)
o Audio Codec
- Dolby Digital
- DTS Down Maxing
- WMA, WMA Pro
- FLAC, AAC, MP1, MP2, MP3, LPCM, Vorbis
o Audio Pass-thru: DTS, Dolby Digital, Dolby Digital Plus
o Photo Image: JPG, JPEG (Progressive JPEG not supported), BMP, PNG(Interlace not supported), GIF, TIF
o Languages: English, Traditional Chinese, Japanese, Spanish, French, Germany, Italian, Korean, Dutch, Russian, Rumanian, Bulgarian, Hebrew, Czech, Vietnamese
o Subtitles: smi, smil, sub, sub/idx, srt, .ssa, .ass
o Video / Audio Output
- HDMI 1.3a (Video 24 bit), Composite
- Digital: Coaxial, Optical
- Analog: Stereo
o HDD Supported
- 3.5" SATA HDD only (NTFS,FAT32, SATA Ⅰ,Ⅱ HDD)
o Interface
- USB 2.0 Host 2 Ports (USB1/ USB2: 5V , 500 mA max), USB 2.0 Target 1 Port
- Memory Card Reader: SD, SDHC, Memory Stick, Memory Stick Pro Duo
o Network
- Wire: 10/100 Ethernet
- Wireless: Wi-Fi 802.11n
o Network Protocol
- UPnP, SAMBA Client, NFS (with Net-Share)
- SAMBA server , FTP
o Cooling Fan: Internal temperature sensing mechanism, 60mm low noise
o VFD Display: Playback mode, Elapsed time, Resolution (Dot Matrix 7 English characters and numbers)
o Power Consumption: AC 90~250V ~ 50/60Hz Free voltage.
o Dimension: 215 x 215 x70 mm (W x D x H)
o Weight: 1,381g
Saturday, January 30, 2010
It is a start
It's hard time, both working and life. I must do it well because that is a chance. And a change then should not be slipped to come off.This post is a start. I want to record, to remind for myself and, of course, for who would like to read it.
A month is over. These are what I gain:
Hardship makes strength.
Good preparation makes good result.
Good understanding makes good control.
It was nice. Good luck to me.
Wednesday, April 29, 2009
Friday, April 10, 2009
Saturday, December 20, 2008
Tuesday, December 2, 2008
Walk with Me
-
-
-
- Was it good Did I behave like I should
Was it fine
The way we chose to spend our time
Knowing you has been an everlasting thrill
And I love you still
Strong is life
And really hard to sacrifice
This world of mine
Though it has been rough sometimes
Evil words
I said when I was really mad
Were not meant so bad
Walk with me
Just turn around and let it be
I have come to guide you all the way
Walk with me cause I have got the key
That finally sets you free
Time reversed
They're calling from the universe
A world unknown
I'll have to travel all alone
Left behind is an echo of my mind
for anyone to find
Walk with me
Just turn around and let it be
I have come to guide you all the way
Walk with me cause I have got the key
That finally sets you free
Walk with me
Just turn around and let it be
I have come to guide you all the way
Walk with me cause I have got the key
That finally sets you free
Subscribe to:
Posts (Atom)



.jpg)
