 hacker:: [[turmio]]

= Hacking With AriettaG25 =
{{attachment:AriettaG25.png}}

"Tiny, cheap and easy ARM9@400Mhz Linux Embedded module for DIY and Maker cultures "
http://www.acmesystems.it/arietta

 * [[attachment:AriettaG25Big.png]]
##content goes here


 * CPU Atmel AT91SAM9G25 SoC (ARM9 @ 400Mhz)
 * DDR2 Ram 256Mbyte
 * Power supply: 5VDC via microUSB or 3.3VDC using the PCB pads
 * Size: 53x25mm
 * Power consuption
  * Idle after boot CPU 1% 59mA
  * CPU load 100% (memtester) 84mA
  * Idle with WiFi IA associated no traffic 132mA
  * During WiFi IA download no other activities 160mA
  * http://www.acmesystems.it/power_consuption
Everything worked as described. Nice and smoothly. 
I will write down my raw notes about my customisations here and maybe someone finds these helpful. 
== Links ==
 * http://dkc1.digikey.com/fi/en/tod/Atmel/AT91SAMBootStrategies_NoAudio/AT91SAMBootStrategies_NoAudio.html
 * http://www.atmel.com/devices/SAM9G25.aspx?tab=documents
== Porting OpenBSD to AriettaG25 ==
Once again I don't have any idea how to do it, but I will try and learn...

 * Arietta uses customised bootloader based to ''at91bootstrap 3.7''
  * [[http://www.acmesystems.it/compile_at91bootstrap]]

=== Building at91bootstrap with u-boot ===
 * http://www.atmel.com/Images/doc6277.pdf
 * Default bootloader does not support any customisation
 * I followed the instructions from [[http://www.acmesystems.it/compile_at91bootstrap]]
{{{
~/at91bootstrap$ make arietta-256m_defconfig
Select:
Image Loading Strategy (Load U-Boot into last MBYTE of SDRAM)
Exit and save

~/at91bootstrap$ make CROSS_COMPILE=arm-linux-gnueabi-
}}}
 * [[/at91bootstrapCompileOutput]]
Now there should be second level bootloader for Arietta. You can find it from ''binaries/at91sam9x5_arietta-sdcardboot-uboot-3.7.bin''. It tries to load actual u-boot.bin from the SD-card (I guess) so we need to get working u-boot binary.

 * Status from Arietta boot
{{{
AT91Bootstrap 3.7-00016-gc94e8a2 (Mon Nov 24 14:22:16 PST 2014)

1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 0x0 1-Wire chips found

WARNING: 1-Wire: No 1-Wire chip found
 
1-Wire: Using defalt information

1-Wire: SYS_GPBR2: 0x4010425, SYS_GPBR3: 0x8421

SD/MMC: Image: Read file u-boot.bin to 0x22000000
SD: Card Capacity: High or Extended
SD: Specification Version 3.0X
*** FATFS: f_open, filename: [u-boot.bin]: error
SD/MMC: Failed to load image
}}}


I downloaded u-boot.bin from [[http://www.at91.com/linux4sam/bin/view/Linux4SAM/LegacySAM9x5Page#U_Boot]]

{{{
AT91Bootstrap 3.7-00016-gc94e8a2 (Mon Nov 24 14:22:16 PST 2014)

1-Wire: Loading 1-Wire information ...
1-Wire: ROM Searching ... Done, 0x0 1-Wire chips found

WARNING: 1-Wire: No 1-Wire chip found
 
1-Wire: Using defalt information

1-Wire: SYS_GPBR2: 0x4010425, SYS_GPBR3: 0x8421

SD/MMC: Image: Read file u-boot.bin to 0x22000000
SD: Card Capacity: High or Extended
SD: Specification Version 3.0X
SD/MMC: Done to load image
}}} 
 description:: Playing around with Arietta G25
 started:: 2014-11-25
----
CategoryProjekti
