I've begun working toward booting Rockbox on Windows mobile/WinCE devices with HaRET. I'm just using this post to document the process, especially if anyone else has a device and wants to follow along/help out. Rather than a RaaA via SDL built with mingw32ce, this approach explores a native port of Rockbox, attempting to boot it with HaRET. (Handheld Reverse Engineering Tool)
HaRET was used back in the day to RE the Axim and was expanded to other handheld targets eventually.
http://xdandroid.com/wiki/HaREThttp://forum.xda-developers.com/wiki/HaRETBuilding the Mingw32ce Toolchain for HaRETHaRET must be built with mingw32ce so it can run under the win32ce environment, which requires libmpfr-dev and libgmp-dev among other packages. Newer texinfo fails to build the docs and the sources of CeGCC haven't been officially touched since 2010. So I took the liberty of cloning the latest available revision to github and adding fixes. You can build the toolchain with...
cd /tmp
git clone https://github.com/foolsh/CeGCC.git
cd CeGCC
mkdir build
cd build
sudo ../scripts/build-mingw32ce.sh --prefix=/usr/local
The docs build with a whole bucket load of warnings, but the binaries install to /usr/local/mingw32ce with links to /usr/local/bin/arm-mingw32ce-*, just like rockboxdev.sh's toolchains.
Building HaRETHaRET hasn't been touched since 2011, and failed to build with a few errors at first. The changes I made fixed the paths to the toolchain and a linker script. I'm not sure it works yet, I'm still digging up chargers and targets from my storage boxes to test it on.
You build HaRET with...
cd ~/work #Change to your working directory
git clone https://github.com/foolsh/haret.git
cd haret
make
The executable is in haret/out/
At this point (IF) HaRET runs correctly we'll pick a target to start porting Rockbox to.
TBC