2021-08-03.log

mntmn_Bnu: ok cool00:06
mntmntomorrow i will tackle that00:06
mntmni see Claude is stepping on the jit gas pedal00:06
- S0rin (QUIT: Ping timeout: 255 seconds) (~S0rin@user/s0rin)00:13
+ S0rin (~S0rin@user/s0rin)00:14
- RobDangerous (QUIT: Ping timeout: 272 seconds) (~Thunderbi@p200300ec8f3e1c00e588fff41585aac2.dip0.t-ipconnect.de)00:39
_BnuYeah, un/fortunately it seems like a project I can't get involved in too much so far, but I'll do what I can to help out, haha.00:40
_BnuIf it ends up being something I can't have any fun messing around with, I'll just keep poking around at my little Musashi remnants and play James Pond II until I die...00:42
_BnuThat way, maybe one day I'll actually manage to beat the game...00:43
mntmni have a feeling you will end up having both engines around, because jit may run into strange corner cases00:48
mntmnfor example, relocations are partly self modifying code... i wonder if the jit can track all of that00:49
- emiespo[m] (QUIT: Remote host closed the connection) (~emiespoma@2001:470:69fc:105::92a)02:32
- js (QUIT: Read error: Connection reset by peer) (~js@2001:470:69fc:105::232)02:32
- apolkosnik[m] (QUIT: Read error: Connection reset by peer) (~apolkosni@2001:470:69fc:105::ff7)02:32
+ js (~js@2001:470:69fc:105::232)02:33
+ emiespo[m] (~emiespoma@2001:470:69fc:105::92a)02:35
+ apolkosnik[m] (~apolkosni@2001:470:69fc:105::ff7)02:35
- _Bnu (QUIT: Read error: Connection reset by peer) (~beeanyew@89-160-120-72.cust.bredband2.com)03:24
- xet7 (QUIT: Ping timeout: 258 seconds) (~xet7@user/xet7)04:28
+ xet7 (~xet7@user/xet7)04:39
- TadeusTaD (QUIT: *.net *.split) (tadeustad@psifactor.pl)07:06
- Claude (QUIT: *.net *.split) (sid304814@2001:67c:2f08:4::4:a6ae)07:06
- BluRaf (QUIT: *.net *.split) (bluraf@junkcc.net)07:06
+ Claude_ (sid304814@id-304814.tooting.irccloud.com)07:06
+ TadeusTaD (tadeustad@psifactor.pl)07:06
+ BluRaf (bluraf@junkcc.net)07:06
+ _Bnu (~beeanyew@89-160-120-72.cust.bredband2.com)07:33
_BnuOh, I assume it can somehow, since UAE can run most games and software using JIT.07:34
_Bnu(But I know nothing about how JIT emulation works in practice.)07:35
* Claude_ -> Claude07:59
+ RobDangerous (~Thunderbi@p200300ec8f3e1c00a4ebaf4c7a7fe26d.dip0.t-ipconnect.de)09:09
mntmnok interesting09:42
- bfarmilo (QUIT: Remote host closed the connection) (~bfarmilo@202.56.40.240)10:48
+ bfarmilo (~bfarmilo@202.56.40.240)10:48
Jopecool progress on the driver11:06
+ isoriano (~isoriano@5.147.209.166)12:30
+ isoriano_ (~isoriano@5.147.209.166)12:30
isoriano_Guten Tag ...12:30
isoriano_Sorry, one question is there any chance of a "free" conversion from Allegro to Kicad?12:35
mntmnnot that i know of12:46
mntmni know of converters from eagle and altium12:46
isoriano_Myir provides Allegro schematics/footprints .. oh Mann .12:47
- xet7 (QUIT: Remote host closed the connection) (~xet7@user/xet7)12:47
+ xet7 (~xet7@user/xet7)12:48
- xet7 (QUIT: Remote host closed the connection) (~xet7@user/xet7)12:48
mntmnisoriano_: why do you need premade footprints?12:50
- isoriano_ (QUIT: Quit: Leaving) (~isoriano@5.147.209.166)12:57
- isoriano (QUIT: Quit: Leaving) (~isoriano@5.147.209.166)12:57
+ xet7 (~xet7@user/xet7)13:09
- xet7 (QUIT: Remote host closed the connection) (~xet7@user/xet7)13:10
+ xet7 (~xet7@user/xet7)13:50
_BnuFuzzy technology.14:06
Jopewarm + fuzzy14:10
norlymntmn: regarding the JIT and tracking all kinds of self modifying code. i believe that tracking that is the very point of a JIT - just in time. it should work fine :) whether it's fast is a different story ofc14:27
_BnuUnlike JIST, which is Just In Smol Time. It only works for a short while.14:47
_BnuThere's of course also ZJIT, or Zero JIT, which is what the PiStorm currently uses...15:32
mntmnZISC15:33
mntmna computer that does not take any instructions15:33
mntmnit just does what it wants15:33
Jopecat computer ^_^15:36
mntmnhaha yeah15:38
mntmnhmm i'm looking at the clock, it might be amiga time15:38
_BnuIt is obviously hamburger time...16:35
mntmnunfortunately i have already eaten16:47
mntmnwhere was i? partitions!16:48
mntmn_Bnu: i can show you lolcode16:50
mntmn    debugstr(regs, "\r\nCylinders:\t");16:50
mntmn    debughex(regs, rdb->rdb_Cylinders);16:50
mntmn    debugstr(regs, "\r\nHeads:\t");16:50
mntmn    debughex(regs, rdb->rdb_Cylinders);16:50
mntmn    debugstr(regs, "\r\nSectors:\t");16:50
mntmn    debughex(regs, rdb->rdb_Cylinders);16:50
mntmnthat's why the numbers where all the same...16:50
_BnuSmol numbars.16:53
apolkosnik[m]Copy and smol pasta16:56
mntmnthis is what happened17:05
mntmnohhh pb_DriveName is a pascal string yes?17:06
mntmni was looking at this for a smol moment:17:07
mntmn    tmp = pb->pb_DriveName[0];17:07
mntmn    pb->pb_DriveName[tmp + 1] = 0x00;17:07
mntmn_Bnu: out of curiosity, why do you have to resolve DriveName conflicts?17:12
mntmnPartitionList:  000117:19
mntmnBlock: 000117:19
mntmn0000    ZZ017:19
mntmndd75    000717:19
mntmn0001    000017:19
mntmnNo more partitions.17:19
mntmnlooks good :317:19
_BnuBecause otherwise only one of the drives show up.17:28
_BnuI was reluctant to do it initially, because people should just name their partitions properly, etc., but then everyone kept complaining until I did it.17:28
_BnuIt's a BSTR or whatever.17:28
_BnuSo it starts with a byte that's the length of the string, and then it's followed by the string.17:29
_BnuSo not necessarily null terminated.17:29
mntmnok, thanks for explaining!17:30
mntmni will leave the renaming out and will tell people to name their partitions properly ;)17:30
mntmnthis saves precious bootrom bytes17:30
mntmnnow i need to figure out how to fill in my DosParmPkt from rdb + partition info...17:31
_BnuI think it's mostly in the partition block, unless I'm misremembering...17:31
_BnuYou just have to copy it and fill in the blobalVec and fsHandler thing.17:32
_BnuBlobal...17:32
mntmnsuper blobal mega hyper net17:32
mntmnthe partition block has all these Reserved fields and a few flags, and... pb_Environment[20];17:33
_BnuBlobal...!17:35
mntmnyeah the stuff is in the pb_Environment17:39
mntmnaccording to http://amigadev.elowar.com/read/ADCD_2.1/Libraries_Manual_guide/node0422.html17:39
_BnuThey should rename the site to blobowar.17:46
mntmnBlock: 0000000117:54
mntmn00000000        ZZ017:54
mntmne714dd75        0000000717:54
mntmn00000001        0000000017:54
mntmnDeviceNode: 0780038017:54
mntmnAddBootNode done.17:54
mntmnNo more partitions.17:54
mntmn_Bnu: i agree17:54
mntmnlol i did not pass anything to AddBootNode, only zeroes.17:54
mntmnthat's why nothing shows up...17:54
_BnuAddBootNode is a noob if it can't even find the data...17:55
_BnuAddBootNoob17:56
mntmnhaha17:58
mntmnZZ0 is there17:58
mntmnnice.17:58
mntmnit does not show up on workbench as some kind of unformatted thing though17:59
mntmnhdinsttools format says: Format failed: object not found18:00
mntmnhm mh.18:01
mntmncli format says: object is not of required type.18:02
_BnuDid you set the GlobalVec to -1? And is it DOS/1?18:04
mntmni dit not set the blobalvec!18:04
mntmnit might be dos/018:04
_BnuYou have to do that, otherwise it's angry and thinks you have a BCPL-compliant GlobalVec.18:04
mntmnoop18:04
mntmnin scouts MOUNTED DEVICES list, the ZZ0: has no heads, cylinders, state or filesystem.18:05
_BnuUnless you're monitoring the IOReq calls, it's hard to say why.18:05
_BnuBut IIRC, the ZZ9000USBStorage.device did not support TD_GETGEOMETRY? Or maybe it did.18:06
_BnuSome things use the SCSI sense command and other things use TD_GETGEOMETRY.18:06
_BnuBut if it didn't construct a globalvec for you, everything will be wrong anyway.18:06
_BnuSo don't try to do anything with it if it's set to 0.18:06
mntmnwait, fhb_GlobalVec is something in the FileSysHeaderBlock but i'm not using that18:07
mntmni am not messing with any filesystems18:08
mntmni'm only using MakeDosNode() and AddBootNode()18:08
_BnuUhhh, no.18:08
_BnuIt's in the DeviceNode.18:08
mntmnNeviceDode18:09
mntmnlets see18:09
mntmnah, that's the thing coming out of the MakeDosNode18:09
mntmnso i should overwrite what's in there with -1?18:09
_BnuYes. Otherwise it won't work. Unless you make a BCPL-compliant GlobalVec for the partition and point it at that.18:10
_BnuAlso, if you do do some file system stuff, keep in mind that dn_SegList is a BPTR.18:10
_BnuSo it's in longwords, not a standard APTR offset.18:10
mntmnit's interesting because i did not have to do that in my old assembler code stuffs18:11
mntmnbut i will try18:11
_BnuWell, no idea. I definitely had to set it to -1 for anything to work.18:11
mntmnlets debork this18:13
mntmnok according to my debugging, GlobalVec defaults to 0 indeed18:16
mntmnah the filesystem type is ffs inter18:18
mntmnDOS318:18
_BnuYeah, it always does. But that's because you're supposed to fill it in yourself.18:19
_BnuAlong with the segList.18:19
mntmntrying to change to DOS1...18:22
mntmnnope. big sads18:22
mntmnneed some tool to dump the DeviceNode or whatever in amigados...18:24
_BnuIf you set the segList to 0, it'll try to use DOS/1 on Kick 2.0 and 3.1.18:25
_BnuBut if your DOS/3 partition has some weird settings or is too large for DOS/1 to handle it...18:25
_BnuDOS/1 has no Direct SCSI or TD64 stuff in the file system driver that I know of at least.18:25
mntmni did not implement any td64 stuffs etc18:26
mntmninfo zz0: gives object is not of required type18:26
_BnuGood...18:31
_BnuI've never seen that error, unfortunately.18:31
mntmn;_;18:32
_BnuBut yeah, as you can see all I do to the DeviceNode is set the globalvec and seglist...18:34
mntmni found 1 bug and hope that's it18:47
mntmni had unit number 1 in the parmpkt18:47
mntmninstead of 018:47
mntmnyep now ZZ0 shows up in "info" as not a dos disk18:49
mntmnand now it's also an icon on WB!18:50
_BnuQuick, destroy it...18:53
mntmn:333 already formatted!18:54
mntmnnow i need to put in that weird BootPt fragment to be able to boot it i guess18:54
_BnuIf you've done AddBootNode and the priority isn't set to like -255 or something, it should boot. Easiest is to just check early startup.18:56
_BnuYou can spot if some values are off on that screen as well.18:56
_BnuAddBootNode is like AddDosNode and Enqueue in one, I just split it up in hopes of getting it to work on Kickstart 1.3... which it didn't, because there's something something whatever about the file systems on there...19:03
mntmnok, it boots now, i needed to put in that dos init BootPt in the rom.19:26
mntmnwithout it, it won't boot.19:26
_BnuAh, yeah no idea about that one. I just left that in there from the example boot ROM.19:28
mntmnthis little thing"19:28
mntmnhttps://source.mnt.re/amiga/zz9000-drivers/-/blob/gcc-test/usb-storage/boot-rom/boot.S#L519:28
mntmnyep, i wanted to see what it does. so the answer is, it makes your drive boot.19:28
_BnuThat's why the debug message says "Arrived at BootEntry, for some reason.", haha.19:28
mntmnhehe19:29
mntmnin before network boot...19:29
mntmnnaja, great stuff. next steps might be TD64 and whatnot19:30
_BnuDon't forget to somehow add optical drive support, because it's really easy I promise, definitely not being sarcastic or implying that it needs a completely different file system driver or command set support...19:35
mntmnlulz!!19:36
mntmnwhat about usb floppy though...19:36
mntmnbtw that's probably because of ATAPI or something yeah?19:37
mntmnwhat about USB SCSI optical drives...19:37
_BnuCDFS, Trackdisk by default does not support drives with different block/sector sizes on the same volume.19:38
apolkosnik[m]👾19:38
_BnuSo there are a bunch of CD_ETC commands matching some of the TD_ETC commands.19:38
_BnuAnd they all require different handling. There's an example in the Amiga dev CD docs somewhere, aimed at CDTV and/or CD32.19:38
mntmneep19:38
Claudebut wouldn't direct SCSI just Pass trough to the SCSI CDROM ? 19:38
Claudethe usb ones speak indeed SCSI 19:39
mntmnassuming that usb scsi cdroms exist... which i don't know19:39
mntmnah ok!19:39
_BnuI don't think so, but then you'd need to support all the SCSI commands for it.19:39
mntmnscsi commander19:39
mntmnwell, good that i did not promise cdrom support19:39
Claudeblueray ? 19:39
Claudeor at least Iomega jazz ? 19:40
_BnuDirect SCSI is some Trackdisk thing as well, I believe... I still have no idea how to enable it except for writing it to the partition info thing with 3.5/3.9/3.1.4 HDToolBox.19:40
Claudejust for reference.. mmc6r02g.pdf 19:42
_BnuI think JAZ drives are just removable standard removable media and can't have different sector sizes per volume either.19:43
Claudethat's the SCSI commandset for usb cd 19:43
_BnuTechnically all the PiSCSI drives are removable, but the REMOVE/EJECT/etc. commands are just ignored.19:43
Claudeyeah jaz is like a harddisk, was more a joke :) 19:43
mntmnalright, i will have to nap19:44
_BnuIn the frog pond...19:44
- WoC (QUIT: Remote host closed the connection) (woc@2603-8080-cd40-00c6-eaaf-8a29-4225-dc1f.res6.spectrum.com)20:51
- RobDangerous (QUIT: Ping timeout: 256 seconds) (~Thunderbi@p200300ec8f3e1c00a4ebaf4c7a7fe26d.dip0.t-ipconnect.de)20:51
mntmnok ok21:08
mntmn  // poor man's 64... i mean 41 bit21:47
mntmn  block = (offset >> SD_SECTOR_SHIFT) | (offset_hi << (32-SD_SECTOR_SHIFT));21:47
mntmn> #define DRIVE_NEWSTYLE          (0x4E535459L)   /* 'NSTY' */22:03
mntmn"nasty"22:03
mntmnborrowed the TD64/NSD stuff from piscsi ;322:09
mntmnbut we have only 41 bit support right now...22:10
+ RobDangerous (~Thunderbi@p200300ec8f3e1c00a4ebaf4c7a7fe26d.dip0.t-ipconnect.de)22:17
mntmnoh interesting22:24
mntmnEHCI timed out on TD - token=0x800d8d8022:24
mntmnusb_bulk_msg error status -214748364822:24
mntmnBBB_reset22:24
mntmnbut it did not crash22:24
mntmnPFS3 was able to format a 12.6GB partition on the stick22:24
mntmnthese errors happen from time to time when writing a lot of stuff, but it seems to recover from them still22:26
mntmncurrently copying all my whdgames as a stress test...22:28
+ WoC (woc@2603-8080-cd40-00c6-eaaf-8a29-4225-dc1f.res6.spectrum.com)22:53
forciemntmn: there is a very good integrity check and repair tool for pfs3 but i think it is only available for morphos23:46
forcie(included with the os)23:46
forciei also get the occasional pfs3 error but with that tool i have had 100% success in repairing all errors23:47
forciei guess the 68k pfsdoctor also works23:48

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!