Click Here
home features news forums classifieds faqs links search
6155 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!

/  Forum Index
   /  Amiga PPC Linux
      /  MOL SyncRead error [Resolved!]
Register To Post

Goto page ( 1 | 2 | 3 | 4 Next Page )
PosterThread
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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

@Geri

Okay I'll try that. But I included MoL with my 2.6.18 based Etch install disc so thought that would make it easier. So under what kernel did you last build it? Is there much work fudging the sources or makefiles to compile an A1 compatible MoL? Perhaps you could send me your headers and tell what kernel I should use.

Wonder if it can be compiled under MacOSX. Haha.

I'll just try downloading the latest and see how I go. Should have enough depends installed. Wish these sources had scripts to apt-get and install needed depends! Should be easier than fudging include files and trying to compile it on OS4!

 Status: Offline
Profile     Report this post  
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
Profile     Report this post  
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

@Hypex

Quote:
Hypex wrote:
@Geri

Okay I'll try that. But I included MoL with my 2.6.18 based Etch install disc so thought that would make it easier. So under what kernel did you last build it? Is there much work fudging the sources or makefiles to compile an A1 compatible MoL? Perhaps you could send me your headers and tell what kernel I should use.

I build it for kernel v2.6.18. Just make sure, that the *AMIGAONE* config option is selected (and not overwritten by the makefile). I'll have to compile a v2.6.32 kernel anyway. The kernel headers are just another makefile target then.

_________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB

- A1 Linux support -

 Status: Offline
Profile     Report this post  
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

@Hypex

Quote:
Hypex wrote:
@Geri

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.

That could have been the problem.

Quote:
Well compiled fine past the menu screen until it couldn't find a kernel header.

As expected.

Quote:
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.

Do you mean the kernel archives?

I'll try to prepare the kernel headers. I don't think a standard Linux kernel will work, as MoL needs some kernel functions that can't be used by modules anymore. I'll better try it with the latest Debian kernel sources.

_________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB

- A1 Linux support -

 Status: Offline
Profile     Report this post  
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

@Geri

Quote:
That could have been the problem.


I thought I may have to fudge __(attribute) stuff in but then I saw zlib. Aha! Replacement time. Then, fixed.

Quote:
As expected.




Quote:
Do you mean the kernel archives?


Yes. Since you have compiled kernels yourself I thought you may have backups of the kernel archives. And also your own kernel headers.

Quote:
I'll try to prepare the kernel headers.


Thanks. Didn't happen to backup or upload that 2.6.18 header somewhere?

 Status: Offline
Profile     Report this post  
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

@Hypex

Quote:
Hypex wrote:
@Geri

I thought I may have to fudge __(attribute) stuff in but then I saw zlib. Aha! Replacement time. Then, fixed.

I wonder how the Debian developers managed to build it. Maybe the zlib package was broken by a security update.

Quote:
Quote:
I'll try to prepare the kernel headers.


Thanks. Didn't happen to backup or upload that 2.6.18 header somewhere?

I don't have kernel headers for v2.6.18. IIRC the old "ppc" architecture in the Linux kernel doesn't offer any kernel headers related makefile target. But I would have to check that again.

I just reinstalled a Debian Squeeze system yesterday, so that I can experiment with the latest Debian 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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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

@Hypex

I uploaded the v2.6.18 Debian Linux kernel source to my webserver. It's the linux-source-2.6.18-a1.tar.bz2 file (with a size of 51MB ).

Unpack it to /usr/src/ and make sure the link /lib/modules/2.6.18/build points to it. Let's hope it works!

Last edited by Geri on 18-Feb-2010 at 09:05 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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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

@Geri

Quote:
Superb!


Yes it is.

BTW, I got an error with your archive in Linux. Said it was corupted. So I used Unarc on OS4 to take it back to a tar file and then LhA'ed it. Gave it to Linux and it was fine.

Guess that's a tar.lha.

Quote:
Yes, build the RPMs and use alien to convert it to debian packages. That worked fine so far.


Okay now I got problems again!

The mol kmods compiled fine but the main mol won't. I have 500MB left on my main volume. Too small?

So I copied the rpms to a volume with 4GB free. Then "alienated" it from there. Still says too small!

Here's th e ending error:
dh_builddeb
dpkg-deb (subprocess): data: internal gzip error: read(4096) != write(0): No space left on device
dpkg-deb: subprocess from tar -cf returned error exit status 2
dpkg-deb: building package `mol' in `../mol_0.9.73-2_powerpc.deb'.
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1
find: `mol-0.9.73': No such file or directory

I am root. It made a mol-0.9.73 directory. I found it!

 Status: Offline
Profile     Report this post  
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

@Hypex

Quote:
Hypex wrote:
@Geri

BTW, I got an error with your archive in Linux. Said it was corupted. So I used Unarc on OS4 to take it back to a tar file and then LhA'ed it. Gave it to Linux and it was fine.

Hmm, I just downloaded it from my webserver and it unpacks fine here.

Quote:
Guess that's a tar.lha.



Quote:
The mol kmods compiled fine but the main mol won't. I have 500MB left on my main volume. Too small?

So I copied the rpms to a volume with 4GB free. Then "alienated" it from there. Still says too small!

Here's th e ending error:
dh_builddeb
dpkg-deb (subprocess): data: internal gzip error: read(4096) != write(0): No space left on device
dpkg-deb: subprocess from tar -cf returned error exit status 2
dpkg-deb: building package `mol' in `../mol_0.9.73-2_powerpc.deb'.
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1
find: `mol-0.9.73': No such file or directory

I am root. It made a mol-0.9.73 directory. I found it!

Maybe your /tmp directory is too small. Does it work, if you set the TMPDIR environment variable to a directory with enough disk space?

_________________
A1SE: G3@600MHz, 2GB, 1GBit network card
A1XE: G4@933MHz, 2GB, refitted AC'97 codec
microA1: G3@800MHz, 1GB

- A1 Linux support -

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 | 3 | 4 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle