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=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 783F3C433F5 for ; Tue, 21 Sep 2021 20:42:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C68D60F6E for ; Tue, 21 Sep 2021 20:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234221AbhIUUoZ (ORCPT ); Tue, 21 Sep 2021 16:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbhIUUoZ (ORCPT ); Tue, 21 Sep 2021 16:44:25 -0400 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD93C061574 for ; Tue, 21 Sep 2021 13:42:56 -0700 (PDT) Received: by mail-il1-x129.google.com with SMTP id d11so216968ilc.8 for ; Tue, 21 Sep 2021 13:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=saxUeZkyfD8m3fLKWMGCvCKIEI/yO8iAXU931aRd5WU=; b=a72tCTH63AUXKla3GIb4KeGSIsIWtDIubA+z5EzCcwxLDDbfnCgdBjTJyUsDvcdQry DZJhI1zU83c96zRsUlhCrIvj0nW/+wM/r9UVJ174IDqNBdk125De1bw8QMcRG+mNMBKk lpEZV3vIRucuELPKJ3KLp9lByezvSKMgH5fPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=saxUeZkyfD8m3fLKWMGCvCKIEI/yO8iAXU931aRd5WU=; b=ITPEO9Vkqy/5p8yMk4U9Xi8VmYMPxWis9tC70LQ+Mb3IXmyqT46j+uHhcaUoF5Twym LfJyZmwEbDTBpk31HrmuV8u/clhEDVG6kkt+DvvwAX6vhP01zhzpgk9WBff+Bv5XYtZZ XfL4WaZN6zLHelnmmR8xD2MxKxFz5LZ0Zc4uFBLgmEjsGGtAo1RZCmzeEorAmi5RaEG4 u/GxD++ndKko9P8hYD6BHPjDsGAVPyRBiMhzTk/D4LeO4oWTbVamWBXYciYl06TPIfF3 LRaQdK0iDfJu+tZu69X+zLtakaHbrnzZDzopepV9Ayi0EQsPq838ae1oR6AR9B7xTxBK r2qw== X-Gm-Message-State: AOAM533eWHAQ/OyO4DdxFAwYbacLJ5hd8ghFzgBG5oxcENCTyu7oBPiQ HEWS3NFrIg1yjCVz1vOrZP3J8G03giv/eEHzbwg= X-Google-Smtp-Source: ABdhPJwfeUY6XeHTXyOKvKA74pqH01Z1grpfWYAD9zHtUHmAqXovJZOm1vWMdQSakjQLzVuO9n240Q== X-Received: by 2002:a92:c0c4:: with SMTP id t4mr23499589ilf.235.1632256975803; Tue, 21 Sep 2021 13:42:55 -0700 (PDT) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com. [209.85.166.48]) by smtp.gmail.com with ESMTPSA id y30sm53403iox.54.2021.09.21.13.42.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 13:42:55 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id q205so371400iod.8 for ; Tue, 21 Sep 2021 13:42:55 -0700 (PDT) X-Received: by 2002:a05:6638:1b2:: with SMTP id b18mr1732593jaq.95.1632256974780; Tue, 21 Sep 2021 13:42:54 -0700 (PDT) MIME-Version: 1.0 References: <202109211913.18LJDnXp031134@valdese.nms.ulrich-teichert.org> In-Reply-To: <202109211913.18LJDnXp031134@valdese.nms.ulrich-teichert.org> From: Linus Torvalds Date: Tue, 21 Sep 2021 13:42:38 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/4] Introduce and use absolute_pointer macro To: Ulrich Teichert Cc: Michael Cree , Guenter Roeck , Richard Henderson , Ivan Kokshaysky , Matt Turner , "James E . J . Bottomley" , Helge Deller , "David S . Miller" , Jakub Kicinski , alpha , Geert Uytterhoeven , Linux Kernel Mailing List , linux-parisc , Netdev , Sparse Mailing-list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org On Tue, Sep 21, 2021 at 12:14 PM Ulrich Teichert wrote: > > Right, I had DEBUG_INFO set. Stupid me. Now it looks much better: > > valdese:~/soft/linux/kernel-git> ls -lh arch/alpha/boot/vmlinux* > -rwxr-xr-x 1 ut ut 6.4M Sep 21 18:12 arch/alpha/boot/vmlinux* > -rw-r--r-- 1 ut ut 3.0M Sep 21 18:12 arch/alpha/boot/vmlinux.gz > > But it still dies before the first message from the kernel shows up. Ok. That's a nasty situation to debug, and it's where things like "git bisect" are really useful just to narrow things down. ... which isn't an option here. Too bad. I also assume thete is no virtual environment that looks like a Jensen that would help debug this. Which all makes it a bit nasty to try to even guess at what goes wrong. > I don't think I have to do something special with the > compressed image and according to https://tldp.org/HOWTO/SRM-HOWTO/aboot.= html > I don't have to. Yeah, it's more than two decades since I used an alpha, so I'm afraid I can't help outside of the "let's make it compile again" thing. It could easily be that the Jensen required that SRM bootimage, but it's so long ago that I really don't remember at all. > I would try the SRM bootimage (make bootimage), but the build is broken: Well, that looks like something that should be fixed, and that I might look= at. > arch/alpha/boot/tools/objstrip.c:191:52: warning: format =E2=80=98%lx=E2= =80=99 expects argument of type =E2=80=98long unsigned int=E2=80=99, but ar= gument 5 has type =E2=80=98long long unsigned int=E2=80=99 [-Wformat=3D] > fprintf(stderr, "%s: extracting %#016lx-%#016lx (at %lx)\n", > ^ > arch/alpha/boot/tools/objstrip.c:200:12: error: =E2=80=98struct exec=E2= =80=99 has no member named =E2=80=98fh=E2=80=99 > if (!(aout->fh.f_flags & COFF_F_EXEC)) { This looks like the "make bootimage" thing was never designed to work in a cross-build environment. I think. Because it looks like what happens is that when you cross-compile, it gets the x86-64 'struct exec', and then everything goes sideways. > Was that the target used to get bootable CDROMs? Could that be broken sin= ce > the move from aout to ELF? Ugh, sorry for raising so much trouble, No, this is lovely. It would be really nice to get that Jensen target working, if only because of silly historical reasons. I'll see if I can get around to this. Linus