I was thinking not so much for a SD card but for other SPI base peripherals. Ethernet to mount a disk (net boot maybe), CAN for control, shift regs to make a 3D LED cube etc. or whatever tickles someone.
read CF disk track:0x01 sector:0x00
+0000 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 01 00 00 80 .ROMWBW IMG....
+0010 : 04 00 05 00 06 00 07 00 08 00 09 00 0A 00 0B 00 ................
+0020 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 03 00 00 80 .ROMWBW IMG....
+0030 : 0C 00 0D 00 0E 00 0F 00 10 00 11 00 12 00 13 00 ................
+0040 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 05 00 00 80 .ROMWBW IMG....
+0050 : 14 00 15 00 16 00 17 00 18 00 19 00 1A 00 1B 00 ................
+0060 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 07 00 00 80 .ROMWBW IMG....
+0070 : 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 23 00 ........ .!.".#.
+0080 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 09 00 00 80 .ROMWBW IMG....
+0090 : 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 2B 00 $.%.&.'.(.).*.+.
+00A0 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 0B 00 00 80 .ROMWBW IMG....
+00B0 : 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 33 00 ,.-.../.0.1.2.3.
+00C0 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 0D 00 00 80 .ROMWBW IMG....
+00D0 : 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3B 00 4.5.6.7.8.9.:.;.
+00E0 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 0F 00 00 80 .ROMWBW IMG....
+00F0 : 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 43 00 <.=.>.?.@.A.B.C.
+0100 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 11 00 00 80 .ROMWBW IMG....
+0110 : 44 00 45 00 46 00 47 00 48 00 49 00 4A 00 4B 00 D.E.F.G.H.I.J.K.
+0120 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 13 00 00 80 .ROMWBW IMG....
+0130 : 4C 00 4D 00 4E 00 4F 00 50 00 51 00 52 00 53 00 L.M.N.O.P.Q.R.S.
+0140 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 15 00 00 80 .ROMWBW IMG....
+0150 : 54 00 55 00 56 00 57 00 58 00 59 00 5A 00 5B 00 T.U.V.W.X.Y.Z.[.
+0160 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 17 00 00 80 .ROMWBW IMG....
+0170 : 5C 00 5D 00 5E 00 5F 00 60 00 61 00 62 00 63 00 \.].^._.`.a.b.c.
+0180 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 19 00 00 80 .ROMWBW IMG....
+0190 : 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 d.e.f.g.h.i.j.k.
+01A0 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 1B 00 00 80 .ROMWBW IMG....
+01B0 : 6C 00 6D 00 6E 00 6F 00 70 00 71 00 72 00 73 00 l.m.n.o.p.q.r.s.
+01C0 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 1D 00 00 80 .ROMWBW IMG....
+01D0 : 74 00 75 00 76 00 77 00 78 00 79 00 7A 00 7B 00 t.u.v.w.x.y.z.{.
+01E0 : 00 52 4F 4D 57 42 57 20 20 49 4D 47 1F 00 00 80 .ROMWBW IMG....
+01F0 : 7C 00 7D 00 7E 00 7F 00 80 00 81 00 82 00 83 00 |.}.~...........
>read CF disk track:0x01 sector:0x20
+0000 : C3 24 05 70 00 FF FF FF C3 F0 FF FF FF FF FF FF .$.p............
+0010 : C9 FF FF FF FF FF FF FF C9 FF FF FF FF FF FF FF ................
+0020 : C9 FF FF FF FF FF FF FF C9 FF FF FF FF FF FF FF ................
+0030 : C9 FF FF FF FF FF FF FF C3 00 FF FF FF FF FF FF ................
+0040 : FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
+0050 : FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
+0060 : FF FF FF FF FF FF ED 45 FF FF FF FF FF FF FF FF .......E........
+0070 : 76 B5 01 07 80 00 A1 00 A5 00 00 00 00 00 00 00 v...............
+0080 : 52 4F 4D 57 42 57 20 76 33 2E 31 2E 31 2D 70 72 ROMWBW v3.1.1-pr
+0090 : 65 2E 32 31 2C 20 32 30 32 30 2D 30 37 2D 30 33 e.21, 2020-07-03
+00A0 : 00 57 42 57 00 52 4F 4D 57 42 57 20 76 33 2E 31 .WBW.ROMWBW v3.1
+00B0 : 2E 31 2D 70 72 65 2E 32 31 2C 20 43 6F 70 79 72 .1-pre.21, Copyr
+00C0 : 69 67 68 74 20 28 43 29 20 32 30 32 30 2C 20 57 ight (C) 2020, W
+00D0 : 61 79 6E 65 20 57 61 72 74 68 65 6E 2C 20 47 4E ayne Warthen, GN
+00E0 : 55 20 47 50 4C 20 76 33 00 FF FF FF FF FF FF FF U GPL v3........
+00F0 : FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
+0100 : C3 24 05 57 A8 31 10 07 07 CC 1C 10 10 00 00 00 .$.W.1..........
+0110 : 00 FF FF 04 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0120 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0130 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0140 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0150 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0160 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0170 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0180 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0190 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+01A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+01B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+01C0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+01D0 : 00 00 00 00 00 00 00 00 8F 8E 8D 8C 80 8B 04 0F ................
+01E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+01F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
boot CP/M
1--User Apps,
2--CP/M2.2:
3--CP/M3:
4--ROMWBW: 5 press Return to execute command
hZ
RomWBW HBIOS v3.1.1-pre.21, 2020-07-03
RC2014 Z80 @ 7.372MHz
0 MEM W/S, 1 I/O W/S, INT MODE 1
512KB ROM, 512KB RAM
ACIA0: IO=0x80 ACIA MODE=115200,8,N,1
DSRTC: MODE=STD IO=0xC0 NOT PRESENT
MD: UNITS=2 ROMDISK=384KB RAMDISK=384KB
IDE: IO=0x10 MODE=RC
IDE0: 8-BIT LBA BLOCKS=0x0001E900 SIZE=61MB
IDE1: NO MEDIA
PPIDE: IO=0x20 PPI NOT PRESENT
Unit Device Type Capacity/Mode
---------- ---------- ---------------- --------------------
Char 0 ACIA0: RS-232 115200,8,N,1
Disk 0 MD1: RAM Disk 384KB,LBA
Disk 1 MD0: ROM Disk 384KB,LBA
Disk 2 IDE0: CompactFlash 61MB,LBA
Disk 3 IDE1: Hard Disk --
RC2014 Boot Loader
Boot [H=Help]:
I found out there is RAMSIZE parameter in ROMWBW configuration that can be set for different values than the default 512. ZRC has 2 meg of RAM but no ROM. The first 512K of the RAM is operating like ROM, so RAMSIZE should be set to 1536 (1.5meg)?
I did set RAMSIZE in cfg_rcz80.asm to 1536; ran "buildshared", "buildrom rcz80 zrc" and load the resulting ROM file into ZRC and boot. It seems to run OK and I able to PIP 1.5meg of files to drive A: with verify. However, the boot message shows "ROM VERIFY: 80 FAIL". This message was not there prior to changing RAMSIZE (should point out that previous build was from ROMWBW released a year earlier). What does ROM VERIFY FAIL means?
I did set RAMSIZE in cfg_rcz80.asm to 1536; ran "buildshared", "buildrom rcz80 zrc" and load the resulting ROM file into ZRC and boot. It seems to run OK and I able to PIP 1.5meg of files to drive A: with verify. However, the boot message shows "ROM VERIFY: 80 FAIL". This message was not there prior to changing RAMSIZE (should point out that previous build was from ROMWBW released a year earlier). What does ROM VERIFY FAIL means?
This indicates that 4 banks were checked and the checksum was "00" in all cases, so it passed. In your case it is showing that the first bank (HBIOS) was not 00, so the test failed at that point. The reason you are seeing this error is my fault. I have not been careful to avoid changing bytes in the early boot process before moving the HBIOS to RAM. For most system, this is fine because you can't change a real ROM byte. But in the case of ZRC, the "ROM" is in fact "RAM". So, I need to review what might be causing the changes and fix them.
Wayne,
Thanks for your help. I updated with latest ROMWBW-dev and no more ROM Verify errors.
Bill
When 16K/48K is used for MP/M or Fuzix under RomWBW, how are the 48K pages mapped from 512K ram and flash?
If 56K/8K is best ram option for MP/M, would it still be better to use 32K pages for flash?When 16K/48K is used for MP/M or Fuzix under RomWBW, how are the 48K pages mapped from 512K ram and flash?