From nobody Thu May 18 18:43:32 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QMf4j61Bdz4BtW3 for ; Thu, 18 May 2023 18:43:33 +0000 (UTC) (envelope-from rivers@dignus.com) Received: from dignus.com (adsl-065-013-223-202.sip.rdu.bellsouth.net [65.13.223.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "office.dignus.com", Issuer "office.dignus.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMf4j58xQz3QNn for ; Thu, 18 May 2023 18:43:33 +0000 (UTC) (envelope-from rivers@dignus.com) Authentication-Results: mx1.freebsd.org; none Received: from office.dignus.com (localhost [127.0.0.1]) by dignus.com (8.16.1/8.16.1) with ESMTPS id 34IIhWE1024977 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 18 May 2023 14:43:32 -0400 (EDT) (envelope-from rivers@office.dignus.com) X-Authentication-Warning: office.dignus.com: Host localhost [127.0.0.1] claimed to be office.dignus.com Received: (from rivers@localhost) by office.dignus.com (8.16.1/8.16.1/Submit) id 34IIhW5p024976; Thu, 18 May 2023 14:43:32 -0400 (EDT) (envelope-from rivers) Date: Thu, 18 May 2023 14:43:32 -0400 (EDT) From: Thomas David Rivers Message-Id: <202305181843.34IIhW5p024976@office.dignus.com> To: jfc@mit.edu, rivers@dignus.com Subject: Re: 32-bit executables on aarch64? Cc: freebsd-arm@freebsd.org In-Reply-To: <46BE47DA-9306-4682-8320-D2CBEB5918F7@mit.edu> X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on office.dignus.com X-Rspamd-Queue-Id: 4QMf4j58xQz3QNn X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7018, ipnet:65.13.220.0/22, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Thanks John! I've not messed around with all of this in some time... Everything has _really_ changed. Does anyone have a pointer to how to run QEMU for Armv7 and install the Tier 2 armv7 image? I found: http://ftp.freebsd.org/pub/FreeBSD/releases/arm/armv7/ISO-IMAGES/13.2/ which seems to have the install image... but I can't find any instructions on how to do an install... If someone has fired-up QEMU for this and happens to have the list-of-what-to-do, it would be terrific... otherwise I'll start stumbling through to see what I can figure out. - Thanks! - - Dave R. - > > I had to set up a jail to test 32 bit ARM on a 64 bit host. If you get past the link error, expect the program to fail at startup. > > $ file /bin/ls /usr/jail/armv7/bin/ls > /bin/ls: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.2 (1302505), FreeBSD-style, stripped > /usr/jail/armv7/bin/ls: ELF 32-bit LSB executable, ARM, EABI5 version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 13.2 (1302500), stripped > $ /usr/jail/armv7/bin/ls > ELF interpreter /libexec/ld-elf.so.1 not found, error 8 > Abort trap > > "Not found" means "is not a 32 bit executable." Because both 32 and 64 bit progams use the same intepreter pathname they can't both work. > -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com