Coder Social home page Coder Social logo

Comments (26)

mfld-fr avatar mfld-fr commented on June 4, 2024

Hello, thanks for the report, yes your screenshots would be appreciated to help.

from elks.

jbruchon avatar jbruchon commented on June 4, 2024

I'd also like to see some screenshots of this crash.

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

oh my i apologize for long response! ok i will photo take with latest version. damn it school!

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

ok photos soon going to compile and make xt boot
img_20161007_150615471
img_20161007_150616747
img_20161007_150616929
img_20161007_150617111
img_20161007_150617292
img_20161007_150645090
img_20161007_150647158
img_20161007_150648504
img_20161007_150654050
img_20161007_150655936
img_20161007_150658755
img_20161007_150702664
img_20161007_150704546
img_20161007_150706254
img_20161007_150707486
img_20161007_150708907
here it is!

from elks.

hufon avatar hufon commented on June 4, 2024

I've exactly the same error on my olivetti PC1! which have no hard disk at all... So this is not an hard disk issue.
img_20161008_141626

from elks.

hufon avatar hufon commented on June 4, 2024

I'm using the comb_net image

from elks.

hufon avatar hufon commented on June 4, 2024

same problem with comb image...

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

i amusing comb_net also

from elks.

jbruchon avatar jbruchon commented on June 4, 2024

It is a kernel issue so it will affect all disk images.

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

ah~ ok sorry about my late responce

from elks.

hufon avatar hufon commented on June 4, 2024

May be you should rename the issue...

from elks.

lithoxs avatar lithoxs commented on June 4, 2024

After seeing the screenshots, what happen is:

  1. The initialization reaches the point where the whole kernel is set up succesfully, including the floppy and hard disk driver.
  2. Succesfully forks the task that mounts the root directory and succesfully mounts the root drive.
  3. The above task attempts to exec the "init" task. At this point the said screenshots were taken.
    The exec syscall first tries to find the binary in the disk and this is the point when it fails. In the first
    screenshot, attempts to exec "/bin/init", and the reported error 4 is "Sector not found". Then tries to exec "/bin/sh" reporting the same error in the same sector, suggesting that it cannot access even the directory.

Now, the disk driver does not touch the hardware, every thing is done through the int 13h bios interrupt. Further, it only uses the CHS addressing, and never LBA addressing.

I understand that your hardware and disk drive bios are not standard. Also, the needs by ELKS correspond to obsolete hardware. So, does your bios implement what ELKS need?. Is it possible to have a look at the source code of your disk bios?.

from elks.

hufon avatar hufon commented on June 4, 2024

I've no hard disk on my PC1. Only one floppy drive.
It don't works also with 0.2 version.

The drive sounds bad when it fails (like a bad sector on a floppy), but the floppy drive and the floppy disk are both ok

from elks.

hufon avatar hufon commented on June 4, 2024

It's strange because we use both all different PC model... all PC compatibles (mine is without any addon card, standard 1987 bios)

from elks.

lithoxs avatar lithoxs commented on June 4, 2024

The error indication is when attempts to access block device 0x380 both on sparky4 and hufon machines (according to screenshots), and this number corresponds to the first floppy disk. So, that is correct.

The screenshots indicate failure when attempting to read sector 34. This corresponds to a 2.88 Mbyte floppy disk with a geometry of 80 tracks, 36 sectors and 2 heads. If this is not your floppy then the driver is failing to detect the geometry of your floppy disk. Is this your case?

from elks.

hufon avatar hufon commented on June 4, 2024

I've a dd 720Ko floppy disk 80 track, 9 sector, 2 heads. My Floppy drive is dd only and my floppy controller can only handle dd floppy.
So it seems that the floppy driver fails to detect the geometry of my floppy disk.

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

any update?

from elks.

jbruchon avatar jbruchon commented on June 4, 2024

I just noticed that the "pre-set floppy types" menuconfig option is set up to ignore manual input and assume 2.88M drives. @sparky4 what type of floppy drive do you have? 720K, 1.44M?

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

!! on my XT i believe it is a 720k one

from elks.

lithoxs avatar lithoxs commented on June 4, 2024

Looking for the problem I found another bug in the disk driver. I posted the fix for it. Probably this will not solve this issue. Now I suspect the problem begins when mounting the root filesystem. When mounting root, ELKS will print the following:

fd: probing disc in /dev/fd0
fd: /dev/fd0 probably has 18 sectors and 80 cylinders
.....
VFS: Mounted root (minix filesystem)

The number of sectors and cylinders reported may vary, It also may print an error indication.
What prints in your system?

from elks.

lithoxs avatar lithoxs commented on June 4, 2024

I just posted a pull request that might solve this issue. The problem is produced by a weird behavior of the int 13 BIOS with 720K floppies. Please make tests to confirm that the problem is solved.

from elks.

hufon avatar hufon commented on June 4, 2024

Ok, the problem is solved for me...
Thanks!!!

from elks.

hufon avatar hufon commented on June 4, 2024

I've another problem (not related) with my CF XTIDE adapter i'll open a new bug

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

ok i will test soon my AC unit got mold and it is hard to test i will pull latest version and test

from elks.

sparky4 avatar sparky4 commented on June 4, 2024

it is defiantly fixed ^^ <3

from elks.

mfld-fr avatar mfld-fr commented on June 4, 2024

Fixed by #44

from elks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.