Discussion:
[OpenWrt-Users] Compiling for ARM-Cortex-M4
Ajay Garg
2017-10-25 07:00:22 UTC
Permalink
Hi All.

I have been trying to get openssl libraries for ARM-Cortex-M4.

The OpenSSL-build framework does not have direct support for this, so
I wondering if OpenWrt has direct support for building *everything*
for ARM-Cortex-M4.

I have been able to build OpenWrt for AVR32, but when I import
libcrypt.a and libssl.a in Atmel-Studio, it says incompatible-files.
Upon further googling, I realised (if I am not wrong) that
ARM-Cortex-M series is different from AVR32 series.


Will be grateful to listen from you experts, to know if building
*everything* for ARM-Cortex-M4 is possible using OpenWrt.


Thanks and Regards,
Ajay
Ajay Garg
2017-10-26 13:01:44 UTC
Permalink
Hello Experts.

I selected "Freescale i.MX 6", and ran the complete build.
Thereafter, I copied libcrypto.a and libssl.a to Atmel-Studio, and linked
those libraries.

However, VFP-errors were observed while linking.
Turns out that ssl-libraries are complied with hard-floating-points in
openwrt, while the Atmel-Sudio build-environement is using
soft-floating-points.

So, I am now trying to compile **only** openssl in openwrt, so that I can
modify the compiler-flags (in openwrt), and try various iterations of
openssl-compiling.

For this, I have been able to reach packages/libs/openssl, but am unable to
figure how to clean/build **only** openssl.
If I can do this, it would be a big help, as otherwise cleaning/building
everything takes a good hour or so.


So, I will be grateful, if I could hear back from you experts on how to
clean/build **only** openssl in openwrt environment (for Freescale i.MX 6).


Looking forward to some help ...


Thanks and Regards,
Ajay
Post by Ajay Garg
Hi All.
I have been trying to get openssl libraries for ARM-Cortex-M4.
The OpenSSL-build framework does not have direct support for this, so
I wondering if OpenWrt has direct support for building *everything*
for ARM-Cortex-M4.
I have been able to build OpenWrt for AVR32, but when I import
libcrypt.a and libssl.a in Atmel-Studio, it says incompatible-files.
Upon further googling, I realised (if I am not wrong) that
ARM-Cortex-M series is different from AVR32 series.
Will be grateful to listen from you experts, to know if building
*everything* for ARM-Cortex-M4 is possible using OpenWrt.
Thanks and Regards,
Ajay
--
Regards,
Ajay
Ajay Garg
2017-10-27 04:08:42 UTC
Permalink
If I use the always-make flag, via

make -B
package/libs/openssl,

it gets into an infinite loop, spawning multiple child PIDs.


Looking forward to some guidance.


Thanks and Regards,
Ajay
Post by Ajay Garg
Hello Experts.
I selected "Freescale i.MX 6", and ran the complete build.
Thereafter, I copied libcrypto.a and libssl.a to Atmel-Studio, and linked
those libraries.
However, VFP-errors were observed while linking.
Turns out that ssl-libraries are complied with hard-floating-points in
openwrt, while the Atmel-Sudio build-environement is using
soft-floating-points.
So, I am now trying to compile **only** openssl in openwrt, so that I can
modify the compiler-flags (in openwrt), and try various iterations of
openssl-compiling.
For this, I have been able to reach packages/libs/openssl, but am unable
to figure how to clean/build **only** openssl.
If I can do this, it would be a big help, as otherwise cleaning/building
everything takes a good hour or so.
So, I will be grateful, if I could hear back from you experts on how to
clean/build **only** openssl in openwrt environment (for Freescale i.MX 6).
Looking forward to some help ...
Thanks and Regards,
Ajay
Post by Ajay Garg
Hi All.
I have been trying to get openssl libraries for ARM-Cortex-M4.
The OpenSSL-build framework does not have direct support for this, so
I wondering if OpenWrt has direct support for building *everything*
for ARM-Cortex-M4.
I have been able to build OpenWrt for AVR32, but when I import
libcrypt.a and libssl.a in Atmel-Studio, it says incompatible-files.
Upon further googling, I realised (if I am not wrong) that
ARM-Cortex-M series is different from AVR32 series.
Will be grateful to listen from you experts, to know if building
*everything* for ARM-Cortex-M4 is possible using OpenWrt.
Thanks and Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
Ajay Garg
2017-11-03 07:12:42 UTC
Permalink
Any help please?

