Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,426 Members 53,728 Now Online
XDA Developers Android and Mobile Development Forum

[PRO] ToshDroid Linux Kernel (Developers)

Tip us?
 
endrix
Old
(Last edited by TheRomMistress; 13th November 2010 at 04:22 AM.) Reason: Added Warning
#1  
endrix's Avatar
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Sep 2009
Location: Lausanne
Lightbulb [PRO] ToshDroid Linux Kernel (Developers)

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
Sold my iPhone 3G so I started porting Linux to my TG01

Useful links :
---
Blog: Endri-X | ToshDroid: Github EndriX | htc-linux: TG01 Page | Donate: Paypal
 
daevoq
Old
#2  
Senior Member
Thanks Meter 10
Posts: 238
Join Date: Jan 2010
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
Old
#3  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Apr 2010
Image Compiled without errors..

running haret it stops to "Jumping to kernel(custom). and freeze..
 
endrix
Old
#4  
endrix's Avatar
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Sep 2009
Location: 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
Sold my iPhone 3G so I started porting Linux to my TG01

Useful links :
---
Blog: Endri-X | ToshDroid: Github EndriX | htc-linux: TG01 Page | Donate: Paypal
 
isikil87
Old
#5  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Apr 2010
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.

now we need the right address to write memory.
 
endrix
Old
#6  
endrix's Avatar
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Sep 2009
Location: Lausanne
Default Cool !

Quote:
Originally Posted by isikil87 View Post
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.

now we need the right address to write memory.
Exactly, the framebuffer is wrong too i think the addresse in the msm_iomap is not correct

#define MSM_RAM_CONSOLE_BASE IOMEM(0xF8010000)
Sold my iPhone 3G so I started porting Linux to my TG01

Useful links :
---
Blog: Endri-X | ToshDroid: Github EndriX | htc-linux: TG01 Page | Donate: Paypal
 
isikil87
Old
#7  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Apr 2010
have you dump the memory???
 
endrix
Old
#8  
endrix's Avatar
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Sep 2009
Location: Lausanne
Default dump ?

Quote:
Originally Posted by isikil87 View Post
have you dump the memory???
I have run haret with "dump mmu" but is not easy to understand everything, I am really a beginner in this domain I am currently searching for documentation!
Sold my iPhone 3G so I started porting Linux to my TG01

Useful links :
---
Blog: Endri-X | ToshDroid: Github EndriX | htc-linux: TG01 Page | Donate: Paypal
 
TruckyBN
Old
#9  
TruckyBN's Avatar
Member
Thanks Meter 4
Posts: 74
Join Date: Feb 2010
I am beginer too. How can I help?

Can you share with us that Image file?
 
endrix
Old
#10  
endrix's Avatar
Member - OP
Thanks Meter 0
Posts: 86
Join Date: Sep 2009
Location: Lausanne
Talking The image file

Quote:
Originally Posted by TruckyBN View Post
I am beginer too. How can I help?

Can you share with us that Image file?
It will not help you a lot but here is the compiled kernel

megaupload.com/?d=W027CS8P
Sold my iPhone 3G so I started porting Linux to my TG01

Useful links :
---
Blog: Endri-X | ToshDroid: Github EndriX | htc-linux: TG01 Page | Donate: Paypal

Tags
android, tg01, toshdroid
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android Wear App Review: EchoWear Song Search – XDA Developer TV

Yesterday on XDA Developer TV, Producer AdamOutler tore down a Samsung … more

Blast Those Flags with Knock the Flags

Lately, we have seen a rather drastic shift in the world of mobile device gaming. The infamous Angry … more

Hide Numbers on Your SMS and Call Logs with Reflection

How many times have you given your device to someone else in order to show them a … more