Open IP Camera Forum

End User => Firmware => Topic started by: moldov on April 27, 2011, 10:36:11 pm

Title: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 27, 2011, 10:36:11 pm
I deleted Image: 0 name:BOOT INFO. I decided to delete Image 6 and typed "del" and then pressed Enter. I expected that "del" will show its parameters but it deleted Image 0. I think because "del" had no parameters. So I'm afraid to reboot camera till I can get that Image back. Can anyone send me that rom image it's only 0x38 lenght? I have FOSCAM clone compatible with FOSCAM official software.

Thanks in advance.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: Nocturnal on April 28, 2011, 02:10:49 am
This is what mine looks like, plus a little on either side.

Code: [Select]
0000fff0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00010000  48 00 00 00 01 00 00 00  00 a8 f8 00 5c a6 00 00  |H...........\...|
00010010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00010020  01 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
00010030  00 00 30 00 00 00 10 00  ff ff ff ff ff ff ff ff  |..0.............|
00010040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|

Just hope that's all you deleted.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 28, 2011, 04:24:08 am
 :D Noctural You are everywhere. Thanks in that post as well:) So, now I can restore Image 0. Hopefully there is no difference between Your BOOT INFO and mine.

Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000038 exec:0x7F010000 -af

We have different base addresses. Mine is 0x7F010000 and Yours starts from 00010000. Is that just offset in created by You file or real address?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: Nocturnal on April 28, 2011, 04:53:22 am
:-) Thats the offset in the image I dumped from the cameras flash. Offset it by 0x7F000000 and you have the address inside the camera.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 28, 2011, 08:15:52 pm
I restored my cam. Thanks again man:) I found the meaning for those bytes which are not zeroed in Image 0. 

0x10000 0x48 means begining of BOOT INFO
0x10008 goes Your MAC 00:A8:F8:00:5C:A6 So now I get Your Mac address:) Later I will change it with mine.
0x10020 0x01 means DHCP Client         : Enabled
0x10024 0x01 means CACHE               : Enabled
0x10032 0x30 means  BL buffer base      : 0x00300000
0x10036 0x10 means  BL buffer size      : 0x00100000

I don't know where is IP, Baud Rate and USB Interface bytes, but I think we can find during playing with bytes easily.

Serial number goes from 0x10038.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on April 28, 2011, 11:34:00 pm
I just did a DEL -all and reloaded everything EXCEPT image 0, the "BOOT INFO" image. After I booted image 0, the "BOOT INFO" was back, having been automatically rebuilt, I assume, by the bootloader.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 29, 2011, 05:06:33 am
celem,  what do You mean
Quote
After I booted image 0
Have You just rebooted the cam after DEL -all and then You've got BOOT INFO?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on April 29, 2011, 08:36:48 am
I did DEL -all to cure a flash write error, reloaded linux.zip, romfs.bin and webui.bin, rebooted and image 0 was there, filled with "BOOT INFO". I am fairly sure that, after the DEL -all, that I did an LS and saw nothing, meaning that it was truly deleted - but the hour was late. I do intend, in the next week, to do another DEL -all and carefully check that image 0 was actually deleted and that the range displays all "F"s with a memory display, prior to reboot.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 29, 2011, 09:06:29 am
celem, I will try to del -all also. Just to be sure that BOOT INFO is self recoverable!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on April 29, 2011, 01:33:44 pm
The answer in NO - DEL -all does not delete image 0.

Code: [Select]
bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000038 exec:0x7F010000 -af
Image: 7 name:linux.zip base:0x7F020000 size:0x000BF700 exec:0x00008000 -acxz
Image: 6 name:romfs.img base:0x7F0E0000 size:0x0010C400 exec:0x7F0E0000 -a

bootloader > del -all
Press Ctrl-c to stop
Deleting ... Block 2
Deleting ... Block 3
Deleting ... Block 4
Deleting ... Block 5
Deleting ... Block 6
Deleting ... Block 7
Deleting ... Block 8
Deleting ... Block 9
...
Deleting ... Block 62
Deleting ... Block 63

bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000038 exec:0x7F010000 -af

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 29, 2011, 02:05:44 pm
Yeah, DEL -all doesn't delete Image 0. But simple DEL deletes:) All noobies need to be careful:) Anyway it's self recoverable.I  think we need to recover MAC address after deleting BOOT INFO. Because It becomes 00:00:00:00:00:01. There is SET command in bootloader but I couldn't find how to write MAC or IP address. I can change only 1 byte parameters like

 DHCP Client       : Enabled
 CACHE               : Disabled
 
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: Nocturnal on April 29, 2011, 02:09:58 pm
ahhh....

set -ip0 10.0.3.200

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: moldov on April 29, 2011, 02:16:20 pm
Oh yeah.
I was typing 0xC0A80102 instead of 192.168.1.2 for ip. I'm getting more familiar with HEX 8)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on May 05, 2011, 11:34:26 pm
Here is the source code from the bootloader that creates an image 0 if none exists. All of the fields are defined:

Code: [Select]
STRUCTURE OF THE BOOT INFO BLOCK, BLOCK 0

flash.h
-------
typedef struct t_footer
{
UINT32 num;
UINT32 base;
UINT32 length;
UINT32 load_address;
UINT32 exec_address;
CHAR name[16];
UINT32 image_checksum;
UINT32 signature;
UINT32 type;
UINT32 checksum;
} tfooter;

bib.h
-------
#define BOOTLOADER_INFO 0x1
...
typedef struct _t_bootloaer_info
{
UINT32 length;
UINT32 type;
char mac0[6];
char ip0[6];
char mac1[6];
char ip1[6];
UINT32 cache;
UINT32 dhcp;
UINT32 net_mac;
UINT32 phy;
UINT32 buf_base;
UINT32 buf_size;
INT baudrate;
INT rmii; // RMII  = Ethernet port
} tbl_info;

flash.h
-------
#define FLASH_BLOCK_SIZE (0x10000) // 65,535
#define BOOTER_BLOCK_LENGTH FLASH_BLOCK_SIZE

platform.h
-------
#define FLASH_BASE 0x7F000000
...
#define BL_BOOTLOADER_BLOCK_SIZE 0x10000
#define BL_PHY NET_PHY
#define BL_IC_PLUS NET_IC_PLUS
#define BL_MARVELL6052 NET_MARVELL6052
#define BL_DEFAULT_MAC0_ADDR {0x00,0x00,0x00,0x00,0x00,0x01}
#define BL_DEFAULT_IP0_ADDR {0,0,0,0,0,0}
#define BL_DEFAULT_MAC1_ADDR {0x00,0x00,0x00,0x00,0x00,0x02}
#define BL_DEFAULT_IP1_ADDR {0,0,0,0,0,0}
#define BL_DEFAULT_BAUD_RATE 115200UL
#define BL_DHCP 0x1 // BL_DHCP=1 => dhcp default to enable
#define BL_NET_MAC 0x1 // default mac port used by TFTP
#define BL_DEFAULT_PHY_CHIP BL_PHY
#define BL_IMAGE0_BASE (FLASH_BASE+BL_BOOTLOADER_BLOCK_SIZE)
#define BL_BUFFER_BASE 0x300000
#define BL_BUFFER_SIZE 0x100000
#define BL_CACHE_DEFAULT 0x1
#define SEMI_HEAP_SIZE 0x20000
#define SEMI_STACK_SIZE 0x20000


