diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-07-06 22:35:15 +0200 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-07-06 22:35:15 +0200 |
commit | 4d6a63850b4dc7ca2f060aedda26ddf4efa0e5cc (patch) | |
tree | 336fd12231c1253a23b18f1a5eb4404c52136617 | |
parent | ad29e9bc60ecefdc1fcf401520d1a8b09d41ea20 (diff) |
neek: board added; first nios2 board
see comments in nios2.inc and neek.conf
this is still somewhat work in progress and
could use some work
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-rw-r--r-- | conf/machine/include/nios2.inc | 68 | ||||
-rw-r--r-- | conf/machine/neek.conf | 33 |
2 files changed, 101 insertions, 0 deletions
diff --git a/conf/machine/include/nios2.inc b/conf/machine/include/nios2.inc new file mode 100644 index 0000000000..6aa6538135 --- /dev/null +++ b/conf/machine/include/nios2.inc @@ -0,0 +1,68 @@ +#@TYPE: Machine configuration +#@NAME: nios2 +#@DESCRIPTION: generic machine configuration for nios2 with mmu + +# there are some hooks for uclibc in this file +# however uclibc is not working yet + +# LIBC = "uclibc" +LIBC = "glibc" +# and for the angstrom folks +ANGSTROMLIBC = "${LIBC}" + +# fix up target strings +# TARGET_PREFIX = "nios2-linux-uclibc-" +TARGET_PREFIX = "nios2-linux-" +TARGET_VENDOR_nios2 = "" + +# Set default for common nios2-based machines +MACHINE_FEATURES ?= "kernel26" +# Select an appropriate default kernel + +PREFERRED_PROVIDER_virtual/kernel ?= "linux-nios2" + +# for now we pin gcc, glibc and binutils +# as these are the only versions that have +# nios2 support. +PREFERRED_VERSION_gcc-cross = "4.1.2" +PREFERRED_VERSION_gcc-cross-initial = "4.1.2" +PREFERRED_VERSION_gcc-cross-intermediate = "4.1.2" +PREFERRED_VERSION_binutils = "2.17.50.0.12" +PREFERRED_VERSION_binutils-cross = "2.17.50.0.12" +PREFERRED_VERSION_glibc = "2.5" +PREFERRED_VERSION_glibc-initial = "2.5" + +# uclibc does not work yet +# PREFERRED_VERSION_uclibc = "0.9.30.3" +# PREFERRED_VERSION_uclibc-initial = "0.9.30.3" + +# for now busybox 1.13.2 is the only one +# patched and tested for nios2 so pin this +# one too, until the other versions are updated +# for nios2 too. +PREFERRED_VERSION_busybox_nios2 = "1.13.2" + +# there are some issues cross-compiling when +# using linux-libc-headers-native as we get +# some native inc dirs when compiling crt stuff +# ASSUME_PROVIDED fixes this (but breaks compilation +# on old host systems like red hat 4. +ASSUME_PROVIDED += "linux-libc-headers-native" + +# Set default for 16MB machines - can be overridden for more or less flash. +ROOT_FLASH_SIZE ?= "12" + +# Allow for rootfs loaded direct from internal hard disk +IMAGE_FSTYPES ?= "jffs2 tar.gz" + +# Set default for common ixp4xx-based machines +EXTRA_IMAGECMD_jffs2 = "--pad --eraseblock=0x20000 -n" + +#------------------------------------------------------------------------------- +# Board defaults +#------------------------------------------------------------------------------- +# These values are board specific but they seem to be common to a large number +# of boards so are reasonable defaults. +SERIAL_CONSOLE = "115200 ttyS0" +KERNEL_CONSOLE = "ttyS0,115200n8" +USE_VT = "0" diff --git a/conf/machine/neek.conf b/conf/machine/neek.conf new file mode 100644 index 0000000000..10866f79c0 --- /dev/null +++ b/conf/machine/neek.conf @@ -0,0 +1,33 @@ +#@TYPE: Machine +#@NAME: NEEK machine +TARGET_ARCH = "nios2" + +# This is a machine configuration file for the +# NEEK (NIOS2 Embedded Evaluation Kit) +# the sof file used to develop/tst this is from +# http://www.nioswiki.com/@api/deki/files/487/=cycloneIII_embedded_evaluation_kit_standard.sof + +PREFERRED_PROVIDER_virtual/kernel = "linux-nios2" + +EXTRA_IMAGECMD_jffs2 = "-lnp " + +# Guesswork +SERIAL_CONSOLE = "115200 ttyS2" + + +# do ubiattach /dev/ubi_ctrl -m 4 +# From dmesg: +# UBI: smallest flash I/O unit: 2048 +# UBI: logical eraseblock size: 129024 bytes +# from ubiattach stdout: +# UBI device number 0, total 1996 LEBs +MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996" + +# do ubiattach /dev/ubi_ctrl -m 4 +# from dmesg: +# UBI: smallest flash I/O unit: 2048 +# UBI: physical eraseblock size: 131072 bytes (128 KiB) +# UBI: sub-page size: 512 +UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512" + +require conf/machine/include/nios2.inc |