Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11253 closed task (no_response)

UML binaries are for 64bits only

Reported by: zoobab Owned by: developers
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

I have downloaded those 2 files:

http://downloads.openwrt.org/snapshots/trunk/uml/openwrt-uml-ext4.img
http://downloads.openwrt.org/snapshots/trunk/uml/openwrt-uml-vmlinux

I tried to launch the openwrt binary, and it failed:

root@gierek /home/zoobab/soft/uml [1]# ./openwrt-uml-vmlinux ubd0=openwrt-uml-ext4.img con=null ssl=null ssl0=fd:0,fd:1 con0=null,fd:2 init=/etc/preinit
bash: ./openwrt-uml-vmlinux: cannot execute binary file

I found out that the binary for amd64:

root@gierek /home/zoobab/soft/uml [4]# file openwrt-uml-vmlinux
openwrt-uml-vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.15, not stripped

Would it be possible to produce 2 targets, uml64 and uml32?

Attachments (0)

Change History (7)

comment:1 follow-up: Changed 6 years ago by florian

  • Resolution set to wontfix
  • Status changed from new to closed

UML is tightly coupled with the host running it, so I would suggest installing a 32-bits virtual machine if you need 32-bits UML binaries.

comment:2 in reply to: ↑ 1 Changed 6 years ago by zoobab

Replying to florian:

UML is tightly coupled with the host running it, so I would suggest installing a 32-bits virtual machine if you need 32-bits UML binaries.

If I want to use UML, it is because I don't want to have the heavyload of emulating a complete machine, like it is with a virtual machine.

My machine is an Asus eeepc with an atom processor.

I will write some patches to make two other targets.

comment:3 Changed 6 years ago by jow

UML will inherit the architecture of its build system. As long as we do not have any 32 bit builders, we will have no 32bit UML builds either.

comment:4 Changed 6 years ago by anonymous

  • Resolution wontfix deleted
  • Status changed from closed to reopened

"UML will inherit the architecture of its build system"

That's your decision, I do not see any reason why a 64bits host should not be able to cross-compile to an 32bits target.

comment:5 Changed 6 years ago by jow

  • Priority changed from normal to response-needed

Patches welcome.

comment:6 Changed 6 years ago by nbd

  • Resolution set to no_response
  • Status changed from reopened to closed

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.