Activating ARM9 with a working OS » History » Revision 4
Revision 3 (Vanč Levstik, 10.12.2010 03:12) → Revision 4/6 (Vanč Levstik, 10.12.2010 03:20)
h1. Activating ARM9 with a working OS {{toc}} h2. Basic concept h3. Hardware !http://www.shrani.si/f/2A/128/4kJtfyhW/arm-picture.jpg! We will be using FRI-SMS 32-bit microcontroller based on AT91SAM9620 chip from ARM9 family. It has fast ROM and RAM memories and embedds Ethernet MAC, one USB Device Port, and a USB Host controller. It also integrates several standard peripherals, such as the USART, SPI, TWI, Timer Counters, Synchronous Serial Controller, ADC and MultiMedia Card Interface. More about microcontroller can be found in "Manual":http://laps.fri.uni-lj.si/fri-sms/datoteke/AT91SAM9260.pdf h3. Software For programming the device we will be using AT91 In-System programmer "SAM-BA":http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3883. We will also use "U-BOOT":http://www.denx.de/wiki/U-Boot as a second-step bootloader. Our operating system will be Linux, kernel version 2.6.27. h2. Installing OS h3. Concept FRI-SMS is built, so it boots from integrated ROM memory. It looks for bootloader into serial flash memory, if it is found it loads into internal SDRAM. This first-step bootloader then sets SDRAM controller and loads second-step bootloader(U-BOOT) into external SDRAM end executes it. Second-step bootloader takes care of other microcontroller settings and runs the OS. If bootloader is not found in ROM it searches for bootloader thtrough USB interface and then through RS232 interface and waits there in loop. h3. Loading software into flash ROM memory * Installing SAM-BA After installing SAM-BA we have to set the drivers correctly. SAM-BA is based on setting connection throuogh COM port, so we have to install a driver which sets the PC, so it recognizes the USB as COM port. SAM-BA install includes a driver, but it does not work on x64 based operating operatin systems such as Windows Vista 64-bit and Windows 7 64-bit. Attached is a modified driver, so it works on those systems (tested on Windows 7). 64-bit With SAM-BA we establish a connection between PC and FRI-SMS, then we enable DataFlash on external flash memory. # First we load second-step bootloader U-BOOT from address *0x8400* onward # Next step is Linux OS kernel, which we load on address *0x42000* # Last step is first-step bootloader, which must be loaded last, because we can't load any more files after we load first step loader (at least until system restore)