Edson Brandi
87e7742451
Specify FreeBSD 14.3 release branch in git clone commands
...
Updated all git clone commands for the FreeBSD source repository to
explicitly checkout the releng/14.3 branch. This ensures readers are
working with FreeBSD 14.3 Release source code, which matches the
version used throughout the book examples.
Changed from:
git clone https://git.freebsd.org/src.git /usr/src
To:
git clone -b releng/14.3 https://git.freebsd.org/src.git /usr/src
This prevents confusion from version mismatches and ensures all kernel
module examples compile and function as documented.
2025-11-07 22:17:40 +00:00
Edson Brandi
c7c03a1da2
Add Chapter 3 shell scripting examples
...
Add comprehensive shell scripting examples covering fundamental concepts:
- Basic scripts: hello.sh, vars.sh, status.sh
- Control flow: case.sh, loops.sh
- Functions and debugging: functions.sh, debug_demo.sh
- File handling: list_files variants (POSIX, bash, exec approaches)
- Practical utilities: backup.sh, organize_downloads.sh
- Advanced topics: IFS handling, temporary file management
These examples demonstrate portable shell scripting practices for
FreeBSD driver development workflows.
2025-11-07 22:00:05 +00:00
Edson Brandi
712daf6c49
Fix subshell variable scope issue in file counting scripts
...
The count variable was not being updated because the while loops were
running in subshells created by the pipe operator. Variable assignments
in subshells don't affect the parent shell, causing count to remain 0.
Changes:
- list_files.sh: Changed from pipe to here-document with command
substitution to keep the while loop in the main shell
- list_files_bash.sh: Changed from pipe to process substitution using
< <(...) syntax to avoid subshell creation for the while loop
Both scripts now correctly display the total number of files found.
2025-11-07 21:53:51 +00:00
Edson Brandi
ba961a1fee
Added chapter 2 source file for hello_world kernel module
2025-11-07 20:56:04 +00:00
Edson Brandi
66c0446388
Fixed minor errors found during an adhoc review
2025-11-07 18:42:06 +00:00
Edson Brandi
920d4fa330
Adjusted the Wrapping up Sections to better reflect the actual chapter content after the adition of new section about shell portability
2025-11-05 21:46:40 +00:00
Edson Brandi
b001b9aa28
Update chapter-03.md to fix wrapping up section position
...
Adjusted the position of wrapping up section for the shell section.
2025-11-04 23:10:37 +00:00
Edson Brandi
f9ba50bc19
Merge pull request #6 from johnholloway77/feature/shell-portability
...
Incorporated a section on shell portability. Thank you john for the contribution
2025-11-04 23:07:17 +00:00
johnholloway77
98204d3d9f
incorporated section on shell portability
2025-11-04 14:53:47 -07:00
Edson Brandi
1c7c50ef70
docs: add BUILD-README for FreeBSD Device Drivers book build system
...
Add comprehensive build documentation covering:
- Ubuntu 24.04 installation prerequisites
- Pandoc 3.0+ and LaTeX setup instructions
- Eisvogel template configuration
- Font installation (system, Windows, LaTeX, CJK)
- HTML5 and PDF generation guidelines
- Troubleshooting and known issues
- Code formatting examples for C, shell, and makefiles
2025-11-04 00:36:42 +00:00
Edson Brandi
9c9b70b8ec
Clarify testing instructions in README
...
Updated instructions for testing changes to include script for generating PDF/EPUB.
2025-11-04 00:12:08 +00:00
Edson Brandi
f4c2a92c61
Merge pull request #5 from johnholloway77/feature/at-command-revision
...
Added instructions for at.allow
2025-11-03 23:58:30 +00:00
johnholloway77
b6605cc603
Added instructions for at.allow
2025-11-03 16:51:04 -07:00
Edson Brandi
cf61c0ff27
Fixed the script to solve the issue reported at https://github.com/ebrandi/FDD-book/issues/2 by johnholloway77
...
THis fix make the script fully POSIX-compliant for FreeBSD /bin/sh
Replace bash-specific `read -d ''` with tmpfile approach.
The -d option is not available in POSIX sh, causing the script
to fail on FreeBSD systems.
- Use tmpfile=$(mktemp) instead of null-delimited pipe
- Add trap for cleanup
- Remove -print0 and read -d '' options
- Add empty filename safety check
Fixes: read: Illegal option -d
2025-11-03 22:55:24 +00:00
Edson Brandi
915fb8df92
docs(book): add Chapter 6 draft (Anatomy of a FreeBSD Driver)
...
Adds the full draft of Chapter 6. This chapter has had only a single
review so far; readers should expect further edits and refinements
before the final book release.
Known issue:
- In the generated PDF, some code blocks appear before the section
titles they belong to. This seems to be a Pandoc rendering quirk.
I’ll investigate and fix later; for now, treat the Markdown as the
source of truth.
No functional changes to earlier chapters.
2025-11-01 16:37:18 +00:00
Edson Brandi
c797046ae2
Fixed markdown issue that was generating error in pdf conversion, i missed some lines in the previous commit
2025-10-27 20:49:34 +00:00
Edson Brandi
8388fe50dd
Fixed markdown issue that was generating error when being converted to pdf file. Thank you Isabelle Gonçalves for catching that bug!
2025-10-27 20:32:09 +00:00
Edson Brandi
87cfb19c2a
fixed chapter 5 table of content formating
2025-10-14 19:36:52 +01:00
Edson Brandi
aecb21e649
Moving chapter 6 to draft stage
2025-10-13 23:35:48 +01:00
Edson Brandi
72616ac949
Adjust to generate the .pdf and .epub drafts including the new Chapter 5
2025-10-13 23:21:30 +01:00
Edson Brandi
8e54fdc2bd
Added the content for chapter 5, september was a hetic month at work and i had very little time to write...
2025-10-13 23:04:49 +01:00
Edson Brandi
b497957d9a
Add scripts to generate the PDF and epub book files
2025-08-31 03:36:05 +01:00
Edson Brandi
5e9d9147d1
Fixing markdown to convert to pdf
2025-08-30 22:30:50 +01:00
Edson Brandi
81498906fe
add chapter description to chapter header
2025-08-30 13:18:53 +01:00
Edson Brandi
a76643c253
Chapter 4 Finished, starting chapter 5
2025-08-30 13:12:51 +01:00
Edson Brandi
2e9165ae47
Progressing with chapter 4...
2025-08-29 00:07:11 +01:00
Edson Brandi
fd69335cc9
Added Struct and Typedef Section to Chapter 4
2025-08-28 00:01:07 +01:00
Edson Brandi
be051d9f51
Added the section about Arrays and Strings to chapter 4
2025-08-26 21:32:22 +01:00
Edson Brandi
bca5a7bb43
Progressing with chapter 4 content, finished section about pointers.
2025-08-25 23:26:01 +01:00
Edson Brandi
3320ee1a92
progressing chapter 4 content about pointers
2025-08-25 17:25:28 +01:00
Edson Brandi
14cba2419e
Adding chapter 1 content
2025-08-24 13:52:06 +01:00
Edson Brandi
74d65e79f0
Fix images urls to work in github and project site
2025-08-24 00:44:08 +01:00
Edson Brandi
b925e7223a
Adding the content for chapter 2
2025-08-24 00:41:03 +01:00
Edson Brandi
19234d79fd
Adding images for chapter 2
2025-08-24 00:04:11 +01:00
Edson Brandi
c7c27ffb17
adding description to the .md file header
2025-08-23 17:03:44 +01:00
Edson Brandi
db2c220017
fixing typos...
2025-08-23 16:52:39 +01:00
Edson Brandi
a4af37ac03
Adding content for chapter 3, and small typo fix in chapter 4
2025-08-23 16:34:36 +01:00
Edson Brandi
10db731875
Progressing chapter 4, added Pointers and Functions and Pointers and Arrays
2025-08-21 20:47:07 +01:00
Edson Brandi
24e6a0970c
Progressing chapter 4, added the topic about Declaring and Using Pointers...
2025-08-21 00:15:47 +01:00
Edson Brandi
4534b904e0
Progressing chapter 4 to add first topic about pointers, and also fixing double quotes and single quotes to have a standard across the chapter
2025-08-19 01:22:24 +01:00
Edson Brandi
9187c98bf1
Progressing chapter 4, finished section about functions - Parameters Are Copies
2025-08-15 16:53:41 -03:00
Edson Brandi
7dde5c3a9c
typo fix
2025-08-14 19:15:31 -03:00
Edson Brandi
c1c53570e2
progressing with chapter 4...
2025-08-14 19:13:23 -03:00
Edson Brandi
0b9063510a
progressing chapter 4...
2025-08-13 15:34:39 -03:00
Edson Brandi
b1e26a7eb4
progressing chapter 4, added a read example for fucntion prototype...
2025-08-12 16:35:20 -03:00
Edson Brandi
4bd3354701
progressing woth chapter 4, added Functions (prototype)...
2025-08-11 22:32:05 -03:00
Edson Brandi
294ac7feed
small update to last date updated
2025-08-10 18:08:04 -03:00
Edson Brandi
5d92c208b8
progressing with C Functions section...
2025-08-10 17:41:57 -03:00
Edson Brandi
26342f022f
Adjusting markdown tags to specify C language for code blocks
2025-08-10 16:50:31 -03:00
Edson Brandi
c7be15f162
fixing markdown tags
2025-08-10 16:33:42 -03:00