Hi, > I have been having a stab at compiling the kernel with those openWrt b53 > drivers , but not having much luck generating the kernel rpm . I have been > following the fedora instructions from here : > > https://fedoraproject.org/wiki/Building_a_custom_kernel My work flow for this tends to be roughly: "fedpkg clone kernel" add patches and update kernel.spec "fedpkg prep" which will locally make sure all the patches apply cleanly etc "fedpkg srpm" "rpmbuild --rebuild --target armv7hl --with=cross --without=perf --without=debuginfo --without=pae --define="_arch arm" --define="_build_arch arm" --define="__strip /usr/bin/arm-linux-gnu-strip" kernel.src.rpm" > And have run into a few issues . Firstly it is the architecture , when > executing this command : > > rpmbuild -bb --target=`uname -m` kernel.spec > > The target gets set to armv7l , this then unfortunately fails here : > > + InstallName=vmlinuz > + Config=kernel-3.17.7-armv7l.config > + DevelDir=/usr/src/kernels/3.17.7-300.R1.fc21.armv7l > + '[' arch/arm/boot/zImage = vmlinux ']' > + CopyKernel=cp > + KernelVer=3.17.7-300.R1.fc21.armv7l > + echo BUILDING A KERNEL FOR armv7l... > BUILDING A KERNEL FOR armv7l... > + perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = 7/' Makefile > + perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -300.R1.fc21.armv7l/' > Makefile > + make -s mrproper > + cp configs/kernel-3.17.7-armv7l.config .config > cp: cannot stat 'configs/kernel-3.17.7-armv7l.config': No such file or > directory > error: Bad exit status from /var/tmp/rpm-tmp.awVfBd (%build) > > > because the file can not be found . The files in fact is called : > > user@bananapi_r1 > ~/rpmbuild/BUILD/kernel-3.17.fc21/linux-3.17.7-300.R1.fc21.armv7l/configs $ > ls -l > total 1868 > -rw-r--r-- 1 msou msou 102472 Jan 6 10:24 kernel-3.17.7-aarch64.config > -rw-r--r-- 1 msou msou 156975 Jan 6 10:25 kernel-3.17.7-armv7hl.config > -rw-r--r-- 1 msou msou 145002 Jan 6 10:25 kernel-3.17.7-armv7hl-lpae.config > -rw-r--r-- 1 msou msou 147807 Jan 6 10:25 kernel-3.17.7-i686.config > -rw-r--r-- 1 msou msou 148135 Jan 6 10:25 kernel-3.17.7-i686-debug.config > -rw-r--r-- 1 msou msou 146475 Jan 6 10:25 kernel-3.17.7-i686-PAE.config > -rw-r--r-- 1 msou msou 146803 Jan 6 10:25 > kernel-3.17.7-i686-PAEdebug.config > -rw-r--r-- 1 msou msou 133625 Jan 6 10:26 kernel-3.17.7-ppc64.config > -rw-r--r-- 1 msou msou 133625 Jan 6 10:25 kernel-3.17.7-ppc64-debug.config > -rw-r--r-- 1 msou msou 133330 Jan 6 10:26 kernel-3.17.7-ppc64le.config > -rw-r--r-- 1 msou msou 132819 Jan 6 10:26 kernel-3.17.7-ppc64p7.config > -rw-r--r-- 1 msou msou 63857 Jan 6 10:26 kernel-3.17.7-s390x.config > -rw-r--r-- 1 msou msou 146369 Jan 6 10:26 kernel-3.17.7-x86_64.config > -rw-r--r-- 1 msou msou 146654 Jan 6 10:26 kernel-3.17.7-x86_64-debug.config > > Once I set the target manually to armv7hl , then the build process goes on > further . But one thing that concerns me is that that I do not see > any signs so far that my .config file is being used . The one that is copied > is the generic one without the b53 driver being enabled . My > .config file is sitting in SOURCES due to this step in the instructions : > > cp .config ~/rpmbuild/SOURCES/config-`uname -m`-generic > > And it is here amongst other generic .config's : > > -rw-r--r-- 1 msou msou 5912 Dec 17 13:52 config-arm-generic > -rw-r--r-- 1 msou msou 14897 Dec 17 13:52 config-armv7 > -rw-r--r-- 1 msou msou 20997 Dec 17 13:52 config-armv7-generic > -rw-rw-r-- 1 msou msou 157215 Jan 6 00:33 config-armv7l-generic > -rw-r--r-- 1 msou msou 2169 Dec 17 13:52 config-armv7-lpae > > The one I created is config-armv7l-generic , while the others are called > just armv7 with no 'l' . So far we have 3 different ways to > designate the platform : armv7 , armv7l and armv7hl and I am not sure which > one to use and where . > > > Best Regards > Milorad > > > > > > > > _______________________________________________ > arm mailing list > arm@xxxxxxxxxxxxxxxxxxxxxxx > https://admin.fedoraproject.org/mailman/listinfo/arm _______________________________________________ arm mailing list arm@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/arm