[PRO] ToshDroid Linux Kernel (Developers)

Status
Not open for further replies.
Search This thread

endrix

Senior Member
Sep 26, 2009
87
0
Lausanne
Warning From TheRomMistress:

8. Donations.

We appreciate all donations to xda-developers.com, it keeps our forum online and well maintained. As a user you're allowed to ask for donations in your signature as a thank you for your hard work. However donations up front are not allowed, this forum is about sharing, not about getting paid to do something, that's what your job is for.


Hello guys !!!

So I am endrix and I am trying to port the linux kernel to our Toshiba TG01. I am an h.264 developer who loves linux. Many of you may hate the phone (I do a little too) because of the crappy windows mobile operating system that Toshiba has offered us. Beside the resistive touch screen our phones have a strong processor that is used almost in each smartphone (ok Samsung and Apple are not using snapdragon but is still Cortex A8).

So to the main point!

Firstly is not an easy task and I do not somebody to write in this thread when Android will work with our phones, I truly do not know if I will (or we will) achieve this! Secondly think to contribute as you can to this project, I am here to guide you if you have any questions about how to compile the kernel and if you have any other problem just send me a message or write it in this thread!

My git repository of the TG01 kernel is this one
github.com/endrix/kernel_common


System compilers and libraries:

I used the one given by source.android.com

apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev.

certainly you do not need all of them but is ok to have it ;)

So how can you compile the kernel?

Steps:
  • Use an Ubuntu Linux distribution or virtualise it with Virtualbox
  • I am using this cross tools: arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2"
  • in my system I have created a directory in my /opt folder, to that just do "sudo mkdir /opt/cross"
  • Now go to the directory with "cd /opt/cross"
  • now rember where you have download the tar archieve and execute the following command, in this command i have downloaded my tar in /home/endrix/Download: so for my directory I do " tar xjvf /home/endrix/Downloads/gnueabi-i686-pc-linux-gnu.tar.bz2"
  • Now that we have our cross tools installed in our system is it good to create an eviromental varibale to easy our task of ceoss compiling. do this command "gedit ~/.bashrc" and at the end of the file put this line: export CROSS_TOOLS=/opt/cross/arm-2009q1/bin/arm-none-linux-gnueabi-
  • now execute this command "source ~/.bashrc" so that you command can be activated for the current command, the next time that you will open another console or reboot the varibale $CROSS_TOOLS will work
  • This is all for the cross tools

Next step Compile the linux kernel:

  • Create a directory for example "Projects" in your main directory(home), "mkdir ~/Projects"
  • Clone the repository of my git address: "git clone github.com/endrix/kernel_common.git"
  • Now you wait, take a coffe or eat a fruit :)
  • now you execute this command in the "kernel_common" directory, "make ARCH=arm htcleo_defconfig"
  • and then to compile the kernel" make ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image"
  • To make the process even faster if you have a multicore system, put -j4 (for 2 cores) or -j16 (if you have an intel iCore7 with 4 cores double threaded), that means, "make -j4 ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image"
  • After a while depending you system you will get the kernel image file in the arch/arm/boot directory
  • So now you have the kernel compiled

Next step test the kernel with Haret:

1) Create the file default.txt with :
set mtype 2675
set ramaddr 0x11800000
set ramsize 0x18C00000
set kernel Image
boot

2)Download My modified version of Haret with TG01 support!
Haret for TG01


3)Create a folder in your sd card --> "ToshDroid and put the Image the haret.exe and the default.txt in it.

4) Finally execute the haret.ext and clik on run!

That's all folks! Now I am focusing in the Memory Map...

PS: sorry for links, As a junior member i cannot give a full url

I will update also my blog too for TG01

endri-bezati.blogspot.com
 
Last edited by a moderator:

daevoq

Senior Member
Jan 12, 2010
294
13
Hi endrix and welcome to xda-developers :)

I very much appreciate your work.. i've the same device.. it's a beautiful phone.. with a powerful hardware.. but windows mobile is not worthy of the hardware it runs on.. so we look forward for a release of android! :)

BTW.. i'd know what do you need to do your work.. can you make a list of thing that you need to accelerate your work? the first thing is compile android kernel.. but next? need you we post results? how we can fix the errors?

Sorry for my english but i'm italian.. and thank you.. hoping to see soon a first version of android.. :)
 

isikil87

Member
Apr 9, 2010
25
0
Image Compiled without errors..

running haret it stops to "Jumping to kernel(custom). and freeze..
 

endrix

Senior Member
Sep 26, 2009
87
0
Lausanne
isikil87 : Ok! forgot something!

Do

1) make clean
2) git checkout android-msm-2.6.32-tg01
3) make ARCH=arm htcleo_defconfig
4) make -j4 ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image

actually I am working on the android-msm-2.6.32-tg01 branch
 

isikil87

Member
Apr 9, 2010
25
0
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.

now we need the right address to write memory.
 

nhattuong

Senior Member
Jun 29, 2007
60
1
Kawaguchi City
Last edited:

isikil87

Member
Apr 9, 2010
25
0
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !

P/S : Wich one Android Version you use ?

Best Regard !

that is only an alpha version. it doesn't boot up untill we have the right addresses of nand iomap ram ecc of the device.

regards
 

endrix

Senior Member
Sep 26, 2009
87
0
Lausanne
No questions about Android please, this thread is only for the kernel!!!

Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !

P/S : Wich one Android Version you use ?

Best Regard !

For the moment the kernel has a problem because I have not figured out all the memory addresses and the reset is normal. Now you have to wait for a long time till we achieve to find the memory values. For android is another story if the kernel does not work correctly android will not work!
 
Status
Not open for further replies.

Top Liked Posts