2017年8月8日 星期二

Linux Firmware Debug Kit (lfdk)

1.Install libncurses5-dev
  $sudo  apt-get -y install libncurses5-dev



2.Download and unzip lfdk.
   Linux Firmware Debug Kit download link: https://github.com/denir-li/lfdk2

3.Make
  $make


4.Insert the module into the Linux Kernel
  $sudo insmod bin/lfdd_drv.ko

5.Running
  $sudo bin/lfdk









2017年8月7日 星期一

How to update BIOS under Linux

The AMI bios support Linux BIOS update by afulnx, but the afulnx 5.05.04 don't support kernel 4.X.

The SOP as below:
1.Install build environment:
$sudo apt-get update
$sudo apt-get install build-essential

2.Install Kernel source:
$sudo apt-get install dpkg-dev
apt-get source linux-image-$(uname -r)

3.Copy the configure file to kernel source tree
$sudo cp /boot/config-X.XX.X-XX-generic /lib/modules/X.XX.X-XX-generic/build/config-X.XX.X-XX-generic.config 








4.Make AMI flash dirver
$sudo chmod 777 afulnx_64
$sudo ./afulnx_64 /MAKEDRV KERNEL=/lib/modules/$(uname -r)/build












5.update BIOS
$sudo ./afulnx_64 XXXXXXXX.ROM /p /b /n /x


Note: afulnx 5.05.04 test fail under kernel 4.X.