GithubHelp home page GithubHelp logo

Comments (14)

merge avatar merge commented on July 24, 2024

I wrote a first draft of such a script. It's completely untested! Please, if you can, take a look at it and test it. I'll do so too, sometime "soon". thanks a lot!

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

from skulls.

merge avatar merge commented on July 24, 2024

thanks for the feedback. how do you currently do it?

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

flash.sh

sudo flashrom -p internal --layout x230-layout.txt --image bios --write ./coreboot/build/coreboot.rom

x230-layout.txt

0x00000000:0x007fffff ifdmegbe
0x00800000:0x00bfffff bios

Edit:

Keep in mind coreboot.rom is still 12MB...

Edit 2:

I just figured out this is from your README 🗡️

from skulls.

merge avatar merge commented on July 24, 2024

thanks. that's what I meant :) The new "prepare" script takes the (released) 4MB image and creates a 12MB one, along with the layout-file and instructions on how to flash it internally.

Could you have a look at it? That's be of help.

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

I just woke up so, I am mostly confused on what is happening...

I will take a look at it now...

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

Looks great to me.

I am thinking that actually it might not be that bad idea to give option to read 8MB image instead of generating it with dd...

So it can later be extended with more features (for example ME removing and using additional space)

from skulls.

merge avatar merge commented on July 24, 2024

well. yes. we could do a lot :)

I actually don't want to run flashrom from this "prepare" script. This should be runnable by users, not only by root.

Also I want to be careful here, because it's required to have the 8MB chip flashed externally at least once (for unlocking), before being able to flash internally. Can we detect that when trying to flashrom-read internally? Or does reading already fail if not unlocked?

But you're right...

  • we could add an option to provide a full or 8mb (already read) file, that we update instead of prepending zeroes (only do that by default)
  • we could create another script that really runs flashrom, and uses the above script. I clearly have to test flashing internally myself. We'd need something that works for everybody. But at least we could come up with something people can test...

In a first step, I'd like to have the current script tested and ready. I updated the README a bit. Future releases won't include a 12MB image.

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

from skulls.

merge avatar merge commented on July 24, 2024

I guess we'll always require to write an unlocked image once, using a hardware flasher. But could we use https://github.com/google/pawn to initially get the image so that we could only write the unlocked one once?

That'd save quite some time. Anyone cares to compare original bios images read via hardware with the results from this tool?

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

Yes, we can not flash internally until we flash unlocked image.

I do not have locked one so I can not compare them...

from skulls.

merge avatar merge commented on July 24, 2024

reading is not possible either? I created a new issue #19 for this question.

I tested internal flashing using the script now. seems to be fine... I'll leave this issue open for a while in case we get another test.

from skulls.

nemanjan00 avatar nemanjan00 commented on July 24, 2024

from skulls.

merge avatar merge commented on July 24, 2024

with the 12mb-generating "prepare"-script tested, and a release script added now, this issue is actually resolved. #19 is more interesting anyways :)

from skulls.

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.