[Snap CDMA] goopec:
I'm attempting to boot linux on an HTC S511 Snap (Willow).

I tried HaRET 0.5.1 and 0.5.2 and both give me unhandled exception errors.

I thought maybe I needed to add the S511 to HaRET and re-compile so I did, but when trying to run the version of HaRET that I compiled on cygwin, I get the error:

When I couldn't seem to get that problem fixed, I went ahead and hex-edited HaRET, replacing one of the other MSM7*** SmartPhones with S511 so it would be detected. Sure enough, it was detected by HaRET, but I still get the unhandled exception error as you see in my haretlog.txt file below.

===== HaRET 0.5.2 =====
Setting KMode to true.
Old KMode was 0
Finished initializing output
Loading dynamically bound functions
Function 'AllocPhysMem' in library 'coredll' at 03F71F64
Function 'FreePhysMem' in library 'coredll' at 03F71FD0
Function '?GXOpenDisplay@@YAHPAUHWND__@@K@Z' in library 'gx' at 02E1B9EC
Function '?GXCloseDisplay@@YAHXZ' in library 'gx' at 02E1BDD8
Function '?GXBeginDraw@@YAPAXXZ' in library 'gx' at 02E1B2A8
Function '?GXEndDraw@@YAHXZ' in library 'gx' at 02E1B36C
Function 'LoadLibraryExW' in library 'coredll' at 03F7210C
Function 'NLedSetDevice' in library 'coredll' at 03F9A550
Function 'GetSystemPowerStatusEx2' in library 'coredll' at 03F78A90
Function 'SleepTillTick' in library 'coredll' at 03F7202C
Function 'CreateToolhelp32Snapshot' in library 'toolhelp' at 039A405C
Function 'CloseToolhelp32Snapshot' in library 'toolhelp' at 039A407C
Function 'Process32First' in library 'toolhelp' at 039A4140
Function 'Process32Next' in library 'toolhelp' at 039A41AC
Function 'Module32First' in library 'toolhelp' at 039A4340
Function 'Module32Next' in library 'toolhelp' at 039A43B0
Function 'Heap32ListFirst' in library 'toolhelp' at 039A444C
Function 'Heap32ListNext' in library 'toolhelp' at 039A44D4
Function 'Heap32First' in library 'toolhelp' at 039A456C
Function 'Heap32Next' in library 'toolhelp' at 039A4620
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='SmartPhone' OEM='S511')
Wince reports processor: core=MSM7625-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 Raphael
Looking at machine Jornada820
Looking at machine H3100
Looking at machine H3600a
Looking at machine Tornado
Looking at machine Willow
Detecting ram size
WinCE reports memory size 134217728 (phys=116621312 store=99409920)
Mapping mmu table
Build L1 reverse map
Found 251 uncached and 163 cached L1 mappings (ignored 99).
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 'Willow'
HaRET(1)# set ramaddr 0x10000000
HaRET(2)# addlist irqs p2v(0xc0000000) 0x100 32 0
HaRET(3)# addlist irqs p2v(0xc0000004) 0 32 0
HaRET(1)# addlist gpios p2v(0xa9200800)
HaRET(2)# addlist gpios p2v(0xa9300c00)
HaRET(3)# addlist gpios p2v(0xa9200804)
HaRET(4)# addlist gpios p2v(0xa9200808)
HaRET(5)# addlist gpios p2v(0xa920080c)
HaRET(6)# addlist gpios p2v(0xa9200834)
HaRET(7)# addlist gpios p2v(0xa9300c20)
HaRET(8)# addlist gpios p2v(0xa9200838)
HaRET(9)# addlist gpios p2v(0xa920083c)
HaRET(10)# addlist gpios p2v(0xa9200840)
HaRET(11)# addlist gpios p2v(0xa9200810)
HaRET(12)# addlist gpios p2v(0xa9300c08)
HaRET(13)# addlist gpios p2v(0xa9200814)
HaRET(14)# addlist gpios p2v(0xa9200818)
HaRET(15)# addlist gpios p2v(0xa920081c)
Welcome, this is HaRET 0.5.2 running on WindowsCE v5.2
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Willow/MSM7xxx (Plat='SmartPhone' OEM='S511')
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 Willow
executing startup.txt
HaRET(2)# set RAMSIZE 0x08000000
HaRET(4)# set RAMADDR 0x10000000
HaRET(6)# set MTYPE 1322
HaRET(7)# set KERNEL zImage
HaRET(8)# bootlinux
boot KERNEL=zImage INITRD=
Opening file zImage
boot params: RAMADDR=10000000 RAMSIZE=08000000 MTYPE=1322 CMDLINE='root=/dev/ram0 ro console=tty0'
Boot FB feedback: 1
Built virtual to physical page mapping
Allocated 467 pages (tags=55500000/21cd4000 kernel=55501000/21d64000 initrd=556CF000/21c69000 index=556CF000/21c69000)
Built kernel tags area
Built page index
Video buffer at 4DBED000 sx=320 sy=240 mx=80 my=40
Video Phys FB=052ed000 Fonts=218b5064
preload=2260@556D2000/215c3000 sj=556D2000 stack=556D0000/21caf000 data=556D1000/218b5000 exec=215c3128
Reading 1888832 bytes...
Read complete
Launching to physical address 215c3010
Trampoline setup (tram=136@000255F4/200255f4/013095f4)
MMU setup: mmu=A02E0000/005e0000
Go Go Go...
Terminating haret due to unhandled exception (pc=01309640)