Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: Rubid on March 01, 2015, 06:56:37 PM

Title: NAND flash programming, setting up imx233 registers.
Post by: Rubid on March 01, 2015, 06:56:37 PM
Hi,
I was using several Olinuxino boards to prototype and test my own devices, and now its time to make my own imx233-powered device. But I have some problems (I don't have enough knowledge) with several things:

1. How can I out my customized Linux image and bootlets on a NAND flash chip before soldering it to the board? Are there any programmers (devices) that are dedicated to do it? Or is there a better way?

2. How can I setup registers in imx233? In Atmega, I was doing this using avrdude and programmer. With imx233 iż it only possible to do it via bootlets?

Regards.
Title: Re: NAND flash programming, setting up imx233 registers.
Post by: mbergmann on March 02, 2015, 10:22:23 AM
Hi Rubid,

do you really want to use NAND on your board design? Why not use the SD-Card to boot from?
Do you have a dedicated controller for your NAND, or will you do the NAND handling all you self based on iMX233 features?
Do your application need to write on the NAND?

We have a running TTS system based on iMX233 and NAND (http://www.bones-embedded.ch/product.php), so I we can discuss the steps needed in private mail if you want.

Kind reagards

Mike
Title: Re: NAND flash programming, setting up imx233 registers.
Post by: Kean on March 22, 2015, 03:44:34 PM
In case it helps, I made a custom bootlet for factory testing and burning of OTP data on my imx233 based design.
See https://github.com/moorescloud/holitest-imx
In particular https://github.com/moorescloud/holitest-imx/blob/master/holitest/holitest.c

I imagine this could be extended to program the NAND flash from data sent over the serial port, but it may not be the fastest or best way to do it.

A Windows app communicated with the test jig to exercise the board in the test jig, including running avrdude to program the ATmega328 co-processor, log all test data, and finally print a serial number label to match the OTP data.
https://github.com/moorescloud/HolidayTest1