<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>coding &#187; embarcado</title>
	<atom:link href="http://www.coding.com.br/category/embarcado/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coding.com.br</link>
	<description>have you coded today?</description>
	<lastBuildDate>Fri, 23 Jul 2010 02:37:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Opcode stats</title>
		<link>http://www.coding.com.br/embarcado/opcode-stats/</link>
		<comments>http://www.coding.com.br/embarcado/opcode-stats/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 00:09:50 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=1128</guid>
		<description><![CDATA[I was trying some GCC options and decided see how they affect assembly code generated. I&#8217;ve created a simple Python script that parses .s output and put in a human readable way. Suppose the classical Hello World program. The output will be something like:
$ python stats_opcodes.py file
For Cortex-m3 (check previous post):

At my laptop (x86):

 

Download the script here.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I was trying some GCC options and decided see how they affect assembly code generated. I&#8217;ve created a simple Python script that parses <em>.s</em> output and put in a human readable way. Suppose the classical <em>Hello World </em>program. The output will be something like:</p>
<p style="padding-left: 30px;">$ python stats_opcodes.py file</p>
<p>For Cortex-m3 (check <a href="http://www.coding.com.br/embarcado/cortex-m3-and-qemu/" target="_blank">previous</a> post):</p>
<p style="padding-left: 30px;"><img class="aligncenter size-full wp-image-1136" title="opcode-arm" src="http://www.coding.com.br/wp-content/uploads/2010/06/opcode-arm.png" alt="" width="304" height="194" /></p>
<p>At my laptop (x86):</p>
<p style="padding-left: 30px;"><img class="aligncenter size-full wp-image-1133" title="output" src="http://www.coding.com.br/wp-content/uploads/2010/06/opcodes1.png" alt="" width="306" height="194" /></p>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: small;"><span style="line-height: 18px; white-space: pre;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: 19px; white-space: normal;"> </span></span></span></span></p>
<p style="text-align: center;">
<p>Download the script <a href="http://gist.github.com/raw/452170/db097f735c52ffd733d2060603c203982d53b79f/stats_opcode.py" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/opcode-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cortex-M3 and Qemu</title>
		<link>http://www.coding.com.br/embarcado/cortex-m3-and-qemu/</link>
		<comments>http://www.coding.com.br/embarcado/cortex-m3-and-qemu/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 15:08:10 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[cortex-m3]]></category>
		<category><![CDATA[qemu]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=1115</guid>
		<description><![CDATA[Just a small tip to test code generated for ARM Cortex-M3 using QEmu:
$ arm-none-eabi-gcc main.c -ggdb -mcpu=cortex-m3 -mthumb -T generic-m-hosted.ld
$ qemu-arm -cpu cortex-m3 ./a.out
You can download Code Sourcery toolchain here and QEmu here (also available from package management system of your favorite Linux distribution). Just unpack the toolchain associating the arm-201XqX/bin with your $PATH and run qemu.
]]></description>
			<content:encoded><![CDATA[<p>Just a small tip to test code generated for ARM Cortex-M3 using QEmu:</p>
<p><span style="color: #2040a0;">$ arm</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">none</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">eabi</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">gcc</span> <span style="color: #2040a0;">main</span>.<span style="color: #2040a0;">c</span> <span style="color: #4444ff;">-</span><span style="color: #2040a0;">ggdb</span> <span style="color: #4444ff;">-</span><span style="color: #2040a0;">mcpu</span><span style="color: #4444ff;">=</span><span style="color: #2040a0;">cortex</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">m3</span> <span style="color: #4444ff;">-</span><span style="color: #2040a0;">mthumb</span> <span style="color: #4444ff;">-</span><span style="color: #2040a0;">T</span> <span style="color: #2040a0;">generic</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">m</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">hosted</span>.<span style="color: #2040a0;">ld</span><br />
<span style="color: #2040a0;">$ qemu</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">arm</span> <span style="color: #4444ff;">-</span><span style="color: #2040a0;">cpu</span> <span style="color: #2040a0;">cortex</span><span style="color: #4444ff;">-</span><span style="color: #2040a0;">m3</span> ./<span style="color: #2040a0;">a</span>.<span style="color: #2040a0;">out</span></p>
<p style="text-align: justify;">You can download Code Sourcery toolchain <a href="http://www.codesourcery.com/sgpp/lite/arm/portal/release1294" target="_blank">here</a> and QEmu <a href="http://wiki.qemu.org/Download" target="_blank">here</a> (also available from package management system of your favorite Linux distribution). Just unpack the toolchain associating the arm-201XqX/bin with your $PATH and run qemu.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/cortex-m3-and-qemu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS errors</title>
		<link>http://www.coding.com.br/embarcado/nfs-errors/</link>
		<comments>http://www.coding.com.br/embarcado/nfs-errors/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 20:04:36 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=1061</guid>
		<description><![CDATA[If you use NFS to mount your root filesystem you should probably faced with this problem:
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /my/nfs/server/path/
VFS: Unable to mount root fs via NFS, trying floppy.
The -5 and -13 are the most common on my daily usage, but I [...]]]></description>
			<content:encoded><![CDATA[<p>If you use NFS to mount your root filesystem you should probably faced with this problem:</p>
<blockquote><p>Root-NFS: Unable to get mountd port number from server, using default<br />
Root-NFS: Server returned error -5 while mounting /my/nfs/server/path/<br />
VFS: Unable to mount root fs via NFS, trying floppy.</p></blockquote>
<p style="text-align: justify;">The <strong>-5 </strong>and<strong> -13 </strong>are the most common on my daily usage, but I always forgot what this number means&#8230; So, I decided to get it from source by checking <em>nfs-utils </em>package. The following values where extracted  from <em>utils/mount/error.c</em>.</p>
<pre>EPERM  ........................................ -1

ENOENT ........................................ -2

EIO ........................................... -3

ENXIO ......................................... -4

<strong>EACCESS ....................................... -5 </strong>

EEXIST ........................................ -6

ENODEV ........................................ -7

ENOTDIR ....................................... -8

EISDIR ........................................ -9

EINVAL ........................................ -10

EFBIG ......................................... -11

ENOSPC  ....................................... -12

<strong>EROFS ......................................... -13</strong>

ENAMETOOLONG .................................. -14

ENOTEMPTY ..................................... -15

EDQUOT ........................................ -16

ESTALE ........................................ -17

EWFLUSH ....................................... -18
</pre>
<p>Knowing what each error status means allow you quick fix the problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/nfs-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyHDL: trazendo o Python para o mundo das FPGAs</title>
		<link>http://www.coding.com.br/embarcado/myhdl-trazendo-o-python-para-o-mundo-das-fpgas/</link>
		<comments>http://www.coding.com.br/embarcado/myhdl-trazendo-o-python-para-o-mundo-das-fpgas/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 03:38:01 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[fpga]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[verilog]]></category>
		<category><![CDATA[vhdl]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=876</guid>
		<description><![CDATA[From Python to silicon
Depois de uma longa história estou participando de dois um curso aberto sobre hardware: um abordando VHDL e outro Verilog. Até aí nada de novo, quando&#8230; descobri algo interessante. Algo que realmente motivou a mudar minha rotina de trabalho para (durante alguns dias) levantar as 7h. a escrever sobre o assunto aqui [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: right;">From Python to silicon</p>
<p style="text-align: justify;"><em>Depois de uma longa história estou participando de <span style="text-decoration: line-through;">dois</span></em><em> um </em><em><a href="http://www.inatel.br/icc/cursos-abertos">curso aberto</a></em><em> sobre hardware: um abordando </em><a href="http://en.wikipedia.org/wiki/VHDL"><em>VHDL</em></a><em> </em><em><span style="text-decoration: line-through;">e outro </span></em><a href="http://en.wikipedia.org/wiki/Verilog"><em><span style="text-decoration: line-through;">Verilog</span></em></a><em>. Até aí nada de novo,</em><em> quando&#8230; </em><a href="http://twitter.com/maluta/status/11915212954" target="_blank"><em>descobri</em></a><em> algo interessante. Algo que realmente motivou <span style="text-decoration: line-through;">a mudar minha rotina de trabalho para (durante alguns dias)</span></em><em><span style="text-decoration: line-through;"> levantar as 7h.</span> a escrever sobre o assunto aqui no blog. :p</em></p>
<p style="text-align: justify;"><em><span style="font-style: normal;"><strong>MyHDL</strong></span></em></p>
<p style="text-align: justify;">Em poucas palavras, é um pacote para o Python que permite utilizá-lo para descrever e verificar uma linguagem de descrição de <em>hardware</em>. Além disso você pode converter seu código Pyhton em Verilog ou VHDL, automaticamente, para gravar numa CPLD ou FPGA. Para quem quiser aprender, o tutorial mais completo está na <a href="http://www.myhdl.org/doc/0.6" target="_blank">documentação</a> oficial do projeto. Há também uma <a href="http://www.cin.ufpe.br/~cinlug/wiki/index.php/Hardware_myhdl_python" target="_blank">introdução</a> muito boa em português feito pela UFPE.</p>
<p style="text-align: justify;">Não vou fazer um tutorial, apenas transcreverei os exemplos utilizados em sala de aula para Pythom, produzir os testes e os equivalentes em VHDL e Verilog. Um dos primeiros exercícios era descrever um multiplexador de 4 entradas.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> myhdl <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #66cc66;">*</span>  
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> Mux<span style="color: black;">&#40;</span>dout, din_1, din_2, din_3, din_4, sel<span style="color: black;">&#41;</span>:
&nbsp;
	@always_comb
	<span style="color: #ff7700;font-weight:bold;">def</span> muxLogic<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
&nbsp;
		<span style="color: #ff7700;font-weight:bold;">if</span> sel == 0x0:
			 dout.<span style="color: black;">next</span> = din_1
		<span style="color: #ff7700;font-weight:bold;">if</span> sel == 0x1:
			 dout.<span style="color: black;">next</span> = din_2
		<span style="color: #ff7700;font-weight:bold;">if</span> sel == 0x2:
			 dout.<span style="color: black;">next</span> = din_3
		<span style="color: #ff7700;font-weight:bold;">if</span> sel == 0x3:
			 dout.<span style="color: black;">next</span> = din_4
&nbsp;
	<span style="color: #ff7700;font-weight:bold;">return</span> muxLogic
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> convert<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
	dout, din_1, din_2, din_3, din_4  = <span style="color: black;">&#91;</span>Signal<span style="color: black;">&#40;</span>intbv<span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">8</span>:<span style="color: black;">&#93;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> i <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #008000;">range</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">5</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span>
	sel =   Signal<span style="color: black;">&#40;</span>intbv<span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">2</span>:<span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>
	toVHDL<span style="color: black;">&#40;</span>Mux, din_1, din_2, din_3, din_4, dout, sel<span style="color: black;">&#41;</span>
	toVerilog<span style="color: black;">&#40;</span>Mux, din_1, din_2, din_3, din_4, dout, sel<span style="color: black;">&#41;</span>
&nbsp;
convert<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p style="text-align: justify;">As funções <em>toVHDL()</em> e <em>toVerilog()</em> produzem arquivos Mux.vhd ou Mux.v respectivamente (o nome é o mesmo da função definida).</p>
<p style="text-align: justify;">Aguardem os próximos <em>posts</em> onde vou apresentar o <em>test case</em> para este e os novos exercícios que forem sugeridos em sala.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/myhdl-trazendo-o-python-para-o-mundo-das-fpgas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stellaris EKK-LM3S9b96 Evaluation Kit (1)</title>
		<link>http://www.coding.com.br/embarcado/stellaris-ekk-lm3s9b96-evaluation-kit-1/</link>
		<comments>http://www.coding.com.br/embarcado/stellaris-ekk-lm3s9b96-evaluation-kit-1/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 03:15:21 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[arm]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=864</guid>
		<description><![CDATA[O blog do Jê foi um dos canais brasileiros que anunciou o concurso promovido pela Texas Instruments e a revista Circuit Cellar. Como sempre tive curiosidade nos microcontroladores de 32bits da ARM resolvi me inscrever no concurso para receber o KIT. Com uma proposta semelhante (mas sem o concurso) a NXP, a um tempo atrás, [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">O <a href="http://blogdoje.com.br/2010/01/29/texas-instruments-design-stellaris-2010-contest" target="_blank">blog do Jê</a> foi um dos canais brasileiros que anunciou o concurso promovido pela Texas Instruments e a revista Circuit Cellar. Como sempre tive curiosidade nos microcontroladores de 32bits da ARM resolvi me inscrever no concurso para <em>receber</em> o KIT. Com uma proposta semelhante (mas sem o concurso) a NXP, a um tempo atrás, distribuiu alguns microcontroladores da família LPC. Conheço muitos &#8220;hobbistas&#8221; que pediram as amostras mas assim que chegaram os custos para fazer uma placa (mesmo que um <em>design</em> simples para testar a funcionalidade) tornou o projeto inviável. A idéia do kit de desenvolvimento, na minha opinião, tende a popularizar melhor o uso (principalmente para quem gosta de fuçar).</p>
<p><a href="http://www.coding.com.br/wp-content/uploads/2010/04/4493235551_3214e1f7fd.jpg"><img class="aligncenter size-medium wp-image-865" title="Caixa com o kit" src="http://www.coding.com.br/wp-content/uploads/2010/04/4493235551_3214e1f7fd-300x225.jpg" alt="" width="300" height="225" /></a>Sinceramente já tinha esquecido da inscrição quando chegou na minha casa na semana passada&#8230; e só consegui fazer o <em>hands on</em> neste final de semana.</p>
<p style="text-align: center;"><img class="aligncenter" title="Itens dentro da caixa" src="http://www.coding.com.br/wp-content/uploads/2010/04/4493464217_41d7caa412.jpg" alt="" width="500" height="375" /></p>
<p style="text-align: justify;">Veio com todas o itens para você começar a desenvolver, a placa principal com a MCU fabricada pela <a href="http://www.luminarymicro.com/" target="_blank">Luminary</a> é a maior na foto, sendo a outra basicamente a interface USB com o computador (utiliza o chip da FTDI). Imagino que seja possível aproveitar em outros projetos. No kit há essencialmente:</p>
<ul>
<li>80-MHz LM3S9B96 MCU</li>
<li>Ethernet MAC+PHY</li>
<li>CAN</li>
<li>USB OTG,</li>
<li>SafeRTOS na ROM, com uma cópia limitada do Keil RealView Microcontroller Development Kit</li>
<li>cables (USB e rede)</li>
<li>CD com documentação e software</li>
<li>Pendrive de 256MB</li>
</ul>
<p style="text-align: justify;">Vou descrever aqui as novidades que for aprendendo. A meta é testar no final de semana o SafeRTOS.  Acredito que a presença do PHY Ethernet vai permitir implementações interessantes. Se você tiver alguma idéia sugira nos comentários.</p>
<p style="text-align: justify;">
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/stellaris-ekk-lm3s9b96-evaluation-kit-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome back NGW100!</title>
		<link>http://www.coding.com.br/embarcado/welcome-back-ngw100/</link>
		<comments>http://www.coding.com.br/embarcado/welcome-back-ngw100/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 14:08:19 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[atmel]]></category>
		<category><![CDATA[ngw100]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=738</guid>
		<description><![CDATA[A some time ago I&#8217;ve bricked my NGW100 board by overwritten the U-boot from flash. To fix it was necessary using a JTAG interface, so I check some alternatives.

AVR JTAGICE mkII (US$ 299) [official] http://atmel.com/dyn/products/tools_card.asp?tool_id=3353
AVR JTAG ICE mkii CN (US$ 99)  http://enshop.avrvi.com/avrjtagicemkiicn.html
AT AVR JTAGICE mkII clone (US$ 159) http://enshop.avrvi.com/jtagicemkiiclone.html

Considering that NGW100 itself costs about US$ [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">A some time ago I&#8217;ve <a href="http://en.wikipedia.org/wiki/Bricked" target="_blank">bricked</a> my NGW100 board by overwritten the U-boot from flash. To fix it was necessary using a JTAG interface, so I check some alternatives.</p>
<ul>
<li>AVR JTAGICE mkII (US$ 299) [official] <a href="http://atmel.com/dyn/products/tools_card.asp?tool_id=3353">http://atmel.com/dyn/products/tools_card.asp?tool_id=3353</a></li>
<li>AVR JTAG ICE mkii CN (US$ 99)  <a href="http://enshop.avrvi.com/avrjtagicemkiicn.html">http://enshop.avrvi.com/avrjtagicemkiicn.html</a></li>
<li>AT AVR JTAGICE mkII clone (US$ 159) <a href="http://enshop.avrvi.com/jtagicemkiiclone.html">http://enshop.avrvi.com/jtagicemkiiclone.html</a></li>
</ul>
<p style="text-align: justify;">Considering that NGW100 itself costs about US$ 89.00 could be more cheaper get another board than buying a JTAG device. Note that I looking for way to allow a programming Interface to flash and not other features available in a JTAG like source level debugging.</p>
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-737" title="ngw100+byteblaster" src="http://www.coding.com.br/wp-content/uploads/2010/03/ngw100+byteblaster-300x225.jpg" alt="" width="300" height="225" /> The bootloader for the NGW is stored in the parallell flash</p>
<p style="text-align: justify;">Searching for a inexpensive solution I found this AVR Freaks <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=53865" target="_blank">thread</a> teaching how to use cable <a href="http://jtag-arm9.sourceforge.net/circuit.txt" target="_blank">wiggler</a> or byteblaster to flash NGW.  Everyone that used Altera FPGA at least one time know about Byteblaster cable, was easy found one at university and try (thanks Prof. Robson Moreno)</p>
<p style="text-align: left;">
<p style="text-align: center;"><img class="aligncenter size-medium wp-image-746" title="Byteblaster cable" src="http://www.coding.com.br/wp-content/uploads/2010/03/bbla-300x163.png" alt="" width="300" height="163" />I&#8217;m using Byteblaser I</p>
<p style="text-align: left;">I&#8217;ve compiled a new u-boot binary from BSP code and used a too called <a href="http://194.204.26.104/~andrei/avrfreaks/avr32prog.zip" target="_blank">avr32prog</a> (it&#8217;s windows-only) to record.</p>
<pre style="text-align: left;">avr32prog.exe -c byteblaster -p LPT1 -f u-boot.img prog
</pre>
<p style="text-align: center;"><span style="color: #ff0000;">The process is extremely slow, about 35 minutes to flash a 100kbyte binary (~ 50bps)</span></p>
<p style="text-align: justify;">I have not had success the first time due some kind of &#8220;writing error&#8221;. I noted that if I use the computer (i.e.: browsing) when avr32prog is running the error happens faster, so I started the program a let flash the board &#8220;alone&#8221;. After finished just turn off the board, unplug JTAG connector and turn on the board again. It&#8217;s nice to see serial working again <img src='http://www.coding.com.br/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<blockquote><p>
U-Boot 1.1.4-at0 (Mar  9 2010 &#8211; 01:55:04) </p>
<p>U-Boot code: 00000000 -> 000149cf  data: 24000000 -> 24002d80<br />
SDRAM: 32 MB at address 0&#215;10000000<br />
Testing SDRAM&#8230;OK<br />
malloc: Using memory from 0&#215;11fc0000 to 0&#215;12000000<br />
Flash:  8 MB at address 0&#215;00000000<br />
DRAM Configuration:<br />
Bank #0: 10000000 32 MB</p>
<p>In:    serial<br />
Out:   serial<br />
Err:   serial</p>
<p>Net:   macb0, macb1<br />
Press SPACE to abort autoboot in 1 seconds<br />
Uboot>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/welcome-back-ngw100/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ipconfig over usb ethernet</title>
		<link>http://www.coding.com.br/embarcado/ipconfig-over-usb-ethernet/</link>
		<comments>http://www.coding.com.br/embarcado/ipconfig-over-usb-ethernet/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 14:29:09 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[beagleboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=683</guid>
		<description><![CDATA[I guess this post apply only if you are using Linux v.2.6.33-rc3 or above.
You would have noted that kernel IP auto-configuration is not usable for some USB-Ethenet dongles on newer kernel because it starts before the USB devices are found. This was already discussed on LKML.  I proposed a workaround adding a section on menuconfig [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: right;"><em>I guess this post apply only if you are using Linux v.2.6.33-rc3 or above.</em></p>
<p style="text-align: justify;">You would have noted that kernel IP auto-configuration is not usable for some USB-Ethenet dongles on newer kernel because it starts before the USB devices are found. This was already discussed on LKML.  I proposed a workaround adding a section on menuconfig to user increase delay (<a href="http://lkml.org/lkml/2010/2/9/420" target="_blank">patch</a>) but other developer proposed another <a href="http://marc.info/?l=linux-netdev&amp;m=126311212608318&amp;w=2" target="_blank">patch</a> to configure this delay at runtime rather than at compile time. This patches weren&#8217; t  applied to mainline (to further information check link). I decided post here because I take some time to configure my NFS  rootfs due this delay. My tests were made using BeagleBoard and USB-Ethernet dongle based on ASIX 8877x.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/ipconfig-over-usb-ethernet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First prototype for Beagle Board box</title>
		<link>http://www.coding.com.br/embarcado/first-prototype-for-beagle-board-box/</link>
		<comments>http://www.coding.com.br/embarcado/first-prototype-for-beagle-board-box/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:14:51 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[beagleboard]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=533</guid>
		<description><![CDATA[After drawing a sketch for BeagleBoard this week I coud try something real. The board fit perfectly inside the box.

The whole for DVI-D would be a little bigger, the way it is the user need stick the connector well to don&#8217;t loose image quality.

The entries for USB and MMC fits together in the same whole.  I put [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After drawing a <a href="http://www.coding.com.br/embarcado/first-sketch-for-beagle-board-box/" target="_blank">sketch</a> for BeagleBoard this week I coud try something real. The board fit perfectly inside the box.</p>
<p><a href="http://www.coding.com.br/wp-content/uploads/2010/01/bb1.jpg"><img class="aligncenter size-full wp-image-705" title="Box for BeagleBoard" src="http://www.coding.com.br/wp-content/uploads/2010/01/bb1.jpg" alt="" width="500" height="375" /></a></p>
<p style="text-align: justify;">The whole for DVI-D would be a little bigger, the way it is the user need stick the connector well to don&#8217;t loose image quality.</p>
<p><a href="http://www.coding.com.br/wp-content/uploads/2010/01/bb2.jpg"><img class="aligncenter size-full wp-image-706" title="Box for BeagleBoard" src="http://www.coding.com.br/wp-content/uploads/2010/01/bb2.jpg" alt="" width="500" height="375" /></a></p>
<p style="text-align: justify;">The entries for USB and MMC fits together in the same whole.  I put RS232 output because it&#8217;s a prototype, if you are developing something for an <em>end-user</em> you don&#8217;t need that. The box in my tests don&#8217;t heated</p>
<p style="text-align: center;"><a href="http://www.coding.com.br/wp-content/uploads/2010/01/bb3.jpg"><img class="aligncenter size-full wp-image-707" title="Box for BeagleBoard" src="http://www.coding.com.br/wp-content/uploads/2010/01/bb3.jpg" alt="" width="500" height="375" /></a></p>
<p style="text-align: justify;">I&#8217;m using this box to show a &#8220;general purpose&#8221; computer to others. Inside the memory card I had some GNU/Linux distributions like: Angstron, Ubuntu and Gentoo. But Symbian and Maemo are in the roadmap. Other tests include running <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=summary" target="_blank">linus-git</a> kernel done with CodeSourcery toolchain (2009q1 and 2009q3) and playing with armv7a instructions.</p>
<p style="text-align: justify;">
<p style="text-align: justify;">Check more photos on <a title="More photos for BeagleBoard Box" href="http://www.flickr.com/photos/maluta/sets/72157622039150085/detail/" target="_blank">Flickr!</a></p>
<p style="text-align: left;">
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/first-prototype-for-beagle-board-box/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>First sketch for Beagle Board box</title>
		<link>http://www.coding.com.br/embarcado/first-sketch-for-beagle-board-box/</link>
		<comments>http://www.coding.com.br/embarcado/first-sketch-for-beagle-board-box/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 22:59:24 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[beagle board]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=469</guid>
		<description><![CDATA[This is my first approach to make a case for Beagle Board. I used a plastic one that fits almost perfect, needed basically a 12 mm. spacer to height adjust. The box would be like this picture:

And the BB would fit, inside the box, more or less like that:

I still need consider some points:

Even with [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This is my first approach to make a case for <a title="More information about Beagle Board" href="http://www.beagleboard.org" target="_blank">Beagle Board</a>. I used a plastic <a href="http://www.patola.com.br/" target="_blank">one</a> that fits almost perfect, needed basically a 12 <em>mm</em>. spacer to height adjust. The box would be like this picture:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-470" src="http://www.coding.com.br/wp-content/uploads/2010/01/bb1.png" alt="" width="357" height="363" /></p>
<p>And the BB would fit, inside the box, more or less like that:</p>
<p style="text-align: center;"><img class="size-full wp-image-472 aligncenter" src="http://www.coding.com.br/wp-content/uploads/2010/01/bb2.png" alt="" width="392" height="394" /></p>
<p>I still need consider some points:</p>
<ul>
<li>Even with an &#8220;natural&#8221; exhaust ventilation (no fan, not visible in picture) the heat influence on &#8220;heavy&#8221; use.</li>
<li>Check all connectors and see if they fit properly.</li>
</ul>
<p>I hope for the next weeks post more about this box and great ideas with Beagle Board.</p>
<p>Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/first-sketch-for-beagle-board-box/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Changes on kernel cross compiling</title>
		<link>http://www.coding.com.br/embarcado/changes-on-kernel-cross-compiling/</link>
		<comments>http://www.coding.com.br/embarcado/changes-on-kernel-cross-compiling/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 22:32:01 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=360</guid>
		<description><![CDATA[Probably if you compile &#8211; many times &#8211; Linux for embedded hardware you change Makefile to your specific architecture and compiler. An example:
# Set the ARCH and CROSS_COMPILE default values
ARCH            ?= arm
CROSS_COMPILE   ?= arm-unknown-linux-gnu-
Latest Linux (~2.6.31) turns it deprecated (commit 575543347b5baed0ca927cb90ba8807396fe9cc9). Now [...]]]></description>
			<content:encoded><![CDATA[<p>Probably if you compile &#8211; many times &#8211; <a href="http://www.kernel.org">Linux</a> for embedded hardware you change <a href="file:/usr/src/linux/Makefile">Makefile</a> to your specific architecture and compiler. An example:</p>
<pre># Set the ARCH and CROSS_COMPILE default values
ARCH            ?= arm
CROSS_COMPILE   ?= arm-unknown-linux-gnu-</pre>
<p>Latest Linux (~2.6.31) turns it deprecated (commit <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2331d1a6cd3d6e580bc88b9a160066d9e1177fe1">575543347b5baed0ca927cb90ba8807396fe9cc9</a>). Now the settings are saved in two files named:</p>
<p style="padding-left: 30px;">include/generated/kernel.arch<br />
include/generated/kernel.cross</p>
<p><strong>What changes?</strong></p>
<p>Using the new way you don&#8217;t edit Makefile anymore, just need set once your definitions for cross compiling:</p>
<pre>$ make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu-</pre>
<p>And for next builds just run <em>make</em></p>
<pre>$ make</pre>
<p>This works both for plain builds and for O=&#8230; builds.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/changes-on-kernel-cross-compiling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
