linux-hexagon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Eric Appleman <erappleman@gmail.com>
Cc: linux-hexagon@vger.kernel.org
Subject: Re: [DISCUSSION] Running linux-hexagon on the Qualcomm Galaxy S3?
Date: Sat, 16 Feb 2013 21:37:57 -0600	[thread overview]
Message-ID: <1361072277.11760.2@driftwood> (raw)
In-Reply-To: <loom.20130214T082052-714@post.gmane.org> (from erappleman@gmail.com on Thu Feb 14 01:29:14 2013)

On 02/14/2013 01:29:14 AM, Eric Appleman wrote:
> Good idea? Bad idea?
> 
> A bunch of people Freenode (#d2common and #htc-linux) have begun a  
> port.
> 
> https://github.com/detule/linux-hexagon
> 
> Thoughts?

Please keep me in the loop!

The trick is:

A) Getting a bootloader that runs hexagon code. In snapdragon there are  
4 processors, and the "boot processor" is actually an old armv5l that  
bogs off to run radio code after initial boot. It has to hand off  
control to another processor, by default this is the Scorpion Armv7, it  
has to be reprogrammed to instead wake up the hexagon and give it  
control.

2) Last I checked some of the Snapdragon SoC drivers were only in the  
Android tree, under arch/arm. The hexagon will need these moved to a  
generic directory in the vanilla tree so hexagon can find the USB port  
and stick a serial console on it. (USB gadget for the win!)

III) Qualcomm's soft MMU code is binary-only because their lawyers  
think nobody's ever done a soft MMU before and thus their patents on it  
won't be invalidated if it's a secret what they are. (Last I checked  
objdump could disassemble the magic instructions, there was just no  
documentation on TLB loading and such.)

Also, back in 2010 there was a brief effort to get hexagon support in  
QEMU (just one thread, but it had to do the 4-issue VLIW since the  
different cores run different instructions and there's synchronization  
issues with jumps and such), which would simplify open source  
development _enormously_. Alas, it did not bear fruit that I'm aware  
of. Adding Hexagon support to TCG would be awesome.

Rob

      reply	other threads:[~2013-02-17  3:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14  7:29 [DISCUSSION] Running linux-hexagon on the Qualcomm Galaxy S3? Eric Appleman
2013-02-17  3:37 ` Rob Landley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1361072277.11760.2@driftwood \
    --to=rob@landley.net \
    --cc=erappleman@gmail.com \
    --cc=linux-hexagon@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).