merge / skulls

pre-built coreboot images and documentation on how to flash them for Thinkpad Laptops
GNU General Public License v3.0
695 stars 66 forks source link

[Discussion] x220 ThinkPad | Laptop Support Request #99

Open WorryTheBirds12 opened 5 years ago

WorryTheBirds12 commented 5 years ago

Discussion: Running Skulls on the ThinkPad x220 Why? The x220 is the only decently built modern mechanical keyboard ThinkPad that can run a modern OS with a i-series CPU. To many users this is a big benefit.


Want to support this issue? Post a bounty on it! We accept bounties via BountySource.

Bountysource

emacsomancer commented 5 years ago

(Cf. https://www.thinkwiki.org/wiki/Install_Classic_Keyboard_on_xx30_Series_ThinkPads )

abhas commented 5 years ago

I have the x220 keyboard running on my x230 with coreboot/skulls on it. One of the x230 units had coreboot on it already and so the x220 keyboard behaves like the x230 keyboard would (with some mis-mapped and dead keys). On another one I patched the ec firmware before flashing skulls on it and hence the keyboard behaves exactly like it is supposed to.

So while getting skulls to work on the x220 would be useful for a variety of reasons, if you just want the x220 keyboard then you could do that easily with the x230 to. The link posted by @emacsomancer above has all the details.

adamthiede commented 5 years ago

I have an x220 running coreboot (not skulls specifically, but just compiled it myself) that I would be willing to test with. I just flashed an updated build today, so it's still working with recent builds. I think the biggest issue is that there are 2 types of flash chips from what I understand (Macronix MX25L6405, or Winbond W25Q64.V, which is what mine has) but Coreboot detects both. Anyone else have a testing machine?

merge commented 5 years ago

for the x220, the only challange is writing good "external_" scripts for bootstapping, that use the machine's ME, gbed and so on. We want the user to only have to connect with an external clip once. But if you have an x220 and enough time, it's no problem

adamthiede commented 5 years ago

Slowly getting around to looking at this. I've noticed your configs (nonfree-defconfig- and free-defconfig- in the x230 folder) are really small but mine when building coreboot for my x220 ended up much larger. My config is here: https://gist.github.com/elagost/b323e9ca089719426b7761f077bebd43#gistcomment-3042606

Any reason this would be the case? Am I over-complicating things?

Thrilleratplay commented 5 years ago

@elagost Those are defconfigs, they are a stripped down version of the generated config file. If you run make savedefconfig you will get the stripped down version too. It is to make migrating to newer versions easier.

adamthiede commented 5 years ago

Oh, much easier! This is mine for my x220's current setup:

CONFIG_USE_OPTION_TABLE=y
CONFIG_USE_BLOBS=y
CONFIG_VENDOR_LENOVO=y
CONFIG_HAVE_IFD_BIN=y
CONFIG_BOARD_LENOVO_X220=y
CONFIG_DRIVERS_PS2_KEYBOARD=y
CONFIG_CONSOLE_POST=y
CONFIG_NATIVE_RAMINIT_IGNORE_MAX_MEM_FUSES=y
CONFIG_SEABIOS_PS2_TIMEOUT=3000
CONFIG_H8_SUPPORT_BT_ON_WIFI=y
CONFIG_HAVE_ME_BIN=y
CONFIG_USE_ME_CLEANER=y
CONFIG_HAVE_GBE_BIN=y
CONFIG_SEABIOS_THREAD_OPTIONROMS=y
CONFIG_COREINFO_SECONDARY_PAYLOAD=y
CONFIG_NVRAMCUI_SECONDARY_PAYLOAD=y
Thrilleratplay commented 5 years ago

It looks very similar to the one I use. Remember that is just a defconfig save it as defconfig on the coreboot directory and do make defconfig to repopulate your config. Take a look at common/config_and_make.sh to see the commands skulls uses.

valner88 commented 4 years ago

I have the x220 keyboard running on my x230 with coreboot/skulls on it. One of the x230 units had coreboot on it already and so the x220 keyboard behaves like the x230 keyboard would (with some mis-mapped and dead keys). On another one I patched the ec firmware before flashing skulls on it and hence the keyboard behaves exactly like it is supposed to.

So while getting skulls to work on the x220 would be useful for a variety of reasons, if you just want the x220 keyboard then you could do that easily with the x230 to. The link posted by @emacsomancer above has all the details.

I could not manage to boot the dos usb flasher, on my x230t. It stays loading indefinitely, i cannot also flash my bios using winflash or similar, it could be a tell of the problem. The usb flasher was done correctly using the correspondent methods hamish coleman. Any ideas? I want to use my x220 keyboard and so far all i have got is a downgrade.