summaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorBen Gras <beng@shrike-systems.com>2016-06-20 14:36:21 +0200
committerBen Gras <beng@shrike-systems.com>2016-06-20 17:44:57 +0200
commit696ee75469e4e21afa570f8471c81ebd291f243a (patch)
tree0bc8449602c5cb30fa71d78cfb7de71d8bb0e19f /ports
parentsome hooks to help building in RSB (diff)
downloadumon-696ee75469e4e21afa570f8471c81ebd291f243a.tar.bz2
FAT fs changes: FAT code and larger ROM size
. add fatfs umon cli to it. unmodified from the umon 1.19 distribution, apache-licensed. . also add dosfs from the umon 1.19 distribution, which is similarly liberally licensed. . increase available 'ROM' size to 128kB minus 1kB secure + 18kB reserved (numbers from uboot wiki). . no unaligned access - needed to access fields in on-disk structs without gcc generating unaligned access instructions (causes data abort exceptions) . turn on shellvars for BBB as they are needed to connect FATFS to the SD i/o functions
Diffstat (limited to 'ports')
-rw-r--r--ports/beagleboneblack/Makefile6
-rw-r--r--ports/beagleboneblack/config.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/ports/beagleboneblack/Makefile b/ports/beagleboneblack/Makefile
index e0676b1..11956db 100644
--- a/ports/beagleboneblack/Makefile
+++ b/ports/beagleboneblack/Makefile
@@ -39,7 +39,7 @@ endif
LIBABIDIR = -L $(ABIDIR)
COMMON_AFLAGS = -c -D PLATFORM_$(PLATFORM)=1 -D ASSEMBLY_ONLY
-CUSTOM_CFLAGS = -mcpu=cortex-a8 -O2 -isystem $(ABIDIR)/include -Wno-char-subscripts
+CUSTOM_CFLAGS = -mcpu=cortex-a8 -O2 -isystem $(ABIDIR)/include -Wno-char-subscripts -mno-unaligned-access
###############################################################################
@@ -48,7 +48,7 @@ CUSTOM_CFLAGS = -mcpu=cortex-a8 -O2 -isystem $(ABIDIR)/include -Wno-char-subscri
# The following variables are used to establish the system's memory map.
#
BOOTROMBASE=0x402F0400
-BOOTROMLEN=0x010000
+BOOTROMLEN=0x01b000
BOOTRAMBASE=0x80000000
BOOTRAMLEN=0x010000
RAMTSTROMBASE=0x80100000
@@ -75,7 +75,7 @@ COMCSRC = arp.c cast.c cache.c chario.c cmdtbl.c \
reg_cache.c sbrk.c sd.c \
start.c struct.c symtbl.c syslog.c tcpstuff.c tfs.c tfsapi.c \
tfsclean1.c tfscli.c tfsloader.c tfslog.c tftp.c timestuff.c \
- tsi.c xmodem.c
+ tsi.c xmodem.c dosfs.c fatfs.c
CPUCSRC = except_arm.c misc_arm.c strace_arm.c
IODEVSRC = uart16550.c
FLASHSRC =
diff --git a/ports/beagleboneblack/config.h b/ports/beagleboneblack/config.h
index 2592fdf..b0136c3 100644
--- a/ports/beagleboneblack/config.h
+++ b/ports/beagleboneblack/config.h
@@ -176,7 +176,7 @@
#define INCLUDE_PROFILER 0
#define INCLUDE_BBC 0
#define INCLUDE_STOREMAC 0
-#define INCLUDE_SHELLVARS 0
+#define INCLUDE_SHELLVARS 1
#define INCLUDE_MALLOC 0
#define INCLUDE_PORTCMD 0
#define INCLUDE_SYSLOG 0
@@ -191,6 +191,7 @@
#define INCLUDE_SD 1
#define INCLUDE_DNS 0
#define INCLUDE_BLINKLED 1
+#define INCLUDE_FATFS 1
#define TARGET_BLINKLED target_blinkled
/* Inclusion of this next file will make sure that all of the above