Closed ddraig68k closed 2 years ago
Not sure if this helps. after defining DEBUG I get the following when trying to boot from disk:
bootdev: hda1
Mounting root fs (root_dev=1, ro): fp->s_mounted=0x0000, fp->s_isize=0x00FF, fp->s_fsize=0x1033 failed
I suspsect that it could be down to how the disk image is created possibly how it's being written to the disk.
It's finding and doing the basic disk I/O ok as it is reading the partitions. However from the dump it looks like the partitions don't actually contain the expected file system data. That would suggest something went wrong setting the disk image up. You added a partition and stuff - does hda1 still start at block 2048 ?
The script has seek=2048 so it should be starting at that block. Does it require the partition to start at that location? I have tried changing it so the parition starts at the beginning of the CF card as well but i get the exact same issue happen.
Will try creating the disk under Linux rather than windows and see if I get the same issue.
The dd is putting the file system 2048 blocks in and my original partition table has the first partition there. I've no idea how this all works out with Windows I'm afraid or whether rufus went and created a new set of partitions and the like.
I seem to be making some progress here. Writing the image file to the card using Linux seems to work better. The fp->s_mounted value was byte swapped so I added the swab to the dd command line the same as on the tiny68k target. This time the disk seemed to mount at least but it's failing to find /init.
Motorola 68000 processor detected.
8196kB total RAM, 7094kB available to processes (64 processes max)
Enabling interrupts ... ok.
IDE drive 0: hda: hda1 hda2
IDE drive 1: ide error, status=0000
bootdev: hda1
Mounting root fs (root_dev=1, ro): fp->s_mounted=0x31C6, fp->s_isize=0x0100, fp->s_fsize=0xFFFF
OK
Starting /init
panic: no /init
I tried the 68000 image file from the fuzix website and that seems to get a little further before the computer halts. I'm assumming that's because it's for a different target machine than mine.
Devboot
Motorola 68000 processor detected.
8196kB total RAM, 7094kB available to processes (64 processes max)
Enabling interrupts ... ok.
IDE drive 0: hda: hda1 hda2
IDE drive 1: ide error, status=0000
bootdev: hda1
Mounting root fs (root_dev=1, ro): fp->s_mounted=0x31C6, fp->s_isize=0x0100, fp->s_fsize=0xFFFF
OK
Starting /init
init version 0.9.0ac#1
Now I need to work out what's happening with the file system.
It's working now building and from the disk. I hadn't set the ENDIANFLAG value. Still crashing on init but that's a separate issue.
Good to know. The swab on the Tiny68K is because the interface is hardware byteswapped by mistake.
I'm currently trying to port FUZIX to my 68000 based computer. I have the kernel built and it seems to be running but I seem to get getting problems when booting from the disk.
I'm currently loading the kernel into RAM and executing it. When running i'm getting up to the point where it's trying to access the disk:
No matter which partition I select I get the same error message.
The hda3 partition is a FAT32 partition which is required by my current DOS system so I can load the kernel into RAM.
I'm using the following to make the disk image file:
I'm building FUZIX using WSL on Windows then using Rufus to write the disk.img to the CF card first, then creating the FAT32 partition after that.
Is there anything obvious that i'm doing wrong here? Is this the correct way to create a disk image? Failing that, is there any sort of debug mode that I can enable to check out what's happening when it's trying to read the disk?