Igor 2301 Posted December 8, 2019 Author Share Posted December 8, 2019 3 hours ago, vore76 said: Anybody who can give some hints? Manual work to adjust patches is required since there were many changes since. If you don't know how, perhaps try to hire people to do that for you. 0 Quote Link to post Share on other sites More sharing options...
Werner 409 Posted December 9, 2019 Share Posted December 9, 2019 9 hours ago, vore76 said: scripts/Makefile.lib:308: recipe for target 'arch/arm/dts/sun7i-a20-bananapi.dtb' failed dts/Makefile:38: recipe for target 'arch-dtbs' failed Makefile:1061: recipe for target 'dts/dt.dtb' failed [ error ] ERROR in function compile_uboot [ compilation.sh:204 ] [ error ] U-boot compilation failed [ o.k. ] Process terminated Go to your output/debug/ folder and check the log files for more detailed information. 0 Quote Link to post Share on other sites More sharing options...
vore76 0 Posted December 9, 2019 Share Posted December 9, 2019 14 hours ago, Werner said: Go to your output/debug/ folder and check the log files for more detailed information. Hello! The only useful stuff I can find is in "compilation.log" Error: arch/arm/dts/.sun7i-a20-bananapi.dtb.pre.tmp:378.3-11 syntax error FATAL ERROR: Unable to parse input tree make[2]: *** [arch/arm/dts/sun7i-a20-bananapi.dtb] Error 1 make[1]: *** [arch-dtbs] Error 2 make: *** [dts/dt.dtb] Error 2 I'm using this for my private stuff. I can't afford to hire a person for this. But I will donate some money to the project as I already did in the past. If it's impossible to build something with the new kernel it's Ok. 0 Quote Link to post Share on other sites More sharing options...
Igor 2301 Posted December 9, 2019 Author Share Posted December 9, 2019 Donations give you nothing in return. You support what you already get. They current ly cover less than 0.5% of project costs. Now think again what you are asking ...Wrote on mobile 0 Quote Link to post Share on other sites More sharing options...
Werner 409 Posted December 10, 2019 Share Posted December 10, 2019 Which makes any donation not less value, don't you think? Anyway. I try to build a kernel package on current (5.3.x) on my own to verify. What I have notice so far is that general-sunxi-overlays.patch did not apply properly. I'll check back on this later this day. Edit: Built was successful. 0 Quote Link to post Share on other sites More sharing options...
danielcharles 0 Posted February 20 Share Posted February 20 Hi, The majority of users that are interested in building their own kernel are doing so because they have installed Ubuntu on their system and they wish to make a small change to the kernel for that system. In many cases the user just wants to make a kernel configuration change. The purpose of this page is to give that user a minimum amount of information for them to meet the goal of making a simple change to the kernel, building it and installing their kernel. It is not intended to be the definitive guide to doing Ubuntu kernel development. 0 Quote Link to post Share on other sites More sharing options...
Igor 2301 Posted February 22 Author Share Posted February 22 On 2/20/2021 at 7:45 AM, danielcharles said: The purpose of this page https://docs.armbian.com/Developer-Guide_Build-Preparation/ 0 Quote Link to post Share on other sites More sharing options...
kentAVR 0 Posted July 4 Share Posted July 4 On 11/16/2018 at 12:25 AM, Igor said: We spent several years to learn and several years to make this system https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-kernel-config "If file userpatches/sources/$LINUXFAMILY.conf exists, it will be used in addition to the default one from config/sources." But there is no "sources" folder on userpatches! 0 Quote Link to post Share on other sites More sharing options...
lanefu 346 Posted July 4 Share Posted July 4 1 hour ago, kentAVR said: But there is no "sources" folder on userpatches! Make the folder. https://github.com/armbian/build/blob/master/lib/configuration.sh#L125 0 Quote Link to post Share on other sites More sharing options...
kentAVR 0 Posted July 4 Share Posted July 4 21 hours ago, lanefu said: Make the folder. https://github.com/armbian/build/blob/master/lib/configuration.sh#L125 You are not right, I shouldn't create any sources folder. This is stranch code from build/lib/configuration.sh if [[ -f $USERPATCHES_PATH/sources/families/$LINUXFAMILY.conf ]]; then display_alert "Adding user provided $LINUXFAMILY overrides" source "$USERPATCHES_PATH/sources/families/${LINUXFAMILY}.conf" fi But true code are in build/lib/compilation.sh if [[ -f $USERPATCHES_PATH/$LINUXCONFIG.config ]]; then display_alert "Using kernel config provided by user" "userpatches/$LINUXCONFIG.config" "info" cp "${USERPATCHES_PATH}/${LINUXCONFIG}.config" .config else display_alert "Using kernel config file" "config/kernel/$LINUXCONFIG.config" "info" cp "${SRC}/config/kernel/${LINUXCONFIG}.config" .config fi So for my Orange Pi 4 with my build script ./compile.sh BOARD=orangepi4 BRANCH=current RELEASE=hirsute BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes COMPRESS_OUTPUTIMAGE=sha,gpg,img BSPFREEZE=yes REPOSITORY_INSTALL="" EXTERNAL=no EXTRAWIFI=no AUFS=no WIREGUARD=no INSTALL_KSRC=yes OFFLINE_WORK=yes BSPFREEZE=yes I need put linux-rockchip64-current.config into build/userpatches. To check that armbian get my file I look at console Using kernel config provided by user linux-rockchip64-current.config 0 Quote Link to post Share on other sites More sharing options...
lanefu 346 Posted July 4 Share Posted July 4 hi @kentAVR Sorry I see that the confusion was now. It was around user provided Kernel Configuration vs user provide Kernel Source Config. here's an example of a kernel source config you could override.. https://github.com/armbian/build/blob/master/config/sources/families/rockchip64.conf and yes, yourre correct, the pattern for providing a kernel build config in the top of the userpatches/ folder following the appropriate naming convention. 1 Quote Link to post Share on other sites More sharing options...
kentAVR 0 Posted July 7 Share Posted July 7 menuconfig is strange magic! Look! 1) I set my settings of kernel. 2) I save my settings of kernel to file /home/a/Documents/myArmbians/8armbian/linux-rockchip64-current.config 3) I load settings from /home/a/Documents/myArmbians/8armbian/linux-rockchip64-current.config 4) I verify settings and its ok 5) I do Exit, armbian save my settings (and block file) and write me [ o.k. ] Exporting new kernel config [ /home/a/Documents/myArmbians/8armbian/build/output/config/linux-rockchip64-current.config ] 6) I am going to file from 5) and verify and... My settings is reseted! WTF? So right magic way is: 1) I set my settings of kernel. 2) I save my settings of kernel to file /home/a/Documents/myArmbians/8armbian/linux-rockchip64-current.config 3) Exit and STOP (Ctrl+Z) armbian build system. 4) put file from step 2) to /home/a/Documents/myArmbians/8armbian/build/userpatches/linux-rockchip64-current.config 5) wating message from armbian [ o.k. ] Exporting new kernel config [ /home/a/Documents/myArmbians/8armbian/build/output/config/linux-rockchip64-current.config ] 6) do not stop build! Just go to this file and verify. Usually it contains my settings. P.S. I use Orange Pi 4B 0 Quote Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.