Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo aboot issues on alpha ev56
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
jakertberry
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 92
Location: Milwaukee, WI

PostPosted: Wed Jan 03, 2007 7:55 am    Post subject: Gentoo aboot issues on alpha ev56 Reply with quote

Hello,
I'm currently trying to get my alpha box to run gentoo. I've gotten everything setup through the bootloader. Now I'm beginning to run into issues...

My current system setup has two SCSI drives. I have them set up as a raid through mdadm. The swap (/dev/sda2 & /dev/sdb2 [/dev/md2]) and root partition (/dev/sda4 & /dev/sdb4 [/dev/md3]) are set up as a raid0. The boot partition (/dev/sda1 & /dev/sdb1 [/dev/md1]) is set up as raid1 (so aboot can read it even when it's not mounted as a raid).

Here's fdisk output:
Code:
livecd ~ # fdisk /dev/sda
Detected an OSF/1 disklabel on /dev/sda, entering disklabel mode.

BSD disklabel command (m for help): p

4 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        2        13        12     unused        0     0       
  b:       14        76        63     unused        0     0       
  c:        1      2231      2231     unused        0     0       
  d:       77      2231      2155     unused        0     0       

BSD disklabel command (m for help):


Code:
livecd ~ # fdisk /dev/sdb
Detected an OSF/1 disklabel on /dev/sdb, entering disklabel mode.

BSD disklabel command (m for help): p

4 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        2        13        12     unused        0     0       
  b:       14        76        63     unused        0     0       
  c:        1      2231      2231     unused        0     0       
  d:       77      2231      2155     unused        0     0       

BSD disklabel command (m for help):


And my aboot.conf:
Code:
livecd ~ # cat /mnt/gentoo/etc/aboot.conf
#
# aboot default configurations
#
0:1/boot/vmlinux.gz ro root=/dev/md3
#1:3/vmlinux.old.gz ro root=/dev/sda2
#2:3/vmlinux.new.gz ro root=/dev/sda2
#3:3/vmlinux ro root=/dev/sda2
8:- ro root=/dev/sda2           # fs less boot of raw kernel
9:0/- ro root=/dev/sda2         # fs less boot of (compressed) ECOFF kernel
-


When I do an swriteboot, sometimes I'll get an "unaligned trap" error.
Code:
livecd boot # swriteboot /dev/sda /boot/bootlx -f3 -c2 -v
setting boot partition to 2
bootsize:160 sectors
bootsect:2
swriteboot(7250): unaligned trap at 0000000120001128: 000000011f89f0e4 29 1
swriteboot(7250): unaligned trap at 0000000120001128: 000000011f89f0ec 29 1
swriteboot(7250): unaligned trap at 0000000120001128: 000000011f89f0f4 29 1
swriteboot(7250): unaligned trap at 0000000120001128: 000000011f89f0fc 29 1
done!


Adding the -v and changing to -c1 will fix it..
Code:
livecd boot # swriteboot /dev/sda /boot/bootlx -f3 -c1 -v
setting boot partition to 1
bootsize:160 sectors
bootsect:2
done!


Then I'll check abootconf:
Code:
livecd boot # abootconf /dev/sda
aboot.conf partition currently set to 1


Everything looks good up to this point. I'll do a reboot and this is where I get stuck in SRM:
Code:
>>>boot dkc0
(a few lines are missing here..continuing to what I see on the screen)
reading 160 blocks from dkc0.0.0.1009.0
bootstrap code read in
base = 1d8000, image_start = 0, image_bytes = 14000
initializing HWRPB at 2000
initializing page table at 1ca000
initializing machine state
setting affinity to the primary CPU
jumping to bootstrap code
aboot: Linux/Alpha SRM bootloader version 1.0_pre20040408
aboot: switching to OSF/1 PALcode version 1.22
aboot: booting from device 'SCSI 0 1009 0 0 0 0 0'
aboot: valid disklabel found: 4 partitions.
aboot: don't know how to mount partition 1 (filesystem type 0)
Welcome to aboot 1.0_pre20040408
Commands:
(commands are listed here)


It can't find my partition and therefore can't load the kernel:
Code:
aboot> l
aboot: don't know how to mount partition 1 (filesystem type 0)
Partition 1 is invalid. Please specify another with 'p'
aboot> p 2
aboot: don't know how to mount partition 2 (filesystem type 0)
Partition 2 is invalid. Please specify another with 'p'
aboot>


My boot partition is ext3. My root partition is reiserfs.

I know I'm close. What else am I missing?

Thanks!!
~Jaker
_________________
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM/CC/IT/TW d- s++:- a- C++++$ UL+++$ P+ L+++$ !E W+++$ !N !o K-? w++++$ !O- M+ !V-- PS+ PE Y++$ PGP t+ 5 X R+ tv b+ DI++ D++ G+ e+ h+ r y+
------END GEEK CODE BLOCK------
Back to top
View user's profile Send private message
Ferdy
Retired Dev
Retired Dev


Joined: 04 May 2002
Posts: 483
Location: España

PostPosted: Wed Jan 03, 2007 9:24 am    Post subject: Reply with quote

I don't think you can put /boot under raid since aboot needs to access there *before* the kernel is loaded (since aboot loads the kernel :P). Obviously it doesn't know about your raid.

Just use a spare ext3 partition for /boot and you should be done.

- ferdy
Back to top
View user's profile Send private message
jakertberry
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2004
Posts: 92
Location: Milwaukee, WI

PostPosted: Thu Jan 04, 2007 7:01 am    Post subject: Reply with quote

Well, I reformatted my raid1 /boot partition so it wasn't a raid (it was just a plain old ext3 /dev/sda1 partition). I redid everything and I'm still getting the same error (aboot: don't know how to mount partition 1 (filesystem type 0)).

Why on earth can't aboot see that ext3 partition??
8O
_________________
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM/CC/IT/TW d- s++:- a- C++++$ UL+++$ P+ L+++$ !E W+++$ !N !o K-? w++++$ !O- M+ !V-- PS+ PE Y++$ PGP t+ 5 X R+ tv b+ DI++ D++ G+ e+ h+ r y+
------END GEEK CODE BLOCK------
Back to top
View user's profile Send private message
Ferdy
Retired Dev
Retired Dev


Joined: 04 May 2002
Posts: 483
Location: España

PostPosted: Fri Jan 05, 2007 7:35 pm    Post subject: Reply with quote

How do you have your partitions set up ? Take a look at our handbook, since there are a couple of oddities.

- ferdy
Back to top
View user's profile Send private message
Kloeri
Retired Dev
Retired Dev


Joined: 02 Sep 2002
Posts: 144

PostPosted: Fri Jan 05, 2007 11:31 pm    Post subject: Re: Gentoo aboot issues on alpha ev56 Reply with quote

jakertberry wrote:

Here's fdisk output:
Code:
livecd ~ # fdisk /dev/sda
Detected an OSF/1 disklabel on /dev/sda, entering disklabel mode.

BSD disklabel command (m for help): p

4 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        2        13        12     unused        0     0       
  b:       14        76        63     unused        0     0       
  c:        1      2231      2231     unused        0     0       
  d:       77      2231      2155     unused        0     0       

BSD disklabel command (m for help):



Why is fstype set to unused? You need to set fstype properly (swap and ext2). Partition c is the only one that should be unused.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum