Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2023 14:43:32 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        jfc@mit.edu, rivers@dignus.com
Cc:        freebsd-arm@freebsd.org
Subject:   Re: 32-bit executables on aarch64?
Message-ID:  <202305181843.34IIhW5p024976@office.dignus.com>
In-Reply-To: <46BE47DA-9306-4682-8320-D2CBEB5918F7@mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305181843.34IIhW5p024976>