Add Alpine Linux support for Posix/Linux and FreeRTOS+TCP demos

Đang mở
#1,387 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, linux
Lĩnh vực
embedded-iot

Hướng nghiên cứu

Start by locating the Posix/Linux simulator and FreeRTOS+TCP Echo Posix demo sources, then check their build instructions and Alpine package requirements. Add the musl-required POSIX headers, provide Alpine setup guidance for musl-dev and libslirp-dev, and verify both demos build and SLIRP networking works on Alpine.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement feature request help wanted

Description

The Posix/Linux simulator demo and the FreeRTOS+TCP Echo Posix demo currently fail to build and run on Alpine Linux due to musl‑specific header requirements and missing SLIRP development packages.

Problems observed
  • Compilation errors on Alpine due to missing POSIX types (struct timeval, fd_set, select) because musl does not implicitly include <sys/time.h> or <sys/select.h>.
  • Build failure when linking the TCP Echo demo because libslirp-dev is not installed by default on Alpine.
  • Network initialization succeeds under SLIRP, but the demos do not document Alpine support or required dependencies.
  • No setup script or guidance exists for Alpine users.
Why this matters

Alpine Linux is widely used for:

  • lightweight development containers
  • CI environments
  • embedded Linux systems
  • musl‑based toolchains

Supporting Alpine improves portability and ensures the Posix/Linux demos work across common Linux distributions.

Requested enhancements
  • Add missing musl‑required includes to Posix/Linux demo sources.
  • Add a setup script for Alpine (musl-dev, libslirp-dev).
  • Update documentation to mention Alpine support and required packages.
  • Ensure FreeRTOS+TCP Echo Posix demo builds cleanly under Alpine.
  • Validate SLIRP networking behavior on musl systems.
Ngôn ngữ chính
C
Star
8k
Fork
2.1k
Merge trung bình
18 ngày 1 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FreeRTOS/FreeRTOS

Tất cả issue của FreeRTOS/FreeRTOS

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.