Git Product home page Git Product logo

Comments (3)

EdwardLarson avatar EdwardLarson commented on August 21, 2024

Thanks for reporting this and providing an example. Have you found documentation on this null-rootfs_offset behavior? It would help clarify the following questions:

  1. I assume the desired behavior is that the OpenWrtTrxRootfs should be empty (or nonexistant) and the OpenWrtTrxKernel should include all the data starting from trx_kernel_offset to the end (or trx_binheader_offset if it's version 2)?
  2. Is this just on Version 1, or 2, or both?

I can see where in the Packer and Unpacker this change is needed, should be simple enough once the desired behavior is clear.

from ofrak.

RLS-Rylan avatar RLS-Rylan commented on August 21, 2024

Unfortunately the only documentation I've come across so far is:

  1. The OpenWRT header wiki page that the diagrams in the ofrak TRX unpacker appear to be from
  2. trx.c from OpenWRT's firmware utils constructs TRX headers, but doesn't mention anything about the rootfs being null

Although I'm not seeing any documentation, I think your assumptions are accurate - ie. OpenWrtTrxRootfs should be empty/nonexistant and OpenWrtTrxKernel should include all data from trx_kernel_offset to the end of the file or trx_binheader_offset (if present).

It looks like all the TRX files I was able to pull from the OpenWRT website are TRX v1, so I have not yet tested this on TRX v2 firmware.

from ofrak.

whyitfor avatar whyitfor commented on August 21, 2024

#216 makes core changes to OpenWRT TRX files that should address this issue.

from ofrak.

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.