Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qla2xxx: Initramfs no longer required
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
blu3bird
Retired Dev
Retired Dev


Joined: 04 Oct 2003
Posts: 614
Location: Munich, Germany

PostPosted: Fri Aug 15, 2008 12:34 pm    Post subject: Qla2xxx: Initramfs no longer required Reply with quote

If you own a SPARC system with a qla2xxx fibre channel adapter - SUN Blade 1000/2000 for instance - you have been through a lot to get it working with a recent kernel.

Before kernel 2.6.18 was released it worked out of the box but then the firmware has been removed from the kernel(due to licence issues) and an initramfs was required to boot such a system.

http://www.gentoo.org/proj/en/base/sparc/qla2xxx.xml was created to assist users in creating such an initramfs.

Not any more!

In kernel 2.6.27 a new features has been added that allows you to compile 3rd party (including non-GPL) firmwares directly into the kernel.

To set it up you need to install the kernel
Code:

>=sys-kernel/vanilla-sources-2.6.27_rc1
   or
>=sys-kernel/gentoo-sources-2.6.27


and the firmware for the qla2xxx adapter
Code:

sys-block/qla-fc-firmware


open up your kernel's menuconfig and set
Code:

Device Drivers  --->
   Generic Driver Options  --->
      External firmware blobs to build into the kernel binary

to "ql2200_fw.bin"

and
Code:

Device Drivers  --->
   Generic Driver Options  --->
      Firmware blobs root directory

to "/lib/firmware"

translated to .config this means:
Code:

CONFIG_EXTRA_FIRMWARE="ql2200_fw.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


Compile it, boot it and during the boot-process you'll see this line that indicates that everything works as it should:
Code:

firmware: using built-in firmware ql2200_fw.bin


Please note, the linux kernel is GPL, the qla2xxx firmware is NOT. That means you may not redistribute the resulting kernel image.
However, you may redistribute both, the linux kernel(source) and the firmware seperatly(under the terms of their licences) and provide instructions to others on how to compile it.
_________________
Black Holes are created when God divides by zero!
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Fri Sep 12, 2008 6:51 pm    Post subject: Reply with quote

Note also that once again you do not want to build the kernel driver as a module if you want to boot from a qla2xxx fibre channel disk. You will want:

Code:

CONFIG_SCSI_QLA_FC=y


Regards,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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