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
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.
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
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: