Logo

Tiny Core: Flashrom 

Various approaches to utilising the flashrom binary

Ideally need to create a flashrom.tcz file - maybe one day - otherwise:

  1. Add to an existing running system.
  2. Create a custom iso with it embedded.

Existing installation

  1. Stick the binary somewhere e.g. root of the USB drive.
  2. Use App Browser to load libpci.tcz, dmidecode.tcz, libusb-compat.tcz
  3. Run using sudo /mnt/sdb1/flashrom...

Using ezremaster

Good way to get familiar with ezremaster.

On a running system use the App Browser to load ezremaster.tcz

Need the flashrom binary, TinyCore-current.iso, also maybe a BIOS image file if you're making a specific 'BIOS flashing' build. In this example I have one for the Wyse Cx0.

In this case I used a freshly created Tiny Core installation. In tc's home directory created the path bios/wyse/cx0_bios_1_0G.img and then ran filetool.sh -b to create the mydata.tgz file.

In what follows I'm running from a USB drive that appears as /dev/sdb1

run ezremaster

Select: use ISO image, Path to ISO: /mnt/sdb1/TinyCore-current.iso. Accept default of /tmp/ezremaster for working directory.

Set boot codes: kmap=qwerty/uk tce=UUID="xxxx-xxxx" and tgz: /mnt/sdb1/tce/mydata.tgz

Load the following 'outside initrd' on boot apps:

  • kmaps.tcz
  • pci-utils.tcz
  • usbutils.tcz
  • dmidecode.tcz
  • libusb-compat.tcz

Select next - it runs and extracts the files from the iso

At the Remaster step #2 screen:

  • Switch to terminal window /tmp/ezremaster/extract
  • cd sbin
  • sudo cp /mnt/sdb1/flashrom .

hit "create ISO"

wait

cp the iso /tmp/ezremaster.iso /mnt/sdb1/flashrom.iso

On Windows use LiLi to create new boot flash drive using the new iso

rename to FLASHROM

rename the cde directory to tce

Briefly transfer to another system and use blkid to get UUID (C834-9871 in this case)

edit syslinuux.cfg file to suit.

  • delete all mentions of cde
  • change title to TinyCore 11.1 Flashrom
  • change the UUID="xxxx-xxxx" to the UUID of the flash drive

Hopefully that's it.

 


Any comments? email me. Added April 2020