Post Reply

[PRJ][OS]Linux and Android on HTC Diamond "NOT YET WORKING"

OP dcordes

14th August 2008, 12:33 AM   |  #81  
espenfjo's Avatar
Recognized Developer
Flag Oslo
Thanks Meter: 2,258
 
391 posts
Join Date:Joined: Jul 2008
Donate to Me
More
Ok..
After doing some debugging i can confirm that Haret is not the problem (although it have some problems with the FB).
Haret goes all the way to this point
Code:
  
// Disable MMU and launch linux.
mmu_trampoline(physAddrTram, virtAddrMmu, bm->physExec, Mach->flushCache);
Code:
void mmu_trampoline(uint32 phys, uint8 *mmu, uint32 code, void (*)(void))
@ In:   r0 = Physical address of this function
@       r1 = Virtual address of MMU in non-cached ram.
@       r2 = Physical address of code to jump to
@       r3 = cpu flush cache function
The odd thing is that i cant find the value in r2(uint32 code) any place in the logs.

Anyways..

Ill start debugging the linux kernel now, add debug functions to the early boot there, see if i can get any info that the kernel is loading at all (im no developer, so the only thing i can do is this work


EDIT:
Ill attach my log aswell.. Should be funny for most of you to read my debuging info Guess you have to read the code to understand most of them
And maybe someone can point out something i dont understand.

Code:
===== HaRET pre-0.5.2-20080814_012449 =====
Setting KMode to true.
Old KMode was 0
Finished initializing output
Loading dynamically bound functions
Function 'AllocPhysMem' in library 'coredll' at 03F62EE8
Function 'FreePhysMem' in library 'coredll' at 03F62F54
Function '?GXOpenDisplay@@YAHPAUHWND__@@K@Z' in library 'gx' at 029929EC
Function '?GXCloseDisplay@@YAHXZ' in library 'gx' at 02992DD8
Function '?GXBeginDraw@@YAPAXXZ' in library 'gx' at 029922A8
Function '?GXEndDraw@@YAHXZ' in library 'gx' at 0299236C
Function 'LoadLibraryExW' in library 'coredll' at 03F63090
Function 'NLedSetDevice' in library 'coredll' at 03F8A590
Function 'GetSystemPowerStatusEx2' in library 'coredll' at 03F69A14
Function 'SleepTillTick' in library 'coredll' at 03F62FB0
Function 'CreateToolhelp32Snapshot' in library 'toolhelp' at 02FC605C
Function 'CloseToolhelp32Snapshot' in library 'toolhelp' at 02FC607C
Function 'Process32First' in library 'toolhelp' at 02FC6140
Function 'Process32Next' in library 'toolhelp' at 02FC61AC
Function 'Module32First' in library 'toolhelp' at 02FC6340
Function 'Module32Next' in library 'toolhelp' at 02FC63B0
Function 'Heap32ListFirst' in library 'toolhelp' at 02FC644C
Function 'Heap32ListNext' in library 'toolhelp' at 02FC64D4
Function 'Heap32First' in library 'toolhelp' at 02FC656C
Function 'Heap32Next' in library 'toolhelp' at 02FC6620
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Unable to load library 'ace_ddi'
Detecting current machine
Trying to detect machine (Plat='PocketPC' OEM='HTC Touch Diamond P3700')
Wince reports processor: core=MSM7201A-528MHz name=?^?? cat= vend=QUALCOMM
Looking at machine Alpine
Looking at machine Apache
Looking at machine AximX50
Looking at machine AximX5
Looking at machine Beetles
Looking at machine Blueangel
Looking at machine Himalaya
Looking at machine Magician
Looking at machine Universal
Looking at machine H1910
Looking at machine H1940
Looking at machine H2200
Looking at machine H3600b
Looking at machine H3700
Looking at machine H3800
Looking at machine H3900
Looking at machine H4000
Looking at machine H4300
Looking at machine H5000
Looking at machine H6340
Looking at machine HX2000
Looking at machine HX4700
Looking at machine Sable
Looking at machine Wizard
Looking at machine Hermes
Looking at machine Trinity
Looking at machine Athena
Looking at machine G500
Looking at machine Artemis
Looking at machine Herald
Looking at machine Prophet
Looking at machine RX3000
Looking at machine Treo700wx
Looking at machine e310
Looking at machine e740
Looking at machine Acer_n30
Looking at machine Mio_P550
Looking at machine Kaiser
Looking at machine Loox5xx
Looking at machine Loox400
Looking at machine MioA701
Looking at machine Wallaby
Looking at machine Jornada820
Looking at machine H3100
Looking at machine H3600a
Looking at machine Tornado
Looking at machine Libra
Looking at machine Generic Intel PXA27x
Looking at machine Generic Intel PXA
Looking at machine Generic Intel StrongArm
Looking at machine Generic TI OMAP
Looking at machine Generic TI OMAP15xx
Looking at machine Generic Samsung s3c24xx
Looking at machine Generic MSM7500
Looking at machine Generic Atlas
Looking at machine Generic ARM 920t
Looking at machine Generic ARM 926
Looking at machine Generic ARM v6
Looking at arch Generic Intel PXA27x
Looking at arch Generic Intel PXA
Looking at arch Generic Intel StrongArm
Looking at arch Generic TI OMAP
Looking at arch Generic TI OMAP15xx
Looking at arch Generic Samsung s3c24xx
Looking at arch Generic MSM7500
Looking at arch Generic Atlas
Looking at arch Generic ARM 920t
Looking at arch Generic ARM 926
Looking at arch Generic ARM v6
Detecting ram size
WinCE reports memory size 134217728 (phys=120619008 store=119324672)
Mapping mmu table
Build L1 reverse map
Found 248 uncached and 157 cached L1 mappings (ignored 108).
Not registering command IGPIO
Not registering command WG|PIO
Not registering command GPLR
Not registering command GPDR
Not registering command GAFR
Not registering command GPIO
Not registering command GPIOST
Registering command LOADLIBRARYEX
Registering command NLEDSET
Not registering command TRACE
Not registering command TRACEMASK
Not registering command TRACE2
Not registering command TRACETYPE
Not registering command TRACE2TYPE
Not registering command TRACEFORWATCH
Not registering command INSN
Not registering command INSNREENABLE
Not registering command INSNREG1
Not registering command INSNREG2
Not registering command INSN2
Not registering command INSN2REENABLE
Not registering command INSN2REG1
Not registering command INSN2REG2
Registering command KILL
Registering command PS
Registering command LSMOD
Registering command ADDR2MOD
Not registering command AC97
Not registering command ATIDBG
Initializing for machine 'Generic ARM v6'
Welcome, this is HaRET pre-0.5.2-20080814_012449 running on WindowsCE v5.2
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Generic ARM v6/generic (Plat='PocketPC' OEM='HTC Touch Diamond P3700')
CPU is ARM ARM arch 6 stepping 2 running in system mode

Enter 'HELP' for a short command summary.
Running WSAStartup
Starting gui
In initdialog
Found machine Generic ARM v6
executing startup.txt
Setting KMode to true.
Old KMode was 0
Incoming connection from 10.0.0.1:37725
Welcome, this is HaRET pre-0.5.2-20080814_012449 running on WindowsCE v5.2
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Generic ARM v6/generic (Plat='PocketPC' OEM='HTC Touch Diamond P3700')
CPU is ARM ARM arch 6 stepping 2 running in system mode
Enter 'HELP' for a short command summary.

HaRET(1)# runscript default.txt
HaRET(1)# set MTYPE 1805
HaRET(3)# set KERNEL zImage.bin
HaRET(5)# set RAMADDR 0x10000000
HaRET(6)# Set initrd android-espen.bin
HaRET(7)# Set fbduringboot 1
HaRET(2)# bootlinux
boot KERNEL=zImage.bin INITRD=android-espen.bin
Opening file zImage.bin
Opening file android-espen.bin
boot params: RAMADDR=10000000 RAMSIZE=08000000 MTYPE=1805 CMDLINE='root=/dev/ram0 ro console=tty0'
Boot FB feedback: 1
Built virtual to physical page mapping
Allocated 5387 pages (tags=5C000000/14bdb000 kernel=5C001000/14bdc000 initrd=5C12A000/1497e000 index=5D502000/135a4000)
Built kernel tags area
Built page index
Video buffer at 5116A000 sx=480 sy=640 mx=120 my=106
Video Phys FB=1686a000 Fonts=1359d064
preload=2260@5D50A000/1359c000 sj=5D50A000 stack=5D508000/1359e000 data=5D509000/1359d000 exec=1359c128
Reading 1213396 bytes...
Read complete
Reading 20805304 bytes...
Read complete
Launching to physical address 1359c010
Launching kernel
Setting up the trampoline
Trampoline setup (tram=136@00024D84/20024d84/10953d84)
MMU setup: mmu=A03F0000/103f0000
Go Go Go...
Did the stuff //Disabling interrupts
Called the per arch things? //Dunno what this does
324648976 //r2 uint32 code kernel address
Last edited by espenfjo; 14th August 2008 at 12:40 AM.
14th August 2008, 01:03 AM   |  #82  
espenfjo's Avatar
Recognized Developer
Flag Oslo
Thanks Meter: 2,258
 
391 posts
Join Date:Joined: Jul 2008
Donate to Me
More
Oh.. ok..
Sorry for double posting, but this is new information, and the previous post was long enough already.

It seems like there is a section after the mmu_trampoline aswell, the preloader.

The FB shows that it jumps to the PSR-part (Program Status Register, the thing that holds the flag information about programs and instructions) in the preloader.

However, it doesnt seem like it will continue after this(the fb doesnt show anything else atleast), and only come this far only one out of thousand tries (well.. haven tried that many times yet tho..).
Tho.. The logging often surpass the FB information.

So this seems the furthest i can go without having any means to stabilize the FB output, or run an external debugger like gdb on haret.
Last edited by espenfjo; 14th August 2008 at 01:40 AM.
14th August 2008, 08:32 AM   |  #83  
Member
Thanks Meter: 0
 
35 posts
Join Date:Joined: Jul 2008
Has anyone had a look at Ubuntu Mobile Edition??

http://www.ubuntu.com/products/mobile
14th August 2008, 09:46 AM   |  #84  
Senior Member
Thanks Meter: 1
 
107 posts
Join Date:Joined: Jul 2008
Quote:
Originally Posted by Global_Inferno

Has anyone had a look at Ubuntu Mobile Edition??

http://www.ubuntu.com/products/mobile

Ubuntu MID is aimed more at computer/netbook devices like the EEEpc, MSI Wind, etc.

On the Ubuntu MID site it confirms that a MID device has:

Quote:

MIDs typically have the following features and attributes:

* Small size/form factor
* 4 to 7 inch touch screen
* Physical and/or virtual keyboard
* Wi-Fi, 3G, Bluetooth, GPS, WiMAX
* 2GB to 8GB Flash or disk storage, 256MB+ memory/512MB+ recommended
* OpenGL 3D
* USB, camera, head phone jack, speakers, microphone

Note that while it says 3G this is implied for data transfer and it doesn't say Phone functionality. For mobile phone based Linux, the bleeding edge is really Android.
14th August 2008, 09:47 AM   |  #85  
Member
Thanks Meter: 0
 
35 posts
Join Date:Joined: Jul 2008
Oh ok... Just was curious as I dont know much about the whole Linux Mobile OS development at the moment, in what sort of state is Android at the moment then? Usable?
14th August 2008, 09:50 AM   |  #86  
Member
Thanks Meter: 2
 
71 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by Global_Inferno

Oh ok... Just was curious as I dont know much about the whole Linux Mobile OS development at the moment, in what sort of state is Android at the moment then? Usable?

Have you even read this thread?
14th August 2008, 10:07 AM   |  #87  
Senior Member
Thanks Meter: 15
 
109 posts
Join Date:Joined: Dec 2005
I hate it when ppl do that, they see the title of the thread and are too lazy to read the whole thing. They expect someone to just summarise the entire thread for them... and worst of all, is that this realisation will come as a shock to them and they'll get offended by it, as that's not what the meant... grrrr.....

not my best morning today either
14th August 2008, 10:11 AM   |  #88  
Member
Thanks Meter: 0
 
35 posts
Join Date:Joined: Jul 2008
Um I have read the thread, but as it goes off topic about every 1 in 3 posts, it's kinda hard to see where people have got too... From the looks of it, noone has even managed to get Android to start up, let alone be usable? That sound about right?

Next question, what can people do to help?
14th August 2008, 10:23 AM   |  #89  
Member
Thanks Meter: 2
 
71 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by sama

I hate it when ppl do that, they see the title of the thread and are too lazy to read the whole thing. They expect someone to just summarise the entire thread for them... and worst of all, is that this realisation will come as a shock to them and they'll get offended by it, as that's not what the meant... grrrr.....

not my best morning today either

Spot on as you can see.
14th August 2008, 10:40 AM   |  #90  
Member
Thanks Meter: 0
 
35 posts
Join Date:Joined: Jul 2008
Quote:
Originally Posted by sensorama

Spot on as you can see.

Im asking if I can help and you flame me.... right then.. **** the lot of you then.

Post Reply Subscribe to Thread

Tags
android, angstrom, diamond, htc-linux, linux, msm7xxxa, raphael, touch pro
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes