1
0
Fork 0
forked from nuttx/nuttx-update

Changes for clean RGMP compile

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3598 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-05-12 19:39:51 +00:00
parent cd5cb04547
commit 5ae93326e7
6 changed files with 99 additions and 26 deletions

View file

@ -1744,4 +1744,9 @@
* graphics/nxbe/nxbe_colormap.c: Fix error noted by Bassem Fahmy. The function
nxbe_colormap was change to nxbe_configure... apparently "search-and-replace"
error. This error was not noticed before because most NX platforms do not use
colormapping.
colormapping.
* arch/rgmp and configs/rgmp. Add architecture support and build
configuration for RGMP. RGMP is a project for running GPOS and
RTOS simultaneously on multi-processor platforms. See
http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
information about RGMP.

View file

@ -172,11 +172,11 @@ static uart_dev_t *up_alloc_com(unsigned int base, int irq)
uart_dev_t *dev;
struct up_dev_s *priv;
priv = kzmalloc(sizeof(struct up_dev_s));
priv = kzalloc(sizeof(struct up_dev_s));
if (priv == NULL)
goto err0;
dev = kzmalloc(sizeof(uart_dev_t));
dev = kzalloc(sizeof(uart_dev_t));
if (dev == NULL)
goto err1;

View file

@ -8,4 +8,43 @@ hybrid operating system. This makes your application able to use both RTOS
and GPOS feathures.
See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
information about RGMP.
information about RGMP.
Build Instructions
------------------
1. Download RGMP from rgmp.svn.sourceforge.net:
cd <rgmp-dir>
svn co https://rgmp.svn.sourceforge.net/svnroot/rgmp/trunk rgmp
2. Configure NuttX. For example, for the RGMP NSH configuration, do the
following:
cd <nuttx-dir>
cd tools
./configure.sh rgmp/nsh
cd ..
3. Edit Make.defs so that it can determine the include paths to the RGMP
installation directory. I made this change to <nuttx-dir>/Make.defs:
--- configs/rgmp/nsh/Make.defs 2011-05-12 11:19:26.527273500 -0600
+++ ./Make.defs 2011-05-12 12:52:42.847364700 -0600
@@ -37,6 +37,7 @@
include ${TOPDIR}/.config
+RGMP_INST_DIR := /home/patacongo/projects/rgmp/rgmp/rtos
RGMPLIBDIR := $(RGMP_INST_DIR)/lib
RGMPINCDIR := $(RGMP_INST_DIR)/include
RGMPLKSCPT := $(RGMP_INST_DIR)/etc/x86.ld
NOTE: This needs to be better integrated with the RGMP build process. If
you follow the above instructions, NuttX for RGMP will compile error-free
but will fail at link time:
LD: nuttx.exe
ld: cannot open linker script file /home/patacongo/projects/rgmp/rgmp/rtos/etc/x86.ld: No such file or directory

View file

@ -340,16 +340,16 @@ CONFIG_EXAMPLE_NETTEST_CLIENTIP=(192<<24|168<<16|0<<8|106)
#
# Settings for examples/nsh
CONFIG_EXAMPLES_NSH_CONSOLE=y
CONFIG_EXAMPLES_NSH_TELNET=n
CONFIG_EXAMPLES_NSH_IOBUFFER_SIZE=512
CONFIG_EXAMPLES_NSH_CMD_SIZE=40
CONFIG_EXAMPLES_NSH_STACKSIZE=4096
CONFIG_EXAMPLES_NSH_DHCPC=n
CONFIG_EXAMPLES_NSH_NOMAC=n
CONFIG_EXAMPLES_NSH_IPADDR=(10<<24|0<<16|0<<8|2)
CONFIG_EXAMPLES_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1)
CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
CONFIG_NSH_CONSOLE=y
CONFIG_NSH_TELNET=n
CONFIG_NSH_IOBUFFER_SIZE=512
CONFIG_NSH_CMD_SIZE=40
CONFIG_NSH_STACKSIZE=4096
CONFIG_NSH_DHCPC=n
CONFIG_NSH_NOMAC=n
CONFIG_NSH_IPADDR=(10<<24|0<<16|0<<8|2)
CONFIG_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1)
CONFIG_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
#
# Stack and heap information

View file

@ -341,16 +341,45 @@ CONFIG_EXAMPLE_NETTEST_CLIENTIP=(192<<24|168<<16|0<<8|106)
#
# Settings for apps/nshlib
#
CONFIG_EXAMPLES_NSH_CONSOLE=y
CONFIG_EXAMPLES_NSH_TELNET=n
CONFIG_EXAMPLES_NSH_IOBUFFER_SIZE=512
CONFIG_EXAMPLES_NSH_CMD_SIZE=40
CONFIG_EXAMPLES_NSH_STACKSIZE=4096
CONFIG_EXAMPLES_NSH_DHCPC=n
CONFIG_EXAMPLES_NSH_NOMAC=n
CONFIG_EXAMPLES_NSH_IPADDR=(192<<24|168<<16|10<<8|2)
CONFIG_EXAMPLES_NSH_DRIPADDR=(192<<24|168<<16|10<<8|1)
CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
# CONFIG_NSH_FILEIOSIZE - Size of a static I/O buffer
# CONFIG_NSH_STRERROR - Use strerror(errno)
# CONFIG_NSH_LINELEN - Maximum length of one command line
# CONFIG_NSH_STACKSIZE - Stack size to use for new threads.
# CONFIG_NSH_NESTDEPTH - Max number of nested if-then[-else]-fi
# CONFIG_NSH_DISABLESCRIPT - Disable scripting support
# CONFIG_NSH_DISABLEBG - Disable background commands
# CONFIG_NSH_ROMFSETC - Use startup script in /etc
# CONFIG_NSH_CONSOLE - Use serial console front end
# CONFIG_NSH_TELNET - Use telnetd console front end
#
# If CONFIG_NSH_TELNET is selected:
# CONFIG_NSH_IOBUFFER_SIZE -- Telnetd I/O buffer size
# CONFIG_NSH_DHCPC - Obtain address using DHCP
# CONFIG_NSH_IPADDR - Provides static IP address
# CONFIG_NSH_DRIPADDR - Provides static router IP address
# CONFIG_NSH_NETMASK - Provides static network mask
# CONFIG_NSH_NOMAC - Use a bogus MAC address
#
# If CONFIG_NSH_ROMFSETC is selected:
# CONFIG_NSH_ROMFSMOUNTPT - ROMFS mountpoint
# CONFIG_NSH_INITSCRIPT - Relative path to init script
# CONFIG_NSH_ROMFSDEVNO - ROMFS RAM device minor
# CONFIG_NSH_ROMFSSECTSIZE - ROMF sector size
# CONFIG_NSH_FATDEVNO - FAT FS RAM device minor
# CONFIG_NSH_FATSECTSIZE - FAT FS sector size
# CONFIG_NSH_FATNSECTORS - FAT FS number of sectors
# CONFIG_NSH_FATMOUNTPT - FAT FS mountpoint
#
CONFIG_NSH_CONSOLE=y
CONFIG_NSH_TELNET=n
CONFIG_NSH_IOBUFFER_SIZE=512
CONFIG_NSH_CMD_SIZE=40
CONFIG_NSH_STACKSIZE=4096
CONFIG_NSH_DHCPC=n
CONFIG_NSH_NOMAC=n
CONFIG_NSH_IPADDR=(192<<24|168<<16|10<<8|2)
CONFIG_NSH_DRIPADDR=(192<<24|168<<16|10<<8|1)
CONFIG_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
#
# Stack and heap information

View file

@ -42,8 +42,8 @@
#include <nuttx/config.h>
#ifdef CONFIG_ARCH_STDBOOL_H
# include <arch/stdbool.h>
#ifdef CONFIG_ARCH_STDINT_H
# include <arch/stdint.h>
#else
# include <nuttx/compiler.h>
# include <arch/types.h>