public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* glibc with kernel-4.14 headers on riscv
@ 2022-04-27  7:11 Abhishek Kumar
  2022-04-27  7:50 ` Florian Weimer
  0 siblings, 1 reply; 6+ messages in thread
From: Abhishek Kumar @ 2022-04-27  7:11 UTC (permalink / raw)
  To: libc-help

Hi ,

I am woking on kernel-4.14 to give support for riscv (fu540 plateform) ,I am using glibc2.27 for my kernel after build the kernel when booting it at boot time it is giving me error "FATAL: kernel too old",
so please suggest me which glibc version I should  use for my kernel-4.14 so that it will be compatible for riscv.
bellow is the error I am getting at boot time.

[    1.106608] This architecture does not have kernel memory protection.
FATAL: kernel too old
[    1.182177] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    1.182177]
[    1.191211] CPU: 2 PID: 1 Comm: init Tainted: G        W       4.14.155-riscv #1
[    1.198584] Call Trace:
[    1.201032] [<ffffffe000027c6e>] walk_stackframe+0x0/0xa2
[    1.206403] [<ffffffe000027dac>] show_stack+0x26/0x34
[    1.211445] [<ffffffe00033cc9a>] dump_stack+0x66/0x84
[    1.216475] [<ffffffe00002b186>] panic+0xca/0x1de
[    1.221163] [<ffffffe00002d976>] do_exit+0x734/0x738
[    1.226111] [<ffffffe00002d9d0>] do_group_exit+0x26/0x82
[    1.231407] [<ffffffe00002da40>] SyS_exit_group+0x14/0x18
[    1.236792] [<ffffffe000026cb4>] check_syscall_nr+0x1e/0x22


please try to give some suggestions.

Thanks
Abhishek

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

* Re: glibc with kernel-4.14 headers on riscv
  2022-04-27  7:11 glibc with kernel-4.14 headers on riscv Abhishek Kumar
@ 2022-04-27  7:50 ` Florian Weimer
  2022-04-27 18:55   ` Adhemerval Zanella
  2022-05-27  8:54   ` Abhishek Kumar
  0 siblings, 2 replies; 6+ messages in thread
From: Florian Weimer @ 2022-04-27  7:50 UTC (permalink / raw)
  To: Abhishek Kumar; +Cc: libc-help

* Abhishek Kumar:

> I am woking on kernel-4.14 to give support for riscv (fu540 plateform)
> ,I am using glibc2.27 for my kernel after build the kernel when
> booting it at boot time it is giving me error "FATAL: kernel too old",
> so please suggest me which glibc version I should use for my
> kernel-4.14 so that it will be compatible for riscv.

Kernel support was added to mainline Linux in version 4.15, so that's
the baseline that glibc supports.  You'll either have to use a mainline
kernel, or port glibc to the custom kernel.

Thanks,
Florian


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

* Re: glibc with kernel-4.14 headers on riscv
  2022-04-27  7:50 ` Florian Weimer
@ 2022-04-27 18:55   ` Adhemerval Zanella
  2022-05-27  8:54   ` Abhishek Kumar
  1 sibling, 0 replies; 6+ messages in thread
From: Adhemerval Zanella @ 2022-04-27 18:55 UTC (permalink / raw)
  To: Florian Weimer, Abhishek Kumar; +Cc: libc-help



On 27/04/2022 04:50, Florian Weimer via Libc-help wrote:
> * Abhishek Kumar:
> 
>> I am woking on kernel-4.14 to give support for riscv (fu540 plateform)
>> ,I am using glibc2.27 for my kernel after build the kernel when
>> booting it at boot time it is giving me error "FATAL: kernel too old",
>> so please suggest me which glibc version I should use for my
>> kernel-4.14 so that it will be compatible for riscv.
> 
> Kernel support was added to mainline Linux in version 4.15, so that's
> the baseline that glibc supports.  You'll either have to use a mainline
> kernel, or port glibc to the custom kernel.

The idea is also to remove these kernel checks for glibc 2.36 [1].

[1] https://patchwork.sourceware.org/project/glibc/list/?series=7675

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

* Re: glibc with kernel-4.14 headers on riscv
  2022-04-27  7:50 ` Florian Weimer
  2022-04-27 18:55   ` Adhemerval Zanella
@ 2022-05-27  8:54   ` Abhishek Kumar
  2022-06-01 19:40     ` Adhemerval Zanella
  1 sibling, 1 reply; 6+ messages in thread
From: Abhishek Kumar @ 2022-05-27  8:54 UTC (permalink / raw)
  To: libc-help


I want to port glibc for my custome kernel-4.14 for riscv64 but I want to get some Idea which files I need to change in glibc side so that I can start and try, please guide me.

Thanks
Abhishek Kumar
________________________________
From: Florian Weimer <fweimer@redhat.com>
Sent: 27 April 2022 13:20
To: Abhishek Kumar <Abhishek.kumar@exaleapsemi.com>
Cc: libc-help@sourceware.org <libc-help@sourceware.org>
Subject: Re: glibc with kernel-4.14 headers on riscv

* Abhishek Kumar:

> I am woking on kernel-4.14 to give support for riscv (fu540 plateform)
> ,I am using glibc2.27 for my kernel after build the kernel when
> booting it at boot time it is giving me error "FATAL: kernel too old",
> so please suggest me which glibc version I should use for my
> kernel-4.14 so that it will be compatible for riscv.

Kernel support was added to mainline Linux in version 4.15, so that's
the baseline that glibc supports.  You'll either have to use a mainline
kernel, or port glibc to the custom kernel.

Thanks,
Florian

[EXT]

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

* Re: glibc with kernel-4.14 headers on riscv
  2022-05-27  8:54   ` Abhishek Kumar
