I Ported Coreboot to the ThinkPad X270

(dork.dev)

105 points | by todsacerdoti 4 hours ago

6 comments

  • amiga-workbench 2 hours ago
    I wonder if this can help with the extremely irritating bug (intentional?) on the X270 where if you give it a third party 9-cell battery, it will raise CPU_PROCHOT all the damn time, and my processor would drop to below 1Ghz clock speeds.

    Back when I used to have an X270 I had a shell script that ran on boot which poked a register to disable thermal throttling handling. Not at all ideal, but it made the machine usable in the absence of official Lenovo batteries which they stopped manufacturing pretty damn quickly.

    • muniter 42 minutes ago
      Nice to finally know what was happening to my x270 after so many years. Well good thing it doesn't happen when connected to power nowadays is my home server
    • 65a 1 hour ago
      Possibly. Usually this is handled by the embedded controller, and not sure if that was reversed or not. You may be able to tristate the GPIO line that tells the CPU that a pin means PROCHOT, which would allow you to ignore the ECs attempts to do this.
    • nxobject 1 hour ago
      Do you think it could also be due to an ACPI table?
      • amiga-workbench 1 hour ago
        Its possible. I know from the BIOS revision changelogs that the T470 did get a patch to fix this, but the X270 never did.
  • BobbyTables2 1 hour ago
    How did OP debug this without a serial port?

    I’ve messed around with porting coreboot on two desktop platforms but always had the benefit of a HW serial port…

    • katdork 22 minutes ago
      because the x280 and x270 are similar enough I didn't need to try very hard to get it to post or boot a live USB to further investigate (effectively acting as a decent template for me to work off of)

      The console viewing itself was provided by `cbmem -1`, which I could run via a NixOS live USB with nixpkgs#coreboot-utils

    • 65a 1 hour ago
      You can sometimes find the serial lines if you are careful. Otherwise you can use the flashrom to store the output, and read it back out after each failure. It is much easier to just poke around and find the serial if you can, either from schematics (it seems the author has these) or by hand with a lot of patience or board scrying.
  • reductum 1 hour ago
    Atom feed is malformed :(
    • katdork 22 minutes ago
      sorry, I'll look into it
  • mattv8 1 hour ago
    What I would give for a wife that would enjoy tinkering with me.
    • notpushkin 1 hour ago
      Seek and thou shalt find. Just don’t be too pushy on the romantic side of things.
      • mattv8 1 hour ago
        Too late for me then I suppose, I'm married with two kids.
  • brcmthrowaway 2 hours ago
    Was AI Used?
    • katdork 23 minutes ago
      Hi! As the author, no! I take a hard line stance against AI use myself. It's just not for me.
    • wetpaws 2 hours ago
      Does it matter?
      • fragmede 58 minutes ago
        I will only accept ethically sourced, free-trade blog posts, written by somebody with cherry MX browns on their hardware keyboard, written while riding on donkey in the jungles of Peru, being a digital nomad and not paying local income taxes, using NFT money to pay the bills, thank you very much!
        • alt187 23 minutes ago
          I try to refrain from intervening into these discussions, because I don't really like to support comments that only ask "Is AI used??" without any careful reading of the text. On the other hand, you.

          Go back to whatever useless bog you crawled out of to spray your hollow, smug irony straight at my unsuspecting face. Yes, the AI writing style is lifeless. Yes, so much that people hate it with a primal passion, because it feels draining to read a couple of sentences stretched thin across an 8-minute read of slopby an AI that has no voice of its own. AI is bland, boring, unfunny, uncontroversial, and asinine. Maybe it makes you feel immensely sad that your new toy cannot be used to replace the expression of the human experience, or, more likely, it makes you want to stomp your feet all over that we can't just automate that yet, but this won't happen. Not tomorrow and not in a hundred years.

          Maybe you should read an AI post, you'll get why it's disliked.

  • periodjet 1 hour ago
    This is absurdly trans-coded.

    Ah, todsacerdoti. ;)

    • katdork 21 minutes ago
      I am a trans woman, yes :o