Discussion:
[Unattended] Difficulties building from SVN and firmware loading
Matthew Annen
2010-11-10 10:19:41 UTC
Permalink
I am having difficulties building from SVN.
Jason Oster
2010-11-10 14:54:19 UTC
Permalink
On 11/10/2010 03:19 AM, Matthew Annen wrote:
Jason Oster
2010-11-10 14:56:41 UTC
Permalink
I've been building Unattended SVN on Ubuntu 9.10 x86_64.
Correction: I've been using 10.04. My, how time flies! ;)
Jason Oster
2010-11-12 23:46:16 UTC
Permalink
Hi Jason, thanks for the reply. I am using 32bit Ubuntu. I
installed10.04.1 inside of Virtualbox and it did successfully build
svn of unattended. However, it did not successfully load network card
firmware upon boot. Not sure if I missed sokmething that I should
have changed in the kernel configuration
Does anyone know if the default 'make download' withbout any other
changes should have a working kernel with firmware loading?
Building from SVN is just the standard: make download && make iso

I don't know of any additional steps required to enable the feature
you're looking for. I haven't had a need for loading network card firmware.
As far as Ubuntu 10.10 and errors during 'make install, I did not
investigate that any further. If you install and get it to work with
Ubuntu 10.10, maybe you can share your method?
Well, as most things which don't go according to plan, I've run into
some trouble copying my files between the two machines today. I'll be
picking up on Monday where I leave off tonight. I'll report my progress
when I get to that point, not a problem.
Matthew Annen
2010-11-14 02:01:52 UTC
Permalink
I did successfully get firmware to load using SVN of unattended today.
I changed the kernel configuration using 'make menuconfig' in the
linux source directory linuxboot/linux-source... directory and changed
the option drivers-->general-->firmware directory to '/lib/firmware/'
instead of 'firmware'.

And I had to use Ubuntu 10.04.1 instead of 10.10. Ubuntu 10.10 gave
me errors while trying to build.

I hope this will help others.
david Vandergucht
2010-11-16 15:06:51 UTC
Permalink
Hi guys !

well, i too have trouble compiling unattended in order to solve my little
BCM57780 problem.

it seems that it fails while compiling glibc.

I'm compiling under gentoo 64, my kernell is 2.6.34-gentoo-r12 . Anyone ?
idea ? Btw, loading the gentoo live cd (kernell 2.6.34) on this BCM57780
machine fail to find the nic, but doing the following solve the problem:
rmmod tg3
modprobe broadcom
modprobe tg3


Anyway, here is the error at compilation:

/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
function `__fork':
(.text+0x81a75): undefined reference to `__sync_bool_compare_and_swap_4'
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
function `nscd_getpw_r':
nscd_getpw_r.c:(.text+0xe78f1): undefined reference to
`__sync_fetch_and_add_4'
nscd_getpw_r.c:(.text+0xe7b16): undefined reference to
`__sync_fetch_and_add_4'
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
function `nscd_getgr_r':
nscd_getgr_r.c:(.text+0xe7df2): undefined reference to
`__sync_fetch_and_add_4'
nscd_getgr_r.c:(.text+0xe80a3): undefined reference to
`__sync_fetch_and_add_4'
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
function `nscd_gethst_r':
nscd_gethst_r.c:(.text+0xe83d1): undefined reference to
`__sync_fetch_and_add_4'
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os:nscd_gethst_r.c:(.text+0xe8413):
more undefined references to `__sync_fetch_and_add_4' follow
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
function `__nscd_get_map_ref':
(.text+0xea6a0): undefined reference to `__sync_val_compare_and_swap_4'
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
function `__GI___libc_freeres':
(__libc_freeres_fn+0x8de): undefined reference to
`__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[2]: ***
[/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc.so] Error 1
make[2]: Leaving directory
`/usr/local/data/unattended/linuxboot/glibc-2.11.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/usr/local/data/unattended/linuxboot/build-glibc-2.11.1'
make: *** [build-glibc-2.11.1/libc.so] Error 2

2010/11/14 Matthew Annen <***@gmail.com>

I did successfully get firmware to load using SVN of unattended today.
Post by Matthew Annen
I changed the kernel configuration using 'make menuconfig' in the
linux source directory linuxboot/linux-source... directory and changed
the option drivers-->general-->firmware directory to '/lib/firmware/'
instead of 'firmware'.
And I had to use Ubuntu 10.04.1 instead of 10.10. Ubuntu 10.10 gave
me errors while trying to build.
I hope this will help others.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
unattended-info mailing list
https://lists.sourceforge.net/lists/listinfo/unattended-info
--
--
David Vandergucht
Studio Hari
Cour de Mai, Passage du cheval blanc
2 rue de la roquette
75011 paris
+33143076577
--
--
David Vandergucht
Studio Hari
Cour de Mai, Passage du cheval blanc
2 rue de la roquette
75011 paris
+33143076577
Jason Oster
2010-11-16 17:40:59 UTC
Permalink
Post by david Vandergucht
Hi guys !
well, i too have trouble compiling unattended in order to solve my
little BCM57780 problem.
There is another thread related to BCM57780:

http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTimDfa4Hh6a9QyNHnpnLwBnCmAR9D%2BCzYCyUsJfe%40mail.gmail.com&forum_name=unattended-info
Post by david Vandergucht
it seems that it fails while compiling glibc.
That can't be good! :P Unfortunately, I do not have experience with
Gentoo, especially compiling the Unattended linuxboot under Gentoo...
Post by david Vandergucht
I'm compiling under gentoo 64, my kernell is 2.6.34-gentoo-r12 . Anyone
? idea ? Btw, loading the gentoo live cd (kernell 2.6.34) on this
BCM57780 machine fail to find the nic, but doing the following solve the
rmmod tg3
modprobe broadcom
modprobe tg3
That's interesting to note, but the actual bug was fixed in Linux 2.6.35.
Post by david Vandergucht
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
(.text+0x81a75): undefined reference to `__sync_bool_compare_and_swap_4'
Google says the -march=i486 CFLAG is needed to fix this. Try running
make within the linuxboot directory like this:

CFLAGS="-march=i486" make
david Vandergucht
2010-11-17 14:45:45 UTC
Permalink
Hi again ! Jason, thanks for your help, I've successfully compiled
unattended on gentoo, and my dell vostro 430 with BCM57780 nic has managed
to start and find the network.

But, i had some trouble to do it, so i though i'd better share:

Jason, you told to use
CFLAGS="-march=i486" make

well that didn't work for me, maybe I'm doing something wrong. I had to edit
the Makefile in the unattended/linuxboot and change in the glibc section:
-march=i386 by i486

another thing, i had to emerge some tools:

emerge sys-fs/mtools
# for mcopy
emerge app-cdr/cdrtools
# for mkisofs

I hope this will help !

Anyway thanks again for this great tool !
Post by Jason Oster
Post by david Vandergucht
Hi guys !
well, i too have trouble compiling unattended in order to solve my
little BCM57780 problem.
http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTimDfa4Hh6a9QyNHnpnLwBnCmAR9D%2BCzYCyUsJfe%40mail.gmail.com&forum_name=unattended-info
it seems that it fails while compiling glibc.
That can't be good! :P Unfortunately, I do not have experience with
Gentoo, especially compiling the Unattended linuxboot under Gentoo...
I'm compiling under gentoo 64, my kernell is 2.6.34-gentoo-r12 . Anyone
Post by david Vandergucht
? idea ? Btw, loading the gentoo live cd (kernell 2.6.34) on this
BCM57780 machine fail to find the nic, but doing the following solve the
rmmod tg3
modprobe broadcom
modprobe tg3
That's interesting to note, but the actual bug was fixed in Linux 2.6.35.
Post by david Vandergucht
/usr/local/data/unattended/linuxboot/build-glibc-2.11.1/libc_pic.os: In
(.text+0x81a75): undefined reference to `__sync_bool_compare_and_swap_4'
Google says the -march=i486 CFLAG is needed to fix this. Try running make
CFLAGS="-march=i486" make
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
unattended-info mailing list
https://lists.sourceforge.net/lists/listinfo/unattended-info
--
--
David Vandergucht
Studio Hari
Cour de Mai, Passage du cheval blanc
2 rue de la roquette
75011 paris
+33143076577
Loading...