Need some advice for the Meraki MR33

Oh sorry. Im typing that on a linux machine. (Ubuntu_64). I know ubuntu recognized the devices as being connected and all using this .

I just run the ubootwrite.py --write=mr33-uboot.bin on the linux terminal and get command not found.

@jalh, I cannot assist you until you do the following:

This DOES NOT allow me to assist you:

  • I need to SEE the output, as I'm not sure that you're entering commands in the appropriate location.
  • I also think you may have failed to install Python, prior to running a Python-based command.

You need install python on Ubuntu pc.
sudo apt update && sudo apt install python

1 Like

I did so and when it the ubootwrite.py by using the code

./ubootwrite.py --write=mr33-uboot.bin

i get:

Traceback (most recent call last):
File "./ubootwrite.py", line 22, in
import serial
ImportError: No module named serial

when i try to run

/ubootwrite.py --write=mr33-uboot.bin

as described on the DOC, I get this in return:

ubootwrite.py: command not found

pip install pyserial

So I installed, rebooted the pc, and run the:

./ubootwrite.py --write=mr33-uboot.bin

got the same line:

Traceback (most recent call last):
File "./ubootwrite.py", line 22, in
import serial
ImportError: No module named serial

Just to clarify, I'm using this device

Can you provide a copy of the output from installing pyserial and any messages?

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f24b61d21d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pyserial/

Retried and got this:

Collecting pyserial
Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl
Installing collected packages: pyserial
Successfully installed pyserial-3.4

1 Like

:+1:

What happens now when you run ./ubootwrite.py --write=mr33-uboot.bin now???

(Also, thank you for pasting the FULL output of commands, and not just a description.)

I get this:

Traceback (most recent call last):
File "./ubootwrite.py", line 221, in
main()
File "./ubootwrite.py", line 204, in main
ser = serial.Serial(options.serial, 115200, timeout=0.1)
File "/home/jose/.local/lib/python2.7/site-packages/serial/serialutil.py", line 240, in init
self.open()
File "/home/jose/.local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

  • Do you have your USB serial device at /dev/ttyUSB0???
  • Please confirm the the path of your serial port

Default serial port is /dev/ttyUSB0, maybe your port is difference. List port by command
ls /dev/ttyUS*
Try to define the serial port in python command:
python ubootwrite.py --serial=/dev/ttyUSB0 --write=mr33-uboot.bin

1 Like

Good Morning, I do not have a USB serials device at "/dev/ttyUSB0"
I'm not sure how to do so, but I used this command "lsusb" and got this"

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

EDIT: Irealized the bridge wasn't show up so I recheck the cables and I didnt twist the RT/TX correctly. I did so, and the device shows up now:

Bus 003 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I ran your bash and got this back:

 Traceback (most recent call last):
  File "ubootwrite.py", line 221, in <module>
    main()
  File "ubootwrite.py", line 204, in main
    ser = serial.Serial(options.serial, 115200, timeout=0.1)
  File "/home/jose/.local/lib/python2.7/site-packages/serial/serialutil.py", line 240, in __init__
    self.open()
  File "/home/jose/.local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

EDIT: After making sure the cables were wired correctly, the deviced show up and so did the directory. I went ahead and use the following command:

python ubootwrite.py --serial=/dev/ttyUSB0 --write=mr33-uboot.bin

and I get:

Traceback (most recent call last):
  File "ubootwrite.py", line 221, in <module>
    main()
  File "ubootwrite.py", line 204, in main
    ser = serial.Serial(options.serial, 115200, timeout=0.1)
  File "/home/jose/.local/lib/python2.7/site-packages/serial/serialutil.py", line 240, in __init__
    self.open()
  File "/home/jose/.local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'

So I SUDO the same command and I get an:

Uploading image

1 Like

Did you have success?

No, it hanged in there.
not sure what else to do ....

First, make sure your serial converter working correctly. Example using minicom on ubuntu pc to confirm you can send/received from/to router without issues.

Does anyone know if the latest firmware from Meraki allow Openwrt installation?

The Meraki firmware is unrelated to installation of OpenWrt.