From 19ec719d07964f20cc51055411975e847db63e42 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Sun, 22 Feb 2015 22:10:47 +0000 Subject: [PATCH] Support RPi version 2 (ARMv7) --- Makefile | 2 +- debian/changelog | 7 +++++++ src/a2pid.c | 8 ++++---- src/fusea2pi.c | 1 + 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 05d05e0..1870db3 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGE=a2pi -VERSION=0.1.8 +VERSION=0.2.0 DIST=$(PACKAGE)-$(VERSION) DISTDIR=./$(DIST) diff --git a/debian/changelog b/debian/changelog index 9e4eb38..581e78d 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +a2pi (0.2.0) unstable; urgency=low +======= + + * Add support for Raspberry Pi version 2 + + -- David Schmenk Sun, 22 Feb 2015 13:27:30 -0800 + a2pi (0.1.8-8) unstable; urgency=low ======= diff --git a/src/a2pid.c b/src/a2pid.c index c9124ca..0bc1878 100755 --- a/src/a2pid.c +++ b/src/a2pid.c @@ -849,7 +849,7 @@ reset: { iopkt[0] = a2reqlist->type; write(a2fd, iopkt, 1); - printf("vdrive: status resend request %04X\n", a2reqlist->type); + //printf("vdrive: status resend request %04X\n", a2reqlist->type); } break; case 0xA4: /* virtual drive 1 READ call */ @@ -863,7 +863,7 @@ reset: { iopkt[0] = a2reqlist->type; write(a2fd, iopkt, 1); - printf("vdrive: read resend request %04X\n", a2reqlist->type); + //printf("vdrive: read resend request %04X\n", a2reqlist->type); } break; case 0xA8: /* virtual drive 1 WRITE call */ @@ -881,7 +881,7 @@ reset: { iopkt[0] = a2reqlist->type; write(a2fd, iopkt, 1); - printf("vdrive: write resend request %04X\n", a2reqlist->type); + //printf("vdrive: write resend request %04X\n", a2reqlist->type); } break; case 0xAC: /* virtual clock TIME call */ @@ -893,7 +893,7 @@ reset: { iopkt[0] = a2reqlist->type; write(a2fd, iopkt, 1); - printf("vclock: resend request %04X\n", a2reqlist->type); + //printf("vclock: resend request %04X\n", a2reqlist->type); } break; default: diff --git a/src/fusea2pi.c b/src/fusea2pi.c index 7df5126..73124a9 100755 --- a/src/fusea2pi.c +++ b/src/fusea2pi.c @@ -661,6 +661,7 @@ static int prodos_map_errno(int perr) int uerr = 0; if (perr) { + prodos_close(0, 0); /* Close all files */ switch (perr) /* Map ProDOS error to unix errno */ { case -PRODOS_ERR_INVLD_PATH: