I'm still a bit lost, but making progress.
I realized that I don't need to build the squashfs-tools in a separate dir, since the ebuild does this. I still can't seem to build the kernel modules: sqlzma, unlzma, and squashfs
The ebuild seems to comment this part out of the makefile so I did the following:
- Started the emerge squashfs-tools, and hit ctrl-c before it was finished.
- Went to the dir /var/tmp/portage/sys-fs/squashfs-tools-3.3/work and edited the makefile to uncomment the lines 'KDir = /lib/modules/$(shell uname -r)/build' and 'BuildSquashfs = 1'
- tried to make it, which failed, because some files were missing (like I posted above)
- Copied over the files: cp /usr/src/linux/fs/squashfs/* /var/tmp/portage/sys-fs/squashfs-tools-3.3/work/squashfs3.3/kernel-patches/linux-2.6.23/fs/squashfs/.
- rebuilt it, now all the modules are built
- failure... when I type in make load it loads sqlzma & unlzma, but I get this error with squashfs
Code: Select all
insmod: error inserting '/var/tmp/portage/sys-fs/squashfs-tools-3.3/work/squashfs3.3/kernel-patches/linux-2.6.23/fs/squashfs/squashfs.ko': -1 Cannot allocate memory
So, I can only surmise I'm WAY off-base at trying to get this working, since no one has posted anything remotely close to what I'm doing here, and several of you seem to have things working.
How do I build the kernel modules needed for this?