I'm currently working on a embedded project, and i'm trying to understand if it's possible to have a small /usr/src tree.
This source tree only has to contain the FreeBSD bootloader, kernel, kernel-modules, because the embedded application will replace /sbin/init.
So is is possible to have a...
I wrote a couple of kernel drivers for GPIO devices which code uses a conditional inclusion based on an FDT flag.
I use it for a device definition using either FDT overlays or a device.hints file.
if ((err = rcrecv_fdt_setup_pin(sc)) == 0)
I have just upgraded my system from 12.2-Release to 13.0-Release without any problems. I had a custom kernel set up before and wanted to compile one for the upgraded install too. Obtained relevant /usr/src from git with branch releng/13.0 and configured it using a copy of GENERIC. I then...
I have to use both IPFW and PF sametime in my freebsd 12.2 gateway
normally firewalls follows this order pf => ipfw as you now
i am trying to do this order:
input => ipfw => pf
but i think i cannot change this order without touching kernel level .
when i made some research i found this...
I've added this parameter to /etc/rc.conf :
adding it on the rc.conf file should make the setting permanently,right ? But why,everytime I reboot the PC and I come back to FreeBSD,I should write "kldload i915kms",otherwise Xorg does not start,causing the error...
We have 2 machines on the same LAN that I installed FreeBSD on using the 13.0 Release iso
I then followed the quickstart example in hanbook section 24.5.1, in order to update both machines from source.
After doing so I...
Hello. I'm trying to emulate Freebsd for arm64 on my jetson nano (arm64) using qemu and kvm. This is the script that I'm using :
tunctl -t tap0
ifconfig tap0 up
brctl addif virbr0 tap0
/opt/qemu-5.2.0/build/aarch64-softmmu/./qemu-system-aarch64 -m 2048M -cpu cortex-a57 -M virt --enable-kvm \...
Whenever I try to compile my custom kernel (I have commented out some useless things from GENERIC) I get:
ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC
>>> defined in cam_iosched.o
>>> referenced by cam_iosched.c:1171...
I have a TrueNAS 12.0 server which runs with no GUI. I plugged in Nvidia GTX 1050Ti to it in order to use in ffmpeg. After plugging in pciconf -vl gave me the following output
vgapci0@pci0:2:0:0: class=0x030000 card=0x85d11043 chip=0x1c8210de rev=0xa1 hdr=0x00
I find a consistent problem with my laptop whenever I run cheese, the screen will turn black and I'll look into the logs and get this following message:
Feb 8 21:53:43 Dell kernel: error: [drm:pid12:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung
Feb 8 21:53:43 Dell kernel...
Since its introduction in 2009, the vesa.ko kernel module contains a bug, presumably of the category "use of uninitialized data structures".
This bug prevents the system resuming correctly on systems with nvidia graphics card and using the sc console in text mode.
To build+install a custom...
Hello,I have been trying to get clinfo to display my GPU correctly. Currently it displays:
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No devices found in platform [Clover?]
At first I tried loading the Radeon GPU DRM radeonkms.ko but when I try to load it I get a fatal trap 12 page fault...
I'm trying to build the FreeBSD STABLE-13 kernel, but it errors out in various ways all relating to invocations of kmalloc
I'm running an older version of CURRENT-13
/usr/src/sys/compat/linuxkpi/common/include/linux/string.h:122:11: error: implicit declaration of 'kmalloc'
I cannot compile www/node (and some others) with this error
dtrace: failed to compile script src/v8ustack.d: "/usr/lib/dtrace/psinfo.d", line 93: failed to resolve type kernel`struct thread * for identifier curthread: Unknown type name|
My kernel is compiled with CTF options ...
Hi all, I've spent about a week learning and using the DTrace framework and it has worked fantastic. I have also become increasingly familiar with FreeBSD (specifically the kernel) over the last couple of months, but I realize I might still be unaware about a lot of things, so forgive any...
I'm just starting kernel development ( custom kernels, drivers, patching and etc... ) and i'd like to find a good tutorial of how to setup and environment for FreeBSD Kernel Development. For instance, executing custom code on a live kernel as well as debugging. Will I actually need two machines...
I read a lot about L4 microkernels recently and I found that seL4 is the only kernel that has a formal verification, which sounds pretty impressive. Somebody already ported OpenBSD to L4 many years ago, so it is not impossible to do it with BSD systems. As far as I understand from security and...
Still learning the ins and outs of FreeBSD, so please keep that in mind. :-) I'm happy to read whatever manual that might help with this, but my searches have not turned up anything that is helpful.
I have a server at home running FreeBSD 12.1-RELEASE-p3 GENERIC amd64. It is mainly just...
###Here is the errors I am getting. Below the error is the code I wrote, any help would be incredibly appreciated.!! Thanks!
Can someone explained by I am getting implicit warning for malloc and Malloc_Define, I included the header files. I also would like to know how to fix the errors ...