Skip to content

Commit

Permalink
original tar
Browse files Browse the repository at this point in the history
  • Loading branch information
neub committed Mar 20, 2012
0 parents commit cfcb4d7
Show file tree
Hide file tree
Showing 307 changed files with 102,341 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
@@ -0,0 +1,23 @@
.config
log
log/*
config/at91bootstrap-config/
config/conf
config/conf.o
config/kxgettext.o
config/lex.zconf.c
config/zconf.hash.c
config/zconf.tab.c
config/zconf.tab.o
config/.depend
.config.cmd
.config.old
.auto.deps
build
result
binaries
*~
*.orig
*.o
tags
*.swp
Empty file added CHANGELOG
Empty file.
375 changes: 375 additions & 0 deletions Config.in
@@ -0,0 +1,375 @@
mainmenu "AT91 Bootstrap configuration"

config HAVE_DOT_CONFIG
bool
default y
help
Indicate that have an included file.

source "board/Config.in"

source "driver/Config.in.driver"

config CONFIG_PROJECT
string
default "dataflash" if CONFIG_DATAFLASH
default "flash" if CONFIG_FLASH
default "nandflash" if CONFIG_NANDFLASH
default "sdcard" if CONFIG_SDCARD

choice
prompt "Image Loading Strategy"
default CONFIG_LOAD_UBOOT

#
# Load U-Boot
#
config CONFIG_LOAD_UBOOT
bool "Load U-Boot into last MBYTE of SDRAM"
help
Use this mode to load an second level boot monitor
like U-boot into the last MB of SDRAM.

#
# Load EBoot
#
config CONFIG_LOAD_EBOOT
bool "Support loading EBoot"
help
Use this mode to load EBoot

#
# Load Linux
#
config CONFIG_LOAD_LINUX
bool "Support loading Linux directly"
---help---
Load Linux kernel directly from storage media

#
# Load WinCE
#
config CONFIG_LOAD_NK
bool "Support loading WinCE directly"
depends on CONFIG_NANDFLASH || CONFIG_SDCARD
help
Use this mode to load WinCE NK Image

config CONFIG_LOAD_64KB
bool "Load 64 kB into the start of SDRAM"
help
Use this mode to load an embedded application
which can have max 64 kB Size

config CONFIG_LOAD_1MB
bool "Load 1 MB into start of SDRAM"
help
Use this mode to load an embedded application
which can have a size of up to 1 MByte

config CONFIG_LOAD_4MB
bool "Load 4 MB into start of SDRAM"
help
Use this mode to load an embedded application
which can have a size of up to 4 MByte

endchoice

#
# Linux Image Storage Setup
#
menu "Linux Image Storage Setup"
depends on CONFIG_LOAD_LINUX
config CONFIG_OS_MEM_BANK
string "OS Memory Bank Base Address"
default "0x20000000" if CONFIG_AT91SAM9260EK
default "0x20000000" if CONFIG_AT91SAM9261EK
default "0x20000000" if CONFIG_AT91SAM9263EK
default "0x20000000" if CONFIG_AT91SAM9RLEK
default "0x20000000" if CONFIG_AT91SAM9XEEK
default "0x20000000" if CONFIG_AT91SAM9G10EK
default "0x20000000" if CONFIG_AT91SAM9G20EK
default "0x70000000" if CONFIG_AT91SAM9G45EK
default "0x70000000" if CONFIG_AT91SAM9G45EKES
default "0x70000000" if CONFIG_AT91SAM9M10EK
default "0x70000000" if CONFIG_AT91SAM9M10EKES
default "0x20000000" if CONFIG_AT91SAM9X5EK

config CONFIG_OS_MEM_SIZE
string "OS Memory Bank Size"
default "0x4000000"

config CONFIG_LINUX_KERNEL_ARG_STRING
string "Linux kernel parameters"
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9260EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9261EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9263EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9RLEK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9XEEK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9G10EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9G20EK && !CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9G45EK && !CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9G45EKES && !CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9X5EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9M10EK && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 mtdparts=atmel_nand:4M(bootstrap),60M(rootfs),-(spare) root=/dev/mtdblock1 rw rootfstype=jffs2" if CONFIG_AT91SAM9M10EKES && !CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9RLEK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9G10EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9G20EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9XEEK && CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9G45EK && CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9G45EKES && CONFIG_SDCARD
default "mem=128M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9X5EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9M10EK && CONFIG_SDCARD
default "mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootdelay=2" if CONFIG_AT91SAM9M10EKES && CONFIG_SDCARD

config CONFIG_OS_IMAGE_NAME
depends on CONFIG_SDCARD && CONFIG_AT91SAM9G10EK
default "image.bin"

config CONFIG_OS_IMAGE_NAME
depends on CONFIG_SDCARD && !CONFIG_AT91SAM9G10EK
string "Binary Name on SD Card"
default "image.bin"

config CONFIG_OS_IMG_SIZE
string "OS Image Size"
default "0x280000"

config CONFIG_LINUX_IMG_NAND_OFFSET
depends on CONFIG_NANDFLASH
string "NandFlash offset for Linux kernel"
default "0x200000"
endmenu

config CONFIG_OS_IMAGE_NAME
depends on CONFIG_SDCARD && CONFIG_LOAD_UBOOT
default "uboot.bin"

#
# WinCE Image Storage Setup
#
menu "WinCE Image Storage Setup"
depends on CONFIG_LOAD_NK
config CONFIG_OS_MEM_BANK
string "OS Memory Bank Base Address"
default "0x20000000" if CONFIG_AT91SAM9260EK
default "0x20000000" if CONFIG_AT91SAM9261EK
default "0x20000000" if CONFIG_AT91SAM9263EK
default "0x20000000" if CONFIG_AT91SAM9RLEK
default "0x20000000" if CONFIG_AT91SAM9G10EK
default "0x20000000" if CONFIG_AT91SAM9G20EK
default "0x70000000" if CONFIG_AT91SAM9G45EK
default "0x70000000" if CONFIG_AT91SAM9G45EKES
default "0x70000000" if CONFIG_AT91SAM9M10EK
default "0x70000000" if CONFIG_AT91SAM9M10EKES
default "0x20000000" if CONFIG_AT91SAM9X5EK

config CONFIG_OS_MEM_SIZE
string "OS Memory Bank Size"
default "0x4000000"

config CONFIG_CE_LOAD_ADDR
string "Memory address to load NK.nb0"
default "537292800" if CONFIG_AT91SAM9260EK
default "537300992" if CONFIG_AT91SAM9261EK
default "537313280" if CONFIG_AT91SAM9263EK
default "537313280" if CONFIG_AT91SAM9RLEK
default "537300992" if CONFIG_AT91SAM9G10EK
default "537292800" if CONFIG_AT91SAM9G20EK
default "1879490560" if CONFIG_AT91SAM9G45EK
default "1879490560" if CONFIG_AT91SAM9G45EKES
default "1879490560" if CONFIG_AT91SAM9M10EK
default "1879490560" if CONFIG_AT91SAM9M10EKES
default "537292800" if CONFIG_AT91SAM9X5EK

config CONFIG_OS_IMAGE_NAME
depends on CONFIG_SDCARD
string "WinCE Kernel Image Name on SD Card"
default "NK.nb0"

config CONFIG_OS_IMG_SIZE
string "OS Image Size"
default "0x2000000"

config CONFIG_WINCE_IMG_NAND_OFFSET
depends on CONFIG_NANDFLASH
string "NandFlash offset for Linux kernel"
default "0x200000"
endmenu

config CONFIG_IMG_ADDRESS
string
depends on CONFIG_LOAD_UBOOT || CONFIG_LOAD_NK || CONFIG_LOAD_LINUX || CONFIG_LOAD_EBOOT
default "0x00008000" if CONFIG_FLASH
default "0x00004000" if CONFIG_DATAFLASH && CONFIG_LOAD_EBOOT && CONFIG_AT91SAM9260EK
default "0x00005000" if CONFIG_DATAFLASH && CONFIG_LOAD_EBOOT && !CONFIG_AT91SAM9260EK
default "0x00008400" if CONFIG_DATAFLASH && CONFIG_LOAD_UBOOT
default "0x00042000" if CONFIG_DATAFLASH && CONFIG_LOAD_LINUX
default "0x00080000" if CONFIG_NANDFLASH && CONFIG_LOAD_EBOOT
default "0x00020000" if CONFIG_NANDFLASH && CONFIG_LOAD_UBOOT
default "0x00200000" if CONFIG_NANDFLASH && CONFIG_LOAD_LINUX
default "0x00200000" if CONFIG_NANDFLASH && CONFIG_LOAD_NK
default "0x00000000" if CONFIG_SDCARD
help

#
# For Demo App
#
config CONFIG_IMG_ADDRESS
string
depends on !CONFIG_LOAD_UBOOT && !CONFIG_LOAD_NK && !CONFIG_LOAD_LINUX && !CONFIG_LOAD_EBOOT
default "0x00008400" if CONFIG_DATAFLASH
default "0x00020000" if CONFIG_NANDFLASH

config CONFIG_SETTING_ADDRESS
string
default "0x00008000" if CONFIG_FLASH
default "0x00408400" if CONFIG_DATAFLASH
default "0x01FE0000" if CONFIG_NANDFLASH
default "0x00000000" if CONFIG_SDCARD
help

config CONFIG_SETTING_SIZE
string
default "0x00001000"
help

config CONFIG_IMG_SIZE
string
default "0x00040000" if CONFIG_LOAD_UBOOT || CONFIG_LOAD_EBOOT
default "0x00010000" if CONFIG_LOAD_64KB
default "0x00100000" if CONFIG_LOAD_1MB
default "0x00400000" if CONFIG_LOAD_4MB
default "0x00280000" if CONFIG_LOAD_LINUX
default "0x02000000" if CONFIG_LOAD_NK
help
at91bootstrap will copy this amount of data

config CONFIG_JUMP_ADDR
string
depends on CONFIG_LOAD_UBOOT
default "0x73F00000" if CONFIG_AT91CAP9ADK
default "0x73F00000" if CONFIG_AT91CAP9STK
default "0x73F00000" if CONFIG_AT91SAM9G45EKES
default "0x73F00000" if CONFIG_AT91SAM9G45EK
default "0x73F00000" if CONFIG_AT91SAM9M10EK
default "0x73F00000" if CONFIG_AT91SAM9M10EKES
default "0x23F00000"
help
The entry point to which the bootstrap will pass control.

config CONFIG_JUMP_ADDR
string
depends on CONFIG_LOAD_NK
default "0x70000000" if CONFIG_AT91CAP9ADK
default "0x70000000" if CONFIG_AT91CAP9STK
default "0x7006c000" if CONFIG_AT91SAM9G45EKES
default "0x7006c000" if CONFIG_AT91SAM9G45EK
default "0x7006c000" if CONFIG_AT91SAM9M10EK
default "0x7006c000" if CONFIG_AT91SAM9M10EKES
default "0x20067000" if CONFIG_AT91SAM9G20EK
default "0x2006c000" if CONFIG_AT91SAM9263EK
default "0x20059000" if CONFIG_AT91SAM9261EK
default "0x20067000" if CONFIG_AT91SAM9260EK
default "0x2006c000" if CONFIG_AT91SAM9RLEK
default "0x20069000" if CONFIG_AT91SAM9G10EK
default "0x20067000" if CONFIG_AT91SAM9X5EK
default "0x23F00000"
help
The entry point to which the bootstrap will pass control.

config CONFIG_JUMP_ADDR
string
depends on CONFIG_LOAD_LINUX
default "0x72000000" if CONFIG_AT91CAP9ADK
default "0x72000000" if CONFIG_AT91CAP9STK
default "0x72000000" if CONFIG_AT91SAM9G45EKES
default "0x72000000" if CONFIG_AT91SAM9G45EK
default "0x72000000" if CONFIG_AT91SAM9M10EK
default "0x72000000" if CONFIG_AT91SAM9M10EKES
default "0x22000000" if CONFIG_AT91SAM9G20EK
default "0x22000000" if CONFIG_AT91SAM9263EK
default "0x22000000" if CONFIG_AT91SAM9261EK
default "0x22000000" if CONFIG_AT91SAM9260EK
default "0x22000000" if CONFIG_AT91SAM9RLEK
default "0x22000000" if CONFIG_AT91SAM9G10EK
default "0x22000000" if CONFIG_AT91SAM9X5EK
default "0x22000000"
help
The entry point to which the bootstrap will pass control.

config CONFIG_JUMP_ADDR
string
depends on !CONFIG_LOAD_UBOOT && !CONFIG_LOAD_NK && !CONFIG_LOAD_LINUX
default "0x70000000" if CONFIG_AT91CAP9ADK
default "0x70000000" if CONFIG_AT91SAM9G45EK
default "0x70000000" if CONFIG_AT91SAM9M10EK
default "0x70000000" if CONFIG_AT91SAM9M10EKES
default "0x70000000" if CONFIG_AT91SAM9G45EKES
default "0x20000000"
help
The entry point to which the bootstrap will pass control.

config CONFIG_GLBDRV_ADDR
string
default "0x70000000" if CONFIG_AT91CAP9ADK
default "0x70000000" if CONFIG_AT91CAP9STK
default "0x7006b000" if CONFIG_AT91SAM9G45EKES
default "0x7006b000" if CONFIG_AT91SAM9G45EK
default "0x7006b000" if CONFIG_AT91SAM9M10EK
default "0x7006b000" if CONFIG_AT91SAM9M10EKES
default "0x20058000" if CONFIG_AT91SAM9G20EK
default "0x2006b000" if CONFIG_AT91SAM9263EK
default "0x20058000" if CONFIG_AT91SAM9261EK
default "0x20058000" if CONFIG_AT91SAM9260EK
default "0x2006b000" if CONFIG_AT91SAM9RLEK
default "0x20068000" if CONFIG_AT91SAM9G10EK
default "0x20068000" if CONFIG_AT91SAM9X5EK
default "0x23F00000"
help

config CONFIG_LONG_TEST
bool "Perform a memory test at startup"
default n
help

config CONFIG_DEBUG
bool "Debug Support"
default n
help
Output Debug messages
choice
prompt "Debug Level"
depends on CONFIG_DEBUG
config CONFIG_DEBUG_INFO
bool "General debug information"
config CONFIG_DEBUG_LOUD
bool "Loud debug output"
config CONFIG_DEBUG_VERY_LOUD
bool "Even louder debug output"
endchoice

config CONFIG_HW_INIT
bool "Call Hardware Initialization"
default y
help
Initialize Hardware

config CONFIG_USER_HW_INIT
bool "Call User specific Hardware Initialization"
help
Initialize Hardware

config CONFIG_THUMB
bool "Build in thumb mode"
help
Build code in thumb mode

config CONFIG_SCLK
depends on CONFIG_AT91SAM9RLEK || CONFIG_AT91SAM9G45EK || CONFIG_AT91SAM9G45EKES || CONFIG_AT91SAM9M10EK || CONFIG_AT91SAM9M10EKES || CONFIG_AT91SAM9X5EK
bool "Use external 32KHZ oscillator as source of slow clock"
help
Use external 32KHZ oscillator as source of slow clock

source "host-utilities/Config.in"

0 comments on commit cfcb4d7

Please sign in to comment.