Giter Club home page Giter Club logo

Comments (17)

MattWestb avatar MattWestb commented on June 18, 2024

All things made before have getting root access is from the bootloader.

Then you is having the root password you can doing one normal boot and login as root and the best way is with serial console and not SSH if having problems.

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

All things made before have getting root access is from the bootloader.

Then you is having the root password you can doing one normal boot and login as root and the best way is with serial console and not SSH if having problems.

I'm not able to login even with console... i try restart the process to get the password, but the password the script returns is the same as the first time... but even with that i cannot login

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

i try restart the process to get the password, but the password the script returns is the same as the first time... but even with that i cannot login

Hi. Did you connect the gateway to the internet before you did the process? People have reported that the root password was changed after connecting to the internet. If that is the case, you will need to edit the squashfs image and upload a modified version.

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

i try restart the process to get the password, but the password the script returns is the same as the first time... but even with that i cannot login

Hi. Did you connect the gateway to the internet before you did the process? People have reported that the root password was changed after connecting to the internet. If that is the case, you will need to edit the squashfs image and upload a modified version.

I only attach it to the network cable... that network cable have internet... i don't install any app or do any kind of configuration... do the software call to internet alone?

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

I only attach it to the network cable... that network cable have internet... i don't install any app or do any kind of configuration... do the software call to internet alone?

Yes, it contacts the tuya servers on startup - that's how it becomes available through the cloud. And that process seems to change the root password. I had this problem myself. There's details of how you can use rootfs_tool.py in the forum thread here

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

@challs so i should dump the rootfs to get the password?

I can't follow the topics in the link you posted... can't find toolfs_tool.py reference

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

@challs so i should dump the rootfs to get the password?

Yes.

I can't follow the topics in the link you posted... can't find toolfs_tool.py reference

That's rootfs_tool.py, (begins with 'r' not 't')

Look for chaisaeng's post, which begins:

Hi challs,
Iā€™m trying to get root access to my device but not quite success yet.
I follow the instruction on [Hacking the Silvercrest (Lidl) Smart Home Gateway - Paul Banks DOT Org ](https://paulbanks.org/projects/lidl-zigbee/) as followed

* Execute: `python dump_flash.py --serial-port /dev/ttyUSB0 --output-file rootfs.bin --start-addr 0x200000 --end-addr 0x400000` ==> This step took me around 40 Minutes

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

@challs ok find it.

This step are all in the a host computer, none of them are in the device correct?

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

Yes that's correct. dump_flash.py runs the needed commands through the serial line from the host computer.

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

@challs that i already do, but the next one are the the host also ?

The second step... sudo unsquashfs ...

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

Those that say 'in bootloader screen' (ipconfig, autoburn, FLW) are to be executed on the device.
All the others such as sudo unsquashfs need to be executed on the host computer.

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

@challs ok i think i can follow everything... only missing the right way to upload the file ... can you point me the right direction please?

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

The upload part is

Upload the file newroot.bin in binary format using tftp

I used this command:

$ tftp 172.28.1.6 -m binary -c put newroot.squashfs

There's a slightly more verbose description in my earlier comment in the thread.

Also, it is important to make sure you use binary mode tftp.

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

@challs well now i'm loose... if i upload the newroot.squashfs where will we use the newroot.bin ?

The tftp command is issued in the bootloader prompt correct?

Also, in the link you posted you have two ips, what is what? What is the ip of tftp server?

from lidl-gateway-freedom.

challs avatar challs commented on June 18, 2024

I did my conversion earlier than chaisaeng, who had an easier workflow when he documented the list. So you should adjust the tftp command to use the name of the file which you have, which is probably newroot.bin.

The tftp command is executed on the host. I'm using linux so it might be slightly different on a Windows machine.

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

@challs i'm also using linux, my tftp server is on 192.168.1.90... what should i do? I'm a little confused about all the differents ips in the posts

from lidl-gateway-freedom.

codedmind avatar codedmind commented on June 18, 2024

Ok its is done

On bootload ipconfig 192.168.1.92
On host that is with the ip 192.168.190, but the tftp command i must use also 192.168.1.92
tftp 192.168.1.90 -m binary -c put newroot.iso

from lidl-gateway-freedom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.