I have cloned the bleeding-edge openwrt, but am not sure which target to
select.

The target-processor (on our SOC) is
https://www.digikey.com/product-detail/en/microchip-technology/ATSAM4E8CA-AUR/ATSAM4E8CA-AURCT-ND/4140758
It works *only* in thumb mode (no ARM mode available for this processor).

So, I will be grateful if you could let know what target to select in *make
menuconfig*



Thanks and Regards,
Ajay
Post by Ajay Garg
If I use the always-make flag, via
make -B
package/libs/openssl,
it gets into an infinite loop, spawning multiple child PIDs.
Looking forward to some guidance.
Thanks and Regards,
Ajay
Post by Ajay Garg
Hello Experts.
I selected "Freescale i.MX 6", and ran the complete build.
Thereafter, I copied libcrypto.a and libssl.a to Atmel-Studio, and linked
those libraries.
However, VFP-errors were observed while linking.
Turns out that ssl-libraries are complied with hard-floating-points in
openwrt, while the Atmel-Sudio build-environement is using
soft-floating-points.
So, I am now trying to compile **only** openssl in openwrt, so that I can
modify the compiler-flags (in openwrt), and try various iterations of
openssl-compiling.
For this, I have been able to reach packages/libs/openssl, but am unable
to figure how to clean/build **only** openssl.
If I can do this, it would be a big help, as otherwise cleaning/building
everything takes a good hour or so.
So, I will be grateful, if I could hear back from you experts on how to
clean/build **only** openssl in openwrt environment (for Freescale i.MX 6).
Looking forward to some help ...
Thanks and Regards,
Ajay
Post by Ajay Garg
Hi All.
I have been trying to get openssl libraries for ARM-Cortex-M4.
The OpenSSL-build framework does not have direct support for this, so
I wondering if OpenWrt has direct support for building *everything*
for ARM-Cortex-M4.
I have been able to build OpenWrt for AVR32, but when I import
libcrypt.a and libssl.a in Atmel-Studio, it says incompatible-files.
Upon further googling, I realised (if I am not wrong) that
ARM-Cortex-M series is different from AVR32 series.
Will be grateful to listen from you experts, to know if building
*everything* for ARM-Cortex-M4 is possible using OpenWrt.
Thanks and Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
Ajay Garg
2017-11-05 05:01:58 UTC
Permalink
https://www.digikey.com/product-detail/en/microchip-technology/ATSAM4E8CA-AUR/ATSAM4E8CA-AURCT-ND/4140758
is armv7-ar architecture
Any device in openwrt that builds the software for armv7-ar?

Hoping to hear something.
Post by Ajay Garg
Any help please?
I have cloned the bleeding-edge openwrt, but am not sure which target to
select.
The target-processor (on our SOC) is https://www.digikey.com/
product-detail/en/microchip-technology/ATSAM4E8CA-AUR/
ATSAM4E8CA-AURCT-ND/4140758
It works *only* in thumb mode (no ARM mode available for this processor).
So, I will be grateful if you could let know what target to select in
*make menuconfig*
Thanks and Regards,
Ajay
Post by Ajay Garg
If I use the always-make flag, via
make -B
package/libs/openssl,
it gets into an infinite loop, spawning multiple child PIDs.
Looking forward to some guidance.
Thanks and Regards,
Ajay
Post by Ajay Garg
Hello Experts.
I selected "Freescale i.MX 6", and ran the complete build.
Thereafter, I copied libcrypto.a and libssl.a to Atmel-Studio, and
linked those libraries.
However, VFP-errors were observed while linking.
Turns out that ssl-libraries are complied with hard-floating-points in
openwrt, while the Atmel-Sudio build-environement is using
soft-floating-points.
So, I am now trying to compile **only** openssl in openwrt, so that I
can modify the compiler-flags (in openwrt), and try various iterations of
openssl-compiling.
For this, I have been able to reach packages/libs/openssl, but am unable
to figure how to clean/build **only** openssl.
If I can do this, it would be a big help, as otherwise cleaning/building
everything takes a good hour or so.
So, I will be grateful, if I could hear back from you experts on how to
clean/build **only** openssl in openwrt environment (for Freescale i.MX 6).
Looking forward to some help ...
Thanks and Regards,
Ajay
Post by Ajay Garg
Hi All.
I have been trying to get openssl libraries for ARM-Cortex-M4.
The OpenSSL-build framework does not have direct support for this, so
I wondering if OpenWrt has direct support for building *everything*
for ARM-Cortex-M4.
I have been able to build OpenWrt for AVR32, but when I import
libcrypt.a and libssl.a in Atmel-Studio, it says incompatible-files.
Upon further googling, I realised (if I am not wrong) that
ARM-Cortex-M series is different from AVR32 series.
Will be grateful to listen from you experts, to know if building
*everything* for ARM-Cortex-M4 is possible using OpenWrt.
Thanks and Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
Ajay Garg
2017-11-06 05:21:30 UTC
Permalink
Post by Ajay Garg
https://www.digikey.com/product-detail/en/microchip-
technology/ATSAM4E8CA-AUR/ATSAM4E8CA-AURCT-ND/4140758 is armv7-ar
architecture
Any device in openwrt that builds the software for armv7-ar?
Experts,

Kindly let know if there is an (already) existing configuration, that
builds everything (toolchain plus target) for armv7-ar?



Thanks and Regards,
Ajay
Post by Ajay Garg
Hoping to hear something.
Post by Ajay Garg
Any help please?
I have cloned the bleeding-edge openwrt, but am not sure which target to
select.
The target-processor (on our SOC) is https://www.digikey.com/produc
t-detail/en/microchip-technology/ATSAM4E8CA-AUR/ATSAM4E8CA-
AURCT-ND/4140758
It works *only* in thumb mode (no ARM mode available for this processor).
So, I will be grateful if you could let know what target to select in
*make menuconfig*
Thanks and Regards,
Ajay
Post by Ajay Garg
If I use the always-make flag, via
make -B
package/libs/openssl,
it gets into an infinite loop, spawning multiple child PIDs.
Looking forward to some guidance.
Thanks and Regards,
Ajay
Post by Ajay Garg
Hello Experts.
I selected "Freescale i.MX 6", and ran the complete build.
Thereafter, I copied libcrypto.a and libssl.a to Atmel-Studio, and
linked those libraries.
However, VFP-errors were observed while linking.
Turns out that ssl-libraries are complied with hard-floating-points in
openwrt, while the Atmel-Sudio build-environement is using
soft-floating-points.
So, I am now trying to compile **only** openssl in openwrt, so that I
can modify the compiler-flags (in openwrt), and try various iterations of
openssl-compiling.
For this, I have been able to reach packages/libs/openssl, but am
unable to figure how to clean/build **only** openssl.
If I can do this, it would be a big help, as otherwise
cleaning/building everything takes a good hour or so.
So, I will be grateful, if I could hear back from you experts on how to
clean/build **only** openssl in openwrt environment (for Freescale i.MX 6).
Looking forward to some help ...
Thanks and Regards,
Ajay
Post by Ajay Garg
Hi All.
I have been trying to get openssl libraries for ARM-Cortex-M4.
The OpenSSL-build framework does not have direct support for this, so
I wondering if OpenWrt has direct support for building *everything*
for ARM-Cortex-M4.
I have been able to build OpenWrt for AVR32, but when I import
libcrypt.a and libssl.a in Atmel-Studio, it says incompatible-files.
Upon further googling, I realised (if I am not wrong) that
ARM-Cortex-M series is different from AVR32 series.
Will be grateful to listen from you experts, to know if building
*everything* for ARM-Cortex-M4 is possible using OpenWrt.
Thanks and Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
--
Regards,
Ajay
Simão Afonso
2017-11-06 14:19:34 UTC
Permalink
This is the users mailing list. You should try the development list:

https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Ajay Garg
2017-11-07 04:17:14 UTC
Permalink
Thanks Simao.

On Mon, Nov 6, 2017 at 7:49 PM, Simão Afonso <
Post by Simão Afonso
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-users mailing list
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
--
Regards,
Ajay
Loading...