On 07/19 07:51, Jorge Almeida wrote:
> On Wed, Jul 19, 2017 at 7:25 PM,  <[email protected]> wrote:
> > On 07/19 06:57, Jorge Almeida wrote:
> >> On Wed, Jul 19, 2017 at 6:40 PM,  <[email protected]> wrote:
> >>
> >> >
> >> > the tool is statically linked and only the command "file"
> >> > reveals its 32bit nature.
> >> >
> >> If the tool is a static binary, you shouldn't need anything besides a
> >> kernel with support for 32 bit executables (Executable file formats /
> >> Emulations  --->  x32 ABI for 64-bit mode)
> >>
> 
> >
> > Hi,
> >
> > the linux32-trick is neat...but it seems a little more to be done
> > here.
> >
> > I straced the whole thing:
> > sudo strace linux32 ./pirate-loader_lnx
> 
> Did you check that your kernel supports 32 bit executables? If so,
> what happens when you run "./pirate-loader_lnx"? And what about
> "strace ./pirate-loader_lnx"? The output of strace you listed shows
> that something is missing, but is it required by ./pirate-loader_lnx
> or just by linux32 itself?

The kernel config says:

#
# Executable file formats / Emulations
#
CONFIG_BINFMT_ELF=y
CONFIG_COMPAT_BINFMT_ELF=y
CONFIG_ELFCORE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
CONFIG_BINFMT_MISC=y
CONFIG_COREDUMP=y
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y
CONFIG_X86_X32=y
CONFIG_COMPAT_32=y
CONFIG_COMPAT=y
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_KEYS_COMPAT=y
CONFIG_X86_DEV_DMA_OPS=y
CONFIG_NET=y
CONFIG_COMPAT_NETLINK_MESSAGES=y
CONFIG_NET_INGRESS=y

All combinations of sudo / strace in conjunction with
pirate_loader_lnx and the lack the one or the other
state the same:
#>./pirate-loader_lnx 
zsh: no such file or directory: ./pirate-loader_lnx
[1]    4125 exit 127   ./pirate-loader_lnx

Since pirate_loader_lnx alone also gives the same error
message, it is pirate_loader_lnx which misses someting.

> 
> >
> > Why does the task of flashing firmware walk hand in hand with mental 
> > illness so
> > near at the abyss of bricked hardware that often ?
> Crappy software made by professionals (alt.: smart-assed sw made by
> the vendor's underpaid, or overpaid, hirelings)
 
Sorry to say, but the Bus pirate, its software and its firmware are
open source/open hardware.
I dare to rebuild the flasher...I dont know what will happen, if
a 32 bit could, which acts on such a low level gets compiled on 64
instead of 32 bit. I dont want to risk my swiss army kni....sorry...
want to say: ...to risk my Bus Pirate...
Cheers
Meino




> J.A.
> 

Reply via email to