1998 Commits

Author SHA1 Message Date
Sebastian Huber
38e1610af2 if_atsam: Fix interface stop
Close #4652.
2022-05-11 16:05:46 +02:00
Sebastian Huber
8039d70d94 if_atsam: Support transmit bpf
Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
5c4ac7a917 if_atsam: Do not use rtems_bsdnet_newproc()
Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
202502a397 if_atsam: Support IFCAP_VLAN_HWTAGGING
This is required to enable checksum offload for vlan interfaces.

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
62fc2b6a03 if_atsam: Optimize receive
Do not use the interface mutex in the receive loop.  Avoid multiple
reads of DMA descriptor words.  Use a compile-time constant for the
receive DMA descriptor count to simplify calculations.

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
6be24bd16a if_atsam: Optimize transmit
Use the transmit interface handler to avoid a transmit task/interrupt.
Use a compile-time constant for the transmit DMA descriptor count to
simplify calculations.

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
3150b37022 if_atsam: Add multicast support
Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
f4efcbfda5 if_atsam: Fix start/stop of interface
Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
339ba3dd9f if_atsam: Fix interrupt setup
The interrupt is enabled by rtems_interrupt_handler_install().

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
5b62a8bfa1 if_atsam: Do not disable the Ethernet CRC
The Ethernet CRC and padding must be always generated by the MAC.

Update #4652.
2022-05-11 16:05:26 +02:00
Sebastian Huber
c58bb6095a if_atsam: Enable all capabilities
Update #4652.
2022-05-11 16:05:25 +02:00
Sebastian Huber
73c764a70e if_atsam: Fix warnings
Update #4652.
2022-05-11 16:05:25 +02:00
Sebastian Huber
211c5ed82c pf02: Fix shell envirionment initialization
Close #4654.
2022-05-11 15:23:41 +02:00
Frank Kühndel
7a12651b60 libbsd: Add TFTP filesystem to test media01
How test media01 can be executed is described in section
*Qemu and Networking* of the README.md at the top of the
rtems-libbsd GIT repository.

When connected via `telnet` with the RTEMS shell of the
media01.exe test executed by QEMU, one can list the filesystems
available for mounting:

TLNT [/] # mount -L
File systems: / dosfs tftpfs

The list will contain `tftpfs`.  The filesystem can be mounted
as in the following example:

TLNT [/] # mkdir /tftp
TLNT [/] # mount -t tftpfs -o verbose "" /tftp

A TFTP server is needed to use this filesystem.  The simplest way
would be to run such a server on the host machine and open the
firewall for the TFTP protocol (port 69) on the TAP device used.
Files can then be downloaded using the usual shell commands
as in the following example:

TLNT [/] # cat /tftp/169.254.1.1:hello.txt

Uploading is also possible provided the TFTP server supports it,
for example:

TLNT [/] # cp /etc/dhcpcd.duid /tftp/169.254.1.1:myfile
2022-04-25 16:21:52 +02:00
Heinz Junkes
878713ba45 if_mve: Add MV643XX Ethernet driver
Close #4345.
2022-03-07 10:53:16 +01:00
Sebastian Huber
769c5b0d99 libbsd.py: Fix addition of plain text files
The addPlainTextFile() was renamed to addPlainTextFiles() in commit
cd931b50d9febe8fe7ee890df1c83549d7acfe40.
2022-03-07 09:04:55 +01:00
Christian Mauderer
0b30f38951 ipsec-tools: Reduce allocated buffer size
By default, pfkey allocates a 2MB buffer that is used for SPD entries.
This size is a good choice for a server system where a lot of clients
should be handled. But on our embedded systems, an application with that
much clients is unlikely and 2MB is a lot of space. So reduce that to
the default value of 128kB which should be enough for a small number of
ipsec connections.

See https://bugzilla.redhat.com/show_bug.cgi?id=607361 for more details
why the upstream project originally increased the size.

If someone really needs a bigger size, there is a option in the
configuration file of pfkey called `pfkey_buffer` that can overwrite
this value.

Closes #4621
2022-02-24 10:20:12 +01:00
Sebastian Huber
1b6529ee94 rtems-bsd-program.h: Remove stray ';' 2022-02-23 15:57:30 +01:00
Sebastian Huber
cd931b50d9 builder.py: Fix addition of plain text files 2022-02-23 15:23:46 +01:00
Sebastian Huber
853e53dfdc CONTRIBUTING: Clarify white space changes 2022-02-15 14:58:27 +01:00
Sebastian Huber
0c3609ef16 openssl02: Add missing include 2022-02-15 14:58:24 +01:00
Christian Mauderer
0b883f311e ppp: Fix transmitting data
The pppstart expected that a driver write would somehow magically
process all data passed to the write function. Because ppp disables all
buffering that originally has been in termios, that assumption is not
true for all but polled drivers.

With this patch, the pppstart now gets and processes the feedback that
is returned from the driver via rtems_termios_dequeue_characters.

Update #4493
2022-02-10 09:15:58 +01:00
Kinsey Moore
19d9fde14a Import arm64 in_cksum.h correctly
When this file was brought in, it came from the wrong location or
freebsd-org hash. This corrects the file such that freebsd-to-rtems.py
runs cleanly.
2021-12-16 08:53:26 -06:00
Kinsey Moore
9d65f34b75 waf_libbsd: Fix typo in previous patch
There was a typo in the patch that added the HAVE_<LIBRARY> definition
that prevented "./waf configure" from succeeding. This adds the missing
character.
2021-10-08 09:05:43 -05:00
Kinsey Moore
17685d0e50 waf_libbsd: Account for library check results
Conditionally compiled tests (consisting only of debugger01) were not
compiling as expected when libdebugger was present. This appears to have
occurred during the transition from header detection or due to an
intervening change in the waf internal libraries. The result of
check_cc() is the only location this information is reported, so library
checks now set HAVE_<LIBRARY> as appropriate when the library is found
so existing code for header configuration correctly recognize that a
library is present.
2021-10-06 08:36:08 -05:00
Christian Mauderer
d36d545d16 imx: Remove ccm functions alredy defined in RTEMS
The imx_ccm_*_hz are all defined in RTEMS. So don't duplicate them in
libbsd. Otherwise some applications get linker errors.

Update #3869
2021-09-02 08:45:31 +02:00
Gedare Bloom
8f870a3593 aarch64/nexus: add GEM definitions for Versal 2021-06-25 13:02:38 -06:00
Christian Mauderer
2c1f61133e builder.py: Only disable tests if they are there
For checking the dependencies, the tests are removed. But if the tests
are not enabled at all, that triggers a python exception.
2021-06-16 11:33:05 +02:00
Christian Mauderer
b45e44eabb racoon: Fix build with current toolchain
During some newlib version, the _types_fd_set has been replaced with
just fd_set.
2021-06-16 11:32:55 +02:00
Sebastian Huber
7e711918f7 README: Mention SMP requirements 2021-06-16 07:38:00 +02:00
Sebastian Huber
df8f5fc876 EPOCH(9): Fix epoch call and drain
Since the epoch call callbacks may lock/unlock a mutex the callbacks must be
called from within thread context with thread dispatching enabled.  Use thread
pinning to ensure that the calling thread stays on the right processor.  Use
the interrupt server to ensure the thread context for the epoch drain.
2021-06-11 08:39:26 +02:00
Sebastian Huber
fb6a312bd6 EPOCH(9): Use PER_CPU_DATA_NEED_INITIALIZATION()
Use the PER_CPU_DATA_NEED_INITIALIZATION() macro if necessary to request an
initialization of the per-CPU data.
2021-06-10 10:07:57 +02:00
Jan Sommer
5b82fcf06a i386: Remove unneeded include header files 2021-06-07 10:39:46 +02:00
Jan Sommer
d5d7e54579 waf_libbsd.py: Apply path-mappings to header-paths 2021-06-07 10:37:52 +02:00
Ryan Long
5e7ef1252b libbsd nfs.c: Change filesystem utime_h handler to utimens_h
Changed nfs_utime() to nfs_utimens(), changed the arguments to use
a timespec array instead of individual variables for access and
modified time.

Updates #4400
2021-05-28 14:28:20 -05:00
Christian Mauderer
e474ada48a ipsec-tools/pfkey: Fix socket leak
setkey uses pfkey_open to open a socket. But setkey doesn't close the
socket.

The libipsec functions are used only by user space applications (setkey
and racoon). Adding the wrapper for socket makes sure that the opened
socket is registered and closes if the application exits.

Fixes #4405
2021-05-11 08:42:44 +02:00
G S Niteesh Babu
5251e0c816 iicbus/rtems-i2c.c: Add rtems,path as an additional bus path
Adds "rtems,path" as an additional bus path for the i2c driver.
Previously the bus path was provided in "rtems,i2c-path" property
only.
2021-04-22 18:45:50 +02:00
Christian Mauderer
829afafbcb st-sdmmc: Handle short not cache aligned buffers
Possible data sources for SD driver:

- mmc_sd_switch():
    - length: 64 byte;
    - buffer on stack
- mmc_test_bus_width():
    - length: 4 or 8 byte
    - buffer in program memory or on stack
- mmc_app_send_scr():
    - length: 8 byte
    - buffer from device ivar structure
- mmc_app_sd_status():
    - length: 64 byte
    - buffer from device ivar structure
- mmc_send_ext_csd():
    - length: MMC_EXTCSD_SIZE = 512
    - buffer from device ivar structure
- rtems_bsd_mmcsd_disk_read_write():
    - length: depends on read
    - buffer from rtems_blkdev buffer -> already aligned
- mmcsd_ioctl_cmd():
    - length: depends on call
    - buffer malloced, not aligned -> patched in RTEMS

So the problematic buffers are only the ones up to 512 bytes. Copy these data
into a buffer to avoid that problem.
2021-04-19 09:03:40 +02:00
Christian Mauderer
8aa3ddfbd7 MMCSD: Use cache aligned alloc for ioctl
Some drivers can't easily work with buffers that are not cache aligned
and have an arbitrary length. Therefore use an aligned malloc instead.
2021-04-19 09:03:37 +02:00
Vijay Kumar Banerjee
9b9a976847 Revert "Import telnetd from RTEMS repository"
This reverts commit 1b07480ddc93c10777eff5072e7621ed0c96d30c.
2021-04-13 12:16:50 -06:00
Vijay Kumar Banerjee
1b07480ddc Import telnetd from RTEMS repository
The files have been taken from RTEMS repository with head commit at
bd9e45d91f77657445400bc2c814f251c9e37cef
2021-04-07 19:15:51 -06:00
Christian Mauderer
5e175b5f74 STM32H7: Fix SDMMC build for all other BSPs 2021-04-01 15:51:28 +02:00
Christian Mauderer
1bb4a56e4d STM32H7: Add SDMMC driver
Update #4372
2021-04-01 09:05:53 +02:00
Christian Mauderer
d7bdff489d testsuite/media01: Add pattern test
Update #4372
2021-04-01 09:05:46 +02:00
Christian Mauderer
6064dbfcc4 testsuite/media01: Enable md5 command
Update #4372
2021-04-01 09:05:39 +02:00
Vijay Kumar Banerjee
c66e527ab7 libbsd.py: Build i2c shell command 2021-03-31 16:51:15 -06:00
Christian Mauderer
7afe0ba8f3 ping6: Honor file descriptor maximum
This is basically the same as the patch for ping.

Update #4360
2021-03-26 14:07:06 +01:00
Christian Mauderer
a7273c0704 racoon/session: Honor file descriptor maximum
Dynamically allocate a big enough file descriptor set for select(). A
better solution would be to use kqueue() instead of select().

Update #4360
2021-03-26 14:06:53 +01:00
G S Niteesh Babu
3cdf289424 arm/ti/ti_pinmux: Remove TI pinmux driver
The TI driver has been moved to RTEMS so the driver can be removed
from libBSD.

The following files have been removed from libBSD and moved to
RTEMS.
1) ti/am335x/am335x_scm_padconf.c
2) ti/am335x/am335x_scm_padconf.h
3) ti/ti_pinmux.c
4) ti/ti_pinmux.h

Update #3784
2021-03-21 12:35:04 +01:00
Moyano, Gabriel
aee7b9291c ehci_pci: Add to build system
Updates #4264
2021-03-08 17:46:27 +01:00