main.c
-------
...
if( !FindImage(0, &footer) )
{
// image 0 not exist. Create it.
tfooter image_footer;
CHAR mac0[6]=BL_DEFAULT_MAC0_ADDR;
CHAR ip0[6]=BL_DEFAULT_IP0_ADDR;
CHAR mac1[6]=BL_DEFAULT_MAC1_ADDR;
CHAR ip1[6]=BL_DEFAULT_IP1_ADDR;
...
// make sure the block 1 is empty.
DelBlock(1);
info.length=sizeof(info);
info.type=BOOTLOADER_INFO;
memcpy(info.mac0, mac0, 6);
memcpy(info.ip0, ip0, 4);
memcpy(info.mac1, mac1, 6);
memcpy(info.ip1, ip1, 4);
ip0[4]=ip0[5]=ip1[4]=ip1[5]=0;
info.cache=BL_CACHE_DEFAULT;
info.dhcp=BL_DHCP;
info.net_mac=BL_NET_MAC;
info.phy=BL_DEFAULT_PHY_CHIP;
info.buf_base=BL_BUFFER_BASE;
info.buf_size=BL_BUFFER_SIZE;
info.baudrate=BL_DEFAULT_BAUD_RATE;
info.rmii=0;
uprintf("WARNING: Image 0 was not found. Try to create one ... \n");
image_footer.num=0;
image_footer.base=BL_IMAGE0_BASE;
image_footer.length=sizeof(tbl_info);
image_footer.load_address=image_footer.exec_address=image_footer.base;
image_footer.signature=SIGNATURE_WORD;
image_footer.type=IMAGE_FILE;
strcpy(image_footer.name,"BOOT INFO");
if( WriteImage(&image_footer, (UINT32)&info) )
{
uprintf("ERROR: Fail to create image 0. \n");
footer=(tfooter *)0;
}
else
{
uprintf("Image 0 created\n");
FindImage(0, &footer);
}
...

image.c
--------
INT DelBlock(UINT32 block)
{
UINT32 addr;
UINT32 flash_type;
UINT32 blockSize;
UINT32 size;
if(block==0)return -1; // block 0 is the location of boot loader.

addr=FLASH_BASE+FLASH_BLOCK_SIZE*block; // for a 4MB flash = 0x7F000000 + (0x10000 * block)
flash_type=FindFlash();
blockSize=flash[flash_type].BlockSize(addr);
if( blockSize==FLASH_BLOCK_SIZE )
flash[flash_type].BlockErase(addr, FLASH_BLOCK_SIZE);
else
{
// for top boot flash
for(size=0;size<FLASH_BLOCK_SIZE;size+=blockSize)
{
blockSize=flash[flash_type].BlockSize(addr+size);
flash[flash_type].BlockErase(addr+size, blockSize);
if(blockSize==0)break;
}

}

return 0;
}

Dump of image 0 (block 1) in a NC541/W camera:
-----------------------------------
[7F010000] 00 00 00 48 00 00 00 01 - 00 00 B8 00 00 00 D2 68
[7F010010] 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
[7F010020] 00 00 00 01 00 00 00 01 - 00 00 00 00 00 00 00 00
[7F010030] 00 30 00 00 00 10 00 00 - FF FF FF FF FF FF FF FF


Note that block 1 refers to image 0, i.e., the BOOT_INFO block at 0x7f010000
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 23, 2011, 10:31:13 am
Dear,

 I ask your help because of my zero image IPCAM is in error, how do I save and record a new
 zero image with a bootloader, which command to use and which file, see below as it is appearing to me.

 Rebooting the system ...

 WARNING: Image 0 was not found. Try to create one ...
 . Image 0 created

 ls

 Image: 0 name: BOOT INFO base: 0x7F010000 size: 0x00000048 exec: 0x7F010000-f

 thanks
 casbeto :(
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 23, 2011, 11:22:35 am
Image 0 is self recoverable. It is auto-created by the bootloader. You don't have to do anything but turn the camera on.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on June 23, 2011, 01:50:02 pm
Hi,

generally it is fine this way. The only thing you will be missing is your MAC and your serialnumber.

If you use board search for boot info you will find a similar post where a image is appended. You wil lhave to use a hex editor to regain your serial and MAC
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 23, 2011, 02:58:19 pm
You can set your MAC and serial directly from the serial console. See the SET command below:
Code: [Select]
bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000048 exec:0x7F010000 -f
Image: 7 name:linux.zip base:0x7F020000 size:0x000BFF00 exec:0x00008000 -acxz
Image: 6 name:romfs.img base:0x7F0E0000 size:0x0010C400 exec:0x7F0E0000 -a
Image: 8 name:webui.bin base:0x7F200000 size:0x000A6F80 exec:0x7F200000 -a

bootloader > h

W90P745 Command Shell v1.0 Rebuilt on May 06 2010 at 13:00:07

H        Display the available commands
B        Set Baud Rate
D        Display memory. D -? for help
E        Edit memory. E -? for help
G        Goto address
I        information
MX       Xmodem download
MT       TFTP/USB download
FT       Program the flash by TFTP/USB. FT -? for help
FX       Program the flash by Xmodem. FX -? for help
CP       Memory copy
LS       List the images in the flash
SET      Setting boot loader configuration. SET -? for help
CHK      Check the flash
RUN      Execute image
DEL      DEL the image or flash block
MSET     Fill memory
TERM     Change the terminal output port
BOOT     Reboot the system
CACHE    Cache setting
USB      USB interface setting
UNZIP    Unzip image
ATTRIB   Change the image attribution
INTF     Print bootloader supported interface, ether USB or MAC
bootloader > set -?
Usage: SET -[mac0 [addr],ip0 [addr],dhcp [0,1],cache [on, off],buffer [base] [size],baudrate [baud rate setting],sn [serial number]]
 -mac0 [addr] Set MAC  Address
 -ip0 [ip addr] IP Address
 -dhcp [1,0] Enable/Disable Dhcp client
 -cache [on,off] Enable/Disable cache when processing images
 -buffer [base] [size] Set the buffer used by UNZIP and TFTP server
 -baudrate [baud rate setting] Set the default baud rate
 -sn [serial number] Set the serial number

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 07:29:24 am
I ask help of all, how do I retrieve the image 0.

 thanks
 Casbeto
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 10:05:16 am
You have been given the answer - read our posts. Image 0 is automatically recreated upon boot - you don't need to do anything to create it. You will need to reestablish a MAC and serial number using the SET command in the bootloader. Go back and read what answers have already been posted to your question.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 04:21:43 pm
Celem Thank you for trying to help me, the bootloader command SET is not accepted, so I can not put the MAC, has another way to do this?


bootloader > set -mac0 001122334455
ERROR: Can't find image 0.

bootloader >
ERROR: unrecognised command

bootloader > set -mac0 00:00:00:00:01
ERROR: Can't find image 0.

bootloader > set -mac0 0000000001
ERROR: Can't find image 0.

bootloader > set -mac0 00:11:22:33:44:55
ERROR: Can't find image 0.

bootloader > set -mac0 00:0c:5d:75:21:b3
ERROR: Can't find image 0.

bootloader > set -mac0 000c5d7521b3
ERROR: Can't find image 0.

bootloader >


 Thanks again!
 casbeto
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 05:41:21 pm
You do have an image zero. Your first post in this thread contains:
Quote
...WARNING: Image 0 was not found. Try to create one ...
. Image 0 created

 ls

 Image: 0 name: BOOT INFO base: 0x7F010000 size: 0x00000048 exec: 0x7F010000-f

Notice that your camera reported that it created an image 0

Your SET command syntax is wrong and may be your current problem. Here is the proper syntax:

Code: [Select]
SYNOPSIS
SET  [-mac [addr]] [-ip [addr]] [- dhcp [0,1]] [-cache [on, off]] [-buffer [base] [size]] [-baudrate
[UART baudtate]] [-sn [serial number]]

DESCRIPTION
The boot information block is used to store the basic configuration of the bootLoader. It includes
the Ethernet port used by TFTP server(or USB configuration for bootloader supports USB upload),
the MAC PHY chip, the Ethernet MAC address, the IP address, cache ON/OFF, and boot loader
buffer address. The system must be rebooted to make the new setting be valid.

This is the network address for the MAC 
EXAMPLE
bootloader > set -mac 00:11:22:33:44:55
or 
bootloader > set -mac 001122334455 

This is the fixed IP address
EXAMPLE
bootloader > set -ip 192.168.1.126 
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 06:07:45 pm
Celem put the command as its example and still did not work.
 Thank you.
 casbeto

bootloader > boot

Rebooting the system ...

WARNING: Image 0 was not found. Try to create one ...
.Image 0 created

W90P745 Boot Loader [ Version 1.1 $Revision: 1 $ ] Rebuilt on Dec 10 2009
Memory Size is 0x1000000 Bytes, Flash Size is 0x400000 Bytes
Board designed by Winbond
Hardware support provided at Winbond
Copyright (c) Winbond Limited 2001 - 2006. All rights reserved.

For help on the available commands type 'h'

Press ESC to enter debug mode ......
ERROR: Image 0 not found

ERROR: Data Abort @ pc=0x00001680
bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000048 exec:0x7F010000 -f

bootloader > set -mac 00:11:22:33:44:55
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader > set -mac 00:00:00:00:00:01
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader > set -mac 001122334455
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader > set -mac 000000000001
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader > set -mac 00:0c:5d:75:21:b3
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader > set -mac 000c5d7521b3
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 07:09:59 pm
I just successfully entered the MAC below:
Code: [Select]
bootloader > set -mac0 00b8000068d3
..Boot loader infomation updated.
Boot Loader Configuration:

MAC Address         : 00:B8:00:00:68:D3
IP Address          : 192.168.0.178
DHCP Client         : Enabled
CACHE               : Enabled
BL buffer base      : 0x00300000
BL buffer size      : 0x00100000
Baud Rate           : 115200
USB Interface       : Enabled
Serial Number       : 0xFFFFFFFF

WARNING: The new setting will be valid after rebooting.

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 07:11:48 pm
just enter SET with no arguments and post the output, example:
Code: [Select]
bootloader > set
Boot Loader Configuration:

MAC Address         : 00:B8:00:00:68:D2
IP Address          : 192.168.0.178
DHCP Client         : Enabled
CACHE               : Enabled
BL buffer base      : 0x00300000
BL buffer size      : 0x00100000
Baud Rate           : 115200
USB Interface       : Enabled
Serial Number       : 0xFFFFFFFF

bootloader >

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 07:13:31 pm
Also, display image 0 as follows:
Code: [Select]
bootloader > d -b 0x7f010000
Displaying memory at 0x7F010000
[7F010000] 48 00 00 00 01 00 00 00 - 00 B8 00 00 68 D2 C0 A8  H...........h...
[7F010010] 00 B2 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................
[7F010020] 01 00 00 00 01 00 00 00 - 00 00 00 00 00 00 00 00  ................
[7F010030] 00 00 30 00 00 00 10 00 - 00 C2 01 00 FF FF FF FF  ..0.............
[7F010040] FF FF FF FF 01 00 00 00 - FF FF FF FF FF FF FF FF  ................
[7F010050] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010060] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010070] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010080] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010090] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100A0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100B0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100C0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100D0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100E0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100F0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 07:14:25 pm
Image 0 layout is shown in the attachment
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 07:16:48 pm
Lastly, you could just clone my image 0 (posted above) with the Edit Memory command, for example:

e -b 0x7F010000
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 08:54:04 pm

thanks for your help, but was wondering how do I make a clone of your image 0.



bootloader > set
ERROR: Can't find image 0.

ERROR: Data Abort @ pc=0x0000167C
bootloader > d -b 0x7f010000
Displaying memory at 0x7F010000
[7F010000] 48 00 00 00 01 00 00 00 - 00 00 00 00 00 01 00 00  H...............
[7F010010] 00 00 92 9C 04 98 92 8E - 06 30 B0 20 8A 20 28 4A  .........0....(J
[7F010020] 00 00 00 00 01 00 00 00 - 00 00 00 00 00 00 00 00  ................
[7F010030] 00 00 30 00 00 00 10 00 - 00 C2 01 00 01 00 00 00  ..0.............
[7F010040] 00 00 00 00 01 00 00 00 - FF FF FF FF FF FF FF FF  ................
[7F010050] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010060] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010070] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010080] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F010090] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100A0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100B0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100C0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100D0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100E0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................
[7F0100F0] FF FF FF FF FF FF FF FF - FF FF FF FF FF FF FF FF  ................

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 09:00:50 pm
When trying to clone your image 0 and I type the command looks like this 0x7F010000-b,

 bootloader> e -b 0x7F010000
 [7F010000] 00000048 -> 00000048
 [7F010004] 00000001 -> 00000001
 [7F010008] 00000000 -> 00000000
 [7F01000C] 00000100 -> 00000100
 [7F010010] 9C920000 -> 9C920000
 [7F010014] 8E929804 -> 8E929804
 [7F010018] 20B03006 -> 20B03006
 [7F01001C] 4A28208A -> 4A28208A
 [7F010020] 00000000 -> 00000000
 [7F010024] 00000001 -> 00000001
 [7F010028] 00000000 -> 00000000
 [7F01002C] 00000000


 ERROR: Data Abort @ pc = 0x7F000C04
 bootloader>


Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 10:06:58 pm
Sorry, I misspoke - you cannot use the "e" command for this.

just enter SET with no arguments and post the output, as I mentioned before.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 10:44:01 pm
as you said the SET command is not accepted, I think my IPCAM really dead. thanks for any help.

 casbeto
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 10:55:34 pm
You have nothing to lose by deleting image 0 and rebooting to see if another rebuild goes better.
Code: [Select]
DEL 0
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 11:01:16 pm
bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000048 exec:0x7F010000 -f

bootloader > del 0
ERROR: Image 0 is not existed

ERROR: Data Abort @ pc=0x00001680
bootloader >
bootloader > boot

Rebooting the system ...

WARNING: Image 0 was not found. Try to create one ...
.Image 0 created


W90P745 Boot Loader [ Version 1.1 $Revision: 1 $ ] Rebuilt on Dec 10 2009
Memory Size is 0x1000000 Bytes, Flash Size is 0x400000 Bytes
Board designed by Winbond
Hardware support provided at Winbond
Copyright (c) Winbond Limited 2001 - 2006. All rights reserved.


For help on the available commands type 'h'

Press ESC to enter debug mode ......
ERROR: Image 0 not found


ERROR: Data Abort @ pc=0x00001680
bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 11:12:20 pm
Certainly not behaving normally. Possibly you have a flash problem.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 26, 2011, 11:20:25 pm
anyway thank you for trying to help me.

 I have to order one from china. rs

 have a great day.

 thanks
 Carlos Alberto
 (casbeto-Brazil)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 26, 2011, 11:21:33 pm
Final thought:
You could also try:
DEL -all (doesn't delete 0, but then maybe other errors are the actual cause)
 then try SET

DEL b1 (deletes the boot block)
 then try SET
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 12:03:33 pm
casbeto,

You can try to install my bootinfo image (attached to this post) To install, unzip the file and then enter:

fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f

I have no idea if this will work, even in a normally functioning camera, because the uboot should have installed the boot image when it is missing. But, it's worth a shot - what have you got to lose?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 12:40:02 pm
At the moment I'm at work, so I'll try to get home and put the result to see you.

 worth friend, thanks for trying to help me.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 05:55:53 pm
Press ESC to enter debug mode ......
ERROR: Image 0 not found


ERROR: Data Abort @ pc=0x00001680
bootloader > fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f
ERROR: Data corrupted, please check the free space of flash.

bootloader > del b0

bootloader > del b1

bootloader > deb b2
ERROR: unrecognised command

bootloader > del b31

bootloader > del 0
ERROR: Image 0 is not existed

bootloader > fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f
Waiting for download ...
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 06:02:47 pm
Do this and then try again

DEL -all (doesn't delete 0, but then maybe other errors are the actual cause)
 then try SET

DEL b1 (deletes the boot block)
 then try SET
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 06:17:10 pm
Deleting ... Block 61
Deleting ... Block 62
Deleting ... Block 63

bootloader > set
ERROR: Can't find image 0.

bootloader > del b1

bootloader > set
ERROR: Can't find image 0.

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 06:25:49 pm
did you then again try to load my boot image?

Sorry - i copied the message - the set would fail at this time. Try to load my boot image after the DEL -all and DEL b1
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 06:32:17 pm
've tried everything!

 Deleting ... Block 61
 Deleting ... Block 62
 Deleting ... Block 63

 bootloader> del b1

 bootloader> fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f
 Waiting for download ...
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on June 27, 2011, 08:09:30 pm
Can you do an ls and show what partitions you have in the bootloader.

>ls

Paste the output.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 09:25:18 pm
ARNING: Image 0 was not found. Try to create one ...
.Image 0 created


W90P745 Boot Loader [ Version 1.1 $Revision: 1 $ ] Rebuilt on Dec 10 2009
Memory Size is 0x1000000 Bytes, Flash Size is 0x400000 Bytes
Board designed by Winbond
Hardware support provided at Winbond
Copyright (c) Winbond Limited 2001 - 2006. All rights reserved.


For help on the available commands type 'h'

Press ESC to enter debug mode ......
ERROR: Image 0 not found


ERROR: Data Abort @ pc=0x00001680
bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000048 exec:0x7F010000 -af

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 09:32:10 pm
Uboot thinks that it successfully created image 0. Whatever ls checks leads it to believe that it sees a valid image 0. Yet, other tests (ERROR: Data Abort @ pc=0x00001680) make it appear that image 0 is corrupted. Seems like read or write errors with the flash or ram, to me.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 09:39:30 pm
casbeto,

You say loading my image 0 yields:
Code: [Select]
bootloader> fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f
 Waiting for download ...

Does it hang and never progress beyond the "Waiting for download ..." message?
Does the xmodem block count progress on your PC?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 09:39:40 pm
it all started when I put this command: fx 7 linux.zip 0x7f020000 0x8000 -acxz

 when the truth would be: fx 7 linux.zip 0x7f020000 0x00008000 -acxz
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 10:04:09 pm
celem has a command to clear the references below?

bootloader > d -b 0x00008000
Displaying memory at 0x8000
[00008000] 00 11 A0 20 48 82 03 C0 - 85 45 04 42 40 E0 80 23  ....H....E.B@..#
[00008010] 42 61 50 D4 68 D0 80 26 - 00 C0 84 97 08 09 85 0C  BaP.h..&........
[00008020] A8 98 42 18 02 49 30 9A - 28 2A 48 87 D1 61 03 1A  ..B..I0.(*H..a..
[00008030] 38 06 C0 2A 28 81 02 A6 - 85 91 7A C4 26 06 3D 14  8..*(.....z.&.=.
[00008040] 88 A8 A4 35 80 02 30 40 - A8 0B 20 20 10 39 1A 31  ...5..0@.....9.1
[00008050] 30 C2 00 44 00 8C 48 A8 - F0 62 21 01 EB 91 12 B0  0..D..H..b!.....
[00008060] 60 05 10 40 81 04 CA C0 - 36 BE 9C 0A 85 A5 2C 0F  `..@....6.....,.
[00008070] 1A 33 22 EF 8A 71 06 10 - 22 12 24 02 67 87 A0 00  .3"..q..".$.g...
[00008080] 25 8A 98 4A 51 4C 09 62 - 41 D9 1C 09 21 11 26 02  %..JQL.bA...!.&.
[00008090] 90 5C B8 94 8D 12 62 81 - 08 3A 8E B0 BA 1C F4 92  .\....b..:......
[000080A0] B6 98 44 7D 81 BB 40 81 - D2 82 26 03 21 22 10 18  ..D}..@...&.!"..
[000080B0] C2 88 60 93 01 94 02 43 - B8 08 E0 42 86 85 2E 26  ..`....C...B...&
[000080C0] 01 27 49 17 B2 04 09 43 - 08 B6 C2 AA CC 86 40 81  .'I....C......@.
[000080D0] 00 84 84 42 21 AE 05 F0 - 82 E6 EC 40 1E 02 96 22  ...B!......@..."
[000080E0] E6 14 D8 CC C2 48 09 E5 - E4 48 44 E6 65 12 9A 13  .....H...HD.e...
[000080F0] 13 28 52 BB BD 23 21 23 - 38 01 8A D8 8C 20 A0 AC  .(R..#!#8.......

bootloader >
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 10:15:07 pm
0x00008000 is a RAM address. Given that, upon each boot, RAM is reloaded by uboot from the flash images, I don't see how this is relevant. Additionally, 0x00008000 and 0x8000 are the same.

I still suspect a flash or ram issue.

Here is what I have:
Code: [Select]
bootloader > d -b 0x8000
Displaying memory at 0x8000
[00008000] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008010] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008020] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008030] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008040] AA AA A2 AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008050] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008060] AA AA AA AA AA AA AA AA - AA AA AA AA AA 2A AA AA  .............*..
[00008070] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008080] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[00008090] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[000080A0] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[000080B0] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[000080C0] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA AA  ................
[000080D0] AA AA AA AA AA AA AA AA - AA AA AA AA AA AA AA A2  ................
[000080E0] AA AA AA AA AA AA AA AA - A2 AA AA AA AA AA AA AA  ................
[000080F0] AA AA AA AA AA AA AA AA - AA AA AA AA 2A AA AA AA  ............*...

You did not answer my previous question - You say loading my image 0 yields:
Code: [Select]
bootloader> fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f
 Waiting for download ...

Does it hang and never progress beyond the "Waiting for download ..." message?
Does the xmodem block count progress on your PC?

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 10:20:19 pm
celem, after using it I saw that Mac was reset, boot and there I could no longer enter.

 it hangs at Waiting for download!


celem, what is the command mx? accepted this and asked to send the file.


bootloader > mx 0x8000
Waiting for download
Press Ctrl-x to cancel ...
CCC
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 10:38:56 pm
Here is what is in image 0:
Code: [Select]
Note: the base address is 0x7F010000 - add 0x7F010000to the addresses shown:

$ hd bootinfo.bin
00000000  48 00 00 00 01 00 00 00  00 b8 00 00 68 d2 c0 a8  |H...........h...|
00000010  00 b2 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  01 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 30 00 00 00 10 00  00 c2 01 00 ff ff ff ff  |..0.............|
00000040  ff ff ff ff 01 00 00 00  ff ff ff ff ff ff ff ff  |................|
00000050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
0000ffc0  ff ff ff ff ff ff ff ff  ff ff ff ff 00 00 00 00  |................|
0000ffd0  00 00 01 7f 48 00 00 00  00 00 01 7f 00 00 01 7f  |....H...........|
0000ffe0  42 4f 4f 54 20 49 4e 46  4f 00 00 7f 78 00 00 00  |BOOT INFO...x...|
0000fff0  4b 01 fc 56 9f ff ff a0  08 00 00 00 99 65 63 71  |K..V.........ecq|

The MAC is in the first 48 bytes. The image parameters are at the end of the 65k, as you can see above. In between is nothing. I suspect a flash problem up near the end.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 10:43:13 pm
celem, what is the command mx? accepted this and asked to send the file.

bootloader > mx 0x8000
Waiting for download
Press Ctrl-x to cancel ...
CCC
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 10:49:00 pm
Downloads to ram via xmodem. For example,

Code: [Select]
mx 0x8000
Loads the image that you send via xmodem into RAM starting at 0x8000.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 10:49:56 pm
So, loading to RAM works but loading to Flash fails!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 10:57:28 pm
I think we have to end here! 've tried everything and failed, but this post with your knowledge will help many people who have problems like mine.

 thanks for your help, thank you for everything my friend, I will order one from china.

 sds,
 Carlos Alberto
 Sao Paulo - Brazil
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 11:00:24 pm
OK. Rather than make it a doorstop, try loading the kernel e/w busybox that Lawrence posted somewhere on this forum. You could try to load it straight to RAM @ 0x8000 via mx and then execute it with G 0x8000

You never said what brand of camera your was?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 27, 2011, 11:11:34 pm
Sorry my camera and Chinavasion ES_IP607_ARM_2 (20091216), I'll try what you said to get something, post it here for you also know, thanks!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 27, 2011, 11:29:57 pm
This might work.

Download Lawrence's kernel e/w busybox:
http://www.openipcam.com/files/Firmware/Testing/romfs745_busybox_openipcam_v1.img (http://www.openipcam.com/files/Firmware/Testing/romfs745_busybox_openipcam_v1.img)

This file has a header that will probably need to be stripped off. Lawrence discusses this, somewhere in the forum, how to do this.

Load from your PC directly to RAM via xmodem with:
mx 0x8000

Execute the image by ‘g 0x8000’ command.
bootloader > g 0x8000

If it works, you'll have a nice Linux interface with busybox as your shell. No gui, of course. Also, if this works, it really points to the flash as being bad.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 09:00:34 am
I typed the command below and it does not!
 bootloader> g 0x8000

 the only command that accepts to send the file and mx
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on June 28, 2011, 09:15:47 am
hi,

my cam was picky about the fx command too. Obviously your fx command never was accepted because of some error (maybe the . or too long name ?)

I had to type

   fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f

if the command is accepted it will give the "Press Ctrl-x to cancel ..." message and start to print C characters until you start the transmission from your PC.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 09:40:23 am
the only command that appears the message "Press Ctrl-x to cancel ..." and the mx, already tried everything without success.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on June 28, 2011, 11:29:04 am
Are you uploading a file using xmodem at that point?

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 01:04:08 pm
using xmodem but I'm trying!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 01:30:20 pm
casbeto,

Here is a way for you to test your camera without using the flash. In this way, you can help isolate the problem to your flash. Plus, it is simply a good exercise. What I am proposing is that you use the MX command to load a linux kernel and romfs directly to RAM via xmodem. If it then works, your problem is isolated to the flash. If you are handy, you could even replace the surface mounted flash - I have replaced surface mounted chips. It is tedious, but possible, even with just a soldering iron and tweezers.

Anyway, download and extract the following file that Lawrence posted in the files section of the forum:
http://www.openipcam.com/files/Firmware/Testing/homebrew_firmware_fi8908_v2.7z (http://www.openipcam.com/files/Firmware/Testing/homebrew_firmware_fi8908_v2.7z)

I installed it, tested it and then rebooted normally

Instructions are there, but also at the top of my console output, below:

Code: [Select]
Console output from loading Lawrence's RAM version of ipcamera test software.
The test software can be obtained from:
http://www.openipcam.com/files/Firmware/Testing/homebrew_firmware_fi8908_v2.7z

Install per these instructions:

This firmware can (only) be used without flashing your device !
So no risk to loose your actual firmware.

Step 1. access boot loader.
Step 2. type :
mx 0x8000[enter]
  choose file : "745kernel"
Step 3. type :
mx 0x700000[enter]
  choose file : "romfs-ram.img"
Step 4. and finally type :
g 0x8000[enter]


--------CONSOLE OUTPUT BELOW----------
bootloader > ls
Image: 0 name:BOOT INFO base:0x7F010000 size:0x00000048 exec:0x7F010000 -f
Image: 7 name:linux.zip base:0x7F020000 size:0x000BFF00 exec:0x00008000 -acxz
Image: 6 name:romfs.img base:0x7F0E0000 size:0x0010C400 exec:0x7F0E0000 -a
Image: 8 name:webui.bin base:0x7F200000 size:0x000A6F80 exec:0x7F200000 -a

bootloader > mx 0x8000
Waiting for download
Press Ctrl-x to cancel ...
CCCCC
Download successed!

bootloader > mx 0x700000
Waiting for download
Press Ctrl-x to cancel ...
CCC
Download successed!

bootloader >

bootloader > g 0x8000e_ddns: can         
Linux version 2.4.20-uc0 (operateur@debianvm) (gcc version 3.0) #135 dimanche 220 00000000  ...........not get server  ip                                       
 août 2010, 17:53:58 (UTC+0200)                               
Processor: Nuvoton NUC745 revision 1               
update_smarteye_ddns
Architecture: NUC700 ipmarteye_ddns: can
On node 0 totalpages: 1792                         
zone(0): 0 pages.                 
zone(1): 1792 pages.] 000000           
zone(2): 0 pages.eye_ddns: can ca
Kernel command line: root=/dev/rom0 rwmarteye_ddns: can not get server  ipFF
Calibrating delay loop... 39.83 BogoMIPS                                       
Memory: 7MB = 7MB totalcan not get server  ip
Memory: 5576KB available (1214K code, 203K data, 44K init)_ddns: can not get server  ipF0100A0] FFFFFFFF FF         
Inode cache hash table entries: 512 (order: 0, 4096 bytes)                               
update_smarteye_ddns: can
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)ddns: can not get server  ipF  ................           
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)smarteye_ddns: can not get server  ipFFF  ................e_
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                         
POSIX conformance testing by UNIFIXteye_ddns: can not get server  ipbo
Linux NET4.0 for Linux 2.4                         
Based upon Swansea University Computer Society NET3.039þ: Bad                 

