Enabling kernel module doesn't work when building the kernel

101 views
Skip to first unread message

privat.danie...@gmail.com

unread,
Jan 13, 2019, 3:54:20 PM1/13/19
to Chromium OS Development
Hi,

wasted like 60 hours + on this, and still do not have a solution. I simply want to build the kernel 4.19 with 1 module enabled which is not enabled by default (CONFIG_TCG_CRB).
I set it to y inside src/third_party/kernel/v4.19/chromeos/config/base.config and run ./setup_board --board=${BOARD} and ./build_packages --board=${BOARD}. It builds the kernel from source but the module still is not built into it. Can it be that hard to enable one module or am I missing something? What would be the "most simple and fast" way to get it working? I already spent too much time and I don't really care anymore if it's done cleanly or not, I simply want it to work. Any ideas or help is welcome.

regards

Jon Does

unread,
Jan 13, 2019, 4:41:44 PM1/13/19
to Chromium OS Development
Is the correct kernel version being built?  Maybe you're modifying the wrong kernel that's being compiled?

privat.danie...@gmail.com

unread,
Jan 13, 2019, 4:55:53 PM1/13/19
to Chromium OS Development
I used the USE flag "kernel-4_19" and edited accordingly src/third_party/kernel/v4.19/chromeos/config/base.config.
However, I checked the kernel sources after ./build_packages within the chroot in /build/$BOARD/var/cache/portage/sys-kernel/chromeos-kernel/. For some reason it doesn't add the kernel module I added inside the base.config previously. I have literally no clue what the problem is.

regards

Adam Kearn

unread,
Jan 13, 2019, 5:02:22 PM1/13/19
to Chromium OS Development
Hey you need to cros_workon the kernel before you can edit it use these commands 

# run this to work on the build
cros_workon --board=${BOARD} start sys-kernel/chromeos-kernel-4_19

# remove old kernel from build
emerge-${BOARD} -C sys-kernel/chromeos-kernel-4_4

# build different kernel from local source
cros_workon --board=${BOARD} start sys-kernel/chromeos-kernel-4_19
cd ~/trunk/src/third_party/kernel/v4.19
###<modify kernel config or source if you want>###
emerge-${BOARD} sys-kernel/chromeos-kernel-4_19

# build image
./build_packages --board=${BOARD} chromeos-kernel-4_19
./build_packages --board=${BOARD}
./build_image --board=${BOARD} --noenable_rootfs_verification test


Adam Kearn

unread,
Jan 22, 2019, 5:19:20 PM1/22/19
to Chromium OS Development
Hey
Were you able to get it working with those commands I sent you above?

-Adam

privat.danie...@gmail.com

unread,
Jan 26, 2019, 11:52:07 AM1/26/19
to Chromium OS Development
Thanks you very much Adam! Worked like a charm.

regards
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages