<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Building for Nintendo 3DS userland through devkitARM?]]></title>
		<link>https://www.wolfssl.com/forums/topic1733-building-for-nintendo-3ds-userland-through-devkitarm.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1733.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Building for Nintendo 3DS userland through devkitARM?.]]></description>
		<lastBuildDate>Thu, 06 May 2021 05:26:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Building for Nintendo 3DS userland through devkitARM?]]></title>
			<link>https://www.wolfssl.com/forums/post5988.html#p5988</link>
			<description><![CDATA[<div class="quotebox"><cite>jeff wrote:</cite><blockquote><p>Hi dan9er,</p><p>We have someon working on updating the support for PPC and testing it for wii. After touching base with them I was able to compile.</p><p>[snip]</p><p>Any ideas if it&#039;s possible to compile the examples and run on 3ds?</p><p>If you are able to test on hardware, can you share the results?</p></blockquote></div><p>Depends:<br /></p><ul><li><p>How is testing for devkitPPC handled, if at all?</p></li><li><p>How do the tests express success or failure? If they just print to console, libctru has a console renderer that can be used with some setup.</p></li><li><p><a href="https://github.com/devkitPro/3ds-examples/blob/master/network/sockets">libctru provides BSD style sockets.</a> Will it play nice with wolfSSL?</p></li></ul><p>Also I looked through ./configure&#039;s options, and I have some suggestions:<br /></p><ul><li><p>--enable-32bit - ARMv6K is 32-bit.</p></li><li><p>--enable-singlethreaded - Like I&#039;ve stated in OP, in Old3DS userland we only get one 1 thread to ourselves.</p></li><li><p>--disable-filesystem (maybe) - There are 2 filesystem access systems on libctru: <a href="https://github.com/devkitPro/3ds-examples/tree/master/romfs">romfs (linked with executable)</a> and <a href="https://github.com/devkitPro/3ds-examples/tree/master/sdmc">sdmc (SD card access)</a>. If wolfSSL handles file reading/writing itself, then this may be a problem.</p></li></ul>]]></description>
			<author><![CDATA[null@example.com (dan9er)]]></author>
			<pubDate>Thu, 06 May 2021 05:26:37 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5988.html#p5988</guid>
		</item>
		<item>
			<title><![CDATA[Re: Building for Nintendo 3DS userland through devkitARM?]]></title>
			<link>https://www.wolfssl.com/forums/post5975.html#p5975</link>
			<description><![CDATA[<p>Hey @dan9er,</p><p>This still needs to be tested, but here is a branch to build <a href="https://github.com/elms/pacman-packages/tree/3ds/add_wolfssl">https://github.com/elms/pacman-packages … dd_wolfssl</a></p><p>Turns out I was able to resolve those warnings by adding </p><div class="codebox"><pre><code>-specs=3dsx.specs</code></pre></div><p> to LDFLAGS, but I still disabled examples and tests for the package.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 29 Apr 2021 22:06:44 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5975.html#p5975</guid>
		</item>
		<item>
			<title><![CDATA[Re: Building for Nintendo 3DS userland through devkitARM?]]></title>
			<link>https://www.wolfssl.com/forums/post5973.html#p5973</link>
			<description><![CDATA[<p>Hi dan9er,</p><p>We have someon working on updating the support for PPC and testing it for wii. After touching base with them I was able to compile.</p><p>For 3DS I was able to compile with<br /></p><div class="codebox"><pre><code>PATH=/opt/devkitpro/devkitARM/bin/:$PATH ./configure  --host=arm-none-eabi --disable-shared --disable-examples --disable-crypttests CFLAGS=&quot;-I/opt/devkitpro/libctru/include/ -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -mword-relocations -DNO_WRITEV&quot; LDFLAGS=&quot;-L/opt/devkitpro/libctru/lib -lctru&quot;
PATH=/opt/devkitpro/devkitARM/bin/:$PATH make -j1 V=1</code></pre></div><p>For PKGBUILD this would reduce to something like<br /></p><div class="codebox"><pre><code>./configure CFLAGS=&quot;-DNO_WRITEV&quot; LIBS=&quot;-lctru&quot; --host=arm-none-eabi --disable-shared --disable-examples --disable-crypttests --enable-sp-math-all
make</code></pre></div><p>I have not attempted to test actually using the library. I&#039;ll put up a draft PR for <a href="https://github.com/devkitPro/pacman-packages">https://github.com/devkitPro/pacman-packages</a> and update you.</p><p>Compiling the examples and tests I am seeing warnings.<br /></p><div class="codebox"><pre><code>c:/msys64/opt/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 0000000000008020</code></pre></div><p>Any ideas if it&#039;s possible to compile the examples and run on 3ds?</p><p>If you are able to test on hardware, can you share the results?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 29 Apr 2021 17:00:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5973.html#p5973</guid>
		</item>
		<item>
			<title><![CDATA[Building for Nintendo 3DS userland through devkitARM?]]></title>
			<link>https://www.wolfssl.com/forums/post5970.html#p5970</link>
			<description><![CDATA[<p>I&#039;m making a Gemini client for the Nintendo 3DS. The Gemini protocol requires TLS 1.2 and recommends 1.3, which is why I am seeking to use wolfSSL instead of mbedtls.</p><p><strong>What configure flags should I use to build it for static linking in a userland Nintendo 3DS app?</strong></p><p>I&#039;ve noticed wolfSSL supports Wii/Gamecube via devkitPPC:<br /><a href="https://github.com/wolfSSL/wolfssl/blob/master/ChangeLog.md#cyassl-release-candidate-2-rc2-100-1212009">https://github.com/wolfSSL/wolfssl/blob … 00-1212009</a><br />This likely can be modified to work with devkitARM</p><p>dkP devs have made a cURL port:<br /><a href="https://github.com/devkitPro/pacman-packages/tree/master/3ds/curl">https://github.com/devkitPro/pacman-pac … r/3ds/curl</a><br />But cURL has rejected Gemini support.</p><p>Example library makefile provided by dkP:<br /><a href="https://github.com/devkitPro/3ds-examples/blob/master/templates/library/Makefile">https://github.com/devkitPro/3ds-exampl … y/Makefile</a></p><p>The (New) Nintendo 3DS has:<br /></p><ul><li><p>2 (4) ARM11/ARMv6K threads, one is shared with the system</p></li><li><p>1 ARM9 thread, system reserved</p></li><li><p>128 (256) MB of RAM, 32 (64) MB system reserved</p></li></ul><p>Edit: word choice</p>]]></description>
			<author><![CDATA[null@example.com (dan9er)]]></author>
			<pubDate>Wed, 28 Apr 2021 00:27:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5970.html#p5970</guid>
		</item>
	</channel>
</rss>
