-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add Milk-V DuoS, an aarch64+riscv64 board #10326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ea1c58f
Add Milk-V DuoS, an aarch64+riscv64 board
lukaszsobala c5b945f
sophgo-sg200x: give our own patches real authorship headers
lukaszsobala b2eb380
sophgo-sg200x: header the arm64 patches that had none
lukaszsobala be1d539
sophgo-sg200x: cut the comment wall in the family include
lukaszsobala 4a85fd9
board: cut the Milk-V Duo S configs to the house format
lukaszsobala 1ada5b3
sophgo-sg200x: follow the tree's release candidate pin
lukaszsobala c521d3c
trim family config comments
lukaszsobala fd96c4e
remove nonexistent package removal from board configs
lukaszsobala b48d5ae
move kernel_comp_addr_r to 0x88000000
lukaszsobala 6cfc6b0
implement a better fip.bin size guard. Unlikely to ever be needed
lukaszsobala fd716bf
address Rabbit's concern
lukaszsobala db9dbf0
address Rabbit's concerns about USB gadget
lukaszsobala 96cd6a2
fix btrfs potential failure
lukaszsobala 8ae6d91
address the easy nitpick comments
lukaszsobala aa3b2ae
reorder board family lines
lukaszsobala 9db1fca
Changes to the Bluetooth service addressing Rabbit's concerns
lukaszsobala 9a8aaba
move the Duo S Bluetooth extension to a proper directory
lukaszsobala 6056fd2
address more of Rabbit's concerns about size
lukaszsobala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Sophgo SG2000 Cortex-A53 single core 512MB SoC headless 1x100MBe SD eMMC WiFi/BT USB2 | ||
| BOARD_NAME="Milk-V Duo S" | ||
| BOARD_VENDOR="milkv" | ||
| BOARDFAMILY="sophgo-sg200x-arm64" | ||
| BOARD_MAINTAINER="lukaszsobala" | ||
| INTRODUCED="2024" | ||
| KERNEL_TARGET="edge,bleedingedge" | ||
| KERNEL_TEST_TARGET="edge" | ||
| BOOT_FDT_FILE="sophgo/sg2000-milkv-duo-s.dtb" | ||
| HAS_VIDEO_OUTPUT="no" | ||
| PACKAGE_LIST_BOARD_REMOVE="snapd cloud-init" # 512MB of RAM | ||
|
|
||
| enable_extension "sophgo-sg200x-aic8800" | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Sophgo SG2000 T-Head C906 single core 512MB SoC headless 1x100MBe SD eMMC WiFi/BT USB2 | ||
| BOARD_NAME="Milk-V Duo S" | ||
| BOARD_VENDOR="milkv" | ||
| BOARDFAMILY="sophgo-sg200x-riscv64" | ||
| BOARD_MAINTAINER="lukaszsobala" | ||
| INTRODUCED="2024" | ||
| KERNEL_TARGET="edge,bleedingedge" | ||
| KERNEL_TEST_TARGET="edge" | ||
| BOOT_FDT_FILE="sophgo/sg2000-milkv-duo-s.dtb" | ||
| HAS_VIDEO_OUTPUT="no" | ||
| PACKAGE_LIST_BOARD_REMOVE="snapd cloud-init" # 512MB of RAM | ||
|
|
||
| enable_extension "sophgo-sg200x-aic8800" |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| verbosity=1 | ||
| console=serial | ||
| earlycon=on | ||
| overlays= |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| verbosity=1 | ||
| console=serial | ||
| earlycon=sbi | ||
| overlays= |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # | ||
| # Please edit /boot/armbianEnv.txt to set supported parameters | ||
| # | ||
|
|
||
| # Scratch space for armbianEnv.txt and for each overlay before it is applied. | ||
| # 0x82300000 is fdtoverlay_addr_r from the vendor U-Boot's distroboot patch: it | ||
| # sits between fdt_addr_r (0x82200000) and pxefile_addr_r (0x82400000), so there | ||
| # is 1MiB for the device tree to grow into and 1MiB of scratch after it. | ||
| setenv load_addr "0x82300000" | ||
| setenv overlay_error "false" | ||
|
|
||
| # Defaults, overridden by armbianEnv.txt below. The Duo S has no display, so the | ||
| # console is serial-only; "both" would add a console=tty1 that never appears. | ||
| setenv rootdev "/dev/mmcblk0p2" | ||
| setenv verbosity "1" | ||
| setenv console "serial" | ||
| setenv rootfstype "ext4" | ||
| setenv earlycon "off" | ||
|
|
||
| test -n "${distro_bootpart}" || distro_bootpart=1 | ||
|
|
||
| echo "Boot script loaded from ${devtype} ${devnum}:${distro_bootpart}" | ||
|
|
||
| if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}armbianEnv.txt; then | ||
| load ${devtype} ${devnum}:${distro_bootpart} ${load_addr} ${prefix}armbianEnv.txt | ||
| env import -t ${load_addr} ${filesize} | ||
| fi | ||
|
|
||
| if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=tty1"; fi | ||
| if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttyS0,115200 ${consoleargs}"; fi | ||
|
|
||
| # Two spellings, because the two architectures need different ones and share | ||
| # this script. The C906 has no memory-mapped earlycon before the SBI console is | ||
| # up, so RISC-V wants earlycon=sbi; on the Cortex-A53 the device tree's | ||
| # stdout-path is enough and plain earlycon works. | ||
| if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}"; fi | ||
| if test "${earlycon}" = "sbi"; then setenv consoleargs "earlycon=sbi ${consoleargs}"; fi | ||
|
|
||
| setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} rw no_console_suspend consoleblank=0 loglevel=${verbosity} fsck.fix=yes fsck.repair=yes net.ifnames=0 ${extraargs} ${extraboardargs}" | ||
|
|
||
| load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} ${prefix}uInitrd | ||
| load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} ${prefix}Image | ||
|
|
||
| load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}dtb/${fdtfile} | ||
| fdt addr ${fdt_addr_r} | ||
| fdt resize 65536 | ||
| for overlay_file in ${overlays}; do | ||
| if load ${devtype} ${devnum}:${distro_bootpart} ${load_addr} ${prefix}dtb/sophgo/overlay/${overlay_prefix}-${overlay_file}.dtbo; then | ||
| echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo" | ||
| fdt apply ${load_addr} || setenv overlay_error "true" | ||
| fi | ||
| done | ||
| for overlay_file in ${user_overlays}; do | ||
| if load ${devtype} ${devnum}:${distro_bootpart} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then | ||
| echo "Applying user provided DT overlay ${overlay_file}.dtbo" | ||
| fdt apply ${load_addr} || setenv overlay_error "true" | ||
| fi | ||
| done | ||
| if test "${overlay_error}" = "true"; then | ||
| echo "Error applying DT overlays, restoring original DT" | ||
| load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}dtb/${fdtfile} | ||
| fi | ||
|
|
||
| booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} | ||
|
|
||
| # Recompile with: | ||
| # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.