Extracting Firmware from Linux Router using the U-Boot Bootloader and UART

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 65

  • @kareemz32
    @kareemz32 4 месяца назад +6

    Great video! At 7:23 for anyone who's following along and is wondering why their memory dump continues way past the expected address. That's because the md utility expects a hex value for its second argument, so in the python interpreter after you've divided flashsize by 4 you should convert it to a hex value using hex().

    • @mattbrwn
      @mattbrwn  4 месяца назад +1

      Good point. I always forget about that 😂

  • @BrainTumorAndChill
    @BrainTumorAndChill 2 года назад +11

    Love the channel. You explain things in a very understandable way. You DEFINITELY have a future in teaching, if you so choose.
    A requested topic. Could you do a video talking about "reset" and how its implemented across SW, UART, and JTAG.
    For instance, most SW connections include a rst pin or pad. Was wondering if you could maybe demonstrate it in action.
    Keep up the great vids! I'm learning a lot!

  • @vintagekyoshodotcom
    @vintagekyoshodotcom 6 месяцев назад +1

    Just found your channel! Awesome stuff, just started working with u-boot for a new risc-v board. Your info was awesome and helpful!

  • @DrSbaitsojr
    @DrSbaitsojr 7 месяцев назад

    i have learned quite a bit watching your videos. thank you. i hope the algorithm picks you soon.

  • @giahuy2201_
    @giahuy2201_ 2 года назад +3

    great content, thank Matt

    • @mattbrwn
      @mattbrwn  2 года назад +1

      Glad you are enjoying it!

  • @victorchorques4893
    @victorchorques4893 Год назад +1

    Many thanks! Clear and understandable! Keep up with this kind of videos

  • @Anx181
    @Anx181 2 года назад +4

    Hey Matt, I LOVE your vids
    Please keep it up
    But I have to admin the mic is very very harsh and the overall volume of the vids is low (which makes it hard to watch on things like TV)
    I I would suggest to tune on your mic a bit or even buying a completely new one
    Anyways keep it up, you make great content ❤

    • @mattbrwn
      @mattbrwn  2 года назад +2

      yeah its definitely time for a better mic. I've been swinging between being too loud and too quiet...

  • @polyscopes
    @polyscopes 5 месяцев назад

    This is extremely helpful and clear info thanks a lot.

  • @rickevans7941
    @rickevans7941 2 года назад +4

    Amazon has decent Chinese XLR condenser microphones with XLR to 1/4" adapters included for $29. Please. If you need it I've got a 48v usb phantom power supply. If you don't want to upgrade hardware, at least use Audacity to tweak EQ and nuke some of those crazy mids? Other than that, subbed bro. Good vid. Top notch technical stuff without the typical RUclipsr BS and fluff. Hardcore bro.

  • @timmturner
    @timmturner Год назад +3

    Imagine dumping an entire Sega Dreamcast GD Rom like this, that's similar to how it was done initially.

  • @ARJ0711
    @ARJ0711 9 месяцев назад

    Interesting stuff 👌

  • @gersonsoares6628
    @gersonsoares6628 2 года назад +2

    bom video amigo, qual tecla voce uso para parar o u-boot a tecla voce fica pressionada quando liga o roteador ? e o comando MD ? obigado um abraço.

    • @mattbrwn
      @mattbrwn  2 года назад +1

      I press enter.

  • @Sam-yz7vm
    @Sam-yz7vm Год назад

    Nice video thanks Matt, I am watching all episodes like on netflix 😊

  • @HienVu-ye5os
    @HienVu-ye5os 4 месяца назад

    At 4:05 i see the line "hit any key to stop autoboot: 0" spamming the whole keyboard before it but still boot up mine is not even count from 1 to 0. how to solve this problem

  • @Tommy1-2
    @Tommy1-2 2 года назад +4

    Good content! Thank you.
    Btw if your headset is a Logitech pro X, try improving your mic with the Logitech g hub app. Anyways, I have it and I could never get a good result

    • @mattbrwn
      @mattbrwn  2 года назад

      yeah its the Logitech Pro X. I'm looking into a better mic now...

  • @navinsmash
    @navinsmash Год назад +1

    Please suggest video link how to write this bin files directly from uboot,
    I have a Linux system and I want to clone it's nand memory

  • @julianjoseph1243
    @julianjoseph1243 22 часа назад

    bdinfo doesnt provide the flash start and size info. Any ideas on how to proceed?

  • @triularity
    @triularity Год назад

    @11:01 - "xxd -g 4 -r -seek -0xbf80000" may have also been an option.

  • @TouChA0
    @TouChA0 Год назад

    Hello Matt I have a question is the hardware hacking needs to know programming languages?

  • @Crux161
    @Crux161 Год назад +1

    Trying to parse a dump with the script you wrote and I’m having issues. It only chews threw a few megs of data before it errors out.
    “python non-hexadecimal number found in fromhex()”
    Re-writing this code to rust I get the exact same output (at least as far as diff is concerned). Not sure exactly why though 😣
    The dumped file from picocom is incomplete (terminal froze after so long - maybe I asked for a bad address range?) but the input is roughly 32 MB and output is ~2.3 MB. I’m very new to embedded but also willing to learn new things. Hope to work thru this issue soon

    • @mattbrwn
      @mattbrwn  Год назад +1

      So if picocom outputs something weird it could affect the script's ability to decode. You can either redo the read or manually look at the text file in the place it errored out and fix it.

    • @Crux161
      @Crux161 Год назад

      @@mattbrwn I want to add a debug statement where it errors but I’m not getting the logic of the loops 100% I guess it’s something I need to fiddle with a bit more. Big brain time 😮‍💨
      Edit: I also don’t have bdinfo in the system so I’m. It sure where to start looking. The bootcmd variable has some addresses that look promising and a few statements say where things are like 32kb of data at some address etc. I tried calling md on it and it has something there but for now I’m still kinda poking around in the dark. Looking to read the flash thru a chip clip and maybe dump that way.

  • @MeisterJager90
    @MeisterJager90 Год назад

    Off topic but how'd you add icons to your i3bar?

  • @justinupshaw672
    @justinupshaw672 15 дней назад

    Can I submit a firmware and have you go over it to explain what you see?

  • @swordlion294
    @swordlion294 Год назад

    After extracting all of the flash rom like that. How can I pick only the firmware from it? I want to pick the firmware out, modify it and install it back using tftp. Any help is appreciated..

  • @SheranEvangelin
    @SheranEvangelin Год назад +1

    i dont have that bdinfo command what i can do

    • @riley10129
      @riley10129 3 месяца назад

      Perhaps try ‘smeminfo’

  • @787310
    @787310 8 месяцев назад

    awesome

  • @johanngambolputty5351
    @johanngambolputty5351 Год назад +1

    Is 0x0080...0/4 not just 0x0020...0? Or can only the first argument be in base 16?

  • @Amzouri360
    @Amzouri360 2 года назад +1

    Thank very for learnning extracting firmware
    What distro linux in Computer

  • @NoName_silent
    @NoName_silent Год назад

    Hi,
    How to dump firmware huawei e5577s-932?

  • @BlueeBubble
    @BlueeBubble 11 месяцев назад

    Hey! Any chance you can explain how to update firmware with UTART for Uboot based routers? Many thanks!!

  • @poemtechno7358
    @poemtechno7358 11 месяцев назад

    Hey need your help for locking a router firmware to Our systems

  • @RamonvanBruggen
    @RamonvanBruggen Месяц назад

    Hi Matt first of all amazing video’s! I’m learning a lott! I’m trying to revive an Unifi switch which does not want to boot, not even uboot! I’m trying to dump the firmware via another still functioning Unifi switch using the uboot md command, but I’m having trouble starting because my uboot does not have the “bdinfo” command, it is a mx25l25635f chip which is 32 Mb I guess? Can i just start md 0x00000 8388608?

  • @stevecarlisle3323
    @stevecarlisle3323 9 месяцев назад

    I have a Siarra Wireless cellular router that has firmware for windows control program. The cpu is for Arm At9. There is available a version of linux for this cpu. Could this info be obtained using Linux through the exixting usb port on the board. Would it be possible to erase the flash and install the linux os. I would like to use OpenWRT to control the cellular radio. Thanks for the great content. 🇨🇦

    • @309electronics5
      @309electronics5 6 месяцев назад

      You would have to hook up to the uart onboard and often it already runs linux, just not GNU/Linux. I think its possible but idk the bootloadef

  • @ArchiWorldRuS
    @ArchiWorldRuS Год назад

    Is it possible to upload a firmware that way?

  • @simyonsmith1561
    @simyonsmith1561 Год назад

    i have ISP's FTTX Modem with RTL8197DN now my isp closed that company. my modem (cts ACX-09) Aks HES3109 ISP Blocked Everything except 1 1gbps lan port . it has uboot . i am pretty noob on this platform . can you help me with this ?

  • @AnonCh4r1i
    @AnonCh4r1i 8 месяцев назад

    What's next in the process?, say your end goal was to install openwrt, what would you do next?

  • @TravisPickle
    @TravisPickle Год назад

    id like i custom busybox added to it

  • @pablovieira5686
    @pablovieira5686 9 месяцев назад

    Muito bom

  • @alitariq1391
    @alitariq1391 Год назад

    If we restore the same firmware dump on the same device. Will it work ? Has anyone tried it ?

  • @isamaliyadipak
    @isamaliyadipak Год назад

    Please check on ubnt switch us48-500w, many of them daying due to firmware boot loop. If you can help to give them new life. Very helpful. I personally need it and so many others as well. I can access u-boot menu. If you can guide me how to install fresh firmware on it.

  • @mokran937
    @mokran937 Год назад

    on a so old 2008 bootloader ... no secure boot...

    • @mattbrwn
      @mattbrwn  Год назад

      welcome to IoT!

    • @mokran937
      @mokran937 Год назад +1

      lol not all of them, i'm facing this right now
      U-Boot 2018.01-RELEASE-gb0bd058b3f
      Secure boot enabled.
      Qualcomm IPQ807x-AC01
      any idea ?

    • @mattbrwn
      @mattbrwn  Год назад

      @@mokran937 Is the bootloader also locked or password protected?
      Just because secure boot is enabled doesn't necessarily mean you couldn't dump the firmware.
      some more details about the device would be helpful.

    • @mokran937
      @mokran937 Год назад

      Tried to answer many times

    • @mattbrwn
      @mattbrwn  Год назад

      @@mokran937 lol I got the log but can only see your link in the notification. yeah youtube is freaking out.
      Noticed from the logs this is a Meraki device. Cisco probably takes security pretty seriously on those devices so it might be a hard path forward.
      If by a long shot they leave JTAG enabled you could try using that to get into the bootloader.
      Also chip off firmware extraction could be a good try. what flash chip is it running?

  • @pacificbeetechs
    @pacificbeetechs Месяц назад

    bro u are a fking amazing

  • @EinfaII
    @EinfaII 11 месяцев назад

    I understand what happened but i dont know why you would do this

    • @-r-495
      @-r-495 10 месяцев назад

      uboot is very versatile. One can break out the compressed partitions from the bin or one can use mm and an address and value (in some cases) to bypass encryption.

  • @navinsmash
    @navinsmash Год назад

    Video quality not good, please upload new video

  • @Nunya58294
    @Nunya58294 Год назад

    I have a BLU View 2 (Android device) I picked up for a dirt cheap $25 so I got two. I've been getting myself started with this stuff too. My goal is to unblock fastboot and allow for firmware flashing