problem booting from sda during installation

2000-09-26 Thread Indraneel Majumdar
Hi,

I'm new to the list (which I've joined after becoming bald in the last 2
days trying to sort out this problem ;-( I've looked at the archives (also
LinuxPPC archives) with no result. Please help.

I've downloaded potatoPPC 1st CD and have mounted it -o loop on my
SuSE/intel box and then exported it via nfs. I made boot and root disks
and installed the basic system on our PowerPC Workgroup Server 8550/200
with 2GB sda. Partitions look like:
Apple Partition map
/   1.2GB
/var600MB
swap100MB
swap100MB

after first reboot it asks for floppy again and doesn't boot from sda.
Booting from floppy is fine and I can also chroot to /target and work
there (but I can't continue the install). I've also tried to make
Apple_Bootstrap partition as hfs using MacOS CD and tried using ybin but
I'm obviously getting stuck somewhere. Can someone help? I'm using Mac for
the first time and have never worked on MacOS before (so I couldn't follow
many of the archive threads). I'm debating whether to use LinuxPPC but
debian is such a nice distro (on intel at least) that I don't want to
leave it.

TIA,
Indraneel

/****.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Re: problem booting from sda during installation

2000-10-05 Thread Indraneel Majumdar
Hi,

sorry for this late followup. I was busy with PostgreSQL. but potato is
still not booting on my 8550. Sorry for the long post, please help:

On Tue, 26 Sep 2000, Ethan Benson wrote:

> On Wed, Sep 27, 2000 at 02:23:24AM -0700, Indraneel Majumdar wrote:
> > 
> > I've downloaded potatoPPC 1st CD and have mounted it -o loop on my
> > SuSE/intel box and then exported it via nfs. I made boot and root disks
> > and installed the basic system on our PowerPC Workgroup Server 8550/200
> > with 2GB sda. Partitions look like:
> > Apple Partition map
> > /   1.2GB
> > /var600MB
> > swap100MB
> > swap100MB
> 
> ok, not sure i get why you have 2 swap partitions, is this two disks?
> or are you under the impression that the linux kernel still has a
> limit of 128MB on swap partitions?

I thought any space after the first 128MB is left unused. Is this
incorrect? (previously swap partition _had_ to be less than 128MB to work
but that I guess was rectified).

> 
> > after first reboot it asks for floppy again and doesn't boot from sda.
> > Booting from floppy is fine and I can also chroot to /target and work
> > there (but I can't continue the install). I've also tried to make
> > Apple_Bootstrap partition as hfs using MacOS CD and tried using ybin but
> 
> don't do that, you cannot use the MacOS partitioner to create
> GNU/Linux partitions including the bootstrap partition.  see:
> 
> http://www.alaska.net/~erbenson/doc for help on partitioning with
> mac-fdisk.
> 

I did. mac-fdisk is working fine, it was always working fine. I have
partitions like this now (in a bid to make easy test cycles):
Apple Partition map
/   2.1GB
It still doesn't boot from sda

I'll explain again: I can stick in the boot floppy and install over NFS.
Everything is fine. I follow the installation menu and come to where it
wants to make linux directly bootable from hard disk. That happens (it
runs quik) and then wants to reboot. It reboots, ejects root floppy, and
shows gray screen of "?". Here is the quik.conf I can see when I boot
using floppy and mount the sda at /target:

partition=2 ## does not work even with partition=1
root=/dev/sda2
timeout=100
image=/vmlinuz
label=linux
read-only

I am able to run quik after booting from floppy with -C option. This is
the output:

Second-stage loader is on /dev/sda2
Config file is on partition 2
Writing first-stage QUIK boot block to /dev/sda2
Making /dev/sda2 bootable (map entry 2)
Writing block table to boot block on /dev/sda2

This is part of the dmesg output:

--
scsi0 : MESH
scsi1 : 53C94
scsi : 2 hosts.
mesh: rejecting message from target 0: 1 1 3
mesh: bs0=2f in msg_out
mesh: rejecting message from target 0: 19
mesh: bs0=2f in msg_out
mesh: rejecting message from target 0: f
  Vendor: SEAGATE   Model: ST32550N  Rev: 3705
  Type:   Direct-Access  ANSI SCSI revision: 01 CCS
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
  Vendor: ARCHIVE   Model: Python 02830-XXX  Rev: 576B
  Type:   Sequential-Access  ANSI SCSI revision: 01
  Vendor: MATSHITA  Model: CD-ROM CR-8008Rev: 8.0e
  Type:   CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi1, channel 0, id 3, lun 0
scsi : detected 3 SCSI generics 1 SCSI cdrom 1 SCSI disk total.
Uniform CD-ROM driver Revision: 3.11
SCSI device sda: hdwr sector= 512 bytes. Sectors= 4194058 [2047 MB] [2.0
GB]
eth0: MACE at 00:05:02:68:d9:09, chip revision 25.64
Partition check:
 sda: sda1 sda2


If this gets solved, we'll put debian on 2 more macs, so I'm really biting
my nails.
Thanks,
Indraneel

> on other thing, you mention this is a 8550?  is this correct? if so

yeah, machine is a 8550/200

> you cannot use ybin/yaboot, as your machine is not a Newworld.  the
> bootloader you want is quik.  also the bootstrap partition is not of
> much use on oldworld macs unless you want to try and mess with
> miboot.  (which i don't want to go into..)
> 
> > I'm obviously getting stuck somewhere. Can someone help? I'm using Mac for
> > the first time and have never worked on MacOS before (so I couldn't follow
> > many of the archive threads). I'm debating whether to use LinuxPPC but
> > debian is such a nice distro (on intel at least) that I don't want to
> > leave it.
> 
> we need some more info, but i think your problem is trying to use
> yaboot on an oldworld, that won't work.  
> 
> -- 
> Ethan Benson
> http://www.alaska.net/~erbenson/
> 

/.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Re: problem booting from sda during installation

2000-10-06 Thread Indraneel Majumdar
Hi,

Some terrible seems to have happened. I tried this:

nvsetenv boot-device sd:2

it was: 
boot-device /AAPL,ROM 
earlier

Now on powering up the system I get nothing on the screen, no grey screen,
and it doesn't boot from floppy or Mac CD either. What do I do? Have I
changed some setting in the BIOS? Is there any motherboard jumper setting
to get back to original state?

I have no idea about OpenFirmware (I'm running a Mac for the first time
in my life). On x86 I hit del or F2, is there something like that on the
Mac? Also there is no ofboot program with ybin. There is a mkofboot but
the docs said it was for NewWorld Macs.

Please help, waiting anxiously,
Indraneel

On Thu, 5 Oct 2000, Ethan Benson wrote:

> yes you need to fix OF first, you do this by running 
> 
> nvsetenv boot-device 
> 
> where  is the OpenFirmware path to the disk.  the ofpath utility
> included with recent ybin distributions has some support for oldworld
> macs, i don't think its been tested on an 8550 however.  
> 
> i am sure all you need to do is reconfigure OpenFirmware.  this is not
> done automatically unfortunatly.  (though now it could on some
> machines using ofpath)
> 
> -- 
> Ethan Benson
> http://www.alaska.net/~erbenson/
> 

/****.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Re: problem booting from sda during installation

2000-10-06 Thread Indraneel Majumdar
On Thu, 5 Oct 2000, Ethan Benson wrote:

> i am not entire sure what the 8550 is, like i said, try ofpath it may
> already support that machine.
> 

(the kernel is at sda2 in usual potato location with symlink)
this is what ofpath gives when I run ofpath /dev/sda2:
/bandit/gc/mesh/[EMAIL PROTECTED]:2

I did:

nvsetenv boot-device /bandit/gc/mesh/[EMAIL PROTECTED]:2
(I also tried with these:
/bandit/gc/mesh/[EMAIL PROTECTED]
/bandit/gc/mesh/[EMAIL PROTECTED]:2\\vmlinux )

nvsetenv showed that the entries were updated. On rebooting it again
stopped at blank screen. I noticed however that the starting music played
twice (previously it was playing only once)

Do I need to run quik again after all this? I tried with and without
running quik, it didn't work. Also I am running ofpath directly after
booting from floppy. But I am running nvsetenv after doing chroot /target

> hold down
> 
> command option p r 
> 
> while COLD booting the machine

Thanks a huge lot (wiping my forehead). It worked, that's how I could do
the above !

> utility.  if your looking at the ybin debian package you would have to
> get the newwer debs out of proposed-updates, or the tarball on my web
> page, the only part you need to extract is the ofpath utility

that's what I ran

> -- 
> Ethan Benson
> http://www.alaska.net/~erbenson/
> 

What do I have to put in the nvsetenv line? All the bandit stuff or scsi?
Will I have to put the kernel image location?

Thanks for your continued help (blood flows back into veins)
Indraneel

/****.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Re: problem booting from sda during installation

2000-10-06 Thread Indraneel Majumdar
Hi,

I'm terribly sorry for breaking off. I had to relocate my machines around
the lab due to emergencies. I'm online again.

On Fri, 6 Oct 2000, Ethan Benson wrote:

> you want to use 
> 
> /bandit/gc/mesh/[EMAIL PROTECTED]:2
> 

did not work

> or the more common method:
> 
> /bandit/gc/mesh/[EMAIL PROTECTED]:0

I did this and it worked, only once. Over enthused, I tried making a swap
partition and retried the process and it's not working anymore, even with
1 partition. I'm retrying it again, though.

> 
> also, make sure in your quik.conf that your image= line points to a
> real kernel and not a symlink, for some reason quik does not work
> reliably with symlinks.
> 

Yeah, I am running
quik -v -f -C /etc/quik.conf
after changing the image line in quik.conf

Hope it works this time.

Thanks a huge lot,
Indraneel

> -- 
> Ethan Benson
> http://www.alaska.net/~erbenson/
> 

/****.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Re: problem booting from sda during installation

2000-10-06 Thread Indraneel Majumdar
Hi,

A huge lot of thanks to you and all those who helped me out of this.
Everything is working fine now so you might as well add Workgroup
Server 8550/200 to the Debian Potato success list.

I have been able to make a swap and var partition and machine is rebooting
fine (an unhealthy way to test a machine, really). After installation and
booting from hard disk step (to get a premade quik.conf) I followed
Ethan's words to the core. I got the 'ofpath' script and ran it:

./ofpath /dev/sda
then i did

chroot /target
nvsetenv boot-device /bandit/gc/mesh/[EMAIL PROTECTED]:0

then I ran quik (not working without this step):
quik -v -f -C /etc/quik.conf
with image pointing to actual kernel.

then exit and reboot

At startup first time I get the starting music twice, thereafter only
once. It takes a little while to start up after the music (about 5 to 10
sec) (that's how I learnt to be patient to achieve a good thing) and
eventually darkness disappears and the penguin shows the light.

It's working great and right now I'm struggling with X configuration. 
Mouse is not working. My mouse fits into the keyboard and has 4 pins. 
XF86Config has entries BusMouse and /dev/adbmouse . X reports that it is
providing value of 3 button mouse. below the single button mouse is
written "Apple Desktop Bus Mouse II, family No M2706".  XF86Setup or
xf86config do not seem to be on my system (Probably I have to build the
second CD iso image). i'm thinking of giving 'alien' a try (last time I
used it I had a nightmare, but this is a fresh system ;-) i'll wake up
early tomorrow (after a few hours) and give the next Mac a try. That one's
a 8600 which should also work. 

I cannot thank you enough for your help. I'm not a seasoned Debian user
but I'm trying to migrate from RedHat/SuSE to Debian/GNU/Slackware and
this is the first time I'm on a Debian list. Thank you very much for your
support. i think I'm beginning to understand what makes Debian the best.

Thanking you,
indraneel

On Fri, 6 Oct 2000, Ethan Benson wrote:

> you want to use 
> 
> /bandit/gc/mesh/[EMAIL PROTECTED]:2
> 
> or the more common method:
> 
> /bandit/gc/mesh/[EMAIL PROTECTED]:0
> 
> the partition 0 trick makes OF load the boot block from the partition
> marked bootable, which is your root partition, so it really should not
> make any difference

> 
> one other thing, you will probably need to use at least the final
> 2.2.17 kernel (from ftp.kernel.org) the debian kernels are older and
> may not work.  
> 

> also, make sure in your quik.conf that your image= line points to a
> real kernel and not a symlink, for some reason quik does not work
> reliably with symlinks.
> 
> -- 
> Ethan Benson
> http://www.alaska.net/~erbenson/
> 

/.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Re: problem booting from sda during installation

2000-10-07 Thread Indraneel Majumdar
Hi,

bothering you again, hope you won't mind. My mouse is really not working.
Means gpm too is not working, not just a problem with buttons, the cursor
in text mode does not show up and cursor in X shows up but doesn't move.
I'm back to the days when the SiS6215C card was just launched (for the
PC). Also man XF86Config is not working. Infact the man command just hangs
if the manual page is not there (there is no error message).
And where is "BenH's" web page? I'm new to the list.
 
\Indraneel

On Fri, 6 Oct 2000, Michael Schmitz wrote:

> > It's working great and right now I'm struggling with X configuration. 
> > Mouse is not working. My mouse fits into the keyboard and has 4 pins. 
> 
> That would be an ADB mouse. Additional mouse buttons can be emulated by
> keys using the adb_buttons=1,x,y kernel option (x and y being the keycodes
> for the emulation keys). 
> 
> > XF86Config has entries BusMouse and /dev/adbmouse . X reports that it is
> 
> Up to BenH's 2.2.17-pre series, /dev/adbmouse was used for ADB mice, with
> the protocol set to BusMouse. Recently, mouse data have been switched to 
> /dev/input/mice with IMPS/2 procotol, see the description on BenH's web
> page on how to set up devices and mouse button there.
> 
>   Michael
> 

/.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



passing kernel options [was Re: problem booting from sda...]

2000-10-07 Thread Indraneel Majumdar
And one more thing:
How do I pass options to the kernel? Now quik doesn't show me any 
"LILO boot:" prompt for 30 seconds. The penguin is enabled by default and
I miss the initial boot messages as well as any prompts which might have
been there. Any settings to be make in quik.conf for prompt to appear
(like prompt in lilo.conf)?

Thanks,
Indraneel

On Fri, 6 Oct 2000, Michael Schmitz wrote:

> > It's working great and right now I'm struggling with X configuration. 
> > Mouse is not working. My mouse fits into the keyboard and has 4 pins. 
> 
> That would be an ADB mouse. Additional mouse buttons can be emulated by
> keys using the adb_buttons=1,x,y kernel option (x and y being the keycodes
> for the emulation keys). 
> 
> > XF86Config has entries BusMouse and /dev/adbmouse . X reports that it is
> 
> Up to BenH's 2.2.17-pre series, /dev/adbmouse was used for ADB mice, with
> the protocol set to BusMouse. Recently, mouse data have been switched to 
> /dev/input/mice with IMPS/2 procotol, see the description on BenH's web
> page on how to set up devices and mouse button there.
> 
>   Michael
> 

/****.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/



Mouse not working [was: Re: problem booting from sda...]

2000-10-08 Thread Indraneel Majumdar
On Fri, 6 Oct 2000, Michael Schmitz wrote:

> That would be an ADB mouse. Additional mouse buttons can be emulated by
> keys using the adb_buttons=1,x,y kernel option (x and y being the keycodes
> for the emulation keys). 

adb_buttons=1 is not working. I put it in append line in quik.conf. My
mouse has "Apple Desktop Bus Mouse II" written below it, has 4 pins, only
one button and fits into the keyboard and works in MacOS. 

I've tried protocols BusMouse, PS/2, IMPS/2 and devices adb,
adbmouse, nvram, psaux, usbmouse and none are working. 

gpm-mouse-test says the possible types might be:
adbmouse, nvram, ttyS0, ttyS1, usbmouse
and for adbmouse, ps2, imps2, usbmouse it reports baudrate 9600 and below
even if mouse is not clicked (it becomes lesser with each keypress).

relevant parts of the dmesg output are given below

> Up to BenH's 2.2.17-pre series, /dev/adbmouse was used for ADB mice, with
> the protocol set to BusMouse. Recently, mouse data have been switched to 
> /dev/input/mice with IMPS/2 procotol, see the description on BenH's web
> page on how to set up devices and mouse button there.
> 

Where can I find BenH's pages?

It's not that I can't do without a mouse (considering that I'll configure
the machine as a server) but it'll certainly help. And also I'm new to
Mac, and relatively new to Debian so I do want to set up a working X on a
Mac monitor.

\Indraneel

--dmesg | less 

PCI: Probing PCI hardware
adb devices: [2]: 2 2

OHCI USB Driver loading
usbcore: Registered new driver mouse
USB HID boot protocol mouse driver registered.
usbcore: Registered new driver keyboard
usbcore: Registered new driver hub

ADB keyboard at 2, handler set to 3

Macintosh ADB mouse driver installed.

end--

/****.
# Indraneel Majumdar  ¡  E-mail: [EMAIL PROTECTED]  #
# Bioinformatics Unit (EMBNET node),  ¡  URL: http://scorpius.iwarp.com  #
# Centre for DNA Fingerprinting and Diagnostics, #
# Hyderabad, India - 500076  #
`/