schnapper79 Posted October 30, 2015 Posted October 30, 2015 hi... i have some trouble compiling a new image with the latest kernel (4.2) for udoo quad. i get an error during make drivers/pci/access.c:493:16: error: redefinition of 'pci_vpd_f0_write' static ssize_t pci_vpd_f0_write(struct pci_dev *dev, loff_t pos, size_t count, Any idea? solutions?
Igor Posted November 1, 2015 Posted November 1, 2015 Where do you compile? Ubuntu Trusty or something else?
schnapper79 Posted November 1, 2015 Author Posted November 1, 2015 It was 15.04... I can try with trusty... Just thought 15.04 was reported 'working'. I know 15.10 isn't working at all, u-boot sources from udoo won't compile wit GCC 5.x...
Igor Posted November 1, 2015 Posted November 1, 2015 I have to add / clarify. Some sources can compile on 15.04 but not all. Compiler issue, yes. Stick to Trusty
cristi.udoo Posted December 20, 2015 Posted December 20, 2015 Hi, I also have problems in compiling the latest kernel (udoo quad). It doesn't clone correctly (git issue ?!) the u-boot-neo folder content anymore (the folder is almost empty, it doesn't contain what it should), so the compiling stops with error at that point. I use Ubuntu Trusty Server x64 distro to compile the kernel. I tried dozens of times, literally, with no luck, to compile a custom kernel that includes (netfilter and other repos for strongswan) for IPSEC VPN, but it always hangs at the same point, intel driver error. Please help. Thanks. Chris
Igor Posted December 20, 2015 Posted December 20, 2015 They change everything and deleted branches which are in my config. Fixing ... fixed, compiling o.k., result untested yet. https://github.com/igorpecovnik/lib -b master
cristi.udoo Posted December 20, 2015 Posted December 20, 2015 Thanks alot. I will come back with results. Chris.
cristi.udoo Posted December 21, 2015 Posted December 21, 2015 The compiling of the new kernel was successful, but after installing the kernel debs (dtb, image, firmware, headers, etc) I wasn't able to boot the board anymore. The U-Boot says that it can't find the bzimage (the file has only 24K after installing the kernel image). First error of u-boot said something like that: "it can't find a filename: that contains "dts/udoo-$$$-hdmi.dtb" in it's name. (I can't remember the full name). Please help. Thank you. Chris
Igor Posted December 21, 2015 Posted December 21, 2015 OK, I'll take a look, I hope today. I guess there are more changes then. Thank you for your test.
Igor Posted December 21, 2015 Posted December 21, 2015 https://github.com/igorpecovnik/lib/commit/b524751907a60ffa36984e10cec7b6f29ea30aa4 Fixed, tested legacy but should work on 4.2 kernels too. You need to update u-boot and boot.scr ...
cristi.udoo Posted December 21, 2015 Posted December 21, 2015 Thank you for your quick answer and fixes. I will test it again, and come back with feedback.
cristi.udoo Posted December 21, 2015 Posted December 21, 2015 The debs are allright now, but it seems that I still have an old problem. I customized the (Vanilla) kernel and compiled it, but even if a changed in the compile.sh file 'FORCE_CHECKOUT="no"' it seems that the kernel was compiled with standard config not as I configured it in the configuration stage, after installing all debs, I couldn't see the modules I included. Please help. Thank you. Chris
Igor Posted December 22, 2015 Posted December 22, 2015 Are you using our testing branch? (master) We are still fixing bugs ... generally works. Out of the default config try to compile with this: KERNEL_CONFIGURE="yes" USE_CCACHE="no" # i suspect this is the root of your problems and must be disabled if we re-configuring the kernel
zador.blood.stained Posted December 22, 2015 Posted December 22, 2015 FORCE_CHECKOUT affects only sources, git shouldn't touch config file. Kernel config is overwritten every time on recompilation, it's not enough to tweak it only once. Also I don't see how ccache can interfere with this. Try setting KERNEL_KEEP_CONFIG=yes (it should work on both second and master branches), and after installation check if config file in /boot still has your changed settings.
cristi.udoo Posted December 22, 2015 Posted December 22, 2015 SOLVED! Thanks for suggestions to both of you (Igor and Zador) I finally succeeded! It worked only on master branch (Vanilla Kernel), on the second one it failed at the u-boot compile time (both kernels) (I will come back later with specific error). Yes, in /boot the config file is my custom one, as it should be. For safety I followed both of your suggestions: 1. KERNEL_CONFIGURE="yes"2. USE_CCACHE="no" 3. KERNEL_KEEP_CONFIG="yes" Compiled the new kernel, and It worked perfectly. I hope this will help others who are trying to compile their own custom kernel. Greetings. I will come back with more feedback later. Thanks alot to both of you. Chris
Recommended Posts