Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kernel Program Behaviour Models
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixkhals
Kernel Program Behaviour Models
Commits
b3206b13
Commit
b3206b13
authored
2 years ago
by
Ollrogge
Browse files
Options
Downloads
Patches
Plain Diff
Remove unneeded readme
parent
a1587100
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build_module.sh
+1
-1
1 addition, 1 deletion
build_module.sh
build_pb_submitter.sh
+1
-1
1 addition, 1 deletion
build_pb_submitter.sh
pb_utils/README.md
+15
-1
15 additions, 1 deletion
pb_utils/README.md
pb_utils/readme.md
+0
-53
0 additions, 53 deletions
pb_utils/readme.md
with
17 additions
and
56 deletions
build_module.sh
+
1
−
1
View file @
b3206b13
#!/bin/bash
cd
.
/pb_utils/mod_gen/mods/
cd
/mnt
/pb_utils/mod_gen/mods/
make
cd
-
This diff is collapsed.
Click to expand it.
build_pb_submitter.sh
+
1
−
1
View file @
b3206b13
#!/bin/bash
cd
.
/pb_utils/pb_submitter
cd
/mnt
/pb_utils/pb_submitter
./build.sh
cd
-
This diff is collapsed.
Click to expand it.
pb_utils/README.md
+
15
−
1
View file @
b3206b13
...
...
@@ -17,7 +17,21 @@ to build:
apt update
apt-get
install
-y
fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison
cd
/mnt
./build
./build_kernel.sh
```
## chroot into debian rootfs to build test modules
run
`./chroot_image.sh`
, this drops you in a shell on the created debian and run
```
bash
/mnt/build_module.sh
```
## chroot into debian rootfs to build pb_submitter
run
`./chroot_image.sh`
, this drops you in a shell on the created debian and run
```
bash
/mnt/build_pb_submitter.sh
```
# run the build kernel with the created rootfs
...
...
This diff is collapsed.
Click to expand it.
pb_utils/readme.md
deleted
100644 → 0
+
0
−
53
View file @
a1587100
# dependencies
-
build is tested on a ubuntu
-
for qemu minimum needed:
`sudo apt install qemu qemu-system-x86`
# build
## create an image file with a debian rootfs (only needed first time)
run
`./create_image.sh`
, this downloads dbootstrap and installs a debian into a image file
## chroot into debian rootfs to build the kernel
(build on your system is possible, but for example ubuntu 20.04 libs throw exceptions)
run
`./chroot_image.sh`
, this drops you in a shell on the created debian
to build:
```
bash
apt update
apt-get
install
-y
fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison
cd
/mnt
./build
```
## chroot into debian rootfs to build test modules
run
`./chroot_image.sh`
, this drops you in a shell on the created debian and run
```
bash
/mnt/pb_utils/mod_gen/build.sh
```
## chroot into debian rootfs to build pb_submitter
run
`./chroot_image.sh`
, this drops you in a shell on the created debian and run
```
bash
/mnt/pb_utils/pb_submitter/build.sh
```
# run the build kernel with the created rootfs
run
`./run_qemu.sh`
# debug using gdb
run
`./run_qemu.sh gdb`
run in a seperate shell:
```
bash
cd
..
# to workspace root
gdb vmlinux
\
-ex
'lx-symbols'
\
-ex
'target remote :1234'
\
-ex
'hb init_pb_rq'
```
look for gdb
`add-auto-load-safe-path`
warning and follow instruction to enable loading of kernel gdb scripts
use hardware breakpoints instead of software breaks
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment