Skip to content
Snippets Groups Projects
Commit b3206b13 authored by Ollrogge's avatar Ollrogge
Browse files

Remove unneeded readme

parent a1587100
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
cd ./pb_utils/mod_gen/mods/ cd /mnt/pb_utils/mod_gen/mods/
make make
cd - cd -
#!/bin/bash #!/bin/bash
cd ./pb_utils/pb_submitter cd /mnt/pb_utils/pb_submitter
./build.sh ./build.sh
cd - cd -
...@@ -17,7 +17,21 @@ to build: ...@@ -17,7 +17,21 @@ to build:
apt update apt update
apt-get install -y fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison apt-get install -y fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison
cd /mnt 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 # run the build kernel with the created rootfs
......
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment