-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Description
编译命令
make ARCH=aarch64 MYPLAT=axplat-aarch64-phytium-pi APP_FEATURES=aarch64-phytium-pi SMP=4 LOG=trace build修改的文件
Cargo.toml
[features]
# Stubs
pci = ["axfeat/bus-pci"]
mmio = ["axfeat/bus-mmio"]
+ aarch64-phytium-pi = []
[patch.crates-io]
axplat-loongarch64-qemu-virt = { git = "https://github.com/Starry-OS/axplat_crates.git", rev = "243fdc9" }
+ axplat-aarch64-phytium-pi = { git = "https://github.com/Starry-OS/axplat_crates.git", rev = "243fdc9" }
main.rs
+ #[cfg(feature = "aarch64-phytium-pi")]
+ extern crate axplat_aarch64_phytium_pi;
编译输入
➜ /workspace git:(main) make ARCH=aarch64 MYPLAT=axplat-aarch64-phytium-pi APP_FEATURES=aarch64-phytium-pi SMP=4 LOG=trace build
make[1]: Entering directory '/workspace/arceos'
...
Compiling axmm v0.2.0 (/workspace/arceos/modules/axmm)
Compiling axnet v0.2.0 (/workspace/arceos/modules/axnet)
Compiling axruntime v0.2.0 (/workspace/arceos/modules/axruntime)
Compiling axfeat v0.2.0 (/workspace/arceos/api/axfeat)
Compiling starry-core v0.1.0 (/workspace/core)
Compiling starry-api v0.1.0 (/workspace/api)
Compiling starry v0.1.0 (/workspace)
Finished `release` profile [optimized] target(s) in 28.57s
./scripts/make/dwarf.sh /workspace/workspace_aarch64-phytium-pi.elf rust-objcopy --binary-architecture=aarch64
rust-objcopy --binary-architecture=aarch64 /workspace/workspace_aarch64-phytium-pi.elf -O binary --strip-all /workspace/workspace_aarch64-phytium-pi.bin
make[1]: Leaving directory '/workspace/arceos'
➜ /workspace git:(main)
串口启动现象
Phytium-Pi#tftpboot 0x90000000 workspace_aarch64-phytium-pi.bin
ethernet@3200c000: PHY present at 0
ethernet@3200c000: Starting autonegotiation...
ethernet@3200c000: Autonegotiation timed out (status=0x7949)
ethernet@3200c000: link down (status: 0x7949)
ethernet@3200e000: PHY present at 0
ethernet@3200e000: Starting autonegotiation...
ethernet@3200e000: Autonegotiation complete
ethernet@3200e000: link up, 1000Mbps full-duplex (lpa: 0x2c02)
ft sgmii speed 1000M!
Using ethernet@3200e000 device
TFTP from server 192.168.1.3; our IP address is 192.168.1.20
Filename 'workspace_aarch64-phytium-pi.bin'.
Load address: 0x90000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############################
3 MiB/s
done
Bytes transferred = 30028544 (1ca3300 hex)
Phytium-Pi#
Phytium-Pi#dcache flush
Phytium-Pi#go 0x90000000
## Starting application at 0x90000000 ...
就到这里卡住没有任何输出了
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested