[Pdbg] [PATCH] main: Add P8 kernel devicetree

Alistair Popple alistair at popple.id.au
Tue Aug 14 10:01:45 AEST 2018


On Monday, 13 August 2018 9:12:39 PM AEST Benjamin Herrenschmidt wrote:
> On Mon, 2018-08-13 at 16:13 +0930, Joel Stanley wrote:
> > On Mon, 13 Aug 2018 at 14:48, Alistair Popple <alistair at popple.id.au> wrote:
> > > 
> > > Joel do you know if there is someway to differentiate between P8 and P9 on
> > > OpenBMC? This patch makes it mandatory to specify p8 vs. p9 on the command line
> > > which feels like a step backwards. If we can't do it from the BMC then we will
> > > have to probe it from the host.
> > 
> > I spent more time than I'd like to admit looking at this last week.
> > 
> > We could assume that ast2400 == p8, as it is true for all the machines
> > that exist to date.
> > 
> > I looked into geteauxval etc, but it appears there's no way to detect
> > you're on an ast2400 (or even just an ARM9) without parsing files. So
> > the 'best' we have would be to open up the device tree at
> > /sys/firmware, or parse /proc/cpuinfo.
> > 
> > The device tree would be neater.
> 
> What about CFAM ID ?

Yep. That is what I meant when I mentioned we could "probe the host". Obviously
depends on the host being powered on, but that is not really an issue as you're
not going to be debugging much if the host isn't powered on.

- Alistair

> Ben.
> 
> 
> 




More information about the Pdbg mailing list