Difference between revisions of "ROM Android: Kernel MediaTek"

From OnnoWiki
Jump to navigation Jump to search
Line 68: Line 68:
 
  cd ~/mediatek-kernel
 
  cd ~/mediatek-kernel
 
  ls -lh
 
  ls -lh
 +
 +
 +
 +
==Coba Alternatif Cara Extract==
 +
 +
 +
mkdir mediatek-kernel
 +
cd mediatek-kernel/
 +
cp ~/mediatek/.git/objects/pack/pack-5e2cd1c8f09391c09a228f514449da0228f3a96f.* .
 +
cd ~
 +
mv mediatek-kernel tmp-kernel
 +
mkdir mediatek-kernel
 +
 +
cd ~
 +
git init mediatek-kernel
 +
 +
Initialized empty Git repository in /home/onno/mediatek-kernel/.git/
 +
 +
cd mediatek-kernel/
 +
git unpack-objects < ~/tmp-kernel/pack-5e2cd1c8f09391c09a228f514449da0228f3a96f.pack
 +
 +
Unpacking objects: 100% (2472039/2472039), done.
 +
 +
 +
Tampaknya masih belum ada effek untuk source code kernel mediatek
 +
 +
  
  

Revision as of 09:29, 3 January 2015

Download

Sumber source code kernel mediatek

cd ~
git clone https://android.googlesource.com/kernel/mediatek

Hasilnya akan di simpan di folder

cd ~
mediatek

cek pack

cd ~/mediatek/.git/objects/pack
ls

Akan keluar dua file

pack-5e2cd1c8f09391c09a228f514449da0228f3a96f.idx
pack-5e2cd1c8f09391c09a228f514449da0228f3a96f.pack

Check branch master

cd ~/mediatek/
git checkout master

Akan keluar

Already on 'master'
Your branch is up-to-date with 'origin/master'.

Check HEAD

git rev-parse HEAD

Hasilnya

610ba0c10976208568a21fde3626ab847d484999

Siapkan folder baru mediatek-kernel

cd ~
git init mediatek-kernel

Hasilnya

Initialized empty Git repository in /home/onno/mediatek-kernel/.git/

Isi dengan .pack mediatek

cd ~
cp mediatek/.git/objects/pack/* mediatek-kernel/.git/objects/pack


Extract .pack

cd ~/mediatek-kernel
git checkout -b master 610ba0c10976208568a21fde3626ab847d484999

Check hasil

cd ~/mediatek-kernel
ls -lh


Coba Alternatif Cara Extract

mkdir mediatek-kernel
cd mediatek-kernel/
cp ~/mediatek/.git/objects/pack/pack-5e2cd1c8f09391c09a228f514449da0228f3a96f.* .
cd ~
mv mediatek-kernel tmp-kernel
mkdir mediatek-kernel
cd ~
git init mediatek-kernel
Initialized empty Git repository in /home/onno/mediatek-kernel/.git/
cd mediatek-kernel/
git unpack-objects < ~/tmp-kernel/pack-5e2cd1c8f09391c09a228f514449da0228f3a96f.pack
Unpacking objects: 100% (2472039/2472039), done.


Tampaknya masih belum ada effek untuk source code kernel mediatek



Untuk menambahkan / update

git remote add -f origin https://android.googlesource.com/kernel/mediatek


Referensi