-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add features for device driver selection
- Loading branch information
1 parent
e9517d4
commit ef35f47
Showing
16 changed files
with
119 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,42 @@ jobs: | |
- name: Build c/redis | ||
run: make ARCH=${{ matrix.arch }} A=apps/c/redis SMP=4 | ||
|
||
build-apps-for-other-platforms: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
components: rust-src | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-binutils | ||
version: latest | ||
use-tool-cache: true | ||
- uses: ./.github/workflows/actions/setup-musl | ||
with: | ||
arch: x86_64 | ||
|
||
- name: Build helloworld for x86_64-pc-oslab | ||
run: make PLATFORM=x86_64-pc-oslab A=apps/helloworld | ||
- name: Build net/httpserver for x86_64-pc-oslab | ||
run: make PLATFORM=x86_64-pc-oslab A=apps/net/httpserver APP_FEATURES=axstd/driver-ixgbe | ||
- name: Build c/iperf for x86_64-pc-oslab | ||
run: make PLATFORM=x86_64-pc-oslab A=apps/c/iperf APP_FEATURES=axstd/driver-ixgbe,axstd/driver-ramdisk | ||
- name: Build c/redis for x86_64-pc-oslab | ||
run: make PLATFORM=x86_64-pc-oslab A=apps/c/redis APP_FEATURES=axstd/driver-ixgbe,axstd/driver-ramdisk SMP=4 | ||
|
||
- name: Build helloworld for aarch64-raspi4 | ||
run: make PLATFORM=aarch64-raspi4 A=apps/helloworld | ||
- name: Build fs/shell for aarch64-raspi4 | ||
run: make PLATFORM=aarch64-raspi4 A=apps/fs/shell APP_FEATURES=axstd/driver-bcm2835-sdhci | ||
|
||
build-apps-for-std: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
test_one "SMP=4 LOG=info" "expect_info_smp4_fifo.out" | ||
test_one "SMP=4 LOG=info APP_FEATURES=sched_rr" "expect_info_smp4_rr.out" | ||
test_one "SMP=4 LOG=info APP_FEATURES=axstd/sched_rr" "expect_info_smp4_rr.out" | ||
rm -f $APP/*.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,5 @@ irq | |
multitask | ||
fs | ||
net | ||
use-ramdisk | ||
pipe | ||
epoll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
test_one "LOG=info BLK=y" "expect_info.out" | ||
test_one "LOG=info BLK=y" "expect_info_again.out" | ||
test_one "LOG=info BLK=y APP_FEATURES=use-ramdisk" "expect_info_ramdisk.out" | ||
test_one "LOG=info BLK=y APP_FEATURES=axstd/driver-ramdisk" "expect_info_ramdisk.out" | ||
rm -f $APP/*.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,15 @@ | ||
# How to run arceos with ixgbe NIC? | ||
|
||
First, you need to enable a new network feature and comment out the existing feature in `modules/axruntime/Cargo.toml`: | ||
|
||
```toml | ||
# net = ["alloc", "paging", "axdriver/virtio-net", "dep:axnet"] | ||
net = ["alloc", "paging", "axdriver/ixgbe", "dep:axnet"] # Ixgbe | ||
``` | ||
|
||
Additionally, you also need to specify the platform that owns this network card. For example, we defined a toml file named x86_64-pc-oslab under the platforms directory to describe the platform characteristics. | ||
You need to specify the platform that owns this network card. For example, we defined a toml file named `x86_64-pc-oslab`` under the platforms directory to describe the platform characteristics. | ||
|
||
You can use the following command to compile an 'httpserver' app application: | ||
|
||
```shell | ||
make A=apps/net/httpserver ARCH=x86_64 PLATFORM=x86_64-pc-oslab NET=y | ||
make A=apps/net/httpserver PLATFORM=x86_64-pc-oslab APP_FEATURES=axstd/driver-ixgbe | ||
``` | ||
|
||
You can also use the following command to start the iperf application: | ||
|
||
```shell | ||
make A=apps/c/iperf ARCH=x86_64 PLATFORM=x86_64-pc-oslab NET=y BLK=y | ||
``` | ||
make A=apps/c/iperf PLATFORM=x86_64-pc-oslab APP_FEATURES=axstd/driver-ixgbe,axstd/driver-ramdisk | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters