Skip to contentSkip to conversation

2.4.6-pa20 question about modules

parisc-linux Joël Soete 3 participants 3 messages Jul 19, 2001 – Jul 20, 2001

lore
Share & tools
lore
#0 lore raw

Richard,

Just a small tips I use on my i386 linux-box: I launch the make in one line and tacke a log which I can so analyze later like:

make dep clean bzImage modules modules_install 2>&1 | tee /var/tmp/kl-200107.log

(presently replace bzImage by vmlinux for parisc on a parisc-box seems to work)

May be, it should be helpfull :))

Joel

ps: but with parisc-box I met a problem which I do not met with the xcompiler on i386 linux-box:

dmfe.c: In function `dmfe_timer':
dmfe.c:1193: Unable to find a register to spill in class `FP_REGS'. dmfe.c:1193: This is the insn:
(insn 255 254 894 (set (reg:DF 22 %r22 [157])

        (float:DF (reg:DI 4 %r4 [158]))) 149 {floatdidf2} (insn_list 254
(nil))
    (expr_list:REG_DEAD (reg:DI 4 %r4 [158])
        (expr_list:REG_EQUAL (unsigned_float:DF (reg:SI 156))
            (nil))))

dmfe.c:1193: confused by earlier errors, bailing out
make[2]: *** [dmfe.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.6-20010717/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.6-20010717/drivers'
make: *** [_mod_drivers] Error 2

any idea?

                                                                           =
                                       =20
                    Richard Hirst                                          =
                                       =20
                    <rhirst@linux        To:     Jo=EBl Soete/BRU/MASTERCAR=

D@MASTERCARD =20
care.com> cc: [email protected]@SMTP@EUR=
OPAY, =20
[email protected]=
g@SMTP@EUROPAY =20

                    19-07-01             Subject:     Re: [parisc-linux] 2.=
4.6-pa20 question about modules        =20
                    01:24 AM                                               =
                                       =20
                                                                           =
                                       =20
                                                                           =
                                       =20
Quoted 4 lines · Jo=EBl Soete

Hi Thomas,

With your tips
(

http://lists.parisc-linux.org/pipermail/parisc-linux/2001-July/013081.html)

Quoted 5 lines

the cvs 20010717 seems to works fine.
(for b180 still have to unplug re-plug kdb)

I also try to recompile it with the .config file supply with

palinux-0.9.2.

Quoted 2 lines

It also seems to works well but modules are not install naturally. Can you explain me how to compile it and install it?

If I understand correctly, you are rebuilding the kernel, and want kernel modules installed correctly under /lib/modules?

cd /usr/src/linux (or wherever your source tree is)

# save your .config file, if you want it
make distclean
cp <config file> .config
make oldconfig
make dep
make
make modules
make modules_install
cp vmlinux /boot/vmlinux   (or whereever you want it to go)

Richard

**********************************************************************
This e-mail and any attachments to it may contain confidential information = which is strictly intended for the use of the authorised recipient. If you=
have received this e-mail in error, please delete it and notify the sender= by replying to this e-mail.
Thank you for your co-operation.
**********************************************************************

#1 lore raw
Quoted 2 lines · Joël Soete

make dep clean bzImage modules modules_install 2>&1 | tee /var/tmp/kl-200107.log

don't do this. make dep creates dependencies which then need to be taken into account for later steps. you might rely on make getting this right, but i don't.

Quoted 5 lines

ps: but with parisc-box I met a problem which I do not met with the xcompiler on i386 linux-box:

dmfe.c: In function `dmfe_timer':
dmfe.c:1193: Unable to find a register to spill in class `FP_REGS'.

bug in that driver (it has x * 1.5, which uses fp). fixed in alan's tree, though i don't believe it's made its way into linus' tree yet.

consider youself lucky you get compile-time errors instead of random inexplicable fp corruption.

Signature · 1 line
Revolutions do not require corporate support.
#2 lore raw
In reply to Joël Soete

Quoth Joël Soete:

Quoted 4 lines

Just a small tips I use on my i386 linux-box: I launch the make in one line and tacke a log which I can so analyze later like:

make dep clean bzImage modules modules_install 2>&1 | tee /var/tmp/kl-200107.log

Safer to run them separately. You can still easily log them, there are many possible ways to do this ...

$ for target in clean dep vmlinuz modules modules_install
Quoted 2 lines

do make $target 2>&1 | tee -a /var/tmp/kl-200107.log done

$ (make clean ; make dep ; make vmlinux ; make modules ; make modules_install) 2>&1 | tee -a /var/tmp/kl-200107.log
$ script /var/tmp/kl-200107.log
Script started, output file is /var/tmp/kl-200107.log
$ make clean ; make dep ; make vmlinux ; make modules ; make modules_install ; exit
...
Script done, output file is /var/tmp/kl-200107.log
$

Andrew.

Signature · 4 lines
Andrew Shugg <[email protected]>                   http://www.neep.com.au/

"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there?  Well I'd like to meet him.  I could do with a good laugh."