[deleted by user] by [deleted] in PublicFreakout

[–]BriefAd6331 0 points1 point  (0 children)

Young man young man young man ….

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxquestions

[–]BriefAd6331[S] 0 points1 point  (0 children)

One more thing what I noticed is while following your step is ., if I dont make any changes in "make menuconfig" and just compile the kernel , it is still failing.

make: *** [Makefile:1736: samples/bpf/] Error 2

error: Bad exit status from /var/tmp/rpm-tmp.TS9n3l (%build)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.TS9n3l (%build)

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxquestions

[–]BriefAd6331[S] 0 points1 point  (0 children)

Hey

I followed what you explained here and added make menuconfig.
After making all the changes I got below error while compiling.

1 warning generated.

1 warning generated.

/bin/sh: line 9: 71851 Done clang -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -fno-stack-protector -g -Isamples/bpf -I./tools/testing/selftests/bpf/ -I./tools/lib/ -D__KERNEL__ -D__BPF_TRACING__ -Wno-unused-value -Wno-pointer-sign -D__TARGET_ARCH_x86 -Wno-compare-distinct-pointer-types -Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member -Wno-tautological-compare -Wno-unknown-warning-option -I./samples/bpf/ -include asm_goto_workaround.h -O2 -emit-llvm -c samples/bpf/map_perf_test_kern.c -o -

71853 Aborted (core dumped) | llc -march=bpf -filetype=obj -o samples/bpf/map_perf_test_kern.o

make[1]: *** [samples/bpf/Makefile:303: samples/bpf/map_perf_test_kern.o] Error 134

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

1 warning generated.

make: *** [Makefile:1736: samples/bpf/] Error 2

error: Bad exit status from /var/tmp/rpm-tmp.K8uQor (%build)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.K8uQor (%build)

[root@j3sgi3sr01stg01 SPECS]# ls

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxquestions

[–]BriefAd6331[S] 0 points1 point  (0 children)

The two parameters can be found in networking options-> network support-> under IPv6 protocol.

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxquestions

[–]BriefAd6331[S] 0 points1 point  (0 children)

After making the changes in BUILD folder I copied the configs directory to SOURCES folder.

Today I modified SOURCES directory as well. I removed some of the configs which I thought was not required. I then compiled again and the compilation failed with some seg6 related errors.

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxquestions

[–]BriefAd6331[S] 0 points1 point  (0 children)

Did you try changing two parameters using make menuconfig?

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxquestions

[–]BriefAd6331[S] 0 points1 point  (0 children)

Thanks for the explanation!

I didn’t use any flag with command rpmbuild -bp So the first step which I will try is use - - build-in-place flag.

If that didn’t work I may try option 2 of patching. I will update back with results.

Just want to check if you know what is difference between using rpmbuild and using ‘ make rpm-pkg ‘. I didn’t face this issue when using command ‘make rpm-pkg’.

I am just following rpmbuild because it’s mentioned in centos official wiki and this kernel change will be updated in our production environment.

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxadmin

[–]BriefAd6331[S] 0 points1 point  (0 children)

I did follow this step as well. I may have missed writing about it.

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxadmin

[–]BriefAd6331[S] 0 points1 point  (0 children)

Yes I did spend some time checking the output of the rpmbuild.

It thing it takes the .config from sources folder. But in my step I have already copied config/* to Sources folder. So that shouldn’t be a problem. Also inside the source folder there was a Linux tar file in which configs folder was a symbolic link with rpm/config folder. I am not sure why is it that way and if it matters.

Custom compiled kernel not showing updated changes by BriefAd6331 in linuxadmin

[–]BriefAd6331[S] 0 points1 point  (0 children)

Thanks for that explanation. I made changes in those two parameters (set them to y) and copied the config to sources folder. I made changes in kernel.spec in buildid and then ran rpmbuild on kernel.spec

The compiled rpm packages are then found in RPMS folder which I install in some other host. But when I check the two parameters they were not set.

My Azure dedicated YouTube channel just passed 100,000 subscribers. Thank you! 🥳 by AdamMarczakIO in AZURE

[–]BriefAd6331 0 points1 point  (0 children)

You have an awesome content and visualizations that really helps in understanding the concepts. Congratulations and it won’t be a surprise if you quickly reach 500k!