TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: BOB PROHASKA
from: COMPUTER NERD KEV
date: 2020-12-12 06:35:00
subject: Re: Running a windows 7 f

bob prohaska  wrote:
> I'd like to try running a firmware updater for a USB hard drive enclosure.
> Supposedly TRIM can be enabled via the updater, but it requires Windows 7.
> The host is an 8GB Pi4 running 32bit RaspiOS. The updater is at
> https://www.sabrent.com/download/ec-uasp-update/
> It isn't entirely clear the updater is needed, but running it seems prudent.
>
> I've tried WINE, but it reports BAD FORMAT, I gather the result of the
> updater being written for i386 architechture.
>
> Is there any other way to proceed? I don't own any modern i386 hardware,
> nor a Win7 license and don't realy want to buy either. I do have an old
> Xeon box, but it probably doesn't have enough RAM to install Windows 7.
>
> The WINE version installed using apt reports
> wine --version
> wine-4.0 (Raspbian 4.0-2)
>
> Might a later version of WINE help, if it can be found and made to run on
> the Pi4?

No because WINE isn't a CPU emulator - it's a compatibility layer
that translates Windows API calls. If your program is compiled for
x86, you'll need something that can execute x86 instructions.

https://wiki.winehq.org/ARM

QEMU has some support for passing physical USB devices over to
software running in emulation:
https://qemu.readthedocs.io/en/latest/system/usb.html

Links for setting up x86 WINE on a Pi using QEMU are aplenty:
https://wiki.winehq.org/Emulation (see bottom for what you presumably
                                   had in mind originally)
https://sourceforge.net/projects/pi-qemu-wine/
https://www.novaspirit.com/2019/04/15/run-x86-arm/

--
__          __
#_ < |\| |< _#

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.