Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Rockbox via HaRET (Log)
« previous next »
  • Print
Pages: [1]

Author Topic: Rockbox via HaRET (Log)  (Read 2425 times)

Offline BenBrown

  • Member
  • *
  • Posts: 41
  • foolsh
Rockbox via HaRET (Log)
« on: October 28, 2015, 12:01:00 PM »
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/HaRET
http://forum.xda-developers.com/wiki/HaRET

Building the Mingw32ce Toolchain for HaRET
HaRET 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...

Code: [Select]
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 HaRET
HaRET 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...

Code: [Select]
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


« Last Edit: October 28, 2015, 05:14:40 PM by BenBrown »
Logged
foolsh

Offline Strife89

  • Member
  • *
  • Posts: 354
  • Michael Carr
    • Strife89's blog
Re: Rockbox via HaRET (Log)
« Reply #1 on: December 05, 2015, 11:21:53 PM »
I have an iPAQ hx4700 and a Treo 700?? that I'll gladly test with. I'll set up to compile HaRET on my machine sometime soon (sorry, I know that's uselessly vague, but I am certainly interested in this).
Logged
Rockbox: Sansa Clip Zip, iPod Color, iRiver H320

Android: Moto X4, Galaxy Tab S2 T710

Offline BenBrown

  • Member
  • *
  • Posts: 41
  • foolsh
Re: Rockbox via HaRET (Log)
« Reply #2 on: December 09, 2015, 01:02:54 AM »
\o

HaRet has it's own command set to poke around at the memory available on the device http://cs.ozerki.net/zap/pub/axim-x5/haret.html

Getting a TCP/IP  connection setup when the device is running windows will allow that connection to remain open up until the memory is wiped, the kernel is loaded and execution is passed to it.

I misplaced my com/usb cable _some where_ since my move to this apartment :-\ but I do recall it being here.... some where.  You can even talk to HaRet over wifi, if you're lucky enough to own a device with wifi.  But most I've seen only support WEP.

If your device has ever had linux ported to it, try to dig up the .config for your kernel.  It will have all the memory address ranges and what not you'll need to port rockbox.

Ninja Edit: I have a hx4700 to, its a solid little device, I'll dig that up instead of my dell axim x50
« Last Edit: December 09, 2015, 01:11:54 AM by BenBrown »
Logged
foolsh

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Rockbox via HaRET (Log)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.076 seconds with 22 queries.