@ 2022-06-01 19:40     ` Adhemerval Zanella
  2022-06-01 20:56       ` Dorian ROSSE
  0 siblings, 1 reply; 6+ messages in thread
From: Adhemerval Zanella @ 2022-06-01 19:40 UTC (permalink / raw)
  To: Abhishek Kumar, libc-help



On 27/05/2022 05:54, Abhishek Kumar wrote:
> 
> I want to port glibc for my custome kernel-4.14 for riscv64 but I want to get some Idea which files I need to change in glibc side so that I can start and try, please guide me.
> 

Now that master does not have the kernel check, you can just use the next
2.36 release or backport to the version you want.  The commits are:

b46d250656794e63a2946c481fda29271342dd1a (Remove kernel version check)

c628c2296392ed3bf2cb8d8470668e64fe53389f (elf: Remove ldconfig kernel version check)

d2db60d8d830ef68c8d20a77ac3572d610aa40b1 (Remove dl-librecon.h header.)

Although you probably would only need b46d250656794e63a2946c481fda29271342dd1a.

> Thanks
> Abhishek Kumar
> ________________________________
> From: Florian Weimer <fweimer@redhat.com>
> Sent: 27 April 2022 13:20
> To: Abhishek Kumar <Abhishek.kumar@exaleapsemi.com>
> Cc: libc-help@sourceware.org <libc-help@sourceware.org>
> Subject: Re: glibc with kernel-4.14 headers on riscv
> 
> * Abhishek Kumar:
> 
>> I am woking on kernel-4.14 to give support for riscv (fu540 plateform)
>> ,I am using glibc2.27 for my kernel after build the kernel when
>> booting it at boot time it is giving me error "FATAL: kernel too old",
>> so please suggest me which glibc version I should use for my
>> kernel-4.14 so that it will be compatible for riscv.
> 
> Kernel support was added to mainline Linux in version 4.15, so that's
> the baseline that glibc supports.  You'll either have to use a mainline
> kernel, or port glibc to the custom kernel.
> 
> Thanks,
> Florian
> 
> [EXT]

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

* Re: glibc with kernel-4.14 headers on riscv
  2022-06-01 19:40     ` Adhemerval Zanella
@ 2022-06-01 20:56       ` Dorian ROSSE
  0 siblings, 0 replies; 6+ messages in thread
From: Dorian ROSSE @ 2022-06-01 20:56 UTC (permalink / raw)
  To: Adhemerval Zanella, Abhishek Kumar, libc-help

Dear worker IT,


I wait again a good tutorial for glibc,

I need it for systemd 251,

Each time I read the documentation glibc I fall on to problems after,

Thanks you in advance for your answer (I use this system only the weekend),

Have a nice night from the France it is twenty three to four here,

Regards.


Dorian Rosse.
________________________________
From: Libc-help <libc-help-bounces+dorianbrice=hotmail.fr@sourceware.org> on behalf of Adhemerval Zanella via Libc-help <libc-help@sourceware.org>
Sent: Wednesday, June 1, 2022 9:40:37 PM
To: Abhishek Kumar <Abhishek.kumar@exaleapsemi.com>; libc-help@sourceware.org <libc-help@sourceware.org>
Subject: Re: glibc with kernel-4.14 headers on riscv



On 27/05/2022 05:54, Abhishek Kumar wrote:
>
> I want to port glibc for my custome kernel-4.14 for riscv64 but I want to get some Idea which files I need to change in glibc side so that I can start and try, please guide me.
>

Now that master does not have the kernel check, you can just use the next
2.36 release or backport to the version you want.  The commits are:

b46d250656794e63a2946c481fda29271342dd1a (Remove kernel version check)

c628c2296392ed3bf2cb8d8470668e64fe53389f (elf: Remove ldconfig kernel version check)

d2db60d8d830ef68c8d20a77ac3572d610aa40b1 (Remove dl-librecon.h header.)

Although you probably would only need b46d250656794e63a2946c481fda29271342dd1a.

> Thanks
> Abhishek Kumar
> ________________________________
> From: Florian Weimer <fweimer@redhat.com>
> Sent: 27 April 2022 13:20
> To: Abhishek Kumar <Abhishek.kumar@exaleapsemi.com>
> Cc: libc-help@sourceware.org <libc-help@sourceware.org>
> Subject: Re: glibc with kernel-4.14 headers on riscv
>
> * Abhishek Kumar:
>
>> I am woking on kernel-4.14 to give support for riscv (fu540 plateform)
>> ,I am using glibc2.27 for my kernel after build the kernel when
>> booting it at boot time it is giving me error "FATAL: kernel too old",
>> so please suggest me which glibc version I should use for my
>> kernel-4.14 so that it will be compatible for riscv.
>
> Kernel support was added to mainline Linux in version 4.15, so that's
> the baseline that glibc supports.  You'll either have to use a mainline
> kernel, or port glibc to the custom kernel.
>
> Thanks,
> Florian
>
> [EXT]

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

end of thread, other threads:[~2022-06-01 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27  7:11 glibc with kernel-4.14 headers on riscv Abhishek Kumar
2022-04-27  7:50 ` Florian Weimer
2022-04-27 18:55   ` Adhemerval Zanella
2022-05-27  8:54   ` Abhishek Kumar
2022-06-01 19:40     ` Adhemerval Zanella
2022-06-01 20:56       ` Dorian ROSSE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).