Solved : sr: resource: Failed to open resource 'fx2lafw-sigrok-fx2-8ch.fw'

If you have this problem:

run below and it said failed to find the firmware file

sudo sigrok-cli --loglevel 5 -d fx2lafw --scan

So build this project and restart terminal, then you will success

git clone git://sigrok.org/sigrok-firmware-fx2lafw
cd sigrok-firmware-fx2lafw
./autogen.sh
./configure
make
sudo make install
sudo sigrok-cli --loglevel 5 -d fx2lafw --samples 100 --config samplerate=500kHz -O bits:width=100
sudo sigrok-cli -d fx2lafw --show