Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If for some reasons after updating the Web-GUI is broken, but the device is still accessible via ssh, the device can be flashed via the command line.

...

You should reboot the device right before executing following steps, to avoid having to much log files taking file space.

Do not reboot or power off the device, while running the ddflash.sh tool

Preparations:

If you are under Windows you need an SSH client, e.g. putty:

...

Check if you can login to your device.

...

Creating the install folder and getting the flash-image onto the device:

If you can log in to the device, create the following folder and change into it:

Code Block
mkdir -p /tmp/mchroot/tmp
cd /tmp/mchroot/tmp

...

Download one of the flash images files from:

...

Getting the image files:

The image files are available from this location:

http://www.beronet.com/wp-content/uploads/downloads/berofix/ddflash_images/

In this example the flashimages-23.01.01-rc46.tar.gz is used, but you can use any image available in this folder.

Standard way, if internet is accessible and wget is working:

First check, if you can fetch the file via wget while in /tmp/mchroot/tmp folder:

Code Block
wget http://www.beronet.com/wp-content/uploads/downloads/berofix/ddflash_images/flashimages-23.01.01-rc46.tar.gz

...

Alternative way, if wget doesn’t work:

Download the the flash image file from the web to your PC:

With putty comes a command line tool called pscpscp. You need to open a cmd shell to use it. You alternatively can use a GUI tool like WinSCP.

Change into the the folder on you PC where the flashimages-23.01.01-rc46.tar.gz is located.

Now you can copy over the file to the beroNet gateway to the folder you created before.

...

Code Block
scp flashimages-23.01.01-rc46.tar.gz root@172.20.13.204:/tmp/mchroot/tmp

...

Check the image file transfer:

The flash file should have been copied over to or fetched into the newly created folder.

In putty perform On the beronet device change into the /tmp/mchroot/tmp folder and check if the file copy worked and then extract the actual flash tool from the archive.

Code Block
cd /tmp/mchroot/tmp
ls -l
tar -xzf flashimages-23.01.01-rc46.tar.gz ddflash.sh
ls -l

...

Flashing the partitions:

Now you have to set a database value and after that you can start the flash process:

Code Block
beroconf set root boot_fwupdate 1

tut06.pngImage Added

Now you can start the actual flash process:

Code Block
./ddflash.sh flashimages-23.01.01-rc46.tar.gz

tut06.pngImage Removedtut07.pngImage Removed

This starts the flash process, if everything goes well, it takes should take a couple of minutes. If it is finished, a message should appear, telling that the device is rebooting. Then it should take around two additional minutes until the device should be accessible again. Do not power off the device while this tool is running.

...

If the message Finished Successfully is shown, the flash process has finished. Wait for around two minutes, to see if you can access the device again.