Package Details: firmware-mod-kit 0.99-7

Git Clone URL: (read-only, click to copy)
Package Base: firmware-mod-kit
Description: Allows easy deconstruction and reconsutrction of firmware images for various embedded devices
Upstream URL:
Licenses: GPL
Submitter: antoniovazquez
Maintainer: anthraxx
Last Packager: anthraxx
Votes: 21
Popularity: 0.000000
First Submitted: 2013-05-30 12:23 (UTC)
Last Updated: 2016-10-20 22:46 (UTC)

Dependencies (3)

Required by (2)

Sources (1)

Latest Comments

1 2 3 Next › Last »

st-ty1 commented on 2020-12-30 18:53 (UTC) (edited on 2021-01-07 18:47 (UTC) by st-ty1)

Have a look at Builds without problems (with gcc10). Perhaps python-magic package is needed for runtime, so it has to be installed too, but building process of sources works even without python-magic. BR st-ty1

TDC commented on 2020-08-25 22:07 (UTC) (edited on 2020-08-25 22:09 (UTC) by TDC)

This will build, but it’s a nightmare!

Firstly, change the reference to python2-magic in the pkgbuild to just python-magic.

Then run the sed commands in bt1ninja’s comment to include <sys/sysmacros.h> to (most of) the relevant files.

The squashfs packages will only build with gcc9 or lower so export CC=/bin/gcc-9 and export CXX=/bin/g++-9

Remember to run makepkg -sie to avoid overwriting all your good work every time you try to build!

A number of the squashfs packages have gcc and g++ hard coded into the makefiles so every time the build fails go and find “CC = gcc” or “CXX = g++” and remove those lines.

Alternatively you may need to add another #include <sys/sysmacros.h>. You’ll get the hang of it eventually.

I couldn’t get the Realtek version of squashfs to build at all but everything else eventually built. No idea if the resultant program(s) actually work yet though!

1llum1n4t3d commented on 2020-04-26 23:07 (UTC)

Please update build from package! It fails to build!

1llum1n4t3d commented on 2020-04-26 23:06 (UTC)

python2-magic can be downloaded here

b1tninja commented on 2019-10-08 01:03 (UTC) (edited on 2019-10-08 01:12 (UTC) by b1tninja)

Adding this to prepare got things building:

grep -rPl '(major|minor|makedev)\(' | xargs grep -l 'sys/types.h' | xargs -i sed -i '/#include <sys\/types.h>/ a #include <sys/sysmacros.h>' {}

epozzobon commented on 2019-10-01 21:17 (UTC) (edited on 2019-10-01 21:17 (UTC) by epozzobon)

Since the major, minor, and makedev macros were moved to sys/sysmacros.h, compilation fails with "undefined reference to 'minor'".

This can be fixed by adding the following line in PKGBUILD, before the make:

grep -r "sys/types\.h" | grep -o "^[^:]\+" | xargs sed -e "s/sys\/types\.h\>/sys\/types\.h>\n\#include \<sys\/sysmacros\.h/" -i

90torf commented on 2016-10-20 21:10 (UTC)

I got a 404 error while downloading the source file fmk_099.tar.gz. Problem can be solved by changing source parameter: source=('')

<deleted-account> commented on 2015-08-28 15:50 (UTC)

Strangely, building this with -march=native in makepkg.conf caused kernel panic on my laptop, -march=x86-64 is compiling fine. CPU is i7-5700HQ. native resolved to "broadwell" as march.