-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: After commit 1c2f541 (2024/02/04) CH357 driver doesn't work anymore (UPDATE) #130
Comments
This seems to be a bug from a recent build. I tried to revert to commit d027c79 from 19 of december of 2023 and the driver works. So problem was created in the next few commits. Luckily only 3 days after that have commits so it wouldn't be that hard to isolate what change created the problem. |
I also tried building commit 9a7d227 from yesterday and it also works. So the problem was introduced in one of commits yesterday or today. |
The commit 431be02 from yesterday has this problem. The driver gets stucked. I'll go back a few commits to try to indentify which one created the problem. |
That's mine, I'm afraid. Try inserting the line |
IF you meant it like this (intr.asm):
That didn't help. |
Yes, that's what I meant. I will prepare a different patch later today for you to try. |
Try the file in https://pushbx.org/ecm/test/20240205/intr.asm |
No luck. As you noticed I do use a Watcom compiler (OpenWatcom 1.9). I didn't mention that before. I'm using the DOS version under DOSEmu. |
Okay, thanks. Does the gcc build in https://pushbx.org/ecm/download/old/fdkernel/20240204.zip work? |
Next, you can try https://pushbx.org/ecm/test/20240205/sahfgcc.sys (rename to kernel.sys) which is my gcc build with the intr.asm file in the same server directory. |
I'll test them out and get back to you. |
The first one acts strange. It goes blank after dislaying FreeDOS copyright. The second one gets stuck after loading the driver. No change. |
it might be the update_dcb change as well, I have to revisit the case of
numdrives=0 initialization of lol->dpb tonight. I'm on my phone so going.
mostly on memory. github currently having issue installing package due to
gpg issue, at least as best I can tell that's why most recent build failed.
…On Mon, Feb 5, 2024, 10:50 AM Bocke ***@***.***> wrote:
The first one acts strange. It goes blank after dislaying FreeDOS
copyright.
The second one gets stuck after loading the driver. No change.
—
Reply to this email directly, view it on GitHub
<#130 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD3LQJZMV2H4JH4GIH7O2DYSD5VHAVCNFSM6AAAAABCZ7LIL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRXGMYDKMZUGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Did you remember to configure these kernels to disable LBA? |
Yes. |
Can you try https://pushbx.org/ecm/download/old/fdkernel/20231220.zip please? |
Oh, I see the difference: it's compiled with GCC. It does work, but it's before the problematic commit, so I was expecting it to work. Unless you think the bug has something to do with a compiler it was compiled against? |
I received your screenshot in https://www.bttr-software.de/forum/forum_entry.php?id=21289
Yes, my builds are gcc builds. I wanted to figure out whether the different crash you had was more likely to be something that's specific to gcc builds or more likely a recent bug.
Could be, it's difficult to tell. Do you want to try debugging the kernel? You would need to download two zipballs: https://pushbx.org/ecm/download/ldebug.zip - Extract ldebug.com and instsect.com https://pushbx.org/ecm/download/ldosboot.zip - Extract patch.sld Place the files in the root directory of the file system you want to boot. Then you run the following in a DOS:
Then run For completeness, you can enter the following lines into the file "ldebug.sld" also placed in the root directory:
This will tell the debugger to access all disk units using only CHS access, and to never call LBA functions. (However, the query patch with 8181h is sufficient to have the debugger access specifically the load partition using only CHS.) In DOS run Next, boot the debugger. Depacking may take a few seconds. Once the prompt (a dash
If you want to only boot DOS without the debugger, enter |
[unrelated to issue] do you mind if I incorporate/copy your "how to debug" into the kernel documentation? |
You're welcome to do that! The instsect /L switch, query patch, and setting the low bit of BOOTUNITFLxx are of course only needed when LBA detection would fail or cause problems like on this device. Everything else is more generally applicable. If you want any more details or have any questions feel free to ask. I also described some techniques for debugging in the forum: https://www.bttr-software.de/forum/forum_entry.php?id=21270&page=0&category=all&order=last_answer https://www.bttr-software.de/forum/forum_entry.php?id=21271&page=0&category=all&order=last_answer If you want to discuss this more, we could use a github discussion? Or a new thread in the forum? |
Sure. But not right now. In a few days. |
Allright, just wanted to provide you with the basics so you can get started when you have the time. |
No problem. Thank you. Will get back to you. |
[loading driver without device, so ultimately errors loading] without the sti I get the hang attempting to load the driver in 86box, but driver doesn't hang in bochs; adding the sti I get same result of failed loading but no hang in both. I am going to see if I can find another driver that runs under emulation that fails to load. I have a usb2isa card (ch375 based) on order - not sure if any of my ISA compatible computers still boot... and my book8088 is en-route from China, so for now I can't reproduce to help debug. |
I'm sorry. I was thinking of dedicating a day or two to debugging this over a weekend. Haven't had time and will to mess with it these days. It would certainly help if you don't have to rely on my spare time for debugging. But I just wanted to say I didn't forget about this and still intend to help. |
no worries and no hurry, I just didn't want anyone to think I was ignoring this. I understand having limited time. :-) |
You added the Can you try the kernel/source file in https://pushbx.org/ecm/test/20240205/ as well please? Like @tkchia mentioned this uses |
I'm sorry. It didn't turn out how I planned. I worked the saturday so I was too tired and lazy to test it out over the rest of the weekend. After that I got hit with some virus this monday and am still recovering. |
Good recovery! I am currently also down by a virus infection. |
Wishing you both all the best too. If you want I can soon prepare a few more kernel builds to test. |
Hi. Ch357 is a USB to ISA controller that is somewhat popular in retro community. It's also built-in into Book8088, a hobbyist retro computer from China.
I tried the CH357 drivers on a last nights build of 2043 dev kernel (both 8086 and 80186 with FAT32) and it got stuck after displaying the driver info and if the USB stick is inserted or not (it gets stuck in both cases).
I than tried one of the drivers on 2042 kernel (8086 with FAT32) from Sourceforge and it actually worked without problems. The version released as 2.43 on GitHub also works. By further testing I isolated the problem to the changes from the last 2 days (4th and 5th of february 2024). By building and trying the commits from the past two days, I identified that the problem first appear with the commit 1c2f541.
The text was updated successfully, but these errors were encountered: