Skip to content

Commit

Permalink
Merge #179
Browse files Browse the repository at this point in the history
179: boards: Change hifive1 layout to match rev b r=alistair23 a=alistair23

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

Co-authored-by: Alistair Francis <alistair.francis@wdc.com>
  • Loading branch information
bors[bot] and alistair23 authored May 18, 2020
2 parents 4ec0ec1 + b4889df commit b8e8c41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ os:

cache: cargo

# Once Travis supports a version of Ubuntu Disco or newer we can apt install QEMU for RISC-V
# Once Travis supports a version of Ubuntu that inlcudes QEMU 5.1+
# we can apt install QEMU for RISC-V.
# Until then we need to build it ourselves
before_install:
# - sudo apt-get -y install qemu-system-misc
# addons:
# apt:
# update: true
- wget https://download.qemu.org/qemu-4.2.0.tar.xz
- tar xJf qemu-4.2.0.tar.xz
- pushd qemu-4.2.0
- git clone https://github.com/alistair23/qemu.git -b riscv-tock.next
- pushd qemu
- ./configure --target-list=riscv32-softmmu
- make -j8
- sudo ln -s $PWD/riscv32-softmmu/qemu-system-riscv32 /usr/bin/
Expand All @@ -35,7 +35,7 @@ install:
- git clone https://github.com/tock/tock.git
- cd tock/boards/hifive1
# Use a known working version of Tock
- git checkout c94059d3e25dc635e682facff4894ef43b9aca0e
- git checkout 152189fe077aea955332ee3c28ccbee519d8b072
- make
- popd

Expand Down
2 changes: 1 addition & 1 deletion boards/layout_hifive1.ld
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY {
* Note that the SRAM address may need to be changed depending on
* the kernel binary, check for the actual address of APP_MEMORY!
*/
FLASH (rx) : ORIGIN = 0x20430040, LENGTH = 32M
FLASH (rx) : ORIGIN = 0x20040040, LENGTH = 32M
SRAM (rwx) : ORIGIN = 0x80002400, LENGTH = 0x1C00
}

Expand Down
6 changes: 3 additions & 3 deletions test-runner/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ async fn perform_tests() -> Result<(), Box<dyn std::error::Error>> {

let tests = Command::new("qemu-system-riscv32")
.arg("-M")
.arg("sifive_e")
.arg("sifive_e,revb=true")
.arg("-kernel")
.arg("../../tock/boards/hifive1/target/riscv32imac-unknown-none-elf/release/hifive1")
.arg("../../tock/target/riscv32imac-unknown-none-elf/release/hifive1")
.arg("-device")
.arg("loader,file=./../target/riscv32imac-unknown-none-elf/tab/hifive1/libtock_test/rv32imac.tbf,addr=0x20430000")
.arg("loader,file=./../target/riscv32imac-unknown-none-elf/tab/hifive1/libtock_test/rv32imac.tbf,addr=0x20040000")
.arg("-nographic")
.stdout(Stdio::piped())
.kill_on_drop(true)
Expand Down

0 comments on commit b8e8c41

Please sign in to comment.