[Raspberry Pi Development] joshndroid:
[MENTION=4857012]feherneoh[/MENTION]

so I’ve got a kernel built. (takes a while)

I worked out what the issue was. I was missing a .so that is only present in arch-linux it is essentially to do with flex, but i can't seem to find the package for it to download elsewhere so it seems that you have to manually obtain it and push it to your appropriate location ill explain as follows.

Firstly, the libfl.so.2 is referenced in this package - https://www.archlinux.org/packages/core/x86_64/flex/

I have attached a zipped copy of the lib for you to work with from the archlinux site (i followed some of this guide and used the libfl.so.2 - http://xdaforums.com/nexus-4/general/qa-kernel-hells-core-kitkat-b45-stable-t2495373/page959 (i trusted it was not sketchy download).

Then do as follows

1. extract the lib to your downloads directory (assuming downloads)

sudo su
cp /home/<username>/Downloads/libfl.so.2.0.0 /usr/lib/libfl.so.2.0.0
chmod 755 /usr/lib/libfl.so.2.0.0
ln -s /usr/lib/libfl.so.2.0.0 /usr/lib/libfl.so.2
ln -s /usr/lib/libfl.so.2.0.0 /usr/lib/x86_64-linux-gnu/libfl.so.2 (<<< this is probably the most important one, this is what toolchain was complaining about)

note - in the linked xda page there is another command that i purposely did not move over because your system will already have it installed.

use this in conjunction with my previous post you should then be able to run "make bootimage" and get something usefull

See ending output here as confirmation

make[2]: Leaving directory `/home/joshndroid/cmarsh/out/target/product/rpi2/obj/KERNEL_OBJ'
make[1]: Leaving directory `/home/joshndroid/cmarsh/kernel/rpi'
mdpath=`find /home/joshndroid/cmarsh/out/target/product/rpi2/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/joshndroid/cmarsh/prebuilts/gcc/linux-x86/arm/arm-linux-gnueabihf-4.9.3/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/joshndroid/cmarsh/out/target/product/rpi2/system/lib/modules/; done; fi
mdpath=`find /home/joshndroid/cmarsh/out/target/product/rpi2/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mdpath=`find /home/joshndroid/cmarsh/out/target/product/rpi2/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/joshndroid/cmarsh/prebuilts/gcc/linux-x86/arm/arm-linux-gnueabihf-4.9.3/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/joshndroid/cmarsh/out/target/product/rpi2/system/lib/modules/; done; fi
mdpath=`find /home/joshndroid/cmarsh/out/target/product/rpi2/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
target Prebuilt: (/home/joshndroid/cmarsh/out/target/product/rpi2/kernel)
target Strip: init (/home/joshndroid/cmarsh/out/target/product/rpi2/obj/EXECUTABLES/init_intermediates/init)
Install: /home/joshndroid/cmarsh/out/target/product/rpi2/root/init
target Strip: adbd (/home/joshndroid/cmarsh/out/target/product/rpi2/obj/EXECUTABLES/adbd_intermediates/adbd)
Install: /home/joshndroid/cmarsh/out/target/product/rpi2/root/sbin/adbd
target Strip: healthd (/home/joshndroid/cmarsh/out/target/product/rpi2/obj/EXECUTABLES/healthd_intermediates/healthd)
Install: /home/joshndroid/cmarsh/out/target/product/rpi2/root/sbin/healthd
Target ram disk: /home/joshndroid/cmarsh/out/target/product/rpi2/ramdisk.img
Target boot image: /home/joshndroid/cmarsh/out/target/product/rpi2/boot.img
Made boot image: /home/joshndroid/cmarsh/out/target/product/rpi2/boot.img

#### make completed successfully (21:24 (mm:ss)) ####

joshndroid@joshndroid:~/cmarsh$