This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

load -m http fix


I tried load -m http and didn't work with the boa webserver.Turns out
the request needed the HTTP/1.0. Apache doesn't mind though even if you use space...
I included yesterdays fis delete patch too since it's not in public CVS yet.

Index: redboot/current//ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.67
diff -u -r1.67 ChangeLog
--- redboot/current//ChangeLog	8 Aug 2002 10:59:29 -0000	1.67
+++ redboot/current//ChangeLog	9 Aug 2002 12:15:50 -0000
@@ -1,3 +1,13 @@
+2002-08-09  Jani Monoses  <jani@iv.ro>
+
+	* src/net/http_client.c: use standard HTTP GET request ('/' 
+	instead of ' ' in HTTP/1.0) to work with all servers
+	
+2002-08-08  Jani Monoses  <jani@iv.ro>
+
+	* src/flash.c: fis delete should mark the slot as reusable
+	not just delete the area of flash used by the file.
+	
 2002-08-08  Gary Thomas  <gthomas@ecoscentric.com>
 2002-08-08  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
 
Index: redboot/current//src/flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.37
diff -u -r1.37 flash.c
--- redboot/current//src/flash.c	23 May 2002 23:08:30 -0000	1.37
+++ redboot/current//src/flash.c	9 Aug 2002 12:16:00 -0000
@@ -836,6 +836,7 @@
     if ((stat = flash_erase((void *)img->flash_base, img->size, (void **)&err_addr)) != 0) {
         diag_printf("Error erasing at %p: %s\n", err_addr, flash_errmsg(stat));
     } else {
+        img->name[0] = (unsigned char)0xFF;    
         fis_update_directory();
     }
 }
Index: redboot/current//src/net/http_client.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/http_client.c,v
retrieving revision 1.3
diff -u -r1.3 http_client.c
--- redboot/current//src/net/http_client.c	18 Jul 2002 20:05:23 -0000	1.3
+++ redboot/current//src/net/http_client.c	9 Aug 2002 12:16:01 -0000
@@ -90,7 +90,7 @@
         *err = HTTP_OPEN;
         return -1;
     }
-    diag_sprintf(s->data, "GET %s HTTP 1.0\r\n\r\n", info->filename);
+    diag_sprintf(s->data, "GET %s HTTP/1.0\r\n\r\n", info->filename);
     __tcp_write_block(&s->sock, s->data, strlen(s->data));    
     s->avail = 0;
     s->open = true;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]