Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
13cfaa0
- Changed init_stage2 from noreturn to normal function
Dreaded-Gnu Jul 21, 2025
e2e2869
- Ported bunch of util functions from sd server to hcd server
Dreaded-Gnu Jul 21, 2025
a120622
- Replaced hardcoded 0 in emmc by define
Dreaded-Gnu Jul 21, 2025
43ef57b
- First iteration of raspi hcd server currently setting up dwhci done
Dreaded-Gnu Jul 21, 2025
2900a46
- Generated libusb header with a subset of usb structures
Dreaded-Gnu Jul 21, 2025
ce3b172
- Started working on usbd server by creating empty rpc_init and usbd_…
Dreaded-Gnu Jul 22, 2025
d589a43
- Added virt_flush_complete call before detaching shared memory to en…
Dreaded-Gnu Jul 22, 2025
01dd6fd
- Commented out printing within sd read and write to fasten things a …
Dreaded-Gnu Jul 22, 2025
f2b2da1
- Added device path constant for usbd
Dreaded-Gnu Jul 22, 2025
62aa797
- Removed some comments after endif to keep code the same
Dreaded-Gnu Jul 22, 2025
f1420e6
- Extended libusb_device_t by pids for specific handlers
Dreaded-Gnu Jul 22, 2025
c2468dd
- Moved usbd types below the usb defines
Dreaded-Gnu Jul 23, 2025
f101ccc
- Specified output in kernel rpc data a bit
Dreaded-Gnu Jul 25, 2025
39bd9d5
- Deactivated output of libusb
Dreaded-Gnu Jul 26, 2025
fa03091
- Added third hub port control enum entry for no power switching supp…
Dreaded-Gnu Jul 26, 2025
42499fb
- Added generic rpc defines
Dreaded-Gnu Jul 26, 2025
32cc9fa
- Created plain hid rpc handlers
Dreaded-Gnu Jul 26, 2025
dbabeb5
- Removed osproc and fixed warning in boot.nim
Dreaded-Gnu Jul 26, 2025
e7b32f7
- Added no_sanitize kernel-address to __bootstrap
Dreaded-Gnu Jul 26, 2025
843e3ed
- Added own list handling for kasan
Dreaded-Gnu Jul 26, 2025
f9ae90f
- Removed v8 32 bit linker scripts
Dreaded-Gnu Jul 26, 2025
75ea370
- Fixed .gdbinit-qemu and .gdbinit-qemu-user loading wrong dtb files
Dreaded-Gnu Jul 26, 2025
daee5da
- Prefixed dlmalloc functions with no sanitize for kernel-address
Dreaded-Gnu Jul 28, 2025
5963709
- Added constant for hid device path
Dreaded-Gnu Jul 29, 2025
e3419a1
- Added avl dependency to hid
Dreaded-Gnu Jul 29, 2025
65339ea
- Added options to enable ubsan and / or asan instead of binding it t…
Dreaded-Gnu Jul 30, 2025
38ae9cb
- Added hid enums and structures to usbd
Dreaded-Gnu Aug 2, 2025
7923a42
- Adjusted process replace to use random area for executable instead …
Dreaded-Gnu Aug 2, 2025
0848435
- Fixed hid usage page enum for point and mouse
Dreaded-Gnu Aug 2, 2025
0300f70
- Moved static hid attach functions into hid.c
Dreaded-Gnu Aug 2, 2025
9559c69
- Implemented hid_get_driver within hid library for requesting the dr…
Dreaded-Gnu Aug 2, 2025
5a565b9
- Implemented rpc calls to get application, report and report count
Dreaded-Gnu Aug 2, 2025
8da38ec
- Implemented mask specific interrupt within syscall_interrupt_acquir…
Dreaded-Gnu Aug 10, 2025
ea6d365
- Added constant for keyboard report size
Dreaded-Gnu Aug 10, 2025
eb01dae
- Added descriptor, last poll and buffer also to mouse device structure
Dreaded-Gnu Aug 10, 2025
88c7a14
- Removed types when using auto
Dreaded-Gnu Aug 10, 2025
c6a2e9b
- Some more auto replacements
Dreaded-Gnu Aug 31, 2025
c4432b5
Worked on keyboard device driver
Dreaded-Gnu May 9, 2026
654d9b8
Adjusted copyright header by extending year to 2026
Dreaded-Gnu May 9, 2026
184c5e0
Continuing work on keyboard driver
Dreaded-Gnu May 9, 2026
320b59d
Replaced usb timeout magic number by define
Dreaded-Gnu May 9, 2026
e2dfe34
Enabled all interrupts in dwhci and moved clear of buffer beyond set …
Dreaded-Gnu May 9, 2026
ac49416
Created hcd configuration object and started working on async hcd tra…
Dreaded-Gnu May 10, 2026
00a006e
Created queue in configuration object
Dreaded-Gnu May 10, 2026
8dd3581
- Added out variable to dwhci_queue_add_entry
Dreaded-Gnu May 10, 2026
a32164c
- Fixed some debug output
Dreaded-Gnu May 17, 2026
b41ac64
- Added helper to get active queue entry by channel
Dreaded-Gnu May 17, 2026
c9773c1
- Extended rpc backup by is interrupt flag
Dreaded-Gnu May 18, 2026
0b14ed9
Started work on changing keyboard get report polling to interrupt pol…
Dreaded-Gnu May 18, 2026
991eba3
- Continued working on interrupt polling
Dreaded-Gnu May 19, 2026
d309860
Continued working on interrupt polling
Dreaded-Gnu May 22, 2026
206b6fa
Implemented untestet set_idle and set_report rpc
Dreaded-Gnu May 22, 2026
37697f4
- Added clear of buffer when polling
Dreaded-Gnu May 22, 2026
bf10790
Reduced output of usb drivers
Dreaded-Gnu May 22, 2026
d2e783a
- Extended dwhci queue entry by transfer buffer size and buffer offset
Dreaded-Gnu May 23, 2026
5bc371c
- Moved and renamed hcd rpc
Dreaded-Gnu May 23, 2026
4fb9e29
Extended image generation script
Dreaded-Gnu May 23, 2026
b2c0bb8
- Removed hid_set_idle from hid attach
Dreaded-Gnu May 23, 2026
c61d61b
- Prepared key handler for planned handling of stall
Dreaded-Gnu May 23, 2026
2272ebd
- Changed shared memory from hardcoded 0x1000 to buffer size in hid l…
Dreaded-Gnu May 24, 2026
415cc0d
Some include cleanup and auto usages
Dreaded-Gnu May 24, 2026
1d84c6b
- Copied over tree for managing consoles per process
Dreaded-Gnu May 24, 2026
fdb0346
- Moved command start and kill data into shared memory structure
Dreaded-Gnu May 25, 2026
60af93e
- Rerun cppcheck over project and fixed lots of issues
Dreaded-Gnu May 25, 2026
db412c0
- Added save of attach handler within libusb
Dreaded-Gnu May 25, 2026
d3119d5
- Added new custom rpc for sending input to console
Dreaded-Gnu May 25, 2026
78eb7d2
- Changed key callback to send input to console
Dreaded-Gnu May 25, 2026
1b162d3
- Fixed readme configure commands by setting host correctly. remove e…
Dreaded-Gnu May 25, 2026
96503fd
- Moved servers into from server into bin/server folder
Dreaded-Gnu May 25, 2026
9ac063b
- Removed /dev/tty from terminal
Dreaded-Gnu May 26, 2026
724f2ee
- Extended handler by booleans for stdin, stdout and stderr opened
Dreaded-Gnu May 26, 2026
d1fdc1e
- Removed debug output from queue
Dreaded-Gnu May 26, 2026
8e52dcd
- Some const and auto changes in kernel
Dreaded-Gnu May 27, 2026
c4c0751
- Adjusted rpc return syscall to overwrite active->sync and blocked_d…
Dreaded-Gnu May 27, 2026
e2669cd
- Fixed some memory leaks in mount and partition driver
Dreaded-Gnu May 28, 2026
ebc33e6
- Added check of fgets return after reading user name
Dreaded-Gnu May 28, 2026
39927ff
- Added new defines to usb libraries and servers for error output
Dreaded-Gnu May 28, 2026
d58383b
- Added necessary increase of read_amount when newline was detected s…
Dreaded-Gnu May 28, 2026
e39b936
- Some whitespace fixes
Dreaded-Gnu May 28, 2026
a761dc8
- Enabled debug output for all usb servers
Dreaded-Gnu May 28, 2026
52e794f
- Even more debug printings to all rpc handlers
Dreaded-Gnu May 28, 2026
50eddd3
- Added missing clear out of allocated response to prevent weird content
Dreaded-Gnu May 28, 2026
aad3d36
- Fixed path to dash in passwd file used for image generation
Dreaded-Gnu May 29, 2026
e896eee
- Removed debug output from authentication request handling
Dreaded-Gnu May 29, 2026
fc4e9d7
- Created helper in login shell to build environment string
Dreaded-Gnu May 30, 2026
23d17f8
- Created empty etc profile
Dreaded-Gnu May 30, 2026
2ddae34
- Removed unnecessary databuffer fromdwhci
Dreaded-Gnu May 30, 2026
0f3edc3
- Started deduplicating iomem code by pushing logic into platform lib…
Dreaded-Gnu May 30, 2026
8235c8d
- Changed console rpc from sync write to async write
Dreaded-Gnu May 31, 2026
8180381
- const additions
Dreaded-Gnu May 31, 2026
e2e2d92
- Changed device_info send to vfs where possible to constexpre
Dreaded-Gnu May 31, 2026
9dce4cd
- Reworked iomem perform requests to use shared memory area for poten…
Dreaded-Gnu May 31, 2026
d39492f
- Added more debugging outputs
Dreaded-Gnu Jun 2, 2026
2d34cf8
- Added clear out of shared memory in libusb
Dreaded-Gnu Jun 3, 2026
85d78d3
- Commented out debug and error output in usb related daemons and lib…
Dreaded-Gnu Jun 4, 2026
a3491cd
- Extended list remove item and list remove data by third parameter t…
Dreaded-Gnu Jun 4, 2026
27668d6
- Started adding libvfs containing helpers for servers by moving wait…
Dreaded-Gnu Jun 4, 2026
d3af5f8
- Various fixes after forced upgrade of newlib and gcc
Dreaded-Gnu Jun 4, 2026
85af3a1
- Further cleanup since stdbool was dropped with c23
Dreaded-Gnu Jun 4, 2026
1b28eae
- Replaced manual fopen / fclose by usage of load_ini_path in keymap
Dreaded-Gnu Jun 4, 2026
eeb70db
- Dropped thumb_offset used only in unprivileged entry which isn't ne…
Dreaded-Gnu Jun 5, 2026
fda9835
- Started splitting up usbd functions into single files for async rework
Dreaded-Gnu Jun 5, 2026
8542d2e
- Continued splitting up usbd.c for async rework
Dreaded-Gnu Jun 5, 2026
22572e4
- Moved roothub related code into own file with header
Dreaded-Gnu Jun 5, 2026
8ffa31d
- Moved descriptor related code into own file
Dreaded-Gnu Jun 5, 2026
7b0a92c
- Finished splitting up usbd code into single files
Dreaded-Gnu Jun 5, 2026
859eae7
- Created async ioctl wrapper in usbd
Dreaded-Gnu Jun 5, 2026
4a4d4d1
- Pushed call functions into own files for async rework
Dreaded-Gnu Jun 6, 2026
23fc7d1
- Moved init header out of libusbd and renamed it to usbd
Dreaded-Gnu Jun 6, 2026
2eb3969
- Moved ioctl wrapper into ioctl folder
Dreaded-Gnu Jun 6, 2026
9b08b7d
- Merged back single headers into usbd header
Dreaded-Gnu Jun 6, 2026
712cbe1
- Added duplication of message for dwhci poll / control messages with…
Dreaded-Gnu Jun 6, 2026
5010af7
- Added further missing memset calls to prevent undefined behaviour
Dreaded-Gnu Jun 6, 2026
e2a397b
- Changed not yet implemented rpc of keyboard, mouse, hid and hub to …
Dreaded-Gnu Jun 7, 2026
243d4e6
- Replaced manual device lookup by helper function
Dreaded-Gnu Jun 7, 2026
5988fa2
- Created usbd descriptor get async method calling usbd control messa…
Dreaded-Gnu Jun 7, 2026
895dd0c
- Replaced casted NULL by 0
Dreaded-Gnu Jun 7, 2026
065619f
- Fixed cppcheck paths
Dreaded-Gnu Jun 7, 2026
953098c
- Moved set of include below project so that config.h is always included
Dreaded-Gnu Jun 7, 2026
3144462
- Moved content of libhelper completely into libvfs
Dreaded-Gnu Jun 7, 2026
a11cdeb
- Adjusted control message rpc and get descriptor rpc to set real_res…
Dreaded-Gnu Jun 7, 2026
f5a583e
- Moved libdma include into platform/raspi/iomem
Dreaded-Gnu Jun 7, 2026
487f835
- Replaced free of sequence by iomem_release_mmio_sequence
Dreaded-Gnu Jun 7, 2026
a3e6a2d
- Removed read of product from usbd attach
Dreaded-Gnu Jun 7, 2026
b3ccabb
- Added new iomem_mailbox_release
Dreaded-Gnu Jun 7, 2026
3bfc281
- Prepared usb_attach_device parameters for async rework
Dreaded-Gnu Jun 7, 2026
b888646
- Created descriptor context containing callback and original context
Dreaded-Gnu Jun 7, 2026
4e42245
- Reworked usb stack from synchronous attach to async attach
Dreaded-Gnu Jun 8, 2026
d932071
- Added new attach roothub rpc
Dreaded-Gnu Jun 9, 2026
50f0924
- Blocked switch to wanted thread when it is asynchronous in syscall_…
Dreaded-Gnu Jun 10, 2026
e6a8770
- Removed unnecessary bool casting in rpc syscalls
Dreaded-Gnu Jun 10, 2026
73a3c68
- Added destroy of async data to key rpc as well as origin validation
Dreaded-Gnu Jun 11, 2026
6af4979
- Removed some debug printings from rpc and usbd implementation
Dreaded-Gnu Jun 11, 2026
40c7c31
- Cleaned up original response info from attach context
Dreaded-Gnu Jun 11, 2026
936b1b6
- Fixed defined checks in keyboard attach
Dreaded-Gnu Jun 12, 2026
91638ea
- Added rpc to get enumerating status
Dreaded-Gnu Jun 12, 2026
fb748c5
- Added polling loop to mouse similar to keyboard
Dreaded-Gnu Jun 13, 2026
261a91c
- Some doc block adjustments
Dreaded-Gnu Jun 13, 2026
12280d2
- Created new get timer by process in kernel
Dreaded-Gnu Jun 13, 2026
b7f62fe
- Removed NULL usage in libusb
Dreaded-Gnu Jun 13, 2026
41724c3
- Merged hct_interrupt_poll_t and usb_interrupt_poll_t into one struc…
Dreaded-Gnu Jun 13, 2026
16cc603
- Replaced hcd_submit_interrupt_poll_t by usbd_interrupt_message_t si…
Dreaded-Gnu Jun 14, 2026
7b68435
- Merged hcd structures with usb and usbd structures
Dreaded-Gnu Jun 14, 2026
8a57718
- Changed vfs_wait_for_path from do while to while loop
Dreaded-Gnu Jun 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gdbinit-qemu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set architecture armv7
file build/bolthur/kernel/target/raspi/kernel7_qemu.sym
#add-symbol-file build/bolthur/server/platform/raspi/iomem/iomem
target remote | qemu-system-arm -M raspi2b -cpu cortex-a7 -m 1G -no-reboot -kernel build/bolthur/kernel/target/raspi/kernel7_qemu.img -initrd build-aux/platform/raspi/initrd -dtb config/dts/raspi/bcm2836-raspi-2-b.dtb -drive file=build-aux/platform/raspi/sdcard.img,format=raw -gdb stdio -S
target remote | qemu-system-arm -M raspi2b -cpu cortex-a7 -m 1G -no-reboot -kernel build/bolthur/kernel/target/raspi/kernel7_qemu.img -initrd build-aux/platform/raspi/initrd -dtb config/dts/raspi/bcm2709-raspi-2-b.dtb -drive file=build-aux/platform/raspi/sdcard.img,format=raw -gdb stdio -S
display /10i $pc
#break _vector_undefined_instruction_handler
#c
2 changes: 1 addition & 1 deletion .gdbinit-qemu-user
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

set architecture armv7
file build/bolthur/server/fs/ext/ext
target remote | qemu-system-arm -M raspi2b -cpu cortex-a7 -m 1G -no-reboot -kernel ./build/bolthur/kernel/target/raspi/kernel7_qemu.img -initrd build-aux/platform/raspi/initrd -dtb config/dts/raspi/bcm2836-raspi-2-b.dtb -drive file=build-aux/platform/raspi/sdcard2.img,format=raw -append "coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/storage/sd1 rootfstype=ext2" -gdb stdio -S
target remote | qemu-system-arm -M raspi2b -cpu cortex-a7 -m 1G -no-reboot -kernel ./build/bolthur/kernel/target/raspi/kernel7_qemu.img -initrd build-aux/platform/raspi/initrd -dtb config/dts/raspi/bcm2709-raspi-2-b.dtb -drive file=build-aux/platform/raspi/sdcard2.img,format=raw -append "coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 root=/dev/storage/sd1 rootfstype=ext2" -gdb stdio -S
display /10i $pc
5 changes: 4 additions & 1 deletion .idea/editor.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/kernel.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ SUBDIRS = bolthur
cppcheck:
cppcheck --quiet -UCMC --inline-suppr --enable=all --force \
--platform=$(CPPCHECK_PLATFORM) \
--include=$(CPPCHECK_KERNEL_INCLUDE) \
--project=$(CPPCHECK_KERNEL_PROJECT) \
--include=$(CPPCHECK_KERNEL_INCLUDE) \
-U__CYGWIN__ -U__APPLE__ -U__GNU_VISIBLE -UASSEMBLER_FILE -UVMS \
-v -j4 --force --max-configs=12 \
--check-level=exhaustive
cppcheck --quiet -UCMC --inline-suppr --enable=all --force \
--platform=$(CPPCHECK_PLATFORM) \
--include=$(CPPCHECK_LIBRARY_INCLUDE) \
--project=$(CPPCHECK_LIBRARY_PROJECT) \
--include=$(CPPCHECK_LIBRARY_INCLUDE) \
-U__CYGWIN__ -U__APPLE__ -UVMS -v -j4 --force --max-configs=12 \
--check-level=exhaustive
cppcheck --quiet -UCMC --inline-suppr --enable=all --force \
--platform=$(CPPCHECK_PLATFORM) \
--include=$(CPPCHECK_SERVER_INCLUDE) \
--project=$(CPPCHECK_SERVER_PROJECT) \
--include=$(CPPCHECK_SERVER_INCLUDE) \
-U__CYGWIN__ -U__APPLE__ -UVMS -v -j4 --force --max-configs=12 \
--check-level=exhaustive
cppcheck --quiet -UCMC --inline-suppr --enable=all --force \
--platform=$(CPPCHECK_PLATFORM) \
--include=$(CPPCHECK_APPLICATION_INCLUDE) \
--project=$(CPPCHECK_APPLICATION_PROJECT) \
--include=$(CPPCHECK_APPLICATION_INCLUDE) \
-U__CYGWIN__ -U__APPLE__ -UVMS -v -j4 --force --max-configs=12 \
--check-level=exhaustive

Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kernel

bolthur/kernel project. Copyright (C) 2018 - 2025 bolthur project
bolthur/kernel project. Copyright (C) 2018 - 2026 bolthur project

Supported platforms

Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# kernel

bolthur/kernel project.
_Copyright (C) 2018 - 2025 bolthur project_
_Copyright (C) 2018 - 2026 bolthur project_

## Supported platforms

Expand Down Expand Up @@ -52,8 +52,8 @@ autoreconf -iv
mkdir build
cd build
### configure with one of the following commands
../configure --host arm-raspbi2b_r1-bolthur-eabi --enable-device=raspi2b_r1 --enable-debug --enable-output
../configure --host arm-raspi0_1-bolthur-eabi --enable-device=raspi0_1 --enable-debug --enable-output
../configure --host=arm-raspi2b_r1-bolthur-eabi --enable-device=raspi2b_r1 --enable-output --enable-silent-rules --with-debug-symbols --with-asan --with-ubsan
../configure --host=arm-raspi0_1-bolthur-eabi --enable-device=raspi0_1 --enable-output --enable-silent-rules --with-debug-symbols --with-asan --with-ubsan
```

Possible additional parameters to `--host` and `--enable-device`:
Expand Down Expand Up @@ -108,13 +108,13 @@ Emulation of the kernel project with qemu during development may be done at all

```bash
# raspberry pi zero kernel emulation
qemu-system-arm -M raspi0 -cpu arm1176 -m 512M -no-reboot -serial stdio -kernel ./bolthur/kernel/target/raspi/kernel_qemu.img -initrd ../build-aux/platform/raspi/initrd -dtb ../config/dts/raspi/bcm2708-raspi-zero.dtb -drive file=../build-aux/platform/raspi/sdcard.img,format=raw -append "root=/dev/storage/sd1 rootfstype=ext2" -usb -device usb-mouse -device usb-kbd -s -S
qemu-system-arm -M raspi0 -cpu arm1176 -m 512M -no-reboot -serial stdio -kernel ./bolthur/kernel/target/raspi/kernel_qemu.img -initrd ../build-aux/platform/raspi/initrd -dtb ../config/dts/raspi/bcm2708-raspi-zero.dtb -drive file=../build-aux/platform/raspi/sdcard.img,format=raw -append "root=/dev/storage/sd1 rootfstype=ext2 fbwidth=1280 fbheight=1024" -usb -device usb-mouse -device usb-kbd -device usb-net -s -S

# raspberry pi 2B rev 1 kernel emulation
qemu-system-arm -M raspi2b -cpu cortex-a7 -m 1G -no-reboot -serial stdio -kernel ./bolthur/kernel/target/raspi/kernel7_qemu.img -initrd ../build-aux/platform/raspi/initrd -dtb ../config/dts/raspi/bcm2709-raspi-2-b.dtb -drive file=../build-aux/platform/raspi/sdcard.img,format=raw -append "bcm2708_fb.fbwidth=1024 bcm2708_fb.fbheight=768 root=/dev/storage/sd1 rootfstype=ext2" -usb -device usb-mouse -device usb-kbd -s -S
qemu-system-arm -M raspi2b -cpu cortex-a7 -m 1G -no-reboot -serial stdio -kernel ./bolthur/kernel/target/raspi/kernel7_qemu.img -initrd ../build-aux/platform/raspi/initrd -dtb ../config/dts/raspi/bcm2709-raspi-2-b.dtb -drive file=../build-aux/platform/raspi/sdcard.img,format=raw -append "root=/dev/storage/sd1 rootfstype=ext2 fbwidth=1280 fbheight=1024" -usb -device usb-mouse -device usb-kbd -device usb-net -s -S

# raspberry pi 3B kernel emulation
qemu-system-aarch64 -M raspi3b -cpu cortex-a53 -m 1G -no-reboot -serial stdio -kernel ./bolthur/kernel/target/raspi/kernel8_qemu.img -initrd ../build-aux/platform/raspi/initrd -dtb ../config/dts/raspi/bcm2710-raspi-3-b.dtb -drive file=../build-aux/platform/raspi/sdcard.img,format=raw -append "root=/dev/storage/sd1 rootfstype=ext2" -usb -device usb-mouse -device usb-kbd -s -S
qemu-system-aarch64 -M raspi3b -cpu cortex-a53 -m 1G -no-reboot -serial stdio -kernel ./bolthur/kernel/target/raspi/kernel8_qemu.img -initrd ../build-aux/platform/raspi/initrd -dtb ../config/dts/raspi/bcm2710-raspi-3-b.dtb -drive file=../build-aux/platform/raspi/sdcard.img,format=raw -append "root=/dev/storage/sd1 rootfstype=ext2 fbwidth=1280 fbheight=1024" -usb -device usb-mouse -device usb-kbd -device usb-net -s -S
```

### Debugging
Expand All @@ -132,3 +132,9 @@ The files can be specified by using the parameter `-x`.
```

When starting remote debugging, you need to specify the target, e.g. `target /dev/ttyUSB0` to connect to the running instance. Furthermore, you need to configure the project with option `--enable-debug`.

### Users

Following users are pre generated with image generation:
- `user` with password `user`
- `root` with password `root`
2 changes: 1 addition & 1 deletion bolthur/application/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

ACLOCAL_AMFLAGS = -I ../../build-aux/m4

SUBDIRS = usr
SUBDIRS = bin usr
2 changes: 2 additions & 0 deletions bolthur/application/bin/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

SUBDIRS = login
7 changes: 7 additions & 0 deletions bolthur/application/bin/login/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

AM_CFLAGS = -DPROGRAM_NAME=\"login\"

bin_PROGRAMS = login
login_SOURCES = \
main.c
login_LDFLAGS = -all-static --static
3 changes: 3 additions & 0 deletions bolthur/application/bin/login/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[general]
type=image_root
path=bin
Loading