|
---|
| | Thomas Blatt
Posts 200 30 Oct 2017 04:32
| I am using a 4GB CF card over IDE and a 8GB MicroSD over the Vampire 2. I have a Gold2 X13 Core with 92MHZ installed. Often i get a checksum error on my MicroSD card. Gunnar told me in Neuss that i have to set the sagasd.device down to 25MHZ becauce the X13 Core is to fast for the MicroSD card and caused then the checksum errors How do i set it to 25MHZ?
| |
| | Sean Sk
Posts 488 30 Oct 2017 08:57
| Yeah I'd like to know the answer as well. This would explain why I'm getting the same errors. I had to stop using the SD card because of this even though i was following the setup instructions to the letter.
| |
| | Pedro Cotter (Apollo Team Member) Posts 308 30 Oct 2017 10:11
| Hi folks, Open a CLI window and give the following command: APoke $DE000C 1 $0F This manipulates the Writing SDCARD CLK Register. Does it change anything? Also, what core are you using and SDcard brand? EXTERNAL LINK http://wiki.apollo-accelerators.com/doku.php/saga_core_sdcard?s[]=sdcard&s[]=registers
| |
| | Thomas Blatt
Posts 200 30 Oct 2017 12:01
| @Pedro i have an Intenso 32GB MicroSD and Gold2 X13Core installed
| |
| | Sean Sk
Posts 488 31 Oct 2017 12:58
| Using Vampire 600 V2 with Gold 2.5. MicroSD card is a Kingston 32GB. There needs to be a better tutorial on how to properly set up an SD card than what is on the Wiki at the moment. I created two partitons of equal size but on reboot I was getting mask not matching allocated memory errors. I changed mask to 0x0FEFFFFC according to a tutorial I found which solved that error. So I then quick formatted the two partitions I had created and that seemed to go without a hitch but as soon as I tried to copy files from the compact flash drive I got the following errors: Device SD0: Warning: Allocated memory doesn’t match memorymask Device SD0: Disk update failed Volume (Diskname) is write protected Device SD0: ALERT: Wrong dir block id Device SD0: ALERT: Wrong index block id As far as I know there is nothing wrong with the SD card. I had checked it in Windows and it came up with no errors after a disk check, and of course it isn’t write protected. I also used Apoke as suggested by Pedro.
| |
| | Simo Koivukoski (Apollo Team Member) Posts 601 31 Oct 2017 15:28
| Could you paste your SD0 mountlist?
| |
| | Sean Sk
Posts 488 01 Nov 2017 06:05
| This SD0: FileSystem = L:pfs3_aio-handler Device = sagasd.device Unit = 0 BlockSize = 512 Surfaces = 16 SectorsPerBlock = 1 BlocksPerTrack = 63 Reserved = 2 PreAlloc = 0 Interleave = 0 MaxTransfer = 0x00FFFE00 Mask = 0x0FEFFFFC LowCyl = 2 HighCyl = 30960 Buffers = 150 BufMemType = 0 StackSize = 16384 Priority = 0 GlobVec = -1 DosType = 0x50445303 Activate = 1 Mount = 1 /* Bootable = FALSE */ .....and SD1: FileSystem = L:pfs3_aio-handler Device = sagasd.device Unit = 0 BlockSize = 512 Surfaces = 16 SectorsPerBlock = 1 BlocksPerTrack = 63 Reserved = 2 PreAlloc = 0 Interleave = 0 MaxTransfer = 0x00FFFE00 Mask = 0x0FEFFFFC LowCyl = 30961 HighCyl = 61918 Buffers = 150 BufMemType = 0 StackSize = 16384 Priority = 0 GlobVec = -1 DosType = 0x50445303 Activate = 1 Mount = 1 /* Bootable = FALSE */ NOTE: I have also tried "MaxTransfer" as 0x01FE00 with no benefit.
| |
| | Simo Koivukoski (Apollo Team Member) Posts 601 01 Nov 2017 06:55
| Could you also paste SDDiag output?
| |
| | Darkulla Vampire
Posts 33 01 Nov 2017 08:13
| On SD0: Unit = 0And SD1: Unit = 1 (bot 0)
| |
| | Sean Sk
Posts 488 01 Nov 2017 08:25
| Here it is: DebugLevel: 0 SD Card Detected on $0xDE0000: Block Size: 512 Blocks: 62414848 Capacity: 30G OCR: C0FF8000 CID: 12 34 56 53 44 00 00 00 00 00 00 08 6E 00 F2 B5 CSD: 40 0E 00 32 5B 59 00 00 EE 17 7F 80 0A 40 00 8F
| |
| | Darkulla Vampire
Posts 33 01 Nov 2017 09:29
| you having a conflict because two units are at zero. SD0 unit = 0 and SD 1 unit = 1
| |
| | Simo Koivukoski (Apollo Team Member) Posts 601 01 Nov 2017 10:12
| My uSD card is a little bit smaller than yours:DebugLevel: 0 SD Card Detected on $0xDE0000: Block Size: 512 Blocks: 62333952 Capacity: 30G OCR: C0FF8000 CID: 03 53 44 53 50 33 32 47 80 0F 25 EE 99 00 E9 7F CSD: 40 0E 00 32 5B 59 00 00 ED C8 7F 80 0A 40 40 C3 62,333,952 blocks / 16 Heads / 63 Blocks per Track = 61839 Cylinders I made a geometry in the traditional way: 61839 Cylinders 16 Heads 63 Blocks per Track 1008 Blocks per Cylinder (16 Heads * 63 Blocks per Track) -> park head 61839 and after I prepared partitions in traditional way on HDToolBox, GiggleDisk output this kind of mountlists:
SD0: /* ** DosDriver automatically created by GiggleDisk ** ** GiggleDisk (c)2005 Guido Mersmann ** */ FileSystem = L:pfs3_aio-handler Device = sagasd.device Unit = 0 BlockSize = 512 Surfaces = 16 SectorsPerBlock = 1 BlocksPerTrack = 63 Reserved = 2 PreAlloc = 0 Interleave = 0 MaxTransfer = 0x0001FE00 Mask = 0xFFFFFFFE LowCyl = 2 HighCyl = 30920 Buffers = 300 BufMemType = 0 StackSize = 16384 Priority = 0 GlobVec = -1 DosType = 0x50445303 Activate = 1 Mount = 1 /* Bootable = FALSE */ SD1: /* ** DosDriver automatically created by GiggleDisk ** ** GiggleDisk (c)2005 Guido Mersmann ** */ FileSystem = L:pfs3_aio-handler Device = sagasd.device Unit = 0 BlockSize = 512 Surfaces = 16 SectorsPerBlock = 1 BlocksPerTrack = 63 Reserved = 2 PreAlloc = 0 Interleave = 0 MaxTransfer = 0x0001FE00 Mask = 0xFFFFFFFE LowCyl = 30921 HighCyl = 61838 Buffers = 300 BufMemType = 0 StackSize = 16384 Priority = 0 GlobVec = -1 DosType = 0x50445303 Activate = 1 Mount = 1 /* Bootable = FALSE */ Note, I set the mask to FFFFFFFE (7*F+E). Then I tried to copy some files to the both partitions and they worked OK with the x13 core. Finally I tested with the slower access by adding APoke command to the Startup-Sequence, just before BindDrivers: APoke $DE00C 1 $0F >nil: And PFS3 partitions seems work with it also, but slower.
| |
| | Simo Koivukoski (Apollo Team Member) Posts 601 01 Nov 2017 10:12
| Darkulla vampire wrote:
| you having a conflict because two units are at zero. SD0 unit = 0 and SD 1 unit = 1
|
It does not work like that. This is a device ID number, not the partition.
| |
| | Sean Sk
Posts 488 01 Nov 2017 12:24
| Simo I noticed you set your buffers to 300 instead of the 150 recommended in the Apollo Accelerators Wiki. Would that make a difference?
| |
| | Simo Koivukoski (Apollo Team Member) Posts 601 01 Nov 2017 12:31
| Nope. When the mask is right, differences comes from the core speed, SD Clock Speed (register) and micro sd card brands.
| |
| | Sean Sk
Posts 488 01 Nov 2017 12:45
| In your Apoke line you have 2 zeros where as Pedro has 3 zeros. Which one is correct? Thanks for your help Simo. :)
| |
| | Simo Koivukoski (Apollo Team Member) Posts 601 01 Nov 2017 12:56
| That was my typo, here are registers: EXTERNAL LINK
| |
| | Sean Sk
Posts 488 01 Nov 2017 13:03
| Thanks for that. Your help has been really appreciated. I made the mask changes to reflect your settings but I’m gettimg read errors and an LRU update failed error when I try to quick format. I’ll have to come back to this in a couple of weeks as I’m flat out busy now and over the next week or so. I’ll have to recheck this MicroSD card and maybe try another one in my system once all the work i have to do has calmed down.
| |
| | Thomas Blatt
Posts 200 03 Nov 2017 06:29
| OK i will try APoke $DE000C 1 $0F and hope, it will make my SD Card stable
| |
| | Sean Sk
Posts 488 13 Nov 2017 13:26
| OK so I have bought a Kingston 32GB Micro SD Card, and while I have been able to successfully(?) partition and quick format, I am still getting "Write Error 29" errors on various blocks every so often when I write to the SD Card. I'm also not getting a true value of total free space up the top. It says around 1.7GB per partition. Here is my mount list: SD0: FileSystem = L:pfs3_aio-handler Device = sagasd.device Unit = 0 BlockSize = 512 Surfaces = 1 SectorsPerBlock = 1 BlocksPerTrack = 1008 Reserved = 2 PreAlloc = 0 Interleave = 0 MaxTransfer = 0x0001FE00 Mask = 0xFFFFFFFE LowCyl = 2 HighCyl = 30293 Buffers = 150 BufMemType = 0 StackSize = 16384 Priority = 0 GlobVec = -1 DosType = 0x50445303 Activate = 1 Mount = 1 /* Bootable = FALSE */ SD1: FileSystem = L:pfs3_aio-handler Device = sagasd.device Unit = 0 BlockSize = 512 Surfaces = 1 SectorsPerBlock = 1 BlocksPerTrack = 1008 Reserved = 2 PreAlloc = 0 Interleave = 0 MaxTransfer = 0x0001FE00 Mask = 0xFFFFFFFE LowCyl = 30294 HighCyl = 60585 Buffers = 150 BufMemType = 0 StackSize = 16384 Priority = 0 GlobVec = -1 DosType = 0x50445303 Activate = 1 Mount = 1 /* Bootable = FALSE */ Total number of blocks reported by SDDiag is 61071360. I'm using Classic Workbench Lite that has had the latest version (2016) of WB 3.1 from Cloanto installed over the top of it. It was supposed to have certain fixes to handle large disks. Also using SAGADriver v0.13. I also have "APoke $DE00C 1 $0F >nil:" in my Startup-Sequence. Apollo Accelerators Wiki states to use HDToolBox version 45.6, but I can't seem to find it. Would that really make a difference? UPDATE: When trying to reformat the partitions, now getting "Write Error 29" and "LRU update failed errors". Seriously, it shouldn't be this hard.
| |
|