From 12d8c8dc466917add7a3b00e6a074705d4842589 Mon Sep 17 00:00:00 2001
From: CoderSherlock
Date: Thu, 29 Dec 2016 11:06:21 -0500
Subject: [PATCH] Update some experiences
---
...0-28-some-of-my-previews-exper-work.md.swp | Bin 0 -> 20480 bytes
...16-10-28-some-of-my-previews-exper-work.md | 54 ++++++++++++----
_site/404.html | 2 +-
_site/about/index.html | 2 +-
.../archivers/charles-is-not-a-good-tool.html | 2 +-
_site/archivers/design-a-board-game.html | 2 +-
_site/archivers/freshman-from-china.html | 2 +-
_site/archivers/hello.html | 2 +-
.../some-of-my-previews-exper-work.html | 60 ++++++++++++++----
_site/category/index.html | 4 +-
_site/feed.xml | 58 +++++++++++++----
_site/index.html | 6 +-
12 files changed, 144 insertions(+), 50 deletions(-)
create mode 100644 _posts/.2016-10-28-some-of-my-previews-exper-work.md.swp
diff --git a/_posts/.2016-10-28-some-of-my-previews-exper-work.md.swp b/_posts/.2016-10-28-some-of-my-previews-exper-work.md.swp
new file mode 100644
index 0000000000000000000000000000000000000000..cabe8c33b47dc584d9ea1ef2f792b5d6485d175d
GIT binary patch
literal 20480
zcmeHOX>24%74Bpca*+fPDI^jS#cmd_jk|k%>>(p(O|1mX_}kbpn%k3;<62tSAv5Qjtr2oyvFeD8JljJ=y<
zBS8Gv9_^R$^ilQd)qAhr`>Il}-M_FX4m;x(K5w$D#~uqFxb2Pu)?2k@wPn&g*YXm&
z^=hBXeeOc}pgSL$R#tbXRUp&VmP{k%Z#qrB=!DAMXe({BJ6an#WRKMB(Id82v9wjg
zj=Od{m0O|gXj^W#Woma+y6MEhtI1d0t2A)MYalZX`^e4K*yu=&bg^&m+r@2fK6S;b
zrBXnpfl33F1}Y6y8mKf-X`s?TrGYC+1E#&ldK3e`x)}8J#rIVgeP2`j9x1+Wxaj_#
z;`eCr{jQ7d7eA}7N&}S!Dh*T`s5DS%pwd94fl33F1}Y6y8mKf-Y2g2$0S`Op-@e7N
z{sGYbe_8*(bgN~(0DJ@ZB=A1q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some-of-my-previews-exper-work.md
index 801019f..cd05e40 100644
--- a/_posts/2016-10-28-some-of-my-previews-exper-work.md
+++ b/_posts/2016-10-28-some-of-my-previews-exper-work.md
@@ -1,19 +1,18 @@
---
layout: post
-title: "Some of my previews experiment works"
+title: "Some of my previews experiment works: 2016"
date: 2016-10-28 12:27:33 -0400
categories: Research
---
-# Time series
+This blog contains only some basic record of my works. For some details, I will write a unique blog just for some specific topics.
+# 2016-10
-## 2016-10
-
-### Time Experiment of rsync
+## Time Experiment of rsync
Patch is based on rsync with version 3.1.2. \[[Rsync](https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz)\|[Patch](/static/2016-10/rsync/rsync-3.1.2-time.patch)\]
-#### How to collect data
+### How to collect data
Basically, everything of transmission time and computation time will be output with overall time will be printed on the console.
But we also need some bash script to collect data through different size of random size and with different modification through them.
@@ -22,11 +21,11 @@ But we also need some bash script to collect data through different size of rand
- Start from 8K to 64M, modify at last, \[[Bash script](/static/2016-10/rsync/small2Big_change_at_last.sh)\]
- Start from 8K to 64M, modify at random place with a (slow) python script, \[[Bash script](/static/2016-10/rsync/small2Big_change_at_anyplace.sh)\|[Python program](/static/2016-10/rsync/addbyte.py)\]
-### Time Experiment of seafile
+## Time Experiment of seafile
Patch is based on seafile 5.1.4. You can find the release from [seafile official repo](https://github.com/haiwen/seafile/releases). You may follow official compile instructions from [here](https://manual.seafile.com/build_seafile/linux.html). \[[Patch **no longer avaiable, new version at following sections**]()\]
-#### How to collect data
+### How to collect data
We also need everything be done using scripting. But this time I only design added some distance between two increasing files' sizes.
@@ -42,7 +41,7 @@ awk '/CDC|HUT|ALL/ {print $4,$5}' ~/.ccnet/log/seafile.log > results.stat
~~~~
-#### Install Seafile on odroid xu
+### Install Seafile on odroid xu
Due to failure of my cross-compile to seafile on android. I used develop board as a replacement experiment platform for ARM-seafile testing. I used a [odroid xu](http://www.hardkernel.com/main/products/prdt_info.php?g_code=G137510300620) as hardware standard. Because all I need is an ARM platform, only an ARM-Ubuntu is enough for me. But develop prototype on a board is much fun than coding, I won't address much this time. But I'll start a blog telling some really cool stuff I made for a strange aim.
@@ -60,11 +59,11 @@ sudo dd if=ubuntu-14.04lts-xubuntu-odroid-xu-20140714.img of=/dev/sdb bs=1M conv
sync
~~~~
-## 2016-11
+# 2016-11
-### Android Kernel
+## Android Kernel
-#### How to build an Android Kernel?
+### How to build an Android Kernel?
Generally, I won't tell anything in this parts, just mark some related links, and point out some mistakes or error solutions.
@@ -74,4 +73,35 @@ Generally, I won't tell anything in this parts, just mark some related links, an
- [Packing and Flashing a Boot.img](https://softwarebakery.com/building-the-android-kernel-on-linux) **[highly recommend]**
+# 2016-12
+## Android Kernel
+
+### How to compile with ftrace?
+
+If we want to debug under android, ftrace is a great tool for working. But, ftrace is not available in android if we used default configure file. Android kernel configuration is in **arch/arm64/kernel/configs**. We need to add few lines under that.
+
+~~~~bash
+CONFIG_STRICT_MEMORY_RWX=y
+CONFIG_FUNCTION_TRACER=y
+CONFIG_FUNCTION_GRAPH_TRACER=y
+CONFIG_DYNAMIC_FTRACE=y
+CONFIG_PERSISTENT_TRACER=y
+CONFIG_IRQSOFF_TRACER=y
+CONFIG_PREEMPT_TRACER=y
+CONFIG_SCHED_TRACER=y
+CONFIG_STACK_TRACER=y
+~~~~
+
+### How to extract android images: Dump an image
+
+If we want to hold a rooted status after flashing boot, we need to extract an image from android devices. We can first use following command to find which blocks belongs to. According to some references, [this article](http://getpocket.com/redirect?url=http%3A%2F%2Fforum.xda-developers.com%2Fshowthread.php%3Ft%3D2450045) provide three ways to dump an image, I picked one for easy using.
+
+~~~~bash
+adb shell
+ls -al /dev/block/$SOME\_PLATFORM/$SOME\_DEVICE/by-name # {Partitions} -> {Device Block}
+
+# dump file
+su
+dd if=/dev/block/mmcblk0p37 of=/sdcard/boot.img
+~~~~
diff --git a/_site/404.html b/_site/404.html
index c5e813f..d139699 100644
--- a/_site/404.html
+++ b/_site/404.html
@@ -99,7 +99,7 @@
diff --git a/_site/archivers/charles-is-not-a-good-tool.html b/_site/archivers/charles-is-not-a-good-tool.html
index 63269d7..b223fd7 100644
--- a/_site/archivers/charles-is-not-a-good-tool.html
+++ b/_site/archivers/charles-is-not-a-good-tool.html
@@ -130,7 +130,7 @@ You also need to save charles Root Certificate, it also contains in the same men
diff --git a/_site/archivers/some-of-my-previews-exper-work.html b/_site/archivers/some-of-my-previews-exper-work.html
index a2a522d..41740ec 100644
--- a/_site/archivers/some-of-my-previews-exper-work.html
+++ b/_site/archivers/some-of-my-previews-exper-work.html
@@ -6,8 +6,8 @@
- Some of my previews experiment works « Stop Talking, Start Doing - 停止空想,开始行动
-
+ Some of my previews experiment works: 2016 « Stop Talking, Start Doing - 停止空想,开始行动
+
@@ -58,20 +58,20 @@
-
Some of my previews experiment works
+
Some of my previews experiment works: 2016
Oct 28, 2016
-
Time series
+
This blog contains only some basic record of my works. For some details, I will write a unique blog just for some specific topics.
-
2016-10
+
2016-10
-
Time Experiment of rsync
+
Time Experiment of rsync
Patch is based on rsync with version 3.1.2. [Rsync|Patch]
-
How to collect data
+
How to collect data
Basically, everything of transmission time and computation time will be output with overall time will be printed on the console.
But we also need some bash script to collect data through different size of random size and with different modification through them.
@@ -82,11 +82,11 @@ But we also need some bash script to collect data through different size of rand
Start from 8K to 64M, modify at random place with a (slow) python script, [Bash script|Python program]
Due to failure of my cross-compile to seafile on android. I used develop board as a replacement experiment platform for ARM-seafile testing. I used a odroid xu as hardware standard. Because all I need is an ARM platform, only an ARM-Ubuntu is enough for me. But develop prototype on a board is much fun than coding, I won’t address much this time. But I’ll start a blog telling some really cool stuff I made for a strange aim.
@@ -126,11 +126,11 @@ sync
-
2016-11
+
2016-11
-
Android Kernel
+
Android Kernel
-
How to build an Android Kernel?
+
How to build an Android Kernel?
Generally, I won’t tell anything in this parts, just mark some related links, and point out some mistakes or error solutions.
@@ -145,6 +145,38 @@ sync
+
2016-12
+
+
Android Kernel
+
+
How to compile with ftrace?
+
+
If we want to debug under android, ftrace is a great tool for working. But, ftrace is not available in android if we used default configure file. Android kernel configuration is in arch/arm64/kernel/configs. We need to add few lines under that.
If we want to hold a rooted status after flashing boot, we need to extract an image from android devices. We can first use following command to find which blocks belongs to. According to some references, this article provide three ways to dump an image, I picked one for easy using.
diff --git a/_site/feed.xml b/_site/feed.xml
index ee22897..ab3a2c4 100644
--- a/_site/feed.xml
+++ b/_site/feed.xml
@@ -6,8 +6,8 @@
https://codersherlock.github.com//
- Tue, 27 Dec 2016 15:14:22 -0500
- Tue, 27 Dec 2016 15:14:22 -0500
+ Thu, 29 Dec 2016 11:06:02 -0500
+ Thu, 29 Dec 2016 11:06:02 -0500Jekyll v3.0.1
@@ -60,16 +60,16 @@
- Some of my previews experiment works
- <h1 id="time-series">Time series</h1>
+ Some of my previews experiment works: 2016
+ <p>This blog contains only some basic record of my works. For some details, I will write a unique blog just for some specific topics.</p>
-<h2 id="section">2016-10</h2>
+<h1 id="section">2016-10</h1>
-<h3 id="time-experiment-of-rsync">Time Experiment of rsync</h3>
+<h2 id="time-experiment-of-rsync">Time Experiment of rsync</h2>
<p>Patch is based on rsync with version 3.1.2. [<a href="https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz">Rsync</a>|<a href="/static/2016-10/rsync/rsync-3.1.2-time.patch">Patch</a>]</p>
-<h4 id="how-to-collect-data">How to collect data</h4>
+<h3 id="how-to-collect-data">How to collect data</h3>
<p>Basically, everything of transmission time and computation time will be output with overall time will be printed on the console.<br />
But we also need some bash script to collect data through different size of random size and with different modification through them.</p>
@@ -80,11 +80,11 @@ But we also need some bash script to collect data through different size of rand
<li>Start from 8K to 64M, modify at random place with a (slow) python script, [<a href="/static/2016-10/rsync/small2Big_change_at_anyplace.sh">Bash script</a>|<a href="/static/2016-10/rsync/addbyte.py">Python program</a>]</li>
</ul>
-<h3 id="time-experiment-of-seafile">Time Experiment of seafile</h3>
+<h2 id="time-experiment-of-seafile">Time Experiment of seafile</h2>
<p>Patch is based on seafile 5.1.4. You can find the release from <a href="https://github.com/haiwen/seafile/releases">seafile official repo</a>. You may follow official compile instructions from <a href="https://manual.seafile.com/build_seafile/linux.html">here</a>. [<a href="">Patch <strong>no longer avaiable, new version at following sections</strong></a>]</p>
-<h4 id="how-to-collect-data-1">How to collect data</h4>
+<h3 id="how-to-collect-data-1">How to collect data</h3>
<p>We also need everything be done using scripting. But this time I only design added some distance between two increasing files’ sizes.</p>
@@ -101,7 +101,7 @@ awk <span class="s1">'/CDC|HUT|ALL/ {print $4,$5}'</s
</code></pre>
</div>
-<h4 id="install-seafile-on-odroid-xu">Install Seafile on odroid xu</h4>
+<h3 id="install-seafile-on-odroid-xu">Install Seafile on odroid xu</h3>
<p>Due to failure of my cross-compile to seafile on android. I used develop board as a replacement experiment platform for ARM-seafile testing. I used a <a href="http://www.hardkernel.com/main/products/prdt_info.php?g_code=G137510300620">odroid xu</a> as hardware standard. Because all I need is an ARM platform, only an ARM-Ubuntu is enough for me. But develop prototype on a board is much fun than coding, I won’t address much this time. But I’ll start a blog telling some really cool stuff I made for a strange aim.</p>
@@ -124,11 +124,11 @@ sync
</code></pre>
</div>
-<h2 id="section-1">2016-11</h2>
+<h1 id="section-1">2016-11</h1>
-<h3 id="android-kernel">Android Kernel</h3>
+<h2 id="android-kernel">Android Kernel</h2>
-<h4 id="how-to-build-an-android-kernel">How to build an Android Kernel?</h4>
+<h3 id="how-to-build-an-android-kernel">How to build an Android Kernel?</h3>
<p>Generally, I won’t tell anything in this parts, just mark some related links, and point out some mistakes or error solutions.</p>
@@ -143,6 +143,38 @@ sync
</li>
</ul>
+<h1 id="section-2">2016-12</h1>
+
+<h2 id="android-kernel-1">Android Kernel</h2>
+
+<h3 id="how-to-compile-with-ftrace">How to compile with ftrace?</h3>
+
+<p>If we want to debug under android, ftrace is a great tool for working. But, ftrace is not available in android if we used default configure file. Android kernel configuration is in <strong>arch/arm64/kernel/configs</strong>. We need to add few lines under that.</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="nv">CONFIG_STRICT_MEMORY_RWX</span><span class="o">=</span>y
+<span class="nv">CONFIG_FUNCTION_TRACER</span><span class="o">=</span>y
+<span class="nv">CONFIG_FUNCTION_GRAPH_TRACER</span><span class="o">=</span>y
+<span class="nv">CONFIG_DYNAMIC_FTRACE</span><span class="o">=</span>y
+<span class="nv">CONFIG_PERSISTENT_TRACER</span><span class="o">=</span>y
+<span class="nv">CONFIG_IRQSOFF_TRACER</span><span class="o">=</span>y
+<span class="nv">CONFIG_PREEMPT_TRACER</span><span class="o">=</span>y
+<span class="nv">CONFIG_SCHED_TRACER</span><span class="o">=</span>y
+<span class="nv">CONFIG_STACK_TRACER</span><span class="o">=</span>y
+</code></pre>
+</div>
+
+<h3 id="how-to-extract-android-images-dump-an-image">How to extract android images: Dump an image</h3>
+
+<p>If we want to hold a rooted status after flashing boot, we need to extract an image from android devices. We can first use following command to find which blocks belongs to. According to some references, <a href="http://getpocket.com/redirect?url=http%3A%2F%2Fforum.xda-developers.com%2Fshowthread.php%3Ft%3D2450045">this article</a> provide three ways to dump an image, I picked one for easy using.</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>adb shell
+ls -al /dev/block/<span class="nv">$SOME</span><span class="se">\_</span>PLATFORM/<span class="nv">$SOME</span><span class="se">\_</span>DEVICE/by-name <span class="c"># {Partitions} -> {Device Block}</span>
+
+<span class="c"># dump file</span>
+su
+dd <span class="k">if</span><span class="o">=</span>/dev/block/mmcblk0p37 <span class="nv">of</span><span class="o">=</span>/sdcard/boot.img
+</code></pre>
+</div>
Fri, 28 Oct 2016 12:27:33 -0400
https://codersherlock.github.com//archivers/some-of-my-previews-exper-work
diff --git a/_site/index.html b/_site/index.html
index 6ab05cf..5f835c2 100644
--- a/_site/index.html
+++ b/_site/index.html
@@ -98,13 +98,13 @@