Package Details: firmware-mod-kit 0.99-7

Git Clone URL: https://aur.archlinux.org/firmware-mod-kit.git (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: http://code.google.com/p/firmware-mod-kit/
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 »

SlideShowGames commented on 2024-07-27 23:56 (UTC)

This is an absolute nightmare to build can I just get a binary or something

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 https://github.com/st-ty1/Arch-Linux_firmware-mod-kit. 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 https://archive.org/download/archlinux_pkg_python2-magic

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=('https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/firmware-mod-kit/fmk_099.tar.gz')