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: I deleted Image: 0 name:BOOT INFO. Could anyone send it to me.  (Read 51775 times)

  • *****
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.

  • No avatar
  • *****
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

  • *****
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 >

June 26, 2011, 07:29:24 am
I ask help of all, how do I retrieve the image 0.

 thanks
 Casbeto

  • *****
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.
« Last Edit: June 26, 2011, 10:09:10 am by celem »

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
« Last Edit: June 26, 2011, 04:55:17 pm by casbeto »

  • *****
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 
« Last Edit: June 26, 2011, 05:43:16 pm by celem »

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 >

  • *****
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 >

  • *****
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 >


  • *****
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 >

  • *****
June 26, 2011, 07:14:25 pm
Image 0 layout is shown in the attachment

  • *****
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

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 >
« Last Edit: June 26, 2011, 08:55:35 pm by casbeto »

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>


« Last Edit: June 26, 2011, 10:00:53 pm by casbeto »