From: eliot Date: Sat, 18 Sep 2021 15:31:39 +0000 (+0200) Subject: Reordering X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=6a33f49848d5dc0b43e56c0682e78ce3884b6c0f;p=inbyggd-frihet-wiki.git Reordering --- diff --git a/guider.mdwn b/guider.mdwn index 37cd1d9..2745c99 100644 --- a/guider.mdwn +++ b/guider.mdwn @@ -52,6 +52,28 @@ Add the below to the preferred boot option, in grub.cfg, for automatic boot. It } +#### Flashing Internally + +To internally flash your ROM (on Coreboot or Libreboot) use the kernel parameter "iomem=relaxed". Thus, if you boot manually you would enter e g "linux=vmlinuz.. iomem=relaxed". + +Get a newer version of flashrom than in Debian repo. In my case the older version did not detect the exact chip on x200, which was fixed by getting most recent version. + +Note these tools are built and ready [at](https://www.mirrorservice.org/sites/libreboot.org/release/stable/20160907/libreboot_r20160907_util.tar.xz) or similar. + + #backup current rom + sudo ./flashrom -p internal -r libreboot.rom + + #Optional: remove old GRUB (test) config + ./cbfstool libreboot.rom remove -n grubtest.cfg + #Optional: get the new GRUB (test) config into your ROM + ./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t raw + + #Optional: change background in GRUB menu (dest must be called background.png /jpg) + #./cbfstool yourrom.rom remove background.png -n background.png + #./cbfstool yourrom.rom add -f background.png -n background.png -t raw + + sudo ./flashrom -p internal -w libreboot.rom #updated image + ## Libreboot ### Our external flashing setup @@ -167,29 +189,6 @@ Unlike Coreboot, this build process is fairly automated and does not present any ## LASTLY FLASH TO CHIP (here internally) #sudo ./flashrom/flashrom -p internal -w x200.rom -#### Flashing Internally - -To internally flash your ROM (on Coreboot or Libreboot) use the kernel parameter "iomem=relaxed". Thus, if you boot manually you would enter e g "linux=vmlinuz.. iomem=relaxed". - -Get a newer version of flashrom than in Debian repo. In my case the older version did not detect the exact chip on x200, which was fixed by getting most recent version. - -Note these tools are built and ready [at](https://www.mirrorservice.org/sites/libreboot.org/release/stable/20160907/libreboot_r20160907_util.tar.xz) or similar. - - #backup current rom - sudo ./flashrom -p internal -r libreboot.rom - - #Optional: remove old GRUB (test) config - ./cbfstool libreboot.rom remove -n grubtest.cfg - #Optional: get the new GRUB (test) config into your ROM - ./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t raw - - #Optional: change background in GRUB menu (dest must be called background.png /jpg) - #./cbfstool yourrom.rom remove background.png -n background.png - #./cbfstool yourrom.rom add -f background.png -n background.png -t raw - - sudo ./flashrom -p internal -w libreboot.rom #updated image - - ## Extend 2MB ROM to 8MB ### Here is the script we use to flash 8mb chip