Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

03 module task #119

Open
wants to merge 4 commits into
base: Maryna.Malakhova
Choose a base branch
from

Conversation

marynamalakhova
Copy link

Add a simple module realization and it`s log output from BBboard

Copy link

@AleksandrBulyshchenko AleksandrBulyshchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please base your PRs on your branch at point which already includes task commit.
Task should be included via merge from master.

In this particular case you should merge 158b7e8 into https://github.com/Kernel-GL-HRK/gl-kernel-training-2021/commits/Maryna.Malakhova and rebase this PR onto that point.

The same is relevant for other PRs as well.

#include <linux/module.h> // Core header for loading LKMs into the kernel
#include <linux/kernel.h> // Contains types, macros, functions for the kernel
#include <linux/module.h> // Core header for loading LKMs into the kernel
#include <linux/kernel.h> // Contains types, macros, functions for the kernel
Copy link

@AleksandrBulyshchenko AleksandrBulyshchenko Apr 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally I'd ask to fix codestyle in place, but as this is a separate point of task, lets keep such fixup commit.

  • You still have inconsistent indentation of comments (in includes block);
  • Add Fixes line in commit message per kernel standard;

@AleksandrBulyshchenko AleksandrBulyshchenko added Change requested Change requested and removed Ready for review Ready for review labels Apr 2, 2021
@marynamalakhova marynamalakhova force-pushed the 03_module_task branch 8 times, most recently from 9b871ff to 9d76817 Compare April 2, 2021 12:10
@marynamalakhova marynamalakhova added Ready for review Ready for review and removed Change requested Change requested labels Apr 2, 2021
@marynamalakhova
Copy link
Author

Thank you for the review. I think. that I've fixed

@marynamalakhova marynamalakhova force-pushed the 03_module_task branch 4 times, most recently from 645cd60 to 6353ce6 Compare April 5, 2021 14:00
Copy link

@AleksandrBulyshchenko AleksandrBulyshchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase onto 158b7e8, as we agreed.

$(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) modules

clean:
$(MAKE) -C $(BUILD_KERNEL) M=$(CURDIR) clean

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makefile expects BUILD_KERNEL being defined in environment,
but neither code, nor commit message don't explain this.

@AleksandrBulyshchenko AleksandrBulyshchenko added Change requested Change requested and removed Ready for review Ready for review labels Apr 5, 2021
@marynamalakhova marynamalakhova added Ready for review Ready for review and removed Change requested Change requested labels Apr 6, 2021
@marynamalakhova
Copy link
Author

Thanks for the review, I`ve fixed

Add Makefile, source file according to the lecture
Module has been compiled and checked on Beaglebone
BBB kernel has been made on the linux-stable 14.9y base
Variable BUILD_KERNEL should be set in the environment for building
BUILD_KERNEL should define path to the linux kernel source folder

Signed-off-by: Maryna Malakhova <[email protected]>
Added parameter to module init and it is provided as a result

Signed-off-by: Maryna Malakhova <[email protected]>
Init could return 0 or negative values

Signed-off-by: Maryna Malakhova <[email protected]>
Add log file of module's output

Signed-off-by: Maryna Malakhova <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants