Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,266 Members 41,968 Now Online
XDA Developers Android and Mobile Development Forum

[PRJ][17.09.11] Android/Linux on TG01 development, new stuff in git

Tip us?
 
Markinus
Old
(Last edited by Markinus; 17th September 2011 at 11:49 AM.) Reason: New stuff in git
#1  
Senior Member - OP
Thanks Meter 287
Posts: 345
Join Date: Dec 2007
Default [PRJ][17.09.11] Android/Linux on TG01 development, new stuff in git

Edit: WARNING! If you do not follow the below instruction, your post WILL be deleted, not moved. Thank you for your cooperation. ~TheRomMistress

Quote:
Originally Posted by bally3


Appreciate your enthusiasm, but can you move the conversations about userspace (builds) to the Discussions thread please, as this thread should be primarily for the KERNEL development only.

Appreciate your understanding,

Hi!


I have now a TG01 too, and started to develop some Linux stuff for it.
The branch for it is in our htcleo repository.
http://gitorious.org/linux-on-wince-.../linux-on-tg01

I did already a bit reasearch and put some new stuff in the htc linux wiki. I will update it if I found something new.
http://www.htc-linux.org/wiki/index.php?title=Tg01

17.09.11 Edit10 and last:
Hi!

I pushed my last changes. There some new stuff in repo now like:
- Powerbutton support
- Fixes for Power/USB
- Panel Code
- Notifications
- Usb cable pull/push did not crash device anymore
and much other.

I'm closing this project for me because I've no time to work on it.

One Info, the problems with the GUI after boot are ril related. The biggest work is RIL. It looks like you have to write (or find) a RPC based RIL lib.
have fun!

Markinus

Edit9:
Calls works now. But the mic not.
Battery works, a simple cable detection driver too. Problem, you cannot in the moment pull or push the cable in/out. If you do it the devices will crash after ca. 15 sec.
Build updated.

Edit8:
Audio and vibration works.
!Important: Run clrcad.exe in wince bevor you run haret and boot linux!

Edit7:
The Volume and Camera Buttons are now supported.

Edit6:
Added touchscreen buttons
Added first Test Build! Extract to sd and run haret! Look to Post 2.

Edit5:
Touchscreen is working now. I had to recalculate the calibration values. Later we have to look to better calib values, maybe a calib app for users.

Edit4:
We have now a official mach id 3197. This have to be changed in the default.txt for haret.

Edit3:
So some new stuff is checked in:
- panelfile with basic support for mdp and lcdc
- sd card works
- usb works
- rpc, pcom, works

Status: the device is booting now android till the unlock screen in the GUI, but without touchscreen ...

Edit2:
Branch is in our Leo repo:
http://gitorious.org/linux-on-wince-.../linux-on-tg01
The basic stuff is now in. Is booting. I didn't find a device ID for tsunagi, so I had to create one.

status: kernel is booting and android starting. We need to write much new stuff to get all hardware working.

default.txt:
set mtype 3197
set ramaddr 0x11800000
set ramsize 0x0e800000
set initrd_offset 0x00a00000
set KERNEL zImage
set initrd initrd.gz
set cmdline ""
boot

We need to research much stuff. And all this needs much time. So don't ask for dates
!!!IMPORTANT: USE ALL STUFF AT YOUR OWN RISK!!!
!You can break your device!

Markinus
Here you can buy me a beer!

HTC Leo
Toshiba Tsunagi (TG01)
The Following 16 Users Say Thank You to Markinus For This Useful Post: [ Click to Expand ]
 
Markinus
Old
(Last edited by Markinus; 11th December 2010 at 09:44 PM.)
#2  
Senior Member - OP
Thanks Meter 287
Posts: 345
Join Date: Dec 2007
First Test Build:

Look to top whats working.
Second testbuild:

http://www.multiupload.com/P0B04IK8S0

Have fun on test!

!!!IMPORTANT: USE ALL STUFF AT YOUR OWN RISK!!!
!You can break your device!
Here you can buy me a beer!

HTC Leo
Toshiba Tsunagi (TG01)
The Following 3 Users Say Thank You to Markinus For This Useful Post: [ Click to Expand ]
 
daevoq
Old
(Last edited by daevoq; 21st November 2010 at 01:21 PM.)
#3  
Senior Member
Thanks Meter 10
Posts: 238
Join Date: Jan 2010
hi markinus! i'm glad to see another dev involved to port android on TG01! a new hope for our phone! yesterday i've thinked to sell it.. but now i've a new hope.. and can't wait for some news, good luck.. and if you need help.. just ask..
just a question.. what means "kernel is booting" status? sorry for my english
Current Device: Samsung Galaxy S i9000
ROM: GamerzROM Legend Edition

Galaxy Tab 7 P1000 (GSM EU)
ROM: [ROM][CM10][JB][4.1.2][SGT7][P1000/N/L][PDroid]
-----------
Other Devices: HTC "Leo" HD2
HTC G1/Dream
Iphone 3G 16Gb
Iphone 3Gs 16Gb
Viewsonic Gtab
 
darkfirepheonix
Old
#4  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Jan 2010
can you post a link to the kernel your using?
 
DunkDream
Old
#5  
DunkDream's Avatar
Senior Member
Thanks Meter 3
Posts: 423
Join Date: Apr 2008
Good to see things moving here.

Hope that the TG01 community will get a workin' kernel

They're worth it.
 
bojan6
Old
#6  
bojan6's Avatar
Senior Member
Thanks Meter 5
Posts: 265
Join Date: Oct 2009
Location: London
Ok. I'm going to try this one but after I finish with my homework.
I'm downloading it now.

Wait for news.........
GT-I8160 Samsung Galaxy Ace 2


Bleach
Naruto
One Pice
H.O.T.D
(Highschool Of The Dead)
 
EVEALEX62
Old
#7  
EVEALEX62's Avatar
Senior Member
Thanks Meter 16
Posts: 478
Join Date: Jul 2009
Location: Arras

 
DONATE TO ME
Nice thread, I hope to have good news ..
 
bojan6
Old
#8  
bojan6's Avatar
Senior Member
Thanks Meter 5
Posts: 265
Join Date: Oct 2009
Location: London
Last News...
After I download the file I had some problems. It gave me errors when I try to make arch=arm tsunagi_defconfig. Error was like a privet file and you don't have access. So I copy all the files on new directory and then I was able to do make arch=...... defconfig. Then I compiled it with success.

Then I make all changes in default.txt and it run then restart. But this time I think it's problem from some APP. What it say but I wasn't able to see it. It was to fast.
I need some help to set debug haret.

Current default.txt in haret/debug/ is: pwf tg01-ramconsole.txt 0x1FFC0000 0x40000
If some one can help me how to change it that's go be perfect.


Sorry about my English I'm still learning.
GT-I8160 Samsung Galaxy Ace 2


Bleach
Naruto
One Pice
H.O.T.D
(Highschool Of The Dead)
 
bojan6
Old
#9  
bojan6's Avatar
Senior Member
Thanks Meter 5
Posts: 265
Join Date: Oct 2009
Location: London
Quote:
Originally Posted by Markinus View Post
Hi!


I have now a TG01 too, and will start to develop some Linux stuff on it.
I will create a new branch for it in our htcleo repository because some things we can use for both. If I have something what you could try, I will post it here.

I did already a bit reasearch and put some new stuff in the htc linux wiki. I will update it if I found something new.

We need to research much stuff. And all this needs much time. So don't ask for dates

Edit2:
Branch is in our Leo repo:
http://gitorious.org/linux-on-wince-.../linux-on-tg01
The basic stuff is now in. Is booting. I didn't find a device ID for tsunagi, so I had to create one.

status: kernel is booting, it means we go through the basic hardware init. I fixed the memory layout.

default.txt:
set mtype 1100001
set ramaddr 0x11800000
set ramsize 0x0e800000
set initrd_offset 0x00a00000
set KERNEL zImage
set initrd initrd.gz
set cmdline ""
boot


Markinus
That's great job what have you done. It's amazing. I thing kernel is booting now but I am not sure. With me is still restarting.
If I can help with something just tell me. I'm not professional but may be I can do something.
I was thinking about board configuration and all other configs.. but I didn't know how to do it. So
Thanks for your job.
GT-I8160 Samsung Galaxy Ace 2


Bleach
Naruto
One Pice
H.O.T.D
(Highschool Of The Dead)
 
bojan6
Old
#10  
bojan6's Avatar
Senior Member
Thanks Meter 5
Posts: 265
Join Date: Oct 2009
Location: London
For those who want to try himself.

1st. Download from Markinus posts his repository it's on the right side on the page http://gitorious.org/linux-on-wince-.../linux-on-tg01

2nd. Unzip it in a folder that you have created before. How to unzip it?
Go to Applications -> Accessories->Terminal
In Terminal tap: cd name of your new folder, ( example: cd myAndroid )
then you have myAndroid$
Now you tap : tar xvzf directory where you have download Markinus repository. (example: tar xvzf /home/downloads/linux-on-wince-htc-linux_on_wince-htc-linux-on-tg01.tar.gz.gz)
You will see how the file is unziped.

3rd. You will see in your folder that there is a new folder named (linux-on-wince-htc-linux_on_wince-htc-on-tg01 or something like that). If you see like a small lock in the front of this folder then do this. Create a new folder put the name you want. Then cut everything from the folder linux--on-wince-htc...........etc. and past it in your new folder.
(example what I did it was easy just in my folder myAndroid I create a folder kernel_1 and I paste everything inside.

4th Now wen we have not everything but may be a part of. Is time to download toolchan (compiler) and some libraries.
in your Terminal tap : 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.

thats for the libraries.

and this one for tollchains or cross tools or ... what you want call it.

http://www.codesourcery.com/sgpp/lit...tal/release858
download it and install it. in the same folder as repository (example myAndroid/cross_tools)
Thanks to Endrix with his tutorial help me a lot.

5th.Now enter in your kernel_1 folder or whatever you called it and tap: make ARCH=arm tsunagi_defconfig

6th When finish writing to configuration. tap: make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
enter
If you have done everything without errors then you will see how linux is building your kernel.

7th When finish building go to (exaple myAndroid/kernel_1/ARCH/arm/boot/ ) ther is your kernel Image and zImage you can use both if you want. :eek:)

Thanks Markinus and Endrix.
GT-I8160 Samsung Galaxy Ace 2


Bleach
Naruto
One Pice
H.O.T.D
(Highschool Of The Dead)

The Following User Says Thank You to bojan6 For This Useful Post: [ Click to Expand ]
Tags
android, new buiid????why?, tg01
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes