From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id F05AF3857B82 for ; Wed, 1 Jun 2022 19:40:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F05AF3857B82 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-f2a4c51c45so4054913fac.9 for ; Wed, 01 Jun 2022 12:40:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=0t79adbAguC0X+ky4adzLb43gIlCPsuetWLP3dnFRgw=; b=lVdHyyrfPJSpIKI74+WIwRFfI9kL+8ey9NlV/unbTdbO7u3Fe7sacCbB/kypKfJj5N hoDns3vbCd0pm8UtBFtsAH0RZ3H8wUG7DZa9XxqqqwjNdFLB2BFaiA7L9UhfEUQgHL9e rP+rQ037F2jKyJlAoGzGjv+1gWSkIg2LeRh/k7mbkEIDFRxu7aoPx8MonSJqxchrLf3Z 7J5V+Ygr1mb3JR23C82TImRREYqwjko0g02Hl6XbE7XK5FmGkQ5fIaHbkukhNjWo2AaK dpYI9n/jR8B0J2tNkoV0rYEjZYVwQGy8ZO+ggecb4lTe5w2GqkBPuqLxoT7UGTu90a66 az6g== X-Gm-Message-State: AOAM532FkXiWvoYXNg9vD5QndJTG3qfrXSHLWWW/c1EztdQ29rBLU1+K JsykFTsiGNkAJHexWff9Jtnmysj8il1I0Q== X-Google-Smtp-Source: ABdhPJzhxAJwWmBOihVvM2Y7K7u3CjXnE1EwECZB43d6x+jqHb/jzTTPBl4WAqptO7wRFx+zJmEbcg== X-Received: by 2002:a05:6870:630a:b0:e2:f8bb:5ec with SMTP id s10-20020a056870630a00b000e2f8bb05ecmr631524oao.171.1654112440250; Wed, 01 Jun 2022 12:40:40 -0700 (PDT) Received: from ?IPV6:2804:431:c7ca:e39c:a183:7f80:9e50:177b? ([2804:431:c7ca:e39c:a183:7f80:9e50:177b]) by smtp.gmail.com with ESMTPSA id u187-20020acaabc4000000b0032b7c4ead49sm1364005oie.18.2022.06.01.12.40.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jun 2022 12:40:39 -0700 (PDT) Message-ID: <198a8b67-bc76-b781-95e1-794feb4c3d07@linaro.org> Date: Wed, 1 Jun 2022 16:40:37 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: glibc with kernel-4.14 headers on riscv Content-Language: en-US To: Abhishek Kumar , "libc-help@sourceware.org" References: <87o80nj76w.fsf@oldenburg.str.redhat.com> From: Adhemerval Zanella In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2022 19:40:42 -0000 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 > Sent: 27 April 2022 13:20 > To: Abhishek Kumar > Cc: 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]