2018年1月3日 星期三

how to upgrade fw


or


download putty ssh login  pi-star's  ip:22
user:pi-star
pass:raspberry







copy follow pre line and press enter to run the command in putty terminal
----------------------------------------------------------------------------------------
rpi-rw
sudo service mmdvmhost stop
sudo pkill MMDVMHost
cd /tmp
sudo rm MMDVM_HS-1.3.3.bin
sudo wget http://www.taozhengbo.com/MMDVM_HS-1.3.3.bin
sudo chmod 664 MMDVM_HS-1.3.3.bin
sleep 2
sudo pkill MMDVMHost
sudo pkill mmdvmhost.service
sudo stm32flash -v -w MMDVM_HS-1.3.3.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0
echo "Rebooting Pi"
sleep 30
sudo reboot
--------------------------------------------------------------------------------------
Video:

https://www.youtube.com/watch?v=gwKgOiBcSxQ&feature=youtu.be

11 則留言:

  1. pi-star@h-pi-star(rw):scripts$ ./install_fw_rpi.sh
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 608 0 608 0 0 298 0 --:--:-- 0:00:02 --:--:-- 299
    100 49752 100 49752 0 0 8690 0 0:00:05 0:00:05 --:--:-- 22916
    Raspberry Pi 2 or Pi Zero W detected
    stm32flash Arduino_STM32_0.9

    http://github.com/rogerclarkmelbourne/arduino_stm32

    Using Parser : Raw BINARY
    Interface serial_posix: 57600 8E1
    Failed to init device.

    please help.

    回覆刪除
  2. I got the same error! "Failed to init device".

    回覆刪除
  3. you must kill MMDVMHost
    ps -ef see MMDVMHost 's pid
    then kill pid of MMDVMHost
    then run ./install_fw_rpi.sh

    回覆刪除
    回覆
    1. can i use iron wire link two pin ?
      Need to cancel the link after the upgrade?

      刪除
  4. I connect the two pin and my micro sd card broken :(
    why?

    回覆刪除
  5. it is for raspberry pi gpio control RESET MCU and BOOT0 to upgrade mode,so don't nned to cancel link,the easy way only connect 2 last pin to raspberry not short.raspberry control one pin to reset mcu,another pin to boot0 high or low to boot loader mode.

    another upgrade method is to use st-link ,board have stlink 4 hold ,GND ,CLK,DIO,3V3 to connect stlink upgrade use STM32 ST-LINK Utility,open .bin file to upgrade.

    回覆刪除
  6. Where do I find install_fw_rpi.sh?

    回覆刪除
  7. Hello,

    I own a JumboSpot RTQ.
    How do I know which firmware revision is currently running on the board?

    Thank you.

    Regards,
    Simone IU3KHJ

    回覆刪除
    回覆
    1. you can find in pi-star panel RADIO INFO FW

      刪除
  8. What method is used to update mmdvm-pi repeater board?

    回覆刪除