background image

# cd board/CW9G20/nandflash/
# make

If there is no error, nand

flash_at91sam9g20ek.bin

should have been generated with a file size of

about 130~150Kbyte. you can get it in

bootloader/s3c-u-boot-1.3.4/board/CW9G20/nandflash/

folder.

5.2.2 Boot-loader compile

copy the file

u-boot-1.3.4.tar.bz2

From CD to ubuntu system in PC.

u-boot-1.3.4.tar.bz2

position:

CD:\linux\code

# mkdir bootloader
# cd bootloader
# cp -a /media/

cdrom

/linux/code/

u-boot-1.3.4.tar.bz2

.

# tar xvf

u-boot-1.3.4.tar.bz2

# cd

u-boot-1.3.4

Then we can get the

u-boot-1.3.4

folders in bootloader folder, run the command

to compile it:

# make CW9G20_config
# make

If there is no error,

u-boot.bin

should have been generated with a file size of about 130~150Kbyte.

you can get it in

bootloader/s3c-u-boot-1.3.4

folder.

5.2.3 Kernel compile

copy the file

linux-2.6.30.tar.bz2

From CD to ubuntu system in PC.

linux-2.6.30.tar.bz2

position:

CD:\linux\code

# mkdir bootloader
# cd bootloader
# cp -a /media/

cdrom

/linux/code/

linux-2.6.30.tar.bz2

.

# tar xvf

linux-2.6.30.tar.bz2

# cd

linux-2.6.30

Then we can get the

ulinux-2.6.30

folders in bootloader folder, run the command

to compile it:

# cp arch/arm/configs/CW9G20_defconfig .config
# make menuconfig
# make uImage

If there is no error,

uImage

should have been generated with a file size of about 1.5M-2Mbyte. you

can get it in

Arch/arm/boot

folder.

5.2.4 Root Filesystem Build

SBC-SAM9G20 User manual

www.armdevs.com

Summary of Contents for SBC-SAM9G20

Page 1: ...SBC SAM9G20 User manual Ver 1 0 Date 2010 10 20 CoreWind Technology Tel 86 755 29638421 Email market armdevs com Web www armdevs com SBC SAM9G20 User manual www armdevs com ...

Page 2: ...tory Rev Date Description V1 0 2010 10 20 The initial released Version V2 0 2011 4 1 Rename the CW9G20 to SBC SAM9G20 V2 1 2011 5 10 Support character LCD by GPIO extended SBC SAM9G20 User manual www armdevs com ...

Page 3: ... NET J22 13 3 11 USB J7 J9 14 3 12 SD Card 14 3 13 Character LCD interface 14 3 14 SPI GPIO ADC J3 J10 J13 14 3 15 Watchdog 17 3 16 RTC 17 3 17 jumper 17 3 18 Buzzer and LED 17 Chapter 4 Software Description 19 4 1 Overview 19 4 2 Data Storage on SBC SAM9G20 19 4 2 SBC SAM9G20 Linux Burning and application test 19 Chapter 5 Linux System Development 20 5 1 Install the Cross Compiler Tools 20 5 1 1 ...

Page 4: ...5 2 4 Root Filesystem Build 21 5 2 5 Kernel config 22 SBC SAM9G20 User manual www armdevs com ...

Page 5: ...ity is included on this board including Flash Memory Serial Ports Ethernet CAN bus USB Host USB Device I2S SPI A D RTC digital I O lines and more CoreWind also offers a complete software development package to customers The board supports linux 2 6 30 operating system and is provided with complete basic drivers which enable a quick channel to evaluate the Atmel AT91SAM9G20 processor and customize ...

Page 6: ...sary hardware and software to quickly develop applications The kit includes the following One SBC SAM9G20 Board One Serial cable One net cable One USB cable One 12V 2A Power adapter One DVD 1 4 Support When you don t know what s wrong or what to do next let us help you We supports what is sells Our engineering staff is here to help you with your application Our technical support department assists...

Page 7: ... solve the board problem Or you can ask your questions in the Forum The Forum website http www at91sam org forum Email Support Send E mail to support armdevs com and our Technical Support staff will respond as soon as possible to help you get your board working SBC SAM9G20 User manual www armdevs com ...

Page 8: ...power supply to the board 4 Connect serial cable between SBC SAM9G20 debug port and PC terminal serial port 5 Launch a terminal emulator such as HyperTerminal or minicom on the PC configured to connect to the serial port of the SBC SAM9G20 Configure the serial port with the following parameters 115200 bits per second 8 data bits no parity 1 stop bit no flow control 6 Connect the board to a local a...

Page 9: ...f 400MHz operation RAM 64Mbyte SDRAM Flash 256Mbyte Nand Flash RTC Battery backed Real Time Clock Calendar EEPROM 4kbit EEPROM Watch Dog On chip watch dog timer Data Transfer Interface UARTS 7 serial Port 6 RS232 serial port 1 RS485 Serial port Debug 3 wire RS232 serial port COM0 5 wire RS232 TTL serial port COM2 5 wire RS232 TTL serial port SBC SAM9G20 User manual www armdevs com ...

Page 10: ...MMC card slot SPI 1 High Speed SPI ports IIC Hardware I2C port A D 1 x 4 channel 10 bit ADC Others Button 1 Reset button LED 1 battle LED 1 user LED Buzzer 1 Buzzer Mechanical Dimensions Temperature 10 C to 70 C Power supply 12V 3 2 AT91SAM9G20 U7 The SBC SAM9G20 Single Board Computer uses the Atmel AT91SAM9G20 as the core processor on this development board The top level features of AT91SAM9G20 p...

Page 11: ...mory The SBC SAM9G20 can be also ordered with optional 512MB 1GB NAND FLASH Nand Flash chip name K9F2G08UOA 3 5 Power Supply J4 The SBC SAM9G20 board requires a regulated 12VDC at 1A power supply applied to J4 The power can be protected by fuse 0 75A limited When power is applied LED D22 will illuminate 3 6 10 100M Net J22 The SBC SAM9G20 Single Board Computer is shipped with support for a complet...

Page 12: ... pin berg header J23 Please see follow table for the pin outs of Serial connectors The COM2 COM3 are 5 wire serial and the others is 3 wire serial serial Table J23 USART0 USART5 Connector Pin Signal Name Function 1 GND GND 2 GND GND 3 RTXD0 UART0 TX 4 RTXD2 UART2 TX 5 RRXD0 UART0 RX 6 RRXD2 UART2 RX 7 RRTS0 UART0 RTS 8 RRTS2 UART2 RTS 9 RCTS0 UART0 CTS 10 RCTS2 UART2 CTS 11 RTXD4 UART4 TX 12 RTXD3...

Page 13: ...igital signal isolator Pin definition is as below J5 CAN bus Pin Signal Name 1 CAN_H 2 CAN_L 3 10 NET J22 The SBC SAM9G20 Single Board Computer is shipped with support for a complete Ethernet interface The AT91SAM9G20 contains a MAC subsystem that is compliant with the ISO TEC 802 3 topology for a single shared medium with several stations The Media Access Controller MAC within the AT91SAM9G20 sup...

Page 14: ...Security Digital card is a kind of widely applied card A specified interface circuit on platform supports reading and writing function of SD card AT91SAM9G20 integrates SD module in itself 3 13 Character LCD interface We can use the GPIO interface to extended LCD interface it support resolution 320 240 More interface info refer to the 3 14 GPIO J10 3 14 SPI GPIO ADC J3 J10 J13 The AT91SAM9G20 cont...

Page 15: ...IO 4 PA22 GPIO 5 PA27 GPIO 6 PB21 GPIO 7 PA28 GPIO 8 NC NC 9 PA23 SDA IIC interface 10 PA24 SCL IIC interface 11 VDD5V POWER out 12 VDD33 POWER out 13 NRST Reset I O 14 GND GND 15 WKUP WakeUp 16 GND GND 17 VDD33 470R pullup 18 PC9 GPIO GPIO for state LED 19 PC12 GPIO GPIO 470R 20 GND GND J10 GPIO Pin I O Line Peripheral A Peripheral B Function SBC SAM9G20 User manual www armdevs com ...

Page 16: ...GPIO 15 PC7 GPIO 16 PC8 GPIO 17 NC 18 NC 19 VDD33 VDD33 Power 20 VDD33 VDD33 Power J13 GPIO ADC Pin I O Line Peripheral A Peripheral B Function 1 GND 2 GND 3 PA0 SPI0_MISO SPI interface 4 PA2 SPI0_SPCK SPI interface 5 PA1 SPI0_MOSI SPI interface 6 PA3 SPI0_NPCS0 SPI interface 7 NC 8 NC 9 NC 10 NC 11 GND GND 12 VDD33 VDD33 SBC SAM9G20 User manual www armdevs com ...

Page 17: ... 16 RTC The SBC SAM9G20 uses the external RTC chips DS3231SN with battery hook up to provide accurate time keeping 3 17 jumper Jumper Function Description J8 Defualt close Nand CS open Nand Chips not select close Nand Chips select J20 NC NC J6 J24 120R resistor for 3 18 Buzzer and LED The SBC SAM9G20 have a buzzer and 2 LED in the board The Buzzer can be controlled by PB19 Item Function PB19 Contr...

Page 18: ...D22 Power LED SBC SAM9G20 User manual www armdevs com ...

Page 19: ...C SAM9G20 Single Board Computer uses on board NAND FLASH for all data storage requirements including boot strap code boot loader Linux kernel and Linux file system The following table is the factory default storage map on the NAND FLASH Table NAND FLASH Storage Map Start Address Size Usage 0x00000000 0x20000 Boot strap code 0x00020000 0x40000 U boot 0x00060000 0x40000 U boot environment storage ra...

Page 20: ...nt file Modify your bashrc file to add a new path with editor gedit or vi export PATH opt codesourcery arm 2007q1 bin PATH To apply this change login again or restart the bashrc source bashrc 5 1 3 Check the tool chain path to see if it is set up correctly or not arm none linux gnueabi gcc v 5 2 Linux System Compile 5 2 1 AT91Bootstarp compile copy the file Bootstrap v1 14 tar bz2 From CD to ubunt...

Page 21: ...G20_config make If there is no error u boot bin should have been generated with a file size of about 130 150Kbyte you can get it in bootloader s3c u boot 1 3 4folder 5 2 3 Kernel compile copy the file linux 2 6 30 tar bz2 From CD to ubuntu system in PC linux 2 6 30 tar bz2 position CD linux code mkdir bootloader cd bootloader cp a media cdrom linux code linux 2 6 30 tar bz2 tar xvf linux 2 6 30 ta...

Page 22: ...he make menuconfig then you can configure the kernel by yourself RTC config Device Drivers Real Time Clock Dallas Maxim DS3231 DS1307 37 38 39 40 ST M41T00 EPSON RX 8025 LED config Device Drivers LED Class Support LED Support for GPIO connected LEDs Platform device bindings for GPIO LEDs LED Trigger support LED Timer Trigger LED Heartbeat Trigger SD card config Device Drivers MMC SD SDIO card supp...

Page 23: ...ers Network device support Ethernet 10 or 100Mbit Atmel MACB support FLash config Device Drivers Memory Technology Device MTD support NAND Device Support Support for NAND Flash SmartMedia on AT91 and AVR32 GPIO config Device Drivers GPIO Support sys class gpio sysfs interface Serial port config Device Drivers Character devices Serial drivers AT91 AT32 on chip serial port support Support for consol...

Page 24: ...SBC SAM9G20 User manual www armdevs com ...

Reviews: