Discussion:
[OpenWrt-Users] Confusion on whether the toolchain is for 32-bit ARM or 64-bit ARM
Ajay Garg
2018-03-29 05:50:34 UTC
Permalink
Hi All.

My development-machine is a x86_64 machine, with Ubuntu-16.04-LTS installed.

Now, I cloned openwrt, selected "Allwinner A1x" as the target, did "make V=s".
Finally, "staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-7.3.0_musl_eabi/"
toolchain was created.

Thereafter, I compiled a hello-world binary, and it ran successfully
on a beaglebone (ARM) machine.


Now, we wish to use the toolchain for our project, but I am confused
as to whether the toolchain supports (only) 32-bit ARM, or (only)
64-bit ARM, or both 32-bit and 64-bit ARM. So, will be thankful if the
experts can help me on that.

Sorry if the question is too noob.


Looking forward to some help.


Thanks and Regards,
Ajay
Naresh Kumar Mehta
2018-03-29 06:29:38 UTC
Permalink
Use file cmd in Ubuntu to figure out whether hello-world was compiled for 32-bit or 64-bit.

-----Original Message-----
From: openwrt-users [mailto:openwrt-users-***@lists.openwrt.org] On Behalf Of Ajay Garg
Sent: Thursday, March 29, 2018 11:21 AM
To: OpenWrt User List <openwrt-***@lists.openwrt.org>
Subject: [OpenWrt-Users] Confusion on whether the toolchain is for 32-bit ARM or 64-bit ARM

Hi All.

My development-machine is a x86_64 machine, with Ubuntu-16.04-LTS installed.

Now, I cloned openwrt, selected "Allwinner A1x" as the target, did "make V=s".
Finally, "staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-7.3.0_musl_eabi/"
toolchain was created.

Thereafter, I compiled a hello-world binary, and it ran successfully on a beaglebone (ARM) machine.


Now, we wish to use the toolchain for our project, but I am confused as to whether the toolchain supports (only) 32-bit ARM, or (only) 64-bit ARM, or both 32-bit and 64-bit ARM. So, will be thankful if the experts can help me on that.

Sorry if the question is too noob.


Looking forward to some help.


Thanks and Regards,
Ajay
_______________________________________________
openwrt-users mailing list
openwrt-***@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
Ajay Garg
2018-03-29 06:41:25 UTC
Permalink
Ahh.. thanks a ton Naresh !!


Following is what it shows :

#################################
file arm_hello_world
arm_hello_world: ELF 32-bit LSB executable, ARM, EABI5 version 1
(SYSV), statically linked, not stripped
#################################


A follow-up question :
Any openwrt-toolchain supports ONLY either a 32-bit or 64-bit
compilation, depending on the target chosen, right?


Thanks again for the quick help !!


Thanks and Regards,
Ajay


On Thu, Mar 29, 2018 at 11:59 AM, Naresh Kumar Mehta
Post by Naresh Kumar Mehta
Use file cmd in Ubuntu to figure out whether hello-world was compiled for 32-bit or 64-bit.
-----Original Message-----
Sent: Thursday, March 29, 2018 11:21 AM
Subject: [OpenWrt-Users] Confusion on whether the toolchain is for 32-bit ARM or 64-bit ARM
Hi All.
My development-machine is a x86_64 machine, with Ubuntu-16.04-LTS installed.
Now, I cloned openwrt, selected "Allwinner A1x" as the target, did "make V=s".
Finally, "staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-7.3.0_musl_eabi/"
toolchain was created.
Thereafter, I compiled a hello-world binary, and it ran successfully on a beaglebone (ARM) machine.
Now, we wish to use the toolchain for our project, but I am confused as to whether the toolchain supports (only) 32-bit ARM, or (only) 64-bit ARM, or both 32-bit and 64-bit ARM. So, will be thankful if the experts can help me on that.
Sorry if the question is too noob.
Looking forward to some help.
Thanks and Regards,
Ajay
_______________________________________________
openwrt-users mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
--
Regards,
Ajay
Naresh Kumar Mehta
2018-03-29 07:30:32 UTC
Permalink
As far as I know, YES. But I might be wrong also.

-----Original Message-----
From: openwrt-users [mailto:openwrt-users-***@lists.openwrt.org] On Behalf Of Ajay Garg
Sent: Thursday, March 29, 2018 12:11 PM
To: OpenWrt User List <openwrt-***@lists.openwrt.org>
Subject: Re: [OpenWrt-Users] Confusion on whether the toolchain is for 32-bit ARM or 64-bit ARM

Ahh.. thanks a ton Naresh !!


Following is what it shows :

#################################
file arm_hello_world
arm_hello_world: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped #################################


A follow-up question :
Any openwrt-toolchain supports ONLY either a 32-bit or 64-bit compilation, depending on the target chosen, right?


Thanks again for the quick help !!


Thanks and Regards,
Ajay
Post by Naresh Kumar Mehta
Use file cmd in Ubuntu to figure out whether hello-world was compiled for 32-bit or 64-bit.
-----Original Message-----
Sent: Thursday, March 29, 2018 11:21 AM
Subject: [OpenWrt-Users] Confusion on whether the toolchain is for 32-bit ARM or 64-bit ARM
Hi All.
My development-machine is a x86_64 machine, with Ubuntu-16.04-LTS installed.
Now, I cloned openwrt, selected "Allwinner A1x" as the target, did "make V=s".
Finally, "staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-7.3.0_musl_eabi/"
toolchain was created.
Thereafter, I compiled a hello-world binary, and it ran successfully on a beaglebone (ARM) machine.
Now, we wish to use the toolchain for our project, but I am confused as to whether the toolchain supports (only) 32-bit ARM, or (only) 64-bit ARM, or both 32-bit and 64-bit ARM. So, will be thankful if the experts can help me on that.
Sorry if the question is too noob.
Looking forward to some help.
Thanks and Regards,
Ajay
_______________________________________________
openwrt-users mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
--
Regards,
Ajay
_______________________________________________
openwrt-users mailing list
openwrt-***@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Loading...