RTEMS | Draft: bsps/i386/pc386: add probe for Kvaser PCICan4, 2, 1 and CTU CAN FD CAN controllers (!1578)

Pavel Pisa (@ppisa) gitlab at rtems.org
Thu Nov 12 23:15:42 UTC 2026




Pavel Pisa commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1578#note_162494


If somebody ha interest to test what I have made working then this is QEMU command line used
```
qemu-system-x86_64 -enable-kvm -kernel $APP_BINARY \
      -vga cirrus \
      -netdev user,id=n1 -device i82557b,netdev=n1 \
      -append "--console=/dev/com1" \
      -serial stdio \
      -object can-bus,id=canbus0-bus \
      -object can-host-socketcan,if=can0,canbus=canbus0-bus,id=canbus0-socketcan \
      -device kvaser_pci,canbus=canbus0-bus \
      -device kvaser_pci,canbus=canbus0-bus \
      -device ctucan_pci,canbus0=canbus0-bus,canbus1=canbus0-bus \
```
The system has been build by
```
#!/bin/sh

MY_DIR="$(cd "$(dirname "$0")" ; pwd -L )"

RTEMS_DIR=../../../git/rtems

if true ; then

$RTEMS_DIR/waf bspdefaults --rtems-bsps=i386/pc686 -t "$RTEMS_DIR" -o "$MY_DIR" --prefix "/opt/rtems/7" >config.ini || exit 1

mv config.ini config.ini.default
sed <config.ini.default >config.ini \
  -e 's/^RTEMS_POSIX_API .*$/RTEMS_POSIX_API = True/' \
  -e 's/^BSP_ENABLE_COM1_COM4 .*$/BSP_ENABLE_COM1_COM4 = True/' \
  -e 's/^USE_COM1_AS_CONSOLE .*$/USE_COM1_AS_CONSOLE = True/' \
  -e 's/^BSP_ENABLE_VGA .*$/BSP_ENABLE_VGA = True/' \
  -e 's/^USE_VGA .*$/USE_VGA = True/' \
  -e 's/^USE_VBE_RM .*$/USE_VBE_RM = False/' \
  -e 's/^USE_CIRRUS_GD5446 .*$/USE_CIRRUS_GD5446 = False/' \

#  -e 's/^RTEMS_SMP .*$/RTEMS_SMP = True/' \
#  -e 's/^BSP_CONSOLE_MINOR .*$/BSP_CONSOLE_MINOR = 0/' \

fi

$RTEMS_DIR/waf configure -t "$RTEMS_DIR" -o "$MY_DIR" --rtems-config "$MY_DIR/config.ini" --prefix "/opt/rtems/7" || exit 1
$RTEMS_DIR/waf -v || exit 1
$RTEMS_DIR/waf install || exit 1
```
The CAN test code can be found in https://gitlab.fel.cvut.cz/otrees/rtems/rtems-canfd

I have run successfully code even on an real old x86 32-bit system with real Kvaser PCICan4 board with original SJA1000 chips.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1578#note_162494
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-2xrehm3bsrbddnvuo7w3l7u16-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261112/80473c0c/attachment-0001.htm>


More information about the bugs mailing list