Wednesday, December 28, 2011

ATA device control

I added new driver.
It has ATA and ATAPI control function.
HDD is controlled PIO mode and LBA.

  • First, Initialize ATA and ATAPI device.
Execute soft reset.

Read Cylinder Low inb(0x01f4);

Read Cylinder High inb(0x01f5);

Input Cylinder Low and High to get device type.

(We can confirm ATA device when Cylinder High and Low is Zero.

 We can confirm ATAPI device when Cylinder High is 0xeb and Cylinder Low is 0x14.)

Identify device.

Execute device selection protocol.

Wait until BSY to Zero.
Wait DRQ to active.
Read 256 byte sectors for prepare.

  • Next, read sector from ATA device.
I will write this section tomorrow.... sorry.

Thursday, December 22, 2011

Build ICS

OS:Ubuntu 11.10 x86

download repo utility.
$ curl > ~/bin/repo
$ chmod a+x ~/bin/repo
Create directory and initialize git repository.
$ mkdir android-ics
$ cd andorid-ics
$ repo init -u -b android-4.0.1_r1
$ repo sync

$ bash
$ source ./build/
$ lunch full-eng
$ time make -j2 2>&1 |tee make.log
That method will be to the error on Ubuntu 11.10(x86).
$ emacs -nw build/core/combo/

$ emacs -nw external/gtest/include/gtest/internal/gtest-param-util.h
+#include   // 40 line

$ emacs -nw external/oprofile/libpp/format_output.h
 -               mutable counts_t & counts;
 +               counts_t & counts;  // 94 line

$ emacs -nw frameworks/compile/slang/
-local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
+local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter  # 22line

$ emacs -nw external/llvm/lib/Support/Mutex.cpp
 #include "llvm/Config/config.h"
 #include "llvm/Support/Mutex.h"
+#undef ENABLE_THREADS  // 16 line

$ emacs -nw external/llvm/lib/Support/Signals.cpp

+#undef HAVE_DLFCN_H  // 28 line

$ emacs -nw external/llvm/lib/Support/Threading.cpp
 #include "llvm/Support/Mutex.h"
 #include "llvm/Config/config.h"
+#undef LLVM_MULTITHREADED  // 19 line

$ source build/
$ lunch full-eng
$ make -j2
launch emulator
$ emulator
But.... I failed to display AndroidOS home screen, after I succeed to launch emulator.

Sunday, December 4, 2011

Review English study in November

I reviewed English studying in November.
I was able to hear some English.

  • Famous peoples interview on TV.
  • Talk on Movies.
  • CD for practice.
I did practice below.
  1. I was hearing English CD on Commuter Train.
  2. I was hearing high speed English CD on Commuter Train.
  3. I was writing English, after I was hearing high speed English CD.
  4. I read aloud in English.(Very easy Englishes)
I keep to try these practice in December. and I restart implement my own OS a little :-)


Sunday, November 13, 2011

Device management system (2)

I added new function called products and functions management!
It's so cool.

It can download matrix file device and product functions.
I need to implement more new function.

Device management system

I design and make device management application on Pylons.
It has only 2 functions.
 * Free words device search.
 * Download CSV file.
this system is so simple but It has a lot of information and It can manage devices so simple.
I will be able to come easy OS grouping.
I will be able to come easy Version grouping.
I will be able to come easy Manufacturer grouping.
I will be able to come easy Career grouping.

It is so nice.
I will happy.

I hope to add next function.
This application will be added some products functions management function and auto design matrix devices and products functions by myself.


Friday, November 11, 2011

Just do it.

It is so difficult that sharing details of my mind to many people.
but, we have to do it. we are going to do it.
and we think harder then today.

We know severity in business and life.
Only thing we could do.

Sunday, November 6, 2011


I looked some specification in consumer target products today.
I was very impressed.
There were all made with analogue. but They have included a lot of content like digital.

Running in morning

Recently I'm keeping to run in morning.
First, just short run about 1.0km to 2.0km.
I have got used to running gradually.
I bought a new sports ware, because running made new sports ware need for me.
but I couldn't do it every day....

Thursday, November 3, 2011

My lifeworks

Recently, I have a lot of lifeworks....
Reading technical books and other books, Writing my own OS and some scripts, Practice some software skills, and Studying English.

in October, I had studied English a lot.
But, I couldn't hearing English details very well.
I have to study English hearing and speaking more.

Today, I decided.
I will stop reading books, writing my own OS in November and December.
I will study English hearing and speaking so hard.

Monday, October 10, 2011


I had some new items yesterday and today.

First,When I bought a new camera I thought my old Compact Flash card volume was too small. When I take pictures It couldn't have about 70 pics.
I bought a new Compact Flash card. It is about 16GB, writing speed is 90MB/sec.

Next,I bought a new refill of my own organize.
That is my favorite item.
I will not work and typical life without this item.

Then,I bought a new bag.
It is so big and so right.

I was so happy but, I have to study English so hard today....everyday. and I'm going to write program, I have to fix some bugs...


Wednesday, October 5, 2011

I went to USA

I went to USA, from east side to west side.
That is so hard.
but I feel, I was able to experience a lot.
I think I have to learn English hearing a lot and, I have to collect simple words.
I couldn't hear English very well. but I could speak and hear int typical life.
in business, US's business culture was very simple and cool.
Great software was said "Great", Beautiful software was said "Beautiful".
I thought one of cool things was they demanded effect to be provided some software.
Anyway, I'm going to lean to hearing English hard.

Sunday, September 4, 2011

Suspend function

Finally, I succeed setting for suspend function.
I couldn't suspending on My Thinkpad x60 & Ubuntu 11.04.
I checked and searched log, web, some books, and some blogs, but I couldn't fix that.
I tried a a method from a certain blog.
A method was trying suspend after uninstalling VirtualBox. and I upgraded VirtualBox.
It was good.


Tuesday, August 30, 2011

Unity Desktop.

I had used Unity Desktop system but, It was not friendly to me. and My Laptop is so cheap and row spec. That Window Manager was felt so heavy and slowly to me.
I installed other Window Manager today. It is Nice.

I'm implementing ATA driver

I'm implementing filesystem functions for my own OS but, I think, My own OS have to need driver function of ATA(IDE) bus.

First, I'm implementing initialize functions but, It is so hard to make....

Sunday, August 21, 2011


I was a hang over yesterday.
because, sake was drunk too much.....

Today, I made server of Web Application was made for me.
but, It is still making. try and error.

Saturday, August 13, 2011

I started.

I started writing down on my organize only English today.
I will think and write a lot of things in English.

Monday, August 8, 2011

ext2 file system

I made application.
It could read ext2 file format block groups :-)
I will implement to read i-node block(data block) functions, day after tomorrow.


Sunday, August 7, 2011

I'm implementing EXT2 file system

Today, I was implementing Ext2 file system.
First, I defined some ext2 structures and statics strings.
Next, I implemented read super block from first block group. Here had very important information. Second block group's super block had backup information.
Then, I implemented read many block. but I failed that. First block was read own implementation but, It couldn't read over next blocks :-(


New Mouse

I bought a new mouse. because I got 2010 year's revenue.
I'm so happy.
It is Logicool one.

Friday, August 5, 2011


I understood ext file-system.
First, I will define structure the super block. super block is putted on after boot sector.
Next, I will define structure the block.
Then, I will write super block after check the block information. block information was checked file system codes from physical block device.
I'm going to try to implement file system functions.
also, I should implement system call accessed physical block device by assembly-language.


Wednesday, August 3, 2011


I'm going to implement file system functions to my own OS by September.
Maybe, I can't do it, if I don't say that.
I'm going to do it!


Tuesday, August 2, 2011

Pylons restart.

Today, I rebuild pylons working environment on my machine, after replace Operating System. and It succeed.

I wrote the new web application about 2 months ago.
It works on pylons framework. so quick, so easy, so high performance.
It's good.


Wednesday, July 27, 2011

I made environment to receive email.

I made environment to receive email on emacs used mew and bsfilter after replacing OS on my machine.

Tuesday, July 26, 2011

I replaced OS my machine.

I replaced OS my machine, Ubuntu 10.04 to 11.04, yesterday.
Ubuntu 11.04 is a little heavy. but It is good to program for me.
It looks like single screen. but easy switch many screens. and possible to search many applications.

I can make better programs.


Tuesday, July 19, 2011

AndroidSDK bad points.

I tried building AndroidOS myself.
I think AndroidOS and SDK are great and very good solution for application software engineers.
but also I think that is bad solution for embedded software engineers.
Reasons are blow.

  1. It requires very high spec machine. over core2duo, and over 30GB storage, over 2.0GB memory.
  2. It has very heavy emulator. We often can't use it when we make and develop kernel.
  3. It has very long time to make kernel myself.
  4. It requires target device. like dev-phones.(because, ARM on QEMU was very heavy.)
  5. It requires to register when I'm researching about development environment.
I don't have high spec machine.
I don't have much time.
and, I don't have money to buy dev-phones.
Eventually, We should do myself. to research, to make and to check on target device in embedded development, and in a little informations.
Thats sounds like old embedded development.


Tuesday, July 12, 2011

The New Notebook story

I got a new notebook designed myself at Kakimoto.
First, I chose cover and back cover some covers.
Next, I chose paper some papers. and I tried writing them.
Then, I chose ring type and direction.
Finally, I ordered to clerk I chose the materials.
It was made about 10 minutes later.
It is so cool and I'm Happy!
Please try us.


Monday, July 11, 2011

I finished some tasks.

I got a new notebook from Kakimoto at tomorrow. It was very cool and I'm so happy.
I designed and made original Android kernel to mini2440-X35 at tomorrow.
Today, I sat blog feed notice to my twitter account.
this blog post is testing it.


Wednesday, July 6, 2011

Just started Blog

I just started Blog about software engineering and embedded.

First, Introduce myself.
My name is Toshimune Tanaka.
I work for OPTiM in Japan.
I design software and provide IT service, also manage.

Private, I design and make software named T2-Kernel.
It is my own OS with IPL on x86 chip set.