update_smarteye_ddns: can not
Initializing RT netlink socket                           
u
Starting kswapddns: can not ge
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
/>P   
/> T   
/> lupdate_smarteye_       
abled     
ttyS00 at 0xfff80100 (irq = 10) is a NUC7001server  iprver  ip                         
Nuvoton NUC7002 Serial driver version 1.0 (2005-08-15) with no serial options enmarteye_ddns: can not gerver  ip                                               
abled     
ttyS00 at 0xfff80200 (irq = 11) is a NUC7002                   
        Serial Number 
I2C Bus Driver has been installed successfully.ry at 0x7                                     
Blkmem copyright 1998,1999 D. Jeff Dionne
n^Hbin     
/bi   


                 
Blkmem copyright 1998 Kenneth Alban                                 
NUC700 Audio Driver v1.0 Initialization successfully.     

lo        Link encap:Local0                 
mtd flash device: Found 1 x16 devices at 0x0 in 16-bit bank   
/etc- 0       
Boot Loader Configuration:ACK RUNNING  M
 Amd/Fujitsu Extended Query Table at 0x0040                                           
number of CFI chips: 1           

       
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.                           

update_smarteye_ddns: can not get server   
Creating 2 MTD partitions on "mtd flash device":X packets:0 errors:0 dropped                   
hc_resetupdate_s
usb.c: new USB bus registered, assigned bus number 10x00300000                                       
B
hub.c: USB hub found                   
hub.c: 2 ports detected               
       
FAT: bogus logical sector size 53248
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 44K
new USB device :806d9a04-6da320
hub.c: new USB device 1, assigned address 2
usb.c: USB device 2 (vend/prod 0x1d0f/0x1801) is not claimed by any active drive
r.
Bienvenue sur
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

Pour plus d'informations, consultez :
http://www.uclinux.org/


Wait for auto-negotiation complete...OK
100MB - FULL
# ls
bin             dev             etc             lib             plume
proc            tmp             usr             var
#
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 02:02:16 pm
Celem Thanks, but I'll try, but right now I'm at work, at night when you get home do the test and if you stretch inform you here.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on June 28, 2011, 05:16:06 pm
no, as far as your posts, you allways tried

fx 0 bootinfo.bin 0x7f010000 0x7f010000 -f

but instead of bootinfo.bin the fx command awaits a name for the partition and I think the fx command gets confused by bootinfo.bin

give the command I poted a try, it won't take you much time ....
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 07:27:48 pm
bootloader > mx 0x8000
Waiting for download
Press Ctrl-x to cancel ...
CCCCCCCCC
Download successed!

bootloader > mx 0x700000
Waiting for download
Press Ctrl-x to cancel ...
CCCCCC
Download successed!

bootloader > ls
Image: 0 name:BOOT INFO`base:0x7F010000 size:0x00000048 exec:0x7F010000 -af

bootloader >


bootloader > g 0x8000
Linux version 2.4.20-uc0 (operateur@debianvm) (gcc version 3.0) #135 dimanche 22
 août 2010, 17:53:58 (UTC+0200)
Processor: Nuvoton NUC745 revision 1
Architecture: NUC700
On node 0 totalpages: 1792
zone(0): 0 pages.
zone(1): 1792 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0 rw
Calibrating delay loop... 39.83 BogoMIPS
Memory: 7MB = 7MB total
Memory: 5576KB available (1214K code, 203K data, 44K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Nuvoton NUC700 Serial driver version 1.0 (2005-08-15) with no serial options ena
bled
ttyS00 at 0xfff80000 (irq = 9) is a NUC700
Nuvoton NUC7001 Serial driver version 1.0 (2005-08-15) with no serial options en
abled
ttyS00 at 0xfff80100 (irq = 10) is a NUC7001
Nuvoton NUC7002 Serial driver version 1.0 (2005-08-15) with no serial options en
abled
ttyS00 at 0xfff80200 (irq = 11) is a NUC7002
I2C Bus Driver has been installed successfully.
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 700000-7C77FF [VIRTUAL 700000-7C77FF] (RO)
RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize
loop: loaded (max 8 devices)
Linux video capture interface: v1.00
NUC700 Audio Driver v1.0 Initialization successfully.
mtd flash device: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 2 MTD partitions on "mtd flash device":
0x00000000-0x00300000 : "images 3M"
0x00300000-0x00400000 : "user 1M"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
add a static ohci host controller device
: USB OHCI at membase 0xfff05000, IRQ 15
hc_alloc_ohci
usb-ohci.c: AMD756 erratum 4 workaround
hc_reset
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
Usb device driver by ns24 zswan designed successfully!
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 53248
FAT: bogus logical sector size 53248
Kernel panic: VFS: Unable to mount root fs on 1f:00


bootloader > ls
Image: 0 name:BOOT INFO`base:0x7F010000 size:0x00000048 exec:0x7F010000 -af

bootloader >

but did not work at ipcam!!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 07:34:36 pm
no, as far as your posts, you allways tried

fx 0 bootinfo.bin 0x7f010000 0x7f010000 -f

but instead of bootinfo.bin the fx command awaits a name for the partition and I think the fx command gets confused by bootinfo.bin

give the command I poted a try, it won't take you much time ....


bootloader > fx 0 boot 0x7f010000 0x7f010000 -f
Waiting for download ...
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 07:50:54 pm
Bienvenue sur
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

Pour plus d'informations, consultez :
http://www.uclinux.org/


Wait for auto-negotiation complete...ResetPhyChip Failed
#
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 07:53:03 pm
Re:
Code: [Select]
Kernel panic: VFS: Unable to mount root fs on 1f:00
what should have happened was:
Code: [Select]
VFS: Mounted root (romfs filesystem) readonly.
I think that you have hardware problems
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 08:00:25 pm
celem, is now giving 100 FUL ok, what do I do?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 08:02:12 pm
if you mean:
Code: [Select]
100MB - FULL

Then enter ls and see if you get the following:
Code: [Select]
# ls
bin             dev             etc             lib             plume
proc            tmp             usr             var
#
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 08:05:07 pm
Wait for auto-negotiation complete...OK
100MB - FULL
Jan  1 00:11:06 1970 dhcpcd[42]: timed out waiting for a valid DHCP server respo
nse

NUC700 : nuc700_close

Wait for auto-negotiation complete...OK
100MB - FULL
Jan  1 00:12:06 1970 dhcpcd[43]: timed out waiting for a valid DHCP server respo
nse

NUC700 : nuc700_close

Wait for auto-negotiation complete...OK
100MB - FULL
ls
bin             dev             etc             lib             plume
proc            tmp             usr             var
#
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on June 28, 2011, 08:12:19 pm
@Celem Well, you got him to follow simple instructions from the first page finally ::)

If you want to walk him through finding out what hardware he has, that will be fun.

@Casbeto.

Suggest try flash the kernel file from Kaicom firmware folder, and a romfs from one of the 2M filesystems

The newest camera's have Pixart PAP7501V sensors and RT3070 wifi.
If yours is an older model, then SunPix sensor and vt6656 wifi possibly, or rt73 wifi.

I guess I should roll out a linux + romfs that outputs some debugging info so that we can find that out.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 08:20:02 pm
this makes ipcam bought it about 3 months and has wifi.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 09:21:36 pm
Ram & cpu good. Flash suspect
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 09:47:47 pm
Thank you for everything!!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 10:10:24 pm
Lawrence (admin) just proposed a good solution to possibly salvage your camera - namely using firmware intended for a 2MB flash. In this way, if the flash area is in higher memory, your camera would still work - if the sensor is compatible.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 10:13:35 pm
ok, just do not know even how. rs
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 10:21:00 pm
Lawrence, I enjoy solving crossword puzzles - do them every day. Maybe a connection?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 10:24:00 pm
casbeto, Lawrence is suggesting to load the 2MB firmware at:
http://www.openipcam.com/files/Firmware/KaiCom%20IP1018%20Firmware/ (http://www.openipcam.com/files/Firmware/KaiCom%20IP1018%20Firmware/)

The sensor is unlikely to be correct, but if it will load and run (at the console) it would prove that your flash's upper memory was bad.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 28, 2011, 10:31:38 pm
ok, but I have to use what command?
 mx ou fx ?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 28, 2011, 10:53:01 pm
Follow the notes at that link, but the sequence is probably:
Code: [Select]
fx 7 linux.zip 0x7F020000 0x8000 -acxz
fx 6 romfs.img 0x7F0E0000 0x7F0E0000 -a
fx 8 webui.bin 0x7f180000 0x7f180000 -a

Good luck
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: Borsti92 on June 29, 2011, 02:35:02 am
ahhh....

set -ip0 10.0.3.200

Can we change the MAC Address with this or similar command or does it need reflash of Image 0. I have cameras which have all the same MAC.

EDIT:
ok, found it myself it is set -mac0 [addr]
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 29, 2011, 08:41:46 am
the set command is not accepted!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 29, 2011, 10:02:16 am
1. Your camera can correctly install and run a linux kernel and romfs directly to RAM.
2. All actions involving FLASH appear to fail.
3. The ls command shows "BOOT INFO" as mounted yet subsequent accesses indicate that it is corrupted.
4. Conclusion: your FLASH has a problem.

My final recommendation. If this fails, consider the camera a source of spare parts.

Using the bootinfo file previously posted:
http://goo.gl/7vQpV (http://goo.gl/7vQpV)
enter the following commands:

DEL -all
DEL b1
fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f   (NOTE: on your PC xmodem send the bootinfo file referenced above)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on June 29, 2011, 12:43:50 pm
maybe only the fx command is broken, it would be worth trying to flash via tftp
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 29, 2011, 12:57:13 pm
I will perform the tests, and the night stand for you to see!

 Thank you all!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on June 29, 2011, 02:47:03 pm
Estou curioso. Você está usando software de tradução de idiomas, como estou nesta comunicação? Percebo artefatos sintaxe da linguagem em suas comunicações.

---------

I am curious. Are you using language translation software, as I am in this communication? I notice language syntax artifacts in your communications.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on June 30, 2011, 08:11:23 pm
Inglês:
Celem correct use Google Translator, so everything you write in English I use the translator to enter WHAT are saying, so sometimes gut out some letters. rs

Português:
Correto Celem uso o Google Tradutor, assim tudo que vocês escrevem em ingles eu uso o tradutor para enter oque estão dizendo, por isso as vezes sai umas letras entranha.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 01, 2011, 02:08:23 pm
Hi,

I've been monitoring progress between Admin, Casbeto and Celem about the problem Casbeto has with his cam. I've got exactly the same cam with the same problem. I managed to, sadly only briefly, get my hands on an identical working cam and dumped the linux.bin and romfs.img files using the Foscam Clone Recovery tool. I also made a copy of the normal succesfull boot sequence. Maybe this will help.

I failed in trying to reflash the broken cam with the dumped files from the working one. I keep getting an error that it is unable to unzip or an error that romfs is not loading.

see attached files.

@Admin: how can I upload the firmware files I dumped?

Regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 01, 2011, 02:11:43 pm
Small addition:

This is also a cam with ES_IP607_ARM_2 on the board.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 01, 2011, 03:45:02 pm
Dear jjnh,

 You can post these files for me to try to recover my IPCAM?

 I'll try to tftp and how are the original files can work.

 I look back and thank you for trying to help me!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 01, 2011, 03:54:38 pm
Hi Casbeto,

The files are in the attached zip file.

I've tried them on my broken cam and they don't seem work  :(
Maybe you, or some of the experts on this forum, can get them to work so we can help each other 8)

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 01, 2011, 04:12:11 pm
casbeta, Você não relatou os resultados de minha sugestão de "29 de junho de 2011, 10:02:16". Volte e leia a minha sugestão anterior.

You did not report results from my suggestion of "June 29, 2011, 10:02:16 am". Go back and re-read my suggestion.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 01, 2011, 04:15:46 pm
jjnh,

I recommend that you try the known good firmware files in the Files section of this website - http://goo.gl/29mq4 (http://goo.gl/29mq4) Your dump may have errors.

WARNING: Do not use these files unless your camera is a WansView NC-541/W

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 01, 2011, 06:26:47 pm
Dear Celem, you can leave before trying the tftp or her do the procedure, and put the result, then we see that has no solution, then I try the firmware that jjnh posted.

sds,
casbeto
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 01, 2011, 06:41:30 pm
cabesto,

What I said was:

1. Your camera can correctly install and run a linux kernel and romfs directly to RAM.
2. All actions involving FLASH appear to fail.
3. The ls command shows "BOOT INFO" as mounted yet subsequent accesses indicate that it is corrupted.
4. Conclusion: your FLASH has a problem.

My final recommendation. If this fails, consider the camera a source of spare parts.

Using the bootinfo file previously posted:
http://goo.gl/7vQpV (http://goo.gl/7vQpV)
enter the following commands:

DEL -all
DEL b1
fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f   (NOTE: on your PC xmodem send the bootinfo file referenced above)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 01, 2011, 07:02:14 pm
here's the result!

WARNING: Image 0 was not found. Try to create one ...
.Image 0 created


W90P745 Boot Loader [ Version 1.1 $Revision: 1 $ ] Rebuilt on Dec 10 2009
Memory Size is 0x1000000 Bytes, Flash Size is 0x400000 Bytes
Board designed by Winbond
Hardware support provided at Winbond
Copyright (c) Winbond Limited 2001 - 2006. All rights reserved.


For help on the available commands type 'h'

Press ESC to enter debug mode ......
ERROR: Image 0 not found


ERROR: Data Abort @ pc=0x00001680
bootloader > del -all
Press Ctrl-c to stop
Deleting ... Block 2
Deleting ... Block 3
Deleting ... Block 4
Deleting ... Block 5
Deleting ... Block 6
Deleting ... Block 7
Deleting ... Block 8
Deleting ... Block 9
Deleting ... Block 10
Deleting ... Block 11
Deleting ... Block 12
Deleting ... Block 13
Deleting ... Block 14
Deleting ... Block 15
Deleting ... Block 16
Deleting ... Block 17
Deleting ... Block 18
Deleting ... Block 19
Deleting ... Block 20
Deleting ... Block 21
Deleting ... Block 22
Deleting ... Block 23
Deleting ... Block 24
Deleting ... Block 25
Deleting ... Block 26
Deleting ... Block 27
Deleting ... Block 28
Deleting ... Block 29
Deleting ... Block 30
Deleting ... Block 31
Deleting ... Block 32
Deleting ... Block 33
Deleting ... Block 34
Deleting ... Block 35
Deleting ... Block 36
Deleting ... Block 37
Deleting ... Block 38
Deleting ... Block 39
Deleting ... Block 40
Deleting ... Block 41
Deleting ... Block 42
Deleting ... Block 43
Deleting ... Block 44
Deleting ... Block 45
Deleting ... Block 46
Deleting ... Block 47
Deleting ... Block 48
Deleting ... Block 49
Deleting ... Block 50
Deleting ... Block 51
Deleting ... Block 52
Deleting ... Block 53
Deleting ... Block 54
Deleting ... Block 55
Deleting ... Block 56
Deleting ... Block 57
Deleting ... Block 58
Deleting ... Block 59
Deleting ... Block 60
Deleting ... Block 61
Deleting ... Block 62
Deleting ... Block 63

bootloader > del b1

bootloader > fx 0 bootinfo 0x7F010000 0x7F010000 -f
Waiting for download ...
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 01, 2011, 07:03:52 pm
Você não seguir as instruções. Formulação do "INFO BOOT" importante. Leia atentamente as instruções.

You did not follow instructions. Wording of "BOOT INFO" important. Read instructions carefully.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 01, 2011, 07:46:55 pm
I've done: del-all

 del b1, just missing the command below.

what should I enter?


 fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f

 fx 0 BOOT INFO 0x7F010000 0x7F010000 -f

 or

 fx 0 bootinfo.bin 0x7F010000 0x7F010000 -f
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 01, 2011, 07:54:55 pm
Exatamente como está escrito. Incluem pontuação.

Exactly as written. Include quotation marks.

fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f

What I said was:

1. Your camera can correctly install and run a linux kernel and romfs directly to RAM.
2. All actions involving FLASH appear to fail.
3. The ls command shows "BOOT INFO" as mounted yet subsequent accesses indicate that it is corrupted.
4. Conclusion: your FLASH has a problem.

My final recommendation. If this fails, consider the camera a source of spare parts.

Using the bootinfo file previously posted:
http://goo.gl/7vQpV
enter the following commands:

DEL -all
DEL b1
fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f   (NOTE: on your PC xmodem send the bootinfo file referenced above)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 01, 2011, 07:59:07 pm

Deleting ... Block 62

Deleting ... Block 63



bootloader > del b1



bootloader > fx 0 "BOOT INFO" 0x7F010000 0x7F010000 -f

Waiting for download ...

do not get out of it!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 01, 2011, 08:14:12 pm
OK. Isto confirma a minha crença de que sua câmera tem um problema na memória flash.

OK. This confirms my belief that your camera has a problem in flash-memory.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 02, 2011, 09:01:15 am
no, that doesn't confirm that the flash is bad, it only shows that fx isn't working as usual, didn't even try to get one block of data ...

again, why not try to flash via tftp? If this isn't working, you can say you tried everything ....
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 02, 2011, 09:56:33 am
schufti, it proves that the flash is bad when evaluated in context with the previous tests. He can successfully load and run an image to RAM via the MX command, proving that the CPU and RAM are good. His image 0 shows mounted with the LS command yet other checks report no image 0. Loading to the Flash fails (FX command). Lawrence suggested that he try loading a 2MB image. This might work as different areas of the flash would be used.

Re tftp, I don't know that casbeto is set up for tftp, but, as you say it would be another way to attempt write to flash.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 02, 2011, 10:06:48 am
cabesto,
Digite o comando abaixo e relatório de resultados. (Enter the command below and report results.)

CHK

saída esperada (expected output)

Code: [Select]
bootloader > chk
Image check finished. 0 checksum error found.

bootloader >



This command is used to check if there are unknown data in the flash. If there is unknown data in the flash, the flash programming function may fail. Therefore, the user may use this command to check if contents of the flash are clean.

English to Portuguese translation

Este comando verifica a existência de dados espúrios na memória flash. Dados espúrios pode causar falha de programação do flash de memória.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 02, 2011, 01:04:42 pm
ok, opinions differ but thats not relevant because looking back in the thread I see that it doesn't matter, because the set command isn't working for him, so no IP connection -> no tftp.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 03, 2011, 06:20:57 pm
no, that doesn't confirm that the flash is bad, it only shows that fx isn't working as usual, didn't even try to get one block of data ...

again, why not try to flash via tftp? If this isn't working, you can say you tried everything ....

I could do you programmatically pass the camandos for tftp?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 03, 2011, 06:22:22 pm
cabesto,
Digite o comando abaixo e relatório de resultados. (Enter the command below and report results.)

CHK

saída esperada (expected output)

Code: [Select]
bootloader > chk
Image check finished. 0 checksum error found.

bootloader >



This command is used to check if there are unknown data in the flash. If there is unknown data in the flash, the flash programming function may fail. Therefore, the user may use this command to check if contents of the flash are clean.

English to Portuguese translation

Este comando verifica a existência de dados espúrios na memória flash. Dados espúrios pode causar falha de programação do flash de memória.

I tried this command and got no response!
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: celem on July 03, 2011, 06:47:23 pm
CHK freezes and never exits, FX freezes and never exits, while loading and running to RAM works OK. Thus, programs that work FLASH ultimately fail while those that do not work with FLASH work. Personally, I still feel that your pattern of failures points to a FLASH problem.

Software que atua sobre memória flash falhar, enquanto residente software funciona dentro da memória RAM. Acredito que em memória flash é o seu problema. Comprar uma nova câmera.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: casbeto on July 03, 2011, 07:40:35 pm
I'll have to buy another but I think this week I will order one from china, and now with a little more experience to not make the same mistake, thank you and the friends of the forum results that will try to help me, but certainly everything was posted here will help others with the same problem as mine.

 greetings
 casbeto
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 04, 2011, 01:48:09 am
Hi,

I don't think that it was your fault that happened. If you read through different boards there are several postings that hw started to fail only weeks after delivery, sometimes even without "hacking". I think the fabs use scrap parts (relabeled grade C) for these devices, so one would be better off not to buy in china thinking of the cost to ship back. On the other hand, some sellers in china give 1 year waranty compared to 90 days in US...
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 06, 2011, 03:32:25 pm
Hi everyone,

It took me a while to get time continue testing. Sorry for that.

First of all I switched to uploading thru TFTP as Schufti proposed. This is much faster, but the results are the same. The commands are simple just use FT in stead of FX.

@Schufti: TFTP is faster but the results are the same as with serial transfer. Thnx for the tip  ;D

@Celem: With all firmware (also with NC541w) the cam start rebooting with a "write I2C error" and then "myreboot"  :o

I tried loading and starting the test kernel an this results in a correct response to LS.
Since I've got exactly the same results as casbeto, I do not think it is flash related.

Could anyone please split the files for IP607Final and the CVLM-I33 ... ? This is the exact type number or order number than the cam. Maybe this firmware will help.

Thanks for all your help!!!

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 07, 2011, 01:52:05 am
Hi Celem,

Thnx for your reply. I'll check the id's later today but i'm sure it is not the right cam. It is propably a EyeSight IP-607.

I compared the boot sequences of the NC541c and a working IP607 cam. These. Are largely similar. Even the working cam had write I2C errors. The difference starts with messages about wrong or missing bin files. These are possibly in the firmware library but don't know how to flash them.

The right firmware is propably in the download section (cvlm-i33) but these are bin files.
Can someone split these files so I can flash them using tftp or serial?

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 07, 2011, 02:04:38 am
Hi john,
you can split them yourself with the fostar utility (linux & win available).

I cannot confirm that all i2c errors are due to wrong cam drivers.
My apexis oem had i2c errors from the beginning. Every boot I got one or two i2c errors during initialisation, with OEM and apexis fw.
In the end it was so bad, that sometimes the count of i2c errors triggered the "myreboot" with the - former 100% working - apexis fw and was booting 9 out of 10 times with the OEM fw but having a reboot every couple of hours. With the apexis fw it sometimes worked after 3-5 reboots and it worked best when not connected to the network, some timeouts seem to suppress the i2c error count.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 07, 2011, 03:33:51 am
Hello Schufti,

Thanks for the tip. Where can I find the tool for Windows? I tried the files section and Google but I can't find it.

EDIT: Sorry didn't look in the right place. I found the tool and will try it this evening.

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 07, 2011, 03:58:32 pm
Hello Everyone,

I think we are getting close :o . I enclosed some files for you to look at.
normalboot.txt is from a work ES_IP607_ARM_2.
wrongboot3.txt is taken with CVLM-I33 firmware flashed.

@Celem: I can confirm that in the working and in the broken cam both say idVendor = 0x148f, idProduct = 0x2573
@Schufti: I can confirm that I2C writing seems to work. If I boot after a "del b31" command. The boot sequence states that parameters are not programmed. Any next boot the messages do not reapear so it seems to write succesfully.

Things seem to go wrong during boot when the firmware needs to be loaded. I enclosed a screenshot with the 2 files side-by-side.

As you can see aw version is ... slightly differ.
In the wrong boot, the next message is "aw not exist !".
What does this mean and how can I solve this?  :-\

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 07, 2011, 04:25:49 pm
Here I am again ...  ::)

Just tried with firmware in nc54100417.zip.
See attached text file. Boot seems to go OK completely but ... it ends in myreboot  >:(

sw and as are both detected. Camera even starts to move for a second or two. If I keep IP Camera Tool open while the cam cycles the cam is even detected with the correct firmware. But immedatly fanishes when it reboots.

Any ideas?

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 08, 2011, 02:37:57 am
did you allready try without LAN connection (you can reconnect when cam successfully rebooted)?
did you wait for several reboots and see if it will come up ok?
this is how mine started to die ...
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 08, 2011, 03:03:17 am
Hi Schufti,

Yep, tried all of that. No results.
I stopt it after about 40 or 50 reboots without the lan cable attached.

Regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 08, 2011, 04:48:09 am
sorry, edited my post when you were answering ... now your post is a little confusing
(I asked jjnh to give a detailed situation and maybe open own thread)

as I see from various of your logs, you might want to try the "hootoo" fw I posted.
the various hw id's look similar to the ones from my (ex) cam.

In the end it had a similar behaviour with the former working apexis fw and worked solala with the original "hootoo" .... (I'm pretty sure it was an apexis clone because they'r the only ones with white LED I found)


p.s.: 1) dumping the webui wouldn't have "messed it up" dumping the flash can't harm anything
2) the idVendor = 0x148f, idProduct = 0x2573  only is the WLAN and of minor importance at the moment
3) what was the problem with the dumped fw? which errorlog?

the only indication on the cam chip I know of is the "detect_sensor: mi360" message
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 08, 2011, 04:59:52 am
Hi Schufti,

Good idea however I don't think my problem is that much different than Casbeto's since the boards seem to be exactly the same.

Short situation sketch:

1. I have one broken cam
2. I borrowed a working cam that is exactly the same as the broken one. Same make, model, version, board, etc. I had to give back this borrowed cam because it was from a collegue that has left the company I work for. So I don't have access to it anymore.
3. Before I returned it, I dumped the boot sequence of the working cam
4. I also tried to dump the firmware (not the webui because I didn't want to mess it up) of the working cam
5. Restoring the dumped files does not work
6. Restoring CVLM-I33 firmware results in "aw not exists!"
7. Restoring nc54100417.zip results in correct boot but after 2 seconds it still does "myreboot"

That's where I'm at at the moment.

Kind regards,
John

P.S. At the moment I'm at work so I have no access to the cam.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 09, 2011, 02:38:30 am
Hi Schufti,

Yep it's getting hard to follow. Almost missed your reply ...  ;)

Can you tell me where the "hootoo" firmware is? Couldn't find it in the firmware files.

Quick reply to your comments:
1. The webui.bin file was invisible and the firmware dump tool does not show hidden firmware. I'd rather not try to make it visible on the working cam.
2. OK to bad
3. I dumped the firmware using the windows tool. But when programming it into the broken cam, I get decompression errors. I also compared the memory sizes after flashing and they do not match. So I think the dumps are not ok.

There seems to be a newer firmware for EyeSight IP607 cam's (12.22.2.34/2.7.2.5). I tried to contact eyesight but they tell me the software is not available.

Cheers,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 09, 2011, 04:58:50 am
Hi,
the hootoo fw didn't make it to the firmware .. it's here (http://www.openipcam.com/forum/index.php?action=dlattach;topic=91.0;attach=42)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on July 09, 2011, 05:46:54 am
http://www.openipcam.com/files/Firmware/HooToo/ (http://www.openipcam.com/files/Firmware/HooToo/) maybe?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 09, 2011, 10:40:36 am
Hi Admin and Schufti,

To bad. It doesn't work  :'(
I've attached the boot sequence.

Any other thoughts?

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 09, 2011, 10:55:23 am
One thing I noticed in the different boot logs, is that only the working cam mentions: "detect_sensor: mi360  ???

All other boot's do not mention this sensor. Maybe this helps to narrow things down ... 
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 09, 2011, 12:03:12 pm
Hi,
the newer apexis kernel also shows the detection of mi360.

Did you try this fw without LAN connected?
Because everything looks exactly like mine when it started to die.
In the end it was only working when booted without LAN and reconected later or with WLAN.
the older (hootoo) fw was a little more "stable" and booted quite fast with WLAN.

I didn't try to mix hootoo kernel with apexis romfs ...

but I repaired your fw dump, see attachment


@admin: do the orig. foscams also have this one time i2c write error during boot?
Would be interesting what this i2c write should be doing. Obviously it doesn't matter for the real operation because I didn't see any malfunction other than the error messages and occasional reboots.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 10, 2011, 10:18:41 am
Hello Schufti,

Yes your absolutely right. I looked it up in wrongboot4.txt.
I tried all rom's with and without the LAN connected.

It just seems as if this board only works with the exact same firmware as it comes with. The firmware for the CVLM-I33 in the archive, is older then the one on te working cam.

I've contacted my (ex) collegue to see if he is willing to temporary donate his working cam. How can the dump of the firmware be done right? Since the last dump was not succesfull.

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 10, 2011, 11:17:02 am
just try to flash the repaired dump I attached to my last post ...

if possible use the method with kermit script and dump the whole flashrom.
We'll split it into needed parts later. so you'll get all the needed settings too.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 10, 2011, 02:59:12 pm
Woops. Missed the attached file. I'll try it now.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 10, 2011, 03:28:17 pm
Hi Schufti,

Just tried the FW. Great work!! Looks like the linux boot and the firmware are completely the same. Great job!!! But ... still myreboot at the end :'(
I've attached the boot log. Just that I don't have the right webui. Since the webui is only a html file can this still lead to the myreboot?

I'm just wondering if the i2c writes don't indicate it's looking for something on the I2C bus that is not there anymore. like some pre-programmed eprom or something like that. Do you know what's on the I2C bus in these cam's? Only a memory chip or are there other components attached?

Do you know where the I2C lines are located? I've got a logic analyzer with I2C decoder so I could look at what's happening on the bus.

Cheers,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 10, 2011, 03:44:21 pm
Hi John,

you allready have the chinavision webui (allthough not the lastest version) and i don't think it would change anything about the i2c errors.

Regarding the devices on i2c bus, you'll have to contact the admin, he has more "insight" on the workings of these cams as he has contact to the developers. There is rumour that it is related to wrong cmos cam chip / missing drivers but on my and your cam this error is present with orig. fw too, and mine was - except for the error messages - still working. So it has to be something more/different than simple missing drivers.

My personal believe is that it is more likely due to dirty programmng or failure due to cheap components than anything related to experiments with different fw.

It would really be helpfull to know what the camera binary is trying to do what with wich piece of hw at this part of code.


If you disconnect all network connections for booting, do the dns lookups for ntpc and ddns delay the i2c errors?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on July 11, 2011, 01:09:22 am
I have contact with the developers, but they're less than helpful to be honest.

I made 2 disassemblies of camera executable if you want to look at the asm code, you can see what it does.
Check in files http://www.openipcam.com/files/Reverse%20Engineering/ (http://www.openipcam.com/files/Reverse%20Engineering/)

i2c bus - i think its drivers looking for the camera settings, although that sits on usb.
most of the other i/o is gpio.

current sensor is : PAP7501V.

Excerpted from datasheet -

The PAP7501V High-Speed USB2.0 Camera Controller is a highly integrated and cost-effective solution for USB2.0 PC-Camera based applications. It is fully compliant with USB Video Class 1.1 and USB audio class 1.0 standard.Internal controller can be power-up loaded from external EEPROM. This allows customization of VID, PID, product string, sensor parameters...etc.

Internal EEPROM gets talked to over i2c, I don't think current design actually uses those data lines though as far as i can see.

Looking at my current board to the CCD

We have 5 pin -> stepper motor
5pin usb -> sensor (gnd, vcc, d+,d-) , 1 pin led (+shared gnd)
4pin -> microphone, motion switch (for positioning)

Looking at a driver - eg the gpca or spca5xx ones, they read / write registers which talk to the i2c sensor.
Hence my stating that its likely driver error.

The drivers under 2.4 are built into the kernel used, so if your kernel doesn't match, your software doesn't work.
Also adding to the fun is that different controllers may be paired up with different sensors.
So one camera may use the MIO360 sensor paired up with a SunPlus controller, another a different sensor.

Given that I have now made working 2.6 kernels with pretty much all uvc and gscpa device support, we may be able to put this behind us.  Assuming i get my ass out of gear and finish / release...

 


Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 11, 2011, 03:10:39 am
@Schufti: Yes a disconnected lan cable does delay the I2C errors and the myreboot. But only slightly.

@Admin: Wow, that's a lot to take in :o It's been a while since I read machine code  :P . Do you know where the "myreboot" comes from? Since the string is nog in the assembly commands, I cloud imagine it being something from the linux kernel or boot rom. If this is so, could it be that there is some delay in the processing that triggers a watchdog timer en thus resets the controller or maybe the rom does not use a watchdog and thus no resets are given in the code? If we could disable the watchdog timer to see what happens maybe things get a bit clearer.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on July 11, 2011, 04:10:08 am
There is no watchdog timer.

The myreboot is just a routine in the /bin/camera executable.
It does that if it thinks it can't initialize the camera hardware during its initialization process.

Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 11, 2011, 04:24:22 am
In the hardware of the Winbond W90N745 a watchdog is present and it even had a hardware pin. Shared with USB power (e.o.). But if it is not activated in SW then it's not used.

The (thanks to Schufti) repaired software is from an identical camera. Just the webui is not of the same release. So the drivers should be in de fw or am I mistaken?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 11, 2011, 04:26:11 am
It seems that in all wrong boots the message "=> usb_rtusb_open" is missing. So some USB device is not starting ...  :-\
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 11, 2011, 07:43:25 am
the "usb_rtusb_open" for me is related to the WLAN (Ralink rt71/rt73) which is connected via usb also.

I'm still interested if the same initial (sometimes repeated) i2c error that seems to be more or less frequent in every "clone" is present in genuine old/new foscam devices, too?
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 11, 2011, 08:02:35 am
Looking at all the boot logs, all failures end with exactly 10 sets of failures followed by myreboot.

Quote
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
_i2c_write: write i2c error
_i2c_write: write i2c error
write i2c error
myreboot

Yesterday I removed the WLAN module and the USB error is still shown.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 11, 2011, 03:25:53 pm
I think the only chance to get rid of the usb error will be to clear all WLAN settings and disable WLAN
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 12, 2011, 02:41:52 am
Getting rid of the WiFi functionality would be a problem. I was just wondering if this error was for the camera module.

@Admin: I hope the new custom firmware will be available soon  ;)
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 18, 2011, 10:44:03 am
It's been quiet for a few day. Any new ideas or developments?
I stll haven't gotten hold of my ex collegue. Could be that he is on vacation.

Hope te hear from you 8)

Regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 18, 2011, 01:57:02 pm
maybe try the amdins new 2.6 fw meanwhile.
but I think it is without webui at the moment, only to see if it's working and detecting all your hw.
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 19, 2011, 06:36:47 am
Hi Schufti,

Good tip. I'll try it asap and let you know.

Regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 24, 2011, 01:40:33 am
Hi Schufti and Admin,

Do you know how to flash the files into the cam? I get 2 files. The Romfs.img and a zimage file. This last file cannot be unzipped.

Any ideas?

Kind regards,
John
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on July 24, 2011, 03:02:34 am
Have you tried reading the very long post and wiki page I made with instructions on testing it perhaps?

http://wiki.openipcam.com/index.php/Test_Firmware_Installation
http://www.openipcam.com/forum/index.php/topic,143.0.html




Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: jjnh on July 24, 2011, 03:25:00 am
Yep did that  8)

If I upload the zImage file, nothing happens. Just a lot of line feeds in hyperterminal ...

Makes no difference if I MX or FX it.

What am I missing ...  :-[
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: admin on July 24, 2011, 04:03:49 am
You need to upload using xmodem.

Does your terminal software support that?

Maybe try using something other than the craptastic hyperterminal.

Teraterm may be useful if you're stuck on Windows.

http://www.ayera.com/teraterm/
Title: Re: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.
Post by: schufti on July 24, 2011, 05:13:13 am
Hi,
just for my information: is this during the upload or after the following "boot" command?