Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146428 - sys-boot/grub - add tg3 support to pxegrub
Summary: sys-boot/grub - add tg3 support to pxegrub
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-05 11:48 UTC by stefan.voelkel
Modified: 2006-09-08 15:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
file #1457 from http://savannah.gnu.org/bugs/?func=detailitem&item_id=9408 (grub-0.95-diskless-patch-2.patch.gz,399.95 KB, patch)
2006-09-05 11:50 UTC, stefan.voelkel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stefan.voelkel 2006-09-05 11:48:31 UTC
Hi,

we are using pxegrub to boot xen on a ProLiant BL20p G2 blade. They come with a tg3.o compatible controller:

01:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5703X Gigabit Eth
ernet (rev 02)

There is a patch available at:

http://savannah.gnu.org/bugs/?func=detailitem&item_id=9408

file #1457:  grub-0.95-diskless-patch-2.patch.gz added by fengshuo
> (399.95KB - application/x-gzip-compressed - Release_2 with new DHCP
> vendor tag, fix the sis900 bug )

which adds tg3 support to pxegrub. Works like a charm here :).

Applies to 0.96-r2 with some fuzz and one small reject in util/mkbimage.rej. just some $Id$ conflicts.

regards
  Stefan

Gentoo Base System version 1.6.15
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r13 i6
86)
=================================================================
System uname: 2.6.16-gentoo-r13 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /us
r/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distribut
ions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force -
-whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclud
e='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups curl dlloader dri
 eds emboss encode esd foomaticdb fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 im
lib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl
ogg opengl oss pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection
 sdl session simplexml soap sockets spell spl ssl syslog tcpd truetype truetype-fonts typ
e1-fonts udev unicode vorbis xml xmlreader xmlrpc xmlwriter xmms xorg xsl xv zip zlib eli
bc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux user
land_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEO
PTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 stefan.voelkel 2006-09-05 11:50:34 UTC
Created attachment 96096 [details, diff]
file #1457 from http://savannah.gnu.org/bugs/?func=detailitem&item_id=9408

Adding the patch here for conveniance
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-05 13:34:47 UTC
This is a patch for what exactly? 
Comment 3 stefan.voelkel 2006-09-05 13:44:19 UTC
This patch adds (besides others) support for the tg3 network card to pxegrub, thus enabling us to boot a xen hypervisor on these machines via dhcp/pxe.
Comment 4 stefan.voelkel 2006-09-06 06:00:56 UTC
Forgot to reopen the bug.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 06:04:58 UTC
I have NFC what is pxegrub. Need ebuild name for which is this patch.
Comment 6 stefan.voelkel 2006-09-07 02:49:55 UTC
Sorry if I was unclear, let's try it again.

This is a patch fur pxegrub, contained in the ebuild grub version 0.96-r2.

It adds support for the netboot enabled grub (namely pxegrub) for tg3.ko supported network cards (and others). AFAICT the patch is taken from the netboot project.

It applies with some fuzz and a small reject (only an $Id$ conflict).

It works nicely here, we are able to boot XEN on our BL20p G2 Blades via PXE/DHCP with this patch (Braodcom NetExtreme NIC, supported by tg3.ko).
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-09-07 02:57:06 UTC
(In reply to comment #6)
> This is a patch fur pxegrub, contained in the ebuild grub version 0.96-r2.

Yay, finally :) Thanks! :)
Comment 8 SpanKY gentoo-dev 2006-09-07 22:46:04 UTC
at this time, not interested in maintaining such a beast of a patch
Comment 9 stefan.voelkel 2006-09-08 04:31:30 UTC
ok, what needs to happen that this might go into gentoo as a patch? personally I am only interested in tg3 support, if there is a chance you will integrate it into  gentoo I might try to seperate tg3 support from the beastish patch.

since we have the hardware I am able to test it.
Comment 10 SpanKY gentoo-dev 2006-09-08 15:14:17 UTC
that depends ... there's not a chance we're going to add something that size

the only way i would add it:
 - you cut out just the tg3 parts
 - the tg3 parts modify *very little* outside of the tg3-specific driver

at the first signs of problems, i would simply punt the patch

so re-open if and when you accomplish these things