riptidewave93 / LEDE-MR33

Bringup for the Cisco Meraki MR33 Access Point on LEDE
70 stars 7 forks source link

Flashing and booting #1

Closed kylegordon closed 6 years ago

kylegordon commented 6 years ago

Hi,

Are you able to divulge how to flash and boot the MR33?

Cheers Kyle

riptidewave93 commented 6 years ago

Hello Kyle,

The reason I have not shared this information is:

  1. The port is not 100% complete yet. Specifically, there are some ethernet issues that don't make the image great for daily use.
  2. The current booting process is a bit complex, and I am working on polishing it up
  3. Once I make this information public, you bet Meraki is going to work to patch it as soon as possible.

Once I feel the port has stable Ethernet, I will work on publishing the information.

kylegordon commented 6 years ago

That's a great point. Not to worry, carry on as normal :-)

:+1:

hex2a commented 6 years ago

Once I make this information public, you bet Meraki is going to work to patch it as soon as possible.

maybe announce the release a few days before?

riptidewave93 commented 6 years ago

@hex2a That's the plan, it will be similar to my previous MR18 announcements where I normally give a decent heads up.

riptidewave93 commented 6 years ago

For those interested, I posted more information about the NIC pains at https://forum.lede-project.org/t/ipq806x-target-single-nic-devices/7292 to try and get better insight on how to proceed with this device.

Passaita commented 6 years ago

I got an MR33 unit and tried to follow instructions from Google Drive but lack of pictures for the person who has no clue what what (Ethernet magnetics transformer and SoC) are turn into mission impossible :) Do you want me to uload you pictures to complete that document? And maybe you could arrow where the spot is? :)

maciejtarmas commented 6 years ago

With all respect, if someone can't find the serial header on the mobo sitting right in front of him, I wouldn't expect such person to successfuly install Python with serial, set up a local webserver, use TFTP, flash the firmware, SSH into the MR33 and set it up manually as an AP all from the CLI.

Passaita commented 6 years ago

I completely understand concerns coming from my request. At the same time you are under an assumption that a person capable to recognise electronic components has great programming skills. As an analogy - I know a couple amazing car mechanics that are not the best drivers to participate in a race. This is the reason people with different skillsets communicate, collaborate and learn from each other. Making an entire community stronger.

kz commented 6 years ago

@Passaita's request isn't unreasonable; like many other people I've only purely worked on the software side. I'm happy to post photos but I won't be able to do this until July/August.

maciejtarmas commented 6 years ago

OK, fair enough, I can see your point and yes, the pics could be included in the docs. But pictures of the board are not that hard to find online. In fact they are right there on the MR33 page in the OpenWrt wiki:

https://wiki.openwrt.org/toh/meraki/mr33

There is only one single factory soldered pin header on the board and there is no way you can miss it. Flashing instructions even mention the arrow pointing at the VCC pin. Please folks, re-read the instructions and take a second look at your MR33 board.

maciejtarmas commented 6 years ago

Here, hope this helps you, folks. mr33-1-pinout

Passaita commented 6 years ago

It definitely does, Maciej. Thank you. Honestly, I wasn't expecting it to be presoldered and was looking at J7 set of pins. Thanks a lot!

mgancarzdsi commented 6 years ago

I'm looking to try and do this too, but does anyone have an example of a 'really good TTL-232R-3V3 Serial Adapter with configurable cable'?

I'm guessing something like this with the really tiny clamps or soldered? https://ca.mouser.com/ProductDetail/FTDI/TTL-232R-3V3-WE?qs=sGAEpiMZZMsgIz308WEU0zlB%252b2QqwVEZXCsh8lzMhv8%3d

I'm also guessing this 6-pin version wouldn't be compatible with that pin header: https://ca.mouser.com/ProductDetail/FTDI/TTL-232R-3V3?qs=sGAEpiMZZMvYU0Oh5y3R5sMdbLgwj41z

Ja5-n commented 6 years ago

This product is on eBay and should be suitable.

CP2102 USB 2.0 to TTL UART Module 5Pin Serial Convertor STC Replace FT232 Module

riptidewave93 commented 6 years ago

@ionitagelu This repo is only for the MR33, please refrain from asking about other devices here. Instead, the OpenWRT IRC is probably a better choice. I also have an MR34 in my possession but I have not started any work on an OpenWRT port due to the fact this board uses broadcomm wireless radios, and I have been occupied with other projects. You are more than welcome to do your own development for this device.

ionitagelu commented 6 years ago

OK, thanks

jazph3r21 commented 6 years ago

hi. im new here. i have a cisco meraki mr33 which our isp provided. but i found out that i cannot change any configuration and the only way is to call their support and can be done by their administrator. so im planning to flash it with LEDE to have my full access with the device. i downloaded all the files https://drive.google.com/drive/folders/1jJa8LzYnY830v3nBZdOgAk0YQK6OdbSS and follow the flashing instruction but no luck to follow the number 4. ubootwrite because im not in programming and no experience to that. all i can do is i can connect to device using serial console with terra term. can anyone help me to flash this device? im using windows 7 device installed python3.7 but no luck to follow ubootwrite. please help me how to flash this device.

ghchesser commented 6 years ago

Hi. I'm flashing MR33 using a laptop with Windows 7. The command in CMD supposed to look like: python ubootwrite.py --serial=COM[#] --write=[path to the file]mr33-uboot.bin Where [#] is the numeric value for the COM-port where MR33 is connected to. [path to the file] is the path to the folder with the .bin file. Python gives messages about inconsistent indentation in the ubootwrite.py file. The easiest way to fix it is to replace all tab-symbols to 8 space-symbols. I execute the command and get the message "Uploading image". After that I connect the power cable to MR33 and see the process going. But at the end I do not get the line "Listening for TFTP transfer on 192.168.1.1". The last lines I get are:

...
CO 1
CO 0
Hello from MR33 U-BOOT
Creating 1 MTD partitions on "nand0":
0x000000c00000-0x000007c00000 : "mtd=0"

What is the possible reason for that? Should I connect the Ethernet cable at some point?

maciejtarmas commented 6 years ago

I don't remember exactly, but I think it's waiting for a TFTP connection, even though it doesn't say so. Give it a shot.

ghchesser commented 6 years ago

@maciejtarmas I've tried. No luck. I use windows TFTP-client.

jazph3r21 commented 6 years ago

i have the same problem. i cannot flashed my MR33. its giving me error on ubootwrite. tried to use python 2.7 and 3.7 and no luck to flash. is there any other way or easiest way to flash the MR33?

C:\MR33>python ubootwrite.py --serial=COM4 --write=mr33-uboot.bin Uploading image Traceback (most recent call last): File "ubootwrite.py", line 221, in main() File "ubootwrite.py", line 216, in main upload(ser, options.write, int(options.size, 0), int(opt ns.verbose, debug, options.shell) File "ubootwrite.py", line 170, in upload ret = memwrite(ser, path, size, start_addr, verbose, deb File "ubootwrite.py", line 93, in memwrite prompt = getprompt(ser, start_addr, verbose, shell) File "ubootwrite.py", line 37, in getprompt combined = oldbuf+buf TypeError: can only concatenate str (not "bytes") to str

ghchesser commented 6 years ago

@jazph3r21 try Python 2.7.

jazph3r21 commented 6 years ago

@jazph3r21 try Python 2.7. @ghchesser i tried python 2.7 but still error..

C:\MR33>python ubootwrite.py --serial=COM4 --write=mr33-uboot.bin Uploading image Traceback (most recent call last): File "ubootwrite.py", line 221, in main() File "ubootwrite.py", line 216, in main upload(ser, options.write, int(options.size, 0), int(options.addr, 0), optio ns.verbose, debug, options.shell) File "ubootwrite.py", line 170, in upload ret = memwrite(ser, path, size, start_addr, verbose, debug, shell) File "ubootwrite.py", line 93, in memwrite prompt = getprompt(ser, start_addr, verbose, shell) File "ubootwrite.py", line 36, in getprompt buf = ser.read(256); File "c:\python27\lib\site-packages\serial\serialwin32.py", line 290, in read True)

netguru1974 commented 5 years ago

Hey guys, I successful flashed my MR33, got this solid green light, able to do a console connection also. Can anyone help with:

  1. Why cannot SSH to the MR33?
  2. How to get LuCI up and running? Followed all the tips and still no LuCI. Thanks, for the great job though.
imikeland commented 5 years ago

Hey guys, I successful flashed my MR33, got this solid green light, able to do a console connection also. Can anyone help with:

  1. Why cannot SSH to the MR33?
  2. How to get LuCI up and running? Followed all the tips and still no LuCI. Thanks, for the great job though.

how did you do it?

howff commented 5 years ago

Here's my notes regarding LuCI

https://github.com/openwrt/luci/wiki Quick update... I got LUCI up and running on the MR33. Find out architecture: opkg print-architecture arch all 1 arch noarch 1 arch arm_cortex-a7_neon-vfpv4 10 Edit /etc/opkg.conf to look something like this... src/gz luci https://downloads.lede-project.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci dest root / dest ram /tmp lists_dir ext /var/opkg-lists option overlay_root /overlay option check_signature 1 ...and you should be good to go. Type opkg update opkg install luci opkg install luci-ssl opkg install luci-app-* manually enable webserver: /etc/init.d/uhttpd enable; /etc/init.d/uhttpd start

On Wed, 24 Oct 2018 at 22:03, imikeland notifications@github.com wrote:

Hey guys, I successful flashed my MR33, got this solid green light, able to do a console connection also. Can anyone help with:

  1. Why cannot SSH to the MR33?
  2. How to get LuCI up and running? Followed all the tips and still no LuCI. Thanks, for the great job though.

how did you do it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/riptidewave93/LEDE-MR33/issues/1#issuecomment-432827177, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7B_NQphZ1O6CHjbNd3dYSX4yNGUrwhks5uoNWdgaJpZM4Pgd9O .

netguru1974 commented 5 years ago

Here's my notes regarding LuCI https://github.com/openwrt/luci/wiki Quick update... I got LUCI up and running on the MR33. Find out architecture: opkg print-architecture arch all 1 arch noarch 1 arch arm_cortex-a7_neon-vfpv4 10 Edit /etc/opkg.conf to look something like this... src/gz luci https://downloads.lede-project.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci dest root / dest ram /tmp lists_dir ext /var/opkg-lists option overlay_root /overlay option check_signature 1 ...and you should be good to go. Type opkg update opkg install luci opkg install luci-ssl opkg install luci-app-* manually enable webserver: /etc/init.d/uhttpd enable; /etc/init.d/uhttpd start On Wed, 24 Oct 2018 at 22:03, imikeland @.***> wrote: Hey guys, I successful flashed my MR33, got this solid green light, able to do a console connection also. Can anyone help with: 1. Why cannot SSH to the MR33? 2. How to get LuCI up and running? Followed all the tips and still no LuCI. Thanks, for the great job though. how did you do it? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7B_NQphZ1O6CHjbNd3dYSX4yNGUrwhks5uoNWdgaJpZM4Pgd9O .

Thanks howff, I figured it out. Its up and running.

jazph3r21 commented 5 years ago

thank you so much @riptidewave93. i finally flashed my 2 MR33. mr33

Nailzy commented 5 years ago

@riptidewave93 @jazph3r21 - can you help me? I've got an MR33 here and for the life of me I cannot get it into uboot.

I've got python going and the UART console hooked up, and I get this output every time when I power on my MR33.

Waiting for a prompt... Prompt is ' 7.855007] reset ok in probe! [ 7.857079] EDMA using MAC@ - using 00:00:00:00:00:00 (I've obscured the mac)

' Found an error, so aborting
haymaan commented 5 years ago

@jazph3r21 ...can you please tell how to uboot the mr33???

blakscorp commented 5 years ago

i have the same problem. i cannot flashed my MR33. its giving me error on ubootwrite. tried to use python 2.7 and 3.7 and no luck to flash. is there any other way or easiest way to flash the MR33?

C:\MR33>python ubootwrite.py --serial=COM4 --write=mr33-uboot.bin Uploading image Traceback (most recent call last): File "ubootwrite.py", line 221, in main() File "ubootwrite.py", line 216, in main upload(ser, options.write, int(options.size, 0), int(opt ns.verbose, debug, options.shell) File "ubootwrite.py", line 170, in upload ret = memwrite(ser, path, size, start_addr, verbose, deb File "ubootwrite.py", line 93, in memwrite prompt = getprompt(ser, start_addr, verbose, shell) File "ubootwrite.py", line 37, in getprompt combined = oldbuf+buf TypeError: can only concatenate str (not "bytes") to str

Hello, did you ever get this resolved, I am still getting this error when runnin the uboot command

urbaniak commented 4 years ago

ubootwrite.py doesn't work for me, just getting Prompt not received. Instead received <Meraki>

The uboot version looks quite old:

U-Boot 2012.07-g97ab7f1 [local,local] (Oct 06 2016 - 13:07:25)

DRAM:  242 MiB
machid : 0x8010001
Product: meraki_Stinkbug
NAND:  ONFI device found
128 MiB
Using default environment

I'm also unable to interrupt the boot proces via serial terminal, usually uboot stops booting when pressing , on MR33 it's not working.

Any ideas how to flash new uboot?

haymaan commented 4 years ago

hello,i'm only getting Uploading iamge...

and the MR33 is going from orange to solid green ..... is there any thing i can do to test it ...?

antonical commented 4 years ago

hello,i'm only getting Uploading iamge...

and the MR33 is going from orange to solid green ..... is there any thing i can do to test it ...?

Having just gone through this process successfully I had many errors in the first instance. When watching the boot process through UART connection I had all 4 pins connected 3.3V Rx TX GND this worked great for watching. But, I could not get ubootwrite to run. Once I disconnected the 3.3V pin it ran fine with RX TX GND connections only.

Looking at the source. It looks for a string very very early in the boot process. You need to connect the UART with power off the device ensure nothing else is using the serial port. Then connect power if it is going to work it will work almost straight away. As the string it looks for is at the top of the boot process.

If it has got to the point of the GRB LED sequence you need to power off reset your serial connection and try again. I am not a windows person so if you are using windows I cannot help.

I flashed mine using Ubuntu Laptop running gtkterm and USB Adaptor with .1 patch cables. No soldering required.

Cheers Tony

Also before flashing I managed to test the access string directly from the gtkterm console pressing xyzzy very quickly after applying power. I could interrupt the process manually and get a STINKBUG prompt. So I knew my USB serial adaptor was working.

This is what the ubootwrite program does to get access to the command shell.

    while True:
        oldbuf = buf
        buf = ser.read(256);
        combined = oldbuf+buf
        **if "machid: 8010001" in combined:**
            **ser.write("xyzzy");**
                    while ser.read(256):
                           pass
            break`