<div dir="ltr"><div><div>Thanks Karl and Florin for the replies.</div><div><br></div>Ok, so the first thing I need to understand is OpenWRT is for building linux(-like) systems (only) for routers .. thanks guys for this clearance.<br><br><br></div><div>Florin,<br><br></div><div>I'll tell you my usecase in a bit of detail.<br><br></div><div>* We have a framework, with openssl-client code written.<br></div><div>* We port our framework to multiple platforms/devices, and then link libcrypto.a and libssl.a as and when required.<br><br><br></div><div>For the SOC with processor <a href="https://www.digikey.com/product-detail/en/microchip-technology/ATSAM4E8CA-AUR/ATSAM4E8CA-AURCT-ND/4140758">https://www.digikey.com/product-detail/en/microchip-technology/ATSAM4E8CA-AUR/ATSAM4E8CA-AURCT-ND/4140758</a>, everything has been done, but we are stuck on integrating openssl due to being unable to build compatible libcrypto.a and libssl.a for the same.<br><br></div><div>I almost got things done by tweaking things with the "Freescale i.MX 6" configuration, but failed when I added the -mthumb option.<br></div><div>Since then, I have been trying all sorts of things, to firstly build a toolchain (in ubuntu-14.04 host) supporting -mthumb, and then compile libcrypto.a and libssl.a for the same.<br><br></div><div>So, if there is a (existing/available) toolchain in openwrt that would compile for armv7-a with -mthumb, I think all I need to do is go into packages/libs/openssl, and fire "make -B". Kindly let know if something can be done for the same.<br><br><br></div><div>Once again, thanks everyone for the help so far ... looking forward to learning more from you experts..<br><br><br></div><div>Thanks and Regards,<br></div><div>Ajay<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 9, 2017 at 2:32 PM, Florin <span dir="ltr"><<a href="mailto:floring2502@gmail.com" target="_blank">floring2502@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've got a toolchain (gcc-4.9.2 + binutils-2.26.1) running on armv7-a and<br>
ipk packagesĀ compiled with/for it:<br>
<br>
floring@huawei:~$ gcc -v<br>
Using built-in specs.<br>
COLLECT_GCC=gcc<br>
COLLECT_LTO_WRAPPER=/opt/usr/<wbr>libexec/gcc/arm-linux-gnueabi/<wbr>4.9.2/lto-wrapper<br>
Target: arm-linux-gnueabi<br>
Configured with: ../configure --host=arm-linux-gnueabi<br>
--target=arm-linux-gnueabi --prefix=/opt/usr --with-gmp=/opt/usr<br>
--with-mpfr=/opt/usr --with-mpc=/opt/usr --with-isl=/opt/usr<br>
--with-cloog=/opt/usr --enable-languages=c,c++,go,<wbr>objc,obj-c++<br>
--disable-multilib<br>
LDFLAGS_FOR_TARGET=-Wl,--<wbr>dynamic-linker=/opt/lib/ld-<wbr>linux.so.3<br>
LDFLAGS_FOR_HOST=-Wl,--<wbr>dynamic-linker=/opt/lib/ld-<wbr>linux.so.3<br>
LDFLAGS=-Wl,--dynamic-linker=/<wbr>opt/lib/ld-linux.so.3<br>
Thread model: posix<br>
gcc version 4.9.2 (GCC)<br>
<br>
The architecture is a Huawei-ES880 (Cortex A9 without FPU) router running<br>
Zyxmon's DD-WRT mod for Northstar platforms. I've even been able to compile<br>
and run Xorg, GTK 2 and 3 and Qt 4.8.2 as optware on it, and I amĀ currently<br>
working on upgrading gcc and "debianize" it. So I kinda run a complete linux<br>
on this architecture.<br>
I've started it from cross-compiling glibc and gcc and installing them on<br>
scratch /opt filesystem, and to simplify things I used some of Zyxmon's<br>
Qnapware (<a href="http://qnapware.zyxmon.org/binaries-armv7/" rel="noreferrer" target="_blank">http://qnapware.zyxmon.org/<wbr>binaries-armv7/</a>); If you only need some<br>
essential packages, this link would be enough.<br>
<br>
I am doing it as a hobby, but my problem is that I don't have a large<br>
traffic subscription so I cannot make it largely public. If you need more<br>
than the packages in Qnapware, especially the native arm-v7a toolchain, then<br>
I could share my work. Keep in mind that these embedded systems have limited<br>
RAM so you need to setup at least 1GB of swap space and set TMPDIR variable<br>
on external HDD directory for making all these work.<br>
<span class="HOEnZb"><font color="#888888"><br>
Florin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> -----Original Message-----<br>
> From: openwrt-devel [mailto:<a href="mailto:openwrt-devel-bounces@lists.openwrt.org">openwrt-devel-bounces@<wbr>lists.openwrt.org</a>]<br>
> On Behalf Of Karl Palsson<br>
> Sent: Wednesday, November 08, 2017 10:54 PM<br>
> To: Ajay Garg<br>
> Cc: openwrt-devel<br>
> Subject: Re: [OpenWrt-Devel] Toolchain for armv7-ar?<br>
><br>
><br>
> That part is armv7-m (not -a, not -r). They don't generally run linux at<br>
all, so<br>
> don't have toolchains targetting linux, and don't generally have existing<br>
> targets in openwrt.<br>
><br>
> You _can_ run linux on them, but it's a farrrr bigger task than just,<br>
"which<br>
> toolchain do I need to select in menuconfig"<br>
><br>
> Cheers,<br>
> Karl P<br>
><br>
> Ajay Garg <<a href="mailto:ajaygargnsit@gmail.com">ajaygargnsit@gmail.com</a>> wrote:<br>
> > Experts,<br>
> ><br>
> > Waiting for your kind reply/replies.<br>
> ><br>
> ><br>
> > Thanks and Regards,<br>
> > Ajay<br>
> ><br>
> > On 7 Nov 2017 11:22 a.m., "Ajay Garg" <<a href="mailto:ajaygargnsit@gmail.com">ajaygargnsit@gmail.com</a>><br>
> > wrote:<br>
> ><br>
> > > Hi All.<br>
> > ><br>
> > > I have been trying to build the toolchain+packages (especially<br>
> > > openssl) using openwrt, but have been unable to do so for a armv7-ar<br>
> architecture.<br>
> > ><br>
> > > The processor on our SOC is<br>
> > > <a href="https://www.digikey.com/product-detail/en/microchip-" rel="noreferrer" target="_blank">https://www.digikey.com/<wbr>product-detail/en/microchip-</a><br>
> > > technology/ATSAM4E8CA-AUR/<wbr>ATSAM4E8CA-AURCT-ND/4140758<br>
> > ><br>
> > > So, is there an (already existing) configuration (in "make<br>
> > > menuconfig", or<br>
> > > otherwise) that builds everything (toolchain plus packages) for<br>
armv7-ar?<br>
> > ><br>
> > ><br>
> > > Will be grateful to listen from you experts.<br>
> > ><br>
> > ><br>
> > > Thanks and Regards,<br>
> > > Ajay<br>
> > ><br>
> > ______________________________<wbr>_________________<br>
> > openwrt-devel mailing list<br>
> > <a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.<wbr>org</a><br>
> > <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-<wbr>bin/mailman/listinfo/openwrt-<wbr>devel</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Ajay<br></div>
</div>