News:

Re-organized the forum to more cleanly delineate the development section, as the end user support side appears to have taken a life of its own!

Author Topic: new fostar  (Read 19291 times)

  • No avatar
  • *****
May 20, 2011, 06:06:21 am
Hi,

I took the liberty to expand the existing fostar utility with the ability to create the new webui format. Feel free to check it in at the sourcefore project, I didn't bother to get an account.

The windows version is (like unix) command line only !, so do "start - run - cmd" and use from there.

(replaced with corrected version)
(again replaced with corrected version)
(updated version)
« Last Edit: May 29, 2012, 04:35:43 am by schufti »

  • *****
May 20, 2011, 11:24:01 pm
My compile fails. I have an amd64 system - possibly your compile was on a 32 bit machine?

Code: [Select]
ecomer@pennyroyal:~/ipcamera/openipcam/foscam-util$ cc -o fostarn fostarn.c
fostarn.c: In function ‘assemble’:
fostarn.c:270: warning: format ‘%#X’ expects type ‘unsigned int’, but argument 3 has type ‘long int’
fostarn.c:282: warning: format ‘%#X’ expects type ‘unsigned int’, but argument 3 has type ‘long int’
fostarn.c: In function ‘disassemble’:
fostarn.c:323: warning: format ‘%#X’ expects type ‘unsigned int’, but argument 3 has type ‘long int’
fostarn.c:332: warning: format ‘%#X’ expects type ‘unsigned int’, but argument 3 has type ‘long int’
fostarn.c:362: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
fostarn.c:368: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
fostarn.c: In function ‘main’:
fostarn.c:520: error: ‘g_fil’ undeclared (first use in this function)
fostarn.c:520: error: (Each undeclared identifier is reported only once
fostarn.c:520: error: for each function it appears in.)
ecomer@pennyroyal:~/ipcamera/openipcam/foscam-util$

  • No avatar
  • *****
May 21, 2011, 04:45:11 am
hi celem,

easy solution:

in variable declaration for assemble and disassemble change long to int 
(was my stupid vintage 16bit thinking)

at end of source change g_fil to g_file.  (this happened when manually reverting from dos to unix format)
« Last Edit: May 23, 2011, 06:23:55 am by schufti »

  • No avatar
  • *****
May 23, 2011, 06:17:32 am
and here we have a special for our friends of the Windoze community:

    new fostar for Windows  (see first post)

have phun and don't complain


admin may well place this and source in Files archive
« Last Edit: May 23, 2011, 06:24:32 am by schufti »

June 17, 2011, 04:14:50 am
How about attaching a fixed version of fostarn.c

  • No avatar
  • *****
June 17, 2011, 05:01:05 am
so, what's the difference to the one in my first post? What is "fixed"?

June 18, 2011, 08:08:53 am
the compilation errors (long => int , g_file )

just want to help.

  • No avatar
  • *****
June 18, 2011, 08:11:10 am
Feel free to update the one in the Wiki if this one is compilable.

http://wiki.openipcam.com/index.php/Pack_or_Unpack_Firmware_and_WebUI

  • No avatar
  • *****
June 18, 2011, 04:20:41 pm
Hi borsti,

sorry if you felt offended, but I allready replaced (as mentioned in the first post) the faulty with a working version, later I even added the windows version. I don't know what happened to the corrected source ???

June 20, 2011, 05:31:26 am
Sorry but the source i downloaded from first topic did contain the errors, that is why i uploaded my version which compiles fine and works. No big change but I think it is better to have a working source instead of the windows binary.
« Last Edit: June 20, 2011, 05:34:08 am by Borsti92 »

  • No avatar
  • *
June 27, 2012, 03:39:39 pm
I am receiving an error with the current windows version

Is anyone able to compile again for windows?

I have been trying to install MinGW with no success to compile this...

It should be pretty useful for any of you guys and just upload it.

  • No avatar
  • *****
June 27, 2012, 04:28:31 pm
just downloaded and checked that it is working ... passed.

if you could be a little more precise on the errormessage and with wich parameters you started the program?

  • No avatar
  • *
June 27, 2012, 04:36:40 pm
just downloaded and checked that it is working ... passed.

if you could be a little more precise on the errormessage and with wich parameters you started the program?


Tried to extract the webui files and received the below error:

Code: [Select]
Disassembling firmware file 'test.bin' to 'webui_contents'
File_CRC: 0X4EB8E00
FileSize: 0XEE1D1
WebUI Version 2.4.18.17

Unable to write file: webui_contents/admin.htm

  • No avatar
  • *****
June 27, 2012, 04:40:32 pm
does the directory "webui_contents" exist in the directory from where you are starting the program?

  • No avatar
  • *
June 27, 2012, 04:42:05 pm
does the directory "webui_contents" exist in the directory from where you are starting the program?

omg...   i feel stupid now...  i asumed it would be created...

i was able to do it know...   cr@p    so sorry


i feel really dumb now

gonna hide under my bed

thank you