Skip to content

Commit

Permalink
Merge pull request #505 from ZuluSCSI/main
Browse files Browse the repository at this point in the history
Bring branch current with main
  • Loading branch information
aperezbios authored Jan 31, 2025
2 parents e2f70d1 + f8afc6f commit 4b97350
Show file tree
Hide file tree
Showing 57 changed files with 2,090 additions and 179 deletions.
46 changes: 28 additions & 18 deletions .github/workflows/firmware_build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build ZuluSCSI firmware

on:
on:
push:
workflow_dispatch:
pull_request:
Expand All @@ -11,46 +11,56 @@ jobs:
# runs-on: self-hosted
name: Build firmware on GitHub using latest Ubuntu
runs-on: ubuntu-latest

steps:
- name: Check out code from GitHub
uses: actions/checkout@v4
with:
path: ZuluSCSI
fetch-depth: "0"


- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install zip
- name: Install platformio
run: |
pip install -U platformio
- name: Build firmware
run: |
cd ZuluSCSI
pio run -v -j8
- name: Rename firmware files
run: |
cd ZuluSCSI
utils/rename_binaries.sh
- name: Create bin package zip file
run: |
cd ZuluSCSI
utils/create_bin_package_zip.sh
- name: Upload binaries into build artifacts
uses: actions/upload-artifact@v4
with:
path: ZuluSCSI/distrib/*
name: ZuluSCSI binaries
# - name: Upload to latest release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# if: github.ref == 'refs/heads/main'
# run: |
# cd ZuluSCSI
# git tag -d latest
# git tag latest
# git push origin --force latest
# cd distrib
# gh api repos/${GITHUB_REPOSITORY}/releases/tags/latest | jq -r '.assets[] | [.url] | @tsv' | xargs -n 1 gh api -X DELETE || true
# gh release upload --repo ${GITHUB_REPOSITORY} --clobber latest *

- name: Upload to latest release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/main'
run: |
cd ZuluSCSI
git tag -d latest
git tag latest
git push origin --force latest
cd distrib
gh api repos/${GITHUB_REPOSITORY}/releases/tags/latest | jq -r '.assets[] | [.url] | @tsv' | xargs -n 1 gh api -X DELETE || true
gh release upload --repo ${GITHUB_REPOSITORY} --clobber latest *
- name: Upload to newly created release
env:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ LED indications in initiator mode:
The firmware retries reads up to 5 times and attempts to skip any sectors that have problems.
Any read errors are logged into `zululog.txt`.

Alternatively, if SD card is not inserted, the SCSI drive will be available to PC through USB connection.
The drive shows up as mass storage device (USB MSC).
Currently this primarily supports SCSI harddrives, but basic read access is supported for CD-ROM and other SCSI devices.

Depending on hardware setup, you may need to mount diode `D205` and jumper `JP201` to supply `TERMPWR` to the SCSI bus.
This is necessary if the drives do not supply their own SCSI terminator power.

Expand Down
55 changes: 55 additions & 0 deletions boards/rpipico2w.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"build": {
"arduino": {
"earlephilhower": {
"boot2_source": "none.S",
"usb_vid": "0x2E8A",
"usb_pid": "0xF00F"
}
},
"core": "earlephilhower",
"cpu": "cortex-m33",
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO_2W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1",
"f_cpu": "150000000L",
"hwids": [
[
"0x2E8A",
"0x00C0"
],
[
"0x2E8A",
"0xF00F"
]
],
"mcu": "rp2350",
"variant": "rpipico2w"
},
"debug": {
"jlink_device": "RP2350_0",
"openocd_target": "rp2350.cfg",
"svd_path": "rp2350.svd"
},
"frameworks": [
"arduino"
],
"name": "ZuluSCSI Pico 2 DaynaPORT",
"upload": {
"maximum_ram_size": 524288,
"maximum_size": 4194304,
"require_upload_port": true,
"native_usb": true,
"use_1200bps_touch": false,
"wait_for_upload_port": false,
"protocol": "cmsis-dap",
"protocols": [
"blackmagic",
"cmsis-dap",
"jlink",
"raspberrypi-swd",
"picotool",
"picoprobe"
]
},
"url": "http://zuluscsi.com",
"vendor": "Rabbit Hole Computing LLC"
}
2 changes: 1 addition & 1 deletion boards/rpipicow.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"core": "earlephilhower",
"cpu": "cortex-m0plus",
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO_W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 ",
"extra_flags": "-DARDUINO_RASPBERRY_PI_PICO_W -DARDUINO_ARCH_RP2040 -DUSBD_MAX_POWER_MA=250 -DPICO_CYW43_SUPPORTED=1 -DCYW43_PIN_WL_DYNAMIC=1 ",
"f_cpu": "133000000L",
"hwids": [
[
Expand Down
Loading

0 comments on commit 4b97350

Please sign in to comment.