[Buildroot] [PATCH v2] package/pdbg: new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jul 26 07:18:34 UTC 2016


Hello,

On Tue, 26 Jul 2016 11:43:53 +0930, Joel Stanley wrote:

> > Anything that makes it ARM-specific?  
> 
> Upstream has only ever tested the code on ARM. It does build for x86
> (and power, and anything else I guess), but as you point out below it
> is only useful when run from a processor that is attached to a p8
> host.
> 
> What's the general rule in this circumstance?

I believe in such cases we tend to make the package available on all
architectures anyway. There is no inherent limitation in having it
build and run on other architectures.

The only cases where we add architecture dependencies are:

 - The package contains architecture-specific code.

 - The package contains pre-built binaries for a given architecture
   (e.g. OpenGL blobs).

 - The package is really relevant only for an architecture, like some
   GPU or VPU related stuff, where the GPU/VPU only exists for this
   architecture. We could say that pdbg falls into this category though.

> >> +PDBG_VERSION = 90a7370a11e727f1482dea6ff2bd6aec20c64805
> >> +PDBG_SITE = $(call github,open-power,pdbg,$(PDBG_VERSION))
> >> +PDBG_LICENSE = Apache 2.0
> >> +PDBG_LICENSE_FILES = COPYING
> >> +PDBG_AUTORECONF = YES  
> >
> > Side note (unrelated to Buildroot packaging): had a look at the code,
> > and this mapping of /dev/mem to then bing-bang some protocol on GPIOs
> > from userspace is really, really nasty :-/  
> 
> Yep! You and I are the same page here. To date the tool has been used
> on a BIOS vendor's BMC firmware, running a very old kernel that lacks
> the proper linux APIs for access to hardware. It's not ideal.
> 
> I've been slowly upstreaming a from-scratch kernel port. Once we have
> that in place pdbg can add support for doing GPIO through the kernel.
> 
> In the future near future we will add FSI support in the kernel, and
> from there perhaps use the Coldfire processor inside the Aspeed SoC to
> offload the bitbanging. Lots of work to do, but we're getting there.

OK, sounds good.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list