Got it

How Upgrade an IPC Using Commands ?

Latest reply: Jan 27, 2019 12:23:30 197 1 0 0 0

Applicable Models

This fault may occur on IPC6100 series box network cameras.

Solution

NOTICE:

  • Before      the upgrade, disable the firewall of the PC from which you want to upgrade      the IPC.
  • Ensure      that the network connection between the IPC and the Secure File Transfer      Protocol (SFTP) server is normal. Do not disable the SSH tool, or power      off or restart the IPC during the upgrade.
  • The      directory for storing the upgrade file cannot contain more than one .bin      file, otherwise, the upgrade will fail.
  • The      upgrade file cannot exceed 35 MB, otherwise, the IPC may be faulty after      the upgrade file is uploaded.
  1. Create      an SFTP server, and configure the user name, password, and file path.
  2. Place      the upgrade file in the specified directory on the SFTP server or in a new      folder in the specified directory.
  3. Use SSH to login to the IPC as the admin      user.
  4. Run      the su - root      command to switch to the root      user.

NOTE:

For details about the default passwords of the admin and root users, see theIPC Online Help.

  1. Run      the cd      /usr/app/bin/ command to go to the bin      directory.
  2. Run      the ./update sftp      [IPAddr] [FilePath] [Mode] command to start the upgrade.

NOTE:

  • [IPAddr]: IP address of the SFTP server.
  • [FilePath]: path where the upgrade file is       stored on the SFTP server. Assume that the specified directory for       storing the upgrade file on the SFTP server is D:\update,       the path where the upgrade file is stored is D:\update\file,       and the upgrade file name is updatefile.       The value of this parameter is file/updatefile.       If the upgrade file is directly stored in the specified directory on the       SFTP server, you do not need to set this parameter.
  • [Mode]: When this parameter is set to -f, the upgrade is performed forcibly. The       parameter can be left blank.

For example, if you run the ./update sftp 192.168.40.254 IPC6112_V100R001C10.bin command, the following information is displayed.

root@Huawei:/usr/app/bin# ./update sftp 192.168.40.254 IPC6112_V100R001C10.bin 
 Update: Update Process Start! 
 Update: Update Sftp Start! 
 Update: Enter Function: UploadUpdateFile(sftp,192.168.40.254) 
 Please Enter sftp UserName: 
 admin 
 Update: Start sftp IPC6112_V100R001C10.bin, Please Wait...... 
 admin@192.168.40.254's password:      

  1. Enter      the user name and password set in 1      as prompted.

NOTE:

Enter yes when the system asks you whether to continue.

The following information is displayed. The preceding information indicates that the upgrade file is uploaded successfully and the upgrade is complete.

Connected to 192.168.40.254. 
 Fetching /IPC6112_V100R001C10.bin to /usr/upgrade/uImage.bin 
 /IPC6112_V100R001C10.bin                                                                                  100%   27MB   1.8MB/s   00:15     
 Update: sftp IPC6112_V100R001C10.bin Success! 
 Update: Sha256Calc file length:28704768 
 Update: Sha256Calc break check read length :4096 
 Update: Sha256Calc length MAX_BUFFER_LEN:28704768 
 Update: Sha256Calc  check read length :28700672 
 Update: pEncryptString:519f12426595dea0be399841175af591d442588fd581befd09889548fadb8960 
 Update: Start Kill Software Process.......... 
 Start Kill Software Process 
 killall: can't kill pid 1225: No such process 
 killall: can't kill pid 1226: No such process 
 killall: can't kill pid 1227: No such process 
 killall: can't kill pid 1228: No such process 
 killall: can't kill pid 1229: No such process 
 killall: can't kill pid 1230: No such process 
 killall: comm: no process killed 
 killall: can't kill pid 1204: No such process 
 killall: can't kill pid 1207: No such process 
 killall: rda: no process killed 
 killall: udhcpc: no process killed 
 Start Update, Please Wait ...... 
 Update: Kill Process Success! 
 Update: Start Update.......... 
 Erasing 128 Kibyte @ 2a00000 - 100% complete. 
 Update: UpdateSystem() Success!     




wonderful
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.