From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B9E2C433ED for ; Thu, 1 Apr 2021 18:24:27 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E723B60201 for ; Thu, 1 Apr 2021 18:24:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E723B60201 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lS1zT-00054F-VG for kernelnewbies@archiver.kernel.org; Thu, 01 Apr 2021 14:24:23 -0400 Received: from mail.kernel.org ([198.145.29.99]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lQy9R-0001Mh-7r for kernelnewbies@kernelnewbies.org; Mon, 29 Mar 2021 16:06:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08D5061959 for ; Mon, 29 Mar 2021 20:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617048375; bh=lgDPeJMqjCmjbhaBvOeuRieB3PN5e/TDtj8+5tp48vo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uwi1QCJzG4Vp4YCRSv5W7XFGZLTpg6chpLx0soD1jzQmtYDTYxHw3cvN54ZTpi97R 3XGWIbmgjRkvr8lvBF0ukwg5PPM1Ma9LboN0+/3OrIK+UZUzroAqJy/gNb1XItTr46 U/aL0qcNLApt5GXZ672Qa72o9k9uAzGnCdVDUgXRSj7w8xmsRAePk4SRPJXFFGTW4A f5QRCcKqU5pepjD5irWP3kSoNv1Lwk9CYKzFoou2/aFgTHtarx0uagKPJndaEL8zhR kc2m//+bBYSaz2LYDeKLZRJe0dg2I/+eLS77mTeGyPNgja0yot1nU0++ETaeKi1CEy Xvb5AxIYnKY9A== Received: by mail-oo1-f53.google.com with SMTP id q127-20020a4a33850000b02901b646aa81b1so3248383ooq.8 for ; Mon, 29 Mar 2021 13:06:15 -0700 (PDT) X-Gm-Message-State: AOAM532FDSTbDcne8+w058vk5XsOqzPbjNe9GN5n8Y5AoxMuqikapsAS dx6TBAQp9PVaTb2hjU+B2PFLJLb2DRdD2GzReyc= X-Google-Smtp-Source: ABdhPJyQvabMoKjf8AEqY6tMhe2VJ3yx2jyDzz56QCFu1dRyBpkiE4j33XCtV/PH3UwLaLjHzgjbx3o4aO2aFW3BV+A= X-Received: by 2002:a4a:e9a2:: with SMTP id t2mr22518548ood.15.1617048374402; Mon, 29 Mar 2021 13:06:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Mon, 29 Mar 2021 22:06:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Compiling kernel-3.4.xxx with gcc-9.x. Need some help. To: Fawad Lateef X-Mailman-Approved-At: Thu, 01 Apr 2021 14:22:36 -0400 Cc: Greg KH , Linux Kernel Mailing List , kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On Mon, Mar 29, 2021 at 9:23 PM Fawad Lateef wrote: > > On Mon, 29 Mar 2021 at 06:57, Greg KH wrote: > > > > On Sun, Mar 28, 2021 at 10:20:50PM +0200, Fawad Lateef wrote: > > > Hi > > > > > > I am using an Olimex A20 SOM with NAND and due to some binary blob for > > > NAND driver, I am stuck with the sunxi kernel 3.4.xxx version. (Repo > > > here: https://github.com/linux-sunxi/linux-sunxi) > > > > Please work with the vendor that is forcing you to use this obsolete and > > insecure kernel version. You are paying for that support, and they are > > the only ones that can support you. > > > > The problem is vendor Olimex now have eMMC based SOM which is > supported by mainline kernel _but_ they still selling NAND SOM and > only supporting 3.4 kernel (as this is the only latest version from > sunxi with NAND support, after that sunxi is now moved away from NAND > too). >From a very quick look at the git history, I can tell that A20 NAND driver support was added in linux-4.8. Have you actually tried a modern kernel? There is also a howto document at https://linux-sunxi.org/Mainline_NAND_Howto The olimex board specific dts files seem to be missing the entry for the nand controller. If you have trouble figuring out how to enable that from the howto above, Olimex should be able to prove a small patch for it. > > > I am currently using buildroot-2016 and gcc-5.5 for building the > > > kernel and every other package needed. > > > > > > Now the requirement is to move to the latest version of gcc-9.x, so > > > that we can have glibc++ provided by the gcc-9.1 toolchain. > > > > > > Main problem for moving to later versions of buildroot is the kernel > > > 3.4 which we couldn't to work with gcc-6 a few years ago _but_ now the > > > gcc-9.1 requirement is mandatory so now have to look into compiling > > > linux-3.4 with gcc-9.1 or above. There is no need to compile user space and kernel with the same compiler. Arnd _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies