Skip to contentSkip to conversation

New meta-cubox layer

DISCUSSION Carlos Rafael Giani 8 participants 25 messages Apr 3, 2013 – Apr 4, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox . The layer itself is hosted athttps://github.com/dv1/meta-cubox .

This layer introduces a new machine, new tunes for the CuBox' Marvell PJ4 processor, in addition to the platform specific recipes for hardware video acceleration and EGL,OpenGL ES,OpenVG support. Both hardfp and softfp are supported. The 3D accelerator and the hardware accelerated video engine (called vMeta) require some closed source components. The recipes pick the right ones depending on whether softpfp or hardfp is used.

It also copies the generated uImage into the rootfs (as expected by the bootloader), and autogenerates a boot.scr out of an included boot script using uboot-mkimage. The resulting tarball is extracted on an SD card, and the device can be booted.

A new xorg driver and a customized xorg.conf are included.

I'm open to feedback, patches, suggestions.

Thanks

#1 lore raw
Quoted 8 lines · Carlos Rafael Giani

Hello,

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox . The layer itself is hosted athttps://github.com/dv1/meta-cubox .

This layer introduces a new machine, new tunes for the CuBox' Marvell PJ4 processor, in addition to the platform specific recipes for hardware video acceleration and EGL,OpenGL ES,OpenVG support. Both hardfp and softfp are supported. The 3D accelerator and the hardware accelerated video engine (called vMeta) require some closed source components. The recipes pick the right ones depending on whether softpfp or hardfp is used.

Quoted 6 lines

It also copies the generated uImage into the rootfs (as expected by the bootloader), and autogenerates a boot.scr out of an included boot script using uboot-mkimage. The resulting tarball is extracted on an SD card, and the device can be booted.

A new xorg driver and a customized xorg.conf are included.

I'm open to feedback, patches, suggestions.

Carlos

Thanks for doing this. Please add this to layer index here http://layers.openembedded.org/layerindex/

Quoted 8 lines

Thanks

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Carlos Rafael Giani
Quoted 2 lines · Carlos Rafael Giani

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox .

Nice. More importantly, how can I get one in the UK. :)

Ross

#4 lore raw
Quoted 11 lines · Ross
Quoted 2 lines · Carlos Rafael Giani

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox .

Nice. More importantly, how can I get one in the UK. :)

Ross

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Well, I have been told that New IT is a good source: https://www.newit.co.uk/shop/proddetail.php?prod=CuBox

#2 lore raw
In reply to Khem Raj
Quoted 13 lines · Khem Raj
Quoted 11 lines · Carlos Rafael Giani

Hello,

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox . The layer itself is hosted athttps://github.com/dv1/meta-cubox .

This layer introduces a new machine, new tunes for the CuBox' Marvell PJ4 processor, in addition to the platform specific recipes for hardware video acceleration and EGL,OpenGL ES,OpenVG support. Both hardfp and softfp are supported. The 3D accelerator and the hardware accelerated video engine (called vMeta) require some closed source components. The recipes pick the right ones depending on whether softpfp or hardfp is used.

It also copies the generated uImage into the rootfs (as expected by the bootloader), and autogenerates a boot.scr out of an included boot script using uboot-mkimage. The resulting tarball is extracted on an SD card, and the device can be booted.

Quoted 9 lines
Quoted 3 lines

A new xorg driver and a customized xorg.conf are included.

I'm open to feedback, patches, suggestions.

Carlos

Thanks for doing this. Please add this to layer index here http://layers.openembedded.org/layerindex/

Hello,

it is added.

Carlos

#6 lore raw
In reply to Carlos Rafael Giani

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Quoted 5 lines

Hello,

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox . The layer itself is hosted athttps://github.com/dv1/meta-cubox .

So how is this different from https://github.com/naguirre/meta-cubox ?

Quoted 9 lines

This layer introduces a new machine, new tunes for the CuBox' Marvell PJ4 processor, in addition to the platform specific recipes for hardware video acceleration and EGL,OpenGL ES,OpenVG support. Both hardfp and softfp are supported. The 3D accelerator and the hardware accelerated video engine (called vMeta) require some closed source components. The recipes pick the right ones depending on whether softpfp or hardfp is used.

Quoted 8 lines

It also copies the generated uImage into the rootfs (as expected by the bootloader), and autogenerates a boot.scr out of an included boot script using uboot-mkimage. The resulting tarball is extracted on an SD card, and the device can be booted.

A new xorg driver and a customized xorg.conf are included.

I'm open to feedback, patches, suggestions.

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFRXHc0MkyGM64RGpERAmezAJwPD4r3W/6qY5wnDCY2xh6hQTGGDQCeK5sL h33NDHBAlEs2TyV+B6ajj5I=
=F+fa
-----END PGP SIGNATURE-----

#7 lore raw
Quoted 1 line · Koen Kooi

So how is this different from https://github.com/naguirre/meta-cubox ?

I am in contact with the author of that layer. My work started as a fork of that, since the layer did not work for me, but since I anyway was changing pretty much all of it from the ground up, I decided to start my own. Now, covers more features of the CuBox, and supports both soft- and hardfp in all recipes.

Quoted 2 lines

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Do I understand it correctly that I should drop "marvellpj4hf" from https://github.com/dv1/meta-cubox/blob/master/conf/machine/include/tune-marvell-pj4.inc , or at least not set it as DEFAULTTUNE, not even with the ?= operation, and just use "marvellpj4" instead ? Because it is the distros decision to add the "callconvention-hard" feature?

The reason I ask that is because when I was writing the tune, I stumbled upon https://github.com/openembedded/oe-core/blob/master/meta/conf/machine/include/arm/arch-armv7a.inc , which includes armv7a, armv7ahf . This confuses me. Why is it OK there to mix in the callconvention?

Finally, is there a way to give a distro a "hint" about what is preferred for a machine (soft/hardfp)? One that the distro is free to ignore or respect?

#9 lore raw
In reply to Koen Kooi
Quoted 7 lines · Koen Kooi

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

Philip

Quoted 8 lines

_______________________________________________ Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#10 lore raw

Op 3 apr. 2013 om 21:34 heeft Philip Balister <[email protected]> het volgende geschreven:

Quoted 8 lines · Koen Kooi
Quoted 6 lines

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Quoted 5 lines

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

Local.conf

Quoted 12 lines

Philip

Quoted 8 lines

_______________________________________________ Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#11 lore raw
Quoted 12 lines · Koen Kooi

Op 3 apr. 2013 om 21:34 heeft Philip Balister <[email protected]> het volgende geschreven:

Quoted 8 lines · Koen Kooi
Quoted 6 lines

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Quoted 7 lines
Quoted 5 lines

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

Local.conf

Fail. This means BSP providers are depending on users to do the right thing.

The BSP should be able to say what it wants and a distro layer needs to override the BSP choice for distributions providing binaries for multiple machines.

Philip

Quoted 17 lines
Quoted 15 lines

Philip

Quoted 8 lines

_______________________________________________ Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#12 lore raw

Op 3 apr. 2013, om 22:07 heeft Philip Balister <[email protected]> het volgende geschreven:

Quoted 16 lines · Koen Kooi
Quoted 15 lines

Op 3 apr. 2013 om 21:34 heeft Philip Balister <[email protected]> het volgende geschreven:

Quoted 11 lines · Koen Kooi
Quoted 6 lines

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

Local.conf

Fail. This means BSP providers are depending on users to do the right thing.

"The right thing"? Is forcing RPM package management "the right thing"? Is moving DEPLOY_DIR "the right thing"?

Quoted 1 line

The BSP should be able to say what it wants

For MACHINE settings yes, for DISTRO settings, no

Quoted 3 lines

and a distro layer needs to
override the BSP choice for distributions providing binaries for multiple machines.

DISTRO settings in a BSP violates the Yocto Compatible rules as well as the established OE rules, I don't see why that should get changed.

In this specific case, a BSP can set COMPATIBLE_HOST on the recipes that need to be hardfloat.

In OE classic we had an ABI flag to set this globally, in OE-core the powers that be force us to set a tune per machine in the DISTRO config. The price of progress I guess.

Quoted 21 lines

Philip

Quoted 17 lines
Quoted 15 lines

Philip

Quoted 8 lines

_______________________________________________ Openembedded-devel mailing list [email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#13 lore raw

Okay, I think I see the problem now. DEFAULTTUNES should not be set by the machine config. So, removing it and fixing the README accordingly takes care of that. People who for example want hardfp then set DEFAULTTUNE ?= "marvellpj4hf" in their local.conf . Is this correct?

Quoted 18 lines · Koen Kooi
Quoted 3 lines
Quoted 2 lines

Local.conf

Fail. This means BSP providers are depending on users to do the right thing.

"The right thing"? Is forcing RPM package management "the right thing"? Is moving DEPLOY_DIR "the right thing"?

Quoted 1 line

The BSP should be able to say what it wants

For MACHINE settings yes, for DISTRO settings, no

Quoted 3 lines

and a distro layer needs to
override the BSP choice for distributions providing binaries for multiple machines.

DISTRO settings in a BSP violates the Yocto Compatible rules as well as the established OE rules, I don't see why that should get changed.

In this specific case, a BSP can set COMPATIBLE_HOST on the recipes that need to be hardfloat.

In OE classic we had an ABI flag to set this globally, in OE-core the powers that be force us to set a tune per machine in the DISTRO config. The price of progress I guess.

#19 lore raw
In reply to Philip Balister
Quoted 9 lines · Philip Balister
Quoted 7 lines · Koen Kooi

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Quoted 5 lines

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

I don't think TUNE is a distro thing. It is indeed a board setting and I expect every board to have a good know TUNE setting.

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#14 lore raw
In reply to Carlos Rafael Giani
Quoted 5 lines · Carlos Rafael Giani

Okay, I think I see the problem now. DEFAULTTUNES should not be set by the machine config. So, removing it
and fixing the README accordingly takes care of that. People who for example want hardfp then
set DEFAULTTUNE ?= "marvellpj4hf" in their local.conf . Is this correct?

You may provide a machine variant with has this set; so it will build a machine with this enabled.

Koen, would you be happy with it?

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

#15 lore raw
Quoted 10 lines · Otavio Salvador
Quoted 5 lines · Carlos Rafael Giani

Okay, I think I see the problem now. DEFAULTTUNES should not be set by the machine config. So, removing it
and fixing the README accordingly takes care of that. People who for example want hardfp then
set DEFAULTTUNE ?= "marvellpj4hf" in their local.conf . Is this correct?

You may provide a machine variant with has this set; so it will build a machine with this enabled.

I would say no. Weather to choose Hard float or not is more of a capability that machine exposes but distro decided the policy see how its done in angstrom for beagle board and beagle bone

Quoted 12 lines

Koen, would you be happy with it?

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#16 lore raw
Quoted 9 lines · Khem Raj
Quoted 7 lines · Otavio Salvador
Quoted 5 lines · Carlos Rafael Giani

Okay, I think I see the problem now. DEFAULTTUNES should not be set by the machine config. So, removing it
and fixing the README accordingly takes care of that. People who for example want hardfp then
set DEFAULTTUNE ?= "marvellpj4hf" in their local.conf . Is this correct?

Quoted 5 lines
Quoted 2 lines

You may provide a machine variant with has this set; so it will build a machine with this enabled.

I would say no. Weather to choose Hard float or not is more of a capability that machine exposes but distro decided the policy see how its done in angstrom for beagle board and beagle bone

You mean this file? https://github.com/Angstrom-distribution/meta-angstrom/blob/master/conf/distro/include/arm-defaults.inc

#17 lore raw

Yes that looks correct, you can also find this thread
http://patches.openembedded.org/patch/37055/ interesting (better on other archive, but linuxtogo is down now).

Unfortunately that RFC was rejected, so DISTROs have to hardcode list of supported MACHINEs and their defaulttunes, SHR does the same in:
https://github.com/shr-distribution/meta-smartphone/blob/shr/meta-shr/conf/distro/include/defaulttunes.inc

Quoted 34 lines · Carlos Rafael Giani
Quoted 14 lines · Khem Raj

On Apr 3, 2013, at 2:45 PM, Otavio Salvador <[email protected]> wrote:

On Wed, Apr 3, 2013 at 5:49 PM, Carlos Rafael Giani

Quoted 10 lines
Quoted 8 lines · <[email protected]> wrote:

Okay, I think I see the problem now. DEFAULTTUNES should not be set by the
machine config. So, removing it
and fixing the README accordingly takes care of that. People who for example
want hardfp then
set DEFAULTTUNE ?= "marvellpj4hf" in their local.conf . Is this correct?

Quoted 9 lines
Quoted 3 lines

You may provide a machine variant with has this set; so it will build a machine with this enabled.

I would say no. Weather to choose Hard float or not is more of a capability that machine exposes
but distro decided the policy see how its done in angstrom for beagle board and beagle bone

You mean this file? https://github.com/Angstrom-**
distribution/meta-angstrom/**blob/master/conf/distro/** include/arm-defaults.inc<https://github.com/Angstrom-distribution/meta-angstrom/blob/master/conf/distro/include/arm-defaults.inc>

______________________________**_________________
Openembedded-devel mailing list Openembedded-devel@lists.**openembedded.org<[email protected]>
http://lists.linuxtogo.org/**cgi-bin/mailman/listinfo/**openembedded-devel<http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel>

#18 lore raw
Quoted 4 lines · Martin Jansa

Yes that looks correct, you can also find this thread
http://patches.openembedded.org/patch/37055/ interesting (better on other archive, but linuxtogo is down now).

Quoted 9 lines

Unfortunately that RFC was rejected, so DISTROs have to hardcode list of supported MACHINEs and their defaulttunes, SHR does the same in:
https://github.com/shr-distribution/meta-smartphone/blob/shr/meta-shr/conf/distro/include/defaulttunes.inc

On Thu, Apr 4, 2013 at 12:29 AM, Carlos Rafael Giani <[email protected]>wrote:

Okay, I removed DEFAULTTUNE from the machine conf and updated the readme.

#20 lore raw
In reply to Otavio Salvador
Quoted 10 lines · Otavio Salvador
Quoted 9 lines · Philip Balister
Quoted 7 lines · Koen Kooi

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Quoted 8 lines
Quoted 5 lines

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

I don't think TUNE is a distro thing. It is indeed a board setting and I expect every board to have a good know TUNE setting.

The problem is if you are building for several machines, you may want to force the same tune settings for several machines that are different from what the BSP owner "declared" the default to be. Otherwise all packages become per machine.

Philip

Quoted 12 lines

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#22 lore raw
In reply to Otavio Salvador

Op 3 apr. 2013, om 23:43 heeft Otavio Salvador <[email protected]> het volgende geschreven:

Quoted 10 lines · Philip Balister
Quoted 9 lines · Koen Kooi
Quoted 7 lines

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Quoted 8 lines
Quoted 5 lines

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

I don't think TUNE is a distro thing. It is indeed a board setting and I expect every board to have a good know TUNE setting.

In OE classic it was called ARM_FLOAT_ABI, which shows it's a DISTRO thing. And furthermore, there is no real world performance difference between the default (softfp) and hardfloat.

#21 lore raw
In reply to Philip Balister

Op 4 apr. 2013, om 00:52 heeft Philip Balister <[email protected]> het volgende geschreven:

Quoted 17 lines · Otavio Salvador
Quoted 16 lines · Philip Balister
Quoted 14 lines · Koen Kooi
Quoted 7 lines

Op 03-04-13 18:50, Carlos Rafael Giani schreef:

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

This keeps coming up, but I do not see an answer that works for people creating BSP's that work with just oe-core and a BSP layer.

How are we supposed to set TUNE parameters for this case? And yes, this case *must* produce useful output.

Quoted 7 lines
Quoted 2 lines

I don't think TUNE is a distro thing. It is indeed a board setting and I expect every board to have a good know TUNE setting.

The problem is if you are building for several machines, you may want to force the same tune settings for several machines that are different from what the BSP owner "declared" the default to be. Otherwise all packages become per machine.

Let's not call it 'tune' settings, let's call it what it is: floatingpoint ABI.

Let's look at this sitation: I have 2 marvell armada 510 based boards, a cubox and a spherebox. I build bash for both machines, but the bash ipk from the one doesn't run on the other. That's a great first experience when using the BSP, existing software for that SoC doesn't work anymore.

Quoted 15 lines

Philip

Quoted 12 lines

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#23 lore raw
In reply to Carlos Rafael Giani
Quoted 8 lines · Carlos Rafael Giani

Hello,

I have created a BSP layer for the SolidRun Cubox platform. Informations about this device can be found athttp://solid-run.com/cubox . The layer itself is hosted athttps://github.com/dv1/meta-cubox .

This layer introduces a new machine, new tunes for the CuBox' Marvell PJ4 processor, in addition to the platform specific recipes for hardware video acceleration and EGL,OpenGL ES,OpenVG support. Both hardfp and softfp are supported. The 3D accelerator and the hardware accelerated video engine (called vMeta) require some closed source components. The recipes pick the right ones depending on whether softpfp or hardfp is used.

Quoted 8 lines

It also copies the generated uImage into the rootfs (as expected by the bootloader), and autogenerates a boot.scr out of an included boot script using uboot-mkimage. The resulting tarball is extracted on an SD card, and the device can be booted.

A new xorg driver and a customized xorg.conf are included.

I'm open to feedback, patches, suggestions.

Thanks

Hi,

nice work, but I wonder why the u-boot needs a boot.scr. Is it that old or can you switch it over to uEnv.txt so it is easier for people to change kernel cmdline and other u-boot config stuff.

Bye Henning

#8 lore raw
In reply to Carlos Rafael Giani

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 03-04-13 21:04, Carlos Rafael Giani schreef:

Quoted 10 lines · Koen Kooi
Quoted 1 line

So how is this different from https://github.com/naguirre/meta-cubox ?

I am in contact with the author of that layer. My work started as a fork of that, since the layer did not work for me, but since I anyway was changing pretty much all of it from the ground up, I decided to start my own. Now, covers more features of the CuBox, and supports both soft- and hardfp in all recipes.

Quoted 1 line
Quoted 9 lines
Quoted 4 lines

Just like https://github.com/naguirre/meta-cubox you're mixing DISTRO policy in the machine files by setting the tuning to hardfloat. Don't do that. If you want hardfloat, set that in your distro config, not in your machine config.

Do I understand it correctly that I should drop "marvellpj4hf" from
https://github.com/dv1/meta-cubox/blob/master/conf/machine/include/tune-marvell-pj4.inc

, or at least not set it as DEFAULTTUNE, not even with the ?= operation, and

Quoted 2 lines

just use "marvellpj4" instead ? Because it is the distros decision to add the "callconvention-hard" feature?

Exactly!

Quoted 5 lines

The reason I ask that is because when I was writing the tune, I stumbled upon
https://github.com/openembedded/oe-core/blob/master/meta/conf/machine/include/arm/arch-armv7a.inc

, which includes armv7a, armv7ahf . This confuses me. Why is it OK there to

Quoted 1 line

mix in the callconvention?

It isn't, that file just lists all the permutiations available.

Quoted 3 lines

Finally, is there a way to give a distro a "hint" about what is preferred for a machine (soft/hardfp)? One that the distro is free to ignore or respect?

There isn't, apart from a note in the README of your BSP.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFRXUucMkyGM64RGpERAlQFAKCpia9xhA+ldV8AdpH2F3GWAkptQwCgsCcd 2Tz5vaOMU9oX93XPNmAZE/E=
=fR8B
-----END PGP SIGNATURE-----

#24 lore raw
In reply to Henning Heinold
Quoted 11 lines · Henning Heinold

Hi,

nice work, but I wonder why the u-boot needs a boot.scr. Is it that old or can you switch it over to uEnv.txt so it is easier for people to change kernel cmdline and other u-boot config stuff.

Bye Henning

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

I agree this would be very useful. But with the CuBox, U-Boot is stored in internal flash, and is not read from the SD/MMC card, or hard drive, etc. To use an updated version, one has to flash it manually. This is also why U-Boot is not mentioned in the machine config.