Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] systemd: work around the boot problem on qemuarm64
@ 2016-01-22  2:02 Chen Qi
  2016-01-22  2:02 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 7+ messages in thread
From: Chen Qi @ 2016-01-22  2:02 UTC (permalink / raw)
  To: openembedded-core

The problem is that systemd based systems cannot boot on qemuarm64.

The patch is a workaround and I hope people who have more knowledge in this area
come up with a better fix.

The following changes since commit 8084c185c43cb7e7f5e29d31939dfd308f8a0f93:

  udev: Add 2 patches to support 4.4 kernel (2016-01-20 09:20:06 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/systemd-qemuarm64
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/systemd-qemuarm64

Chen Qi (1):
  systemd: work around the boot problem on qemuarm64

 meta/recipes-core/systemd/systemd_228.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
1.9.1



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

* [PATCH 1/1] systemd: work around the boot problem on qemuarm64
  2016-01-22  2:02 [PATCH 0/1] systemd: work around the boot problem on qemuarm64 Chen Qi
@ 2016-01-22  2:02 ` Chen Qi
  2016-01-23  4:52   ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Chen Qi @ 2016-01-22  2:02 UTC (permalink / raw)
  To: openembedded-core

This is a workaround to make qemuarm64 boot for systemd systems.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/systemd/systemd_228.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/systemd/systemd_228.bb b/meta/recipes-core/systemd/systemd_228.bb
index aa2e846..3bc5927 100644
--- a/meta/recipes-core/systemd/systemd_228.bb
+++ b/meta/recipes-core/systemd/systemd_228.bb
@@ -133,6 +133,7 @@ EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname --disable-sysusers"
 
 # per the systemd README, define VALGRIND=1 to run under valgrind
 CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', '', d)}"
+CFLAGS_append_qemuarm64 = " -O1"
 
 # disable problematic GCC 5.2 optimizations [YOCTO #8291]
 FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"
-- 
1.9.1



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

* Re: [PATCH 1/1] systemd: work around the boot problem on qemuarm64
  2016-01-22  2:02 ` [PATCH 1/1] " Chen Qi
@ 2016-01-23  4:52   ` Khem Raj
  2016-01-23  9:39     ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2016-01-23  4:52 UTC (permalink / raw)
  To: Chen Qi; +Cc: Patches and discussions about the oe-core layer

On Thu, Jan 21, 2016 at 6:02 PM, Chen Qi <Qi.Chen@windriver.com> wrote:
> This is a workaround to make qemuarm64 boot for systemd systems.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>  meta/recipes-core/systemd/systemd_228.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-core/systemd/systemd_228.bb b/meta/recipes-core/systemd/systemd_228.bb
> index aa2e846..3bc5927 100644
> --- a/meta/recipes-core/systemd/systemd_228.bb
> +++ b/meta/recipes-core/systemd/systemd_228.bb
> @@ -133,6 +133,7 @@ EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname --disable-sysusers"
>
>  # per the systemd README, define VALGRIND=1 to run under valgrind
>  CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', '', d)}"
> +CFLAGS_append_qemuarm64 = " -O1"

This is general aarch64 problem, so make this across all aarch64
this is the original problem

https://github.com/systemd/systemd/pull/1190#issuecomment-166294683

>
>  # disable problematic GCC 5.2 optimizations [YOCTO #8291]
>  FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH 1/1] systemd: work around the boot problem on qemuarm64
  2016-01-23  4:52   ` Khem Raj
@ 2016-01-23  9:39     ` Burton, Ross
  2016-01-23 14:03       ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2016-01-23  9:39 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

On 23 January 2016 at 04:52, Khem Raj <raj.khem@gmail.com> wrote:

> This is general aarch64 problem, so make this across all aarch64
> this is the original problem
>
> https://github.com/systemd/systemd/pull/1190#issuecomment-166294683
>

And according to that link, is a binutils problem.  Can't we just fix that
instead?

Ross

[-- Attachment #2: Type: text/html, Size: 870 bytes --]

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

* Re: [PATCH 1/1] systemd: work around the boot problem on qemuarm64
  2016-01-23  9:39     ` Burton, Ross
@ 2016-01-23 14:03       ` Khem Raj
  2016-01-25  9:22         ` ChenQi
  2016-01-26  9:43         ` ChenQi
  0 siblings, 2 replies; 7+ messages in thread
From: Khem Raj @ 2016-01-23 14:03 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On Sat, Jan 23, 2016 at 1:39 AM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 23 January 2016 at 04:52, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> This is general aarch64 problem, so make this across all aarch64
>> this is the original problem
>>
>> https://github.com/systemd/systemd/pull/1190#issuecomment-166294683
>
>
> And according to that link, is a binutils problem.  Can't we just fix that
> instead?
>

We can. May be try out the binutils patches I posted and see if that fixes it
https://github.com/kraj/openembedded-core/tree/kraj/binutils-2.26


> Ross


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

* Re: [PATCH 1/1] systemd: work around the boot problem on qemuarm64
  2016-01-23 14:03       ` Khem Raj
@ 2016-01-25  9:22         ` ChenQi
  2016-01-26  9:43         ` ChenQi
  1 sibling, 0 replies; 7+ messages in thread
From: ChenQi @ 2016-01-25  9:22 UTC (permalink / raw)
  To: Khem Raj, Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On 01/23/2016 10:03 PM, Khem Raj wrote:
> On Sat, Jan 23, 2016 at 1:39 AM, Burton, Ross <ross.burton@intel.com> wrote:
>> On 23 January 2016 at 04:52, Khem Raj <raj.khem@gmail.com> wrote:
>>> This is general aarch64 problem, so make this across all aarch64
>>> this is the original problem
>>>
>>> https://github.com/systemd/systemd/pull/1190#issuecomment-166294683
>>
>> And according to that link, is a binutils problem.  Can't we just fix that
>> instead?
>>
> We can. May be try out the binutils patches I posted and see if that fixes it
> https://github.com/kraj/openembedded-core/tree/kraj/binutils-2.26
>
>
>> Ross
>

Thanks all !
I'll try it out ASAP.

Regards,
Chen Qi


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

* Re: [PATCH 1/1] systemd: work around the boot problem on qemuarm64
  2016-01-23 14:03       ` Khem Raj
  2016-01-25  9:22         ` ChenQi
@ 2016-01-26  9:43         ` ChenQi
  1 sibling, 0 replies; 7+ messages in thread
From: ChenQi @ 2016-01-26  9:43 UTC (permalink / raw)
  To: Khem Raj, Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On 01/23/2016 10:03 PM, Khem Raj wrote:
> On Sat, Jan 23, 2016 at 1:39 AM, Burton, Ross <ross.burton@intel.com> wrote:
>> On 23 January 2016 at 04:52, Khem Raj <raj.khem@gmail.com> wrote:
>>> This is general aarch64 problem, so make this across all aarch64
>>> this is the original problem
>>>
>>> https://github.com/systemd/systemd/pull/1190#issuecomment-166294683
>>
>> And according to that link, is a binutils problem.  Can't we just fix that
>> instead?
>>
> We can. May be try out the binutils patches I posted and see if that fixes it
> https://github.com/kraj/openembedded-core/tree/kraj/binutils-2.26
>
>
>> Ross
>

Hi Khem and Ross,

I've verified the patch above does fix the systemd qemuarm64 problem.
Thanks all :)

Best Regards,
Chen Qi


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

end of thread, other threads:[~2016-01-26  9:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22  2:02 [PATCH 0/1] systemd: work around the boot problem on qemuarm64 Chen Qi
2016-01-22  2:02 ` [PATCH 1/1] " Chen Qi
2016-01-23  4:52   ` Khem Raj
2016-01-23  9:39     ` Burton, Ross
2016-01-23 14:03       ` Khem Raj
2016-01-25  9:22         ` ChenQi
2016-01-26  9:43         ` ChenQi

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