mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Generic BSP for x86
@ 2016-10-12  6:38 Koch, Alexander
  2016-10-12 10:26 ` Alexander Aring
  0 siblings, 1 reply; 4+ messages in thread
From: Koch, Alexander @ 2016-10-12  6:38 UTC (permalink / raw)
  To: ptxdist

Hi all,

I'd like to build an image for an x86 box (Intel Atom Z510). Coming from
the official documentation quickstart I found the OSELAS Generic BSP
[1], which seems to be based on ptxdist-2014.07.0.

I tried migrating it to ptxdist-2016.04.0 but multiple components (e.g.
klibc) fail to build.

Is there anything newer to act as a starting point for creating x86
images with recent PTXdist versions?

Any advice on how to get to an x86 image without creating a new BSP from
scratch is appreciated. I'm not new to PTXdist but have only done ARM
images so far.


Cheers,

Alex


[1] https://git.pengutronix.de/cgit/OSELAS.BSP-Pengutronix-Generic/

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Generic BSP for x86
  2016-10-12  6:38 [ptxdist] Generic BSP for x86 Koch, Alexander
@ 2016-10-12 10:26 ` Alexander Aring
  2016-10-12 11:31   ` Koch, Alexander
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Aring @ 2016-10-12 10:26 UTC (permalink / raw)
  To: ptxdist


Hi,

On 10/12/2016 08:38 AM, Koch, Alexander wrote:
> Hi all,
> 
> I'd like to build an image for an x86 box (Intel Atom Z510). Coming from
> the official documentation quickstart I found the OSELAS Generic BSP
> [1], which seems to be based on ptxdist-2014.07.0.
> 
> I tried migrating it to ptxdist-2016.04.0 but multiple components (e.g.
> klibc) fail to build.
> 
> Is there anything newer to act as a starting point for creating x86
> images with recent PTXdist versions?
> 

The DistroKit [0].

> Any advice on how to get to an x86 image without creating a new BSP from
> scratch is appreciated. I'm not new to PTXdist but have only done ARM
> images so far.
>

I currently have some i586 plattform here (because doing some
experiments with a project which has 32 bit support only and I don't
fight currently for x86_64 multilib support.) Nevertheless, it's not
mainline and x86 32 bit system is somewhat deprecated (in my opinion).

It's really simple to create a new plattform, if you are interest in
using the BSP in QEMU, then you can also use v7a plattform and the
run-nfs script will use a nfs userspace server, started by ptxdist
nfsroot.

Also the created image can be put into beaglebone (white/black) or RPi2.

- Alex

[0] https://git.pengutronix.de/cgit/DistroKit

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Generic BSP for x86
  2016-10-12 10:26 ` Alexander Aring
@ 2016-10-12 11:31   ` Koch, Alexander
  2016-10-12 11:42     ` Alexander Aring
  0 siblings, 1 reply; 4+ messages in thread
From: Koch, Alexander @ 2016-10-12 11:31 UTC (permalink / raw)
  To: ptxdist

Hi Alex,

>> Is there anything newer to act as a starting point for creating x86
>> images with recent PTXdist versions?
>>
> The DistroKit [0].

Thanks for the hint. I had had a quick look at this before, but found
only the platform definitions for arm7a and rpi, and therefore dropped it.

>
>> Any advice on how to get to an x86 image without creating a new BSP from
>> scratch is appreciated. I'm not new to PTXdist but have only done ARM
>> images so far.
>>
> I currently have some i586 plattform here (because doing some
> experiments with a project which has 32 bit support only and I don't
> fight currently for x86_64 multilib support.) Nevertheless, it's not
> mainline and x86 32 bit system is somewhat deprecated (in my opinion).

I know 32bit x86 embedded is dull, but I really need to work that Atom
Z510 which does not support x86_64. The box does not have a NIC (yet),
so NFS is currently not an option for me.

So your advice would be to take the DistroKit BSP and create a new
platform for my x86 target?


Regards,

Alex
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Generic BSP for x86
  2016-10-12 11:31   ` Koch, Alexander
@ 2016-10-12 11:42     ` Alexander Aring
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Aring @ 2016-10-12 11:42 UTC (permalink / raw)
  To: ptxdist


Hi,

On 10/12/2016 01:31 PM, Koch, Alexander wrote:
> Hi Alex,
> 
>>> Is there anything newer to act as a starting point for creating x86
>>> images with recent PTXdist versions?
>>>
>> The DistroKit [0].
> 
> Thanks for the hint. I had had a quick look at this before, but found
> only the platform definitions for arm7a and rpi, and therefore dropped it.
> 

Yes, this is also enough for testing it on several arm platforms.

>>
>>> Any advice on how to get to an x86 image without creating a new BSP from
>>> scratch is appreciated. I'm not new to PTXdist but have only done ARM
>>> images so far.
>>>
>> I currently have some i586 plattform here (because doing some
>> experiments with a project which has 32 bit support only and I don't
>> fight currently for x86_64 multilib support.) Nevertheless, it's not
>> mainline and x86 32 bit system is somewhat deprecated (in my opinion).
> 
> I know 32bit x86 embedded is dull, but I really need to work that Atom
> Z510 which does not support x86_64. The box does not have a NIC (yet),
> so NFS is currently not an option for me.
> 

If you run it in QEMU then you can emulate an atom which has a NIC. This
is good for develop your BSP/Userspace Softwate/ETC. If it's at some
point that you want the 1:1 behaviour on your atom board -> flash the
image and make a release after some testing.

> So your advice would be to take the DistroKit BSP and create a new
> platform for my x86 target?
> 

I would suggest to copy v7a platform to a atom2510 platform. Then
select this platform and start ptxdist platformconfig -> change
everything to your atom platform.

Then start ptxdist kernelconfig -> change everything to your platform.

Then look into run-nfs/run script and qemu-common source file and change
everything that it emulates a atom.

---

For the switch between QEMU and your atom board, I would disable then
everything what you don't need in the kernelconfig which was necessary
only for doing QEMU testing stuff.

btw:

qemu-i386 -cpu "?"

gives you a list of possible cpu emulations, there is also some:

x86             n270  Intel(R) Atom(TM) CPU N270   @ 1.60GHz

don't know if this fits into your use-case.

For the specific platform changes -> I can't help you there. But I think
there exists now a DistroKit Mailinglist [0], you can send-patches there and
we will review.

- Alex

[0] http://www.pengutronix.de/mailinglists/index_en.html

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-12 11:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-12  6:38 [ptxdist] Generic BSP for x86 Koch, Alexander
2016-10-12 10:26 ` Alexander Aring
2016-10-12 11:31   ` Koch, Alexander
2016-10-12 11:42     ` Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox