| Poster | Thread |
Hypex
 |  |
MOL SyncRead error [Resolved!] Posted on 10-Feb-2010 13:39:11
| | [ #1 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| Hello.
I've been trying to get OSX running on my A1. In the past I had 10.3 running from my PegXMac install which worked but I'd really like 10.4. I managed to install it once on an updated MOL so MacOSX can detect and write to my partition set aside for it. However, when I try to boot it always comes back with:
SyncRead error SyncRead error
It's very annoying! I thought it maybe because the OSX volume is 40GBs down the drive. So I tested my other drive and put it at the start. Same thing! Although I have had errors on that other drive before which might affect it.
Can this be fixed? Is there some special config entry I need to change? I read up on forums and according to them the problem was in the BootX loader or something and was fixed. And that was the version before the one I am trying, made for the 2.6.18 kernel. MOL 0.9.72-2. Last edited by Hypex on 14-Jun-2010 at 02:37 PM.
|
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 10-Feb-2010 15:34:59
| | [ #2 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @Hypex
Quote:
Hypex wrote: Hello.
Can this be fixed? Is there some special config entry I need to change? I read up on forums and according to them the problem was in the BootX loader or something and was fixed. And that was the version before the one I am trying, made for the 2.6.18 kernel. MOL 0.9.72-2. |
AFAIK this happens, if MoL tries to boot from the MOL driver image. Is the boot partition correctly specified?_________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 11-Feb-2010 14:04:36
| | [ #3 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Geri
AFAIK it is. I specify it as: blkdev: /dev/hdd2 -rw -boot
It detects it as HFS. At least it didn't complain about it.
And same error for this drive: blkdev: /dev/hdc1 -rw -boot
Here is the source code from mol-0.9.72.1/bootx/main/ci.c:  static int ops_ablk_read( vol_desc_t *v, unsigned int blk, char *dest, long length ) { if( OSI_ABlkSyncRead( v->channel, v->unit, blk, (int)dest, length ) < 0 ) { printm("SyncRead: error\n"); return -1; } return 0; } |
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 12-Feb-2010 12:09:34
| | [ #4 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @Hypex
Quote:
Here is the source code from mol-0.9.72.1/bootx/main/ci.c:  static int ops_ablk_read( vol_desc_t *v, unsigned int blk, char *dest, long length ) { if( OSI_ABlkSyncRead( v->channel, v->unit, blk, (int)dest, length ) < 0 ) { printm("SyncRead: error\n"); return -1; } return 0; } |
Note that I compiled mol-0.9.72 and not 0.9.72.1 for the A1! I don't know when the bootx bug was fixed, but I never got the latest MoL version to compile correctly on my A1. I may have to retry it again.Last edited by Geri on 12-Feb-2010 at 12:12 PM.
_________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 12-Feb-2010 15:11:51
| | [ #5 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Geri
Well that file looks the same so it must be deeper within! Perhaps I can try to compile as well. I still have my 2.6.18 kernel here so at least that shoud be compatible, If not try a later kernel. Last edited by Hypex on 14-Feb-2010 at 02:06 PM.
|
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 12-Feb-2010 16:36:06
| | [ #6 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @Hypex
Note that there are no kernel headers for kernel v2.6.18, so you have to recompile the kernel aswell. The best approach would probably be to take Debian's v2.6.32 kernel source. _________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 14-Feb-2010 3:46:29
| | [ #7 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| |
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 14-Feb-2010 14:24:20
| | [ #8 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Geri
Oh BTW. Quote:
| I never got the latest MoL version to compile correctly on my A1. |
I tried it today. I got some error about something in 64-bit. It was because of zlib, so downloaded zlib1.2.3 and manually made then installed it and it was fine.
Well compiled fine past the menu screen until it couldn't find a kernel header. 
BTW do you have any of these lying around? Those archives are big and I don't know what files I need. I just know it needs to go in one spot so it finds it.
Almost had it from one of your symlinks lying around but it goes no where on my system.  |
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 14-Feb-2010 14:47:26
| | [ #9 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 14-Feb-2010 14:47:29
| | [ #10 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 15-Feb-2010 14:14:58
| | [ #11 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| |
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 15-Feb-2010 15:21:46
| | [ #12 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 17-Feb-2010 13:46:12
| | [ #13 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Geri
Quote:
| I wonder how the Debian developers managed to build it. Maybe the zlib package was broken by a security update. |
Possibly was. But 1.2.3 seems fine on my system. For now.
Quote:
| I don't have kernel headers for v2.6.18 |
Well then looks like I will download a source and see what all the fuss is about that I need.
Quote:
| I just reinstalled a Debian Squeeze system yesterday, so that I can experiment with the latest Debian kernel source. |
Reinstalled? What happened? |
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 17-Feb-2010 15:18:30
| | [ #14 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @Hypex
Quote:
Hypex wrote: @Geri
Quote:
| I wonder how the Debian developers managed to build it. Maybe the zlib package was broken by a security update. |
Possibly was. But 1.2.3 seems fine on my system. For now. |
I wonder, if anyone filed a bug report? I was too lazy...
Quote:
Quote:
| I don't have kernel headers for v2.6.18 |
Well then looks like I will download a source and see what all the fuss is about that I need. |
Oddly enough there are no MoL packages for Debian Squeeze. Thus I don't think Squeeze's 2.6.32 kernel source was adapted for MoL.
Okay, after studying the "The Linux Kernel Module Programming Guide" HOWTO it looks like it's the kernel config file and the correct kernel source, which have to match to compile an external module. I'll put the kernel source on my webserver (the Debian Etch kernel source package may work then as well, if you apply the A1 patches). The config file should be included in the v2.6.18 kernel archive on amigaone-linux.sourceforge.net.
Quote:
| Reinstalled? What happened? |
Oh, nothing serious. I just messed up my other Squeeze partition a little bit, when I installed the custom libdrm2 and mesa packages. And I hate it to fight with aptitude. Last edited by Geri on 17-Feb-2010 at 03:31 PM.
_________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 18-Feb-2010 20:58:28
| | [ #15 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 19-Feb-2010 14:41:33
| | [ #16 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Geri
Thanks Geri. I thought that was 512MB but 51MB that's better. 
I also tracked down some headers myself includimg some 2.6.18 ones but wouldn't have a clue what to do with them. 
Will let everyone know how I go. |
|
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 21-Feb-2010 14:04:35
| | [ #17 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| @Geri
Hi.
Well I managed to compile it. 
Gave me a heap of warnings but got there in the end. Now how to I package and install it. I tried make install / install-modules / dist / rpms and still just have my old version. 
make dist annoyed me as it seems to delete all the .o files and compile again! What the?
Do I need to install alien and use that to convert to .deb to see my handiwork? |
|
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 21-Feb-2010 15:12:50
| | [ #18 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| @Hypex
Superb!
Yes, build the RPMs and use alien to convert it to debian packages. That worked fine so far. _________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB
- A1 Linux support - |
|
| Status: Offline |
|
|
Hypex
 |  |
Re: MOL SyncRead error Posted on 24-Feb-2010 15:48:04
| | [ #19 ] |
|
|
 |
Elite Member  |
Joined: 6-May-2007 Posts: 11351
From: Greensborough, Australia | | |
|
| |
| Status: Offline |
|
|
Geri
|  |
Re: MOL SyncRead error Posted on 24-Feb-2010 20:53:31
| | [ #20 ] |
|
|
 |
Elite Member  |
Joined: 7-Oct-2003 Posts: 2038
From: ST/AT | | |
|
| |
| Status: Offline |
|
|