Jason | 1 Nov 12:25
Gravatar

Re: asm/page.h: No such file or directory - Link error

Jean-Claude Gervais wrote:
> On Wed, 2007-10-31 at 20:43 +0100, Pal Szasz wrote:
>> Just a little addition: there is another flag which might be involved:
>>
>> -mfloat-abi=softfp
>>
> 
> How do I pass those flags to the compiler by using crossedev?
> 
> Here's the shell script I am currently using.
> I changed it to go with Jason's recommended toolset versions but I am
> still getting the same linking errors about floating-point
> incompatibilities...
> 
> .-.-.-.-.-.-.-
> 
> #!/bin/bash
> 
> CBUILD="i686-pc-linux-gnu"
> 
> CHOST=$CBUILD
> 
> CTARGET="arm-softfloat-linux-uclibc"
> 
> #export ROOT="/usr/arm-softfloat-linux-uclibc"
> 
> PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-uclibc"
> 
> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v --binutils 2.17 --gcc 3.4.6-r2
> --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target
(Continue reading)

Mike Frysinger | 2 Nov 17:00
Picon
Favicon
Gravatar

Re: asm/page.h: No such file or directory - Link error

On Wednesday 31 October 2007, Jean-Claude Gervais wrote:
> Thank you, Pal!

stop with the top posting

> 	That did indeed help; by putting an empty file at
>
> /usr/arm-softfloat-linux-uclibc/usr/include/asm/page.h

this has been fixed in newer uClibc's, but this workaround should get you to 
compile (most of the time)

> arm-softfloat-linux-uclibc-ld:
> ERROR: /usr/lib/gcc/arm-softfloat-linux-uclibc/4.1.2/libgcc.a(_udivsi3.o)
> uses VFP instructions, whereas libuClibc-0.9.28.so does not

softfloat is broken in gcc-4.x so until someone looks into it and fixes it, 
use gcc-3.4.x for softfloat
-mike
Marco Costa | 2 Nov 17:33
Picon

Re: asm/page.h: No such file or directory - Link error

Hi Mike.

> stop with the top posting
>

There are some nice words, like "please", did you know that?

My best regards,

Marco Costa.
Jason | 2 Nov 17:37
Gravatar

Re: asm/page.h: No such file or directory - Link error


A: No.
Q: Should I include quotations after my reply?

Marco Costa wrote:
> Hi Mike.
> 
>> stop with the top posting
>>
> 
> There are some nice words, like "please", did you know that?

I've found gregkh's approach works the best (see above)

Jason.
Marco Costa | 2 Nov 17:44
Picon

Re: asm/page.h: No such file or directory - Link error

Hi Jason!

2007/11/2, Jason <gentoo@...>:
>
> A: No.
> Q: Should I include quotations after my reply?
>
>
> I've found gregkh's approach works the best (see above)
>

It is very subtle and instructive indeed ;).

Regards,

Marco Costa
Marc Blumentritt | 2 Nov 19:42
Picon
Favicon

Re: busybox init scripts

Mike Frysinger schrieb:
> i think the best from a support stand point would be to have a busybox-initd 
> package that'd parse the busybox config file to see what is enabled, and then 
> copy the relevant init.d scripts from the portage tree.  creating independent 
> scripts is just a maintenance nightmare.
> 
> so if busybox supports hdparm, it'd do:
> newinitd ${PORTDIR}/sys-apps/hdparm/files/hdparm-init-8 hdparm
> newconfd ${PORTDIR}/sys-apps/hdparm/files/hdparm-conf.d.3 hdparm

I tried to find packages, which could provide init scripts for bb
syslogd and bb crond, but could not find some "general" init scripts.
E.g. syslog-ng looks for syslog-ng and not syslogd. Therefore I think,
that at least most bb system and network daemons require their own init
scripts or did I miss packages, which could be used for this?

Regards,
Marc

Natanael Copa | 2 Nov 19:51
Picon
Gravatar

Re: Re: busybox init scripts


On Fri, 2007-11-02 at 19:42 +0100, Marc Blumentritt wrote:
> Mike Frysinger schrieb:
> > i think the best from a support stand point would be to have a busybox-initd 
> > package that'd parse the busybox config file to see what is enabled, and then 
> > copy the relevant init.d scripts from the portage tree.  creating independent 
> > scripts is just a maintenance nightmare.
> > 
> > so if busybox supports hdparm, it'd do:
> > newinitd ${PORTDIR}/sys-apps/hdparm/files/hdparm-init-8 hdparm
> > newconfd ${PORTDIR}/sys-apps/hdparm/files/hdparm-conf.d.3 hdparm
> 
> I tried to find packages, which could provide init scripts for bb
> syslogd and bb crond, but could not find some "general" init scripts.
> E.g. syslog-ng looks for syslog-ng and not syslogd. Therefore I think,
> that at least most bb system and network daemons require their own init
> scripts or did I miss packages, which could be used for this?

I think it sounds reasonable. Reusing scripts might work in a few cases
but I suspect it would be easier to just make all the init.d script for
busybox.

-nc

Picon

Re: asm/page.h: No such file or directory - Link error

On Thu, 2007-11-01 at 07:25 -0400, Jason wrote:
> Jean-Claude Gervais wrote:
> > On Wed, 2007-10-31 at 20:43 +0100, Pal Szasz wrote:
> >> Just a little addition: there is another flag which might be involved:
> >>
> >> -mfloat-abi=softfp
> >>
> > 
> > How do I pass those flags to the compiler by using crossedev?
> > 
> > Here's the shell script I am currently using.
> > I changed it to go with Jason's recommended toolset versions but I am
> > still getting the same linking errors about floating-point
> > incompatibilities...
> > 
> > .-.-.-.-.-.-.-
> > 
> > #!/bin/bash
> > 
> > CBUILD="i686-pc-linux-gnu"
> > 
> > CHOST=$CBUILD
> > 
> > CTARGET="arm-softfloat-linux-uclibc"
> > 
> > #export ROOT="/usr/arm-softfloat-linux-uclibc"
> > 
> > PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-uclibc"
> > 
> > UCLIBC_CPU="ARM920T" USE="-*" crossdev -v --binutils 2.17 --gcc 3.4.6-r2
(Continue reading)

Marc Blumentritt | 2 Nov 20:41
Picon
Favicon

Re: baselayout-2, busybox and uclibc

Hi,

I just want to give some feedback how far I'm with this. The base system
is quite minimal, only busybox, uclibc, and baselayout-2 is used.
Installation of every dependency of baselayout-2 is "blocked" in
/etc/portage/profile/package.provided. The system is booting quite fast
even with slow bios (did not use stop watch, but it is below 10 secs
including bios, which takes more than 3 secs). I use now busybox init
with special boot script to get it running with gentoo runlevels. There
seems to be a bug with bb init and PPID of processes (I will post this
on bb list), but it is not serious (at least I think so). As I wrote
earlier, a correct entry in fstab for rootfs is important (option
noauto), otherwise there will be an error message or even a broken
double mount on /. Consolefont and keymap is set with bb tools (keymap
file was created with bb dumpkmap). One error I overlooked up until 3
days ago was with checking the file systems. baselayout-2 expects
fsck.ext2 (e.g. for my boot partition), but bb provides e2fsck. There
seems also to be a bug with bb grep, which I will post on bb list, too
(try busybox grep -Fow usbfs /proc/filesystems). I'm using now a modular
kernel, because I plan to use lirc in the future, which provides kernel
modules. To be sure to have correct configuration files for modules
(e.g. /etc/modules.d/*), you have to run update-modules from
module-init-tools, which is a bash script. This command is also called
by the modules init script. Since I do not have bash in my embedded
system, calling this script results in an error. Therefore I have to run
it in my build system (linked my embedded /etc to my build /etc).

One thing I'm still working on is proper use of mdev. Thanks to
alpine-baselayout from Natanael, I have now a better idea how to do this.

(Continue reading)

Jason | 2 Nov 20:58
Gravatar

Re: asm/page.h: No such file or directory - Link error

Jean-Claude Gervais wrote:
> On Thu, 2007-11-01 at 07:25 -0400, Jason wrote:
>> Jean-Claude Gervais wrote:
>>> On Wed, 2007-10-31 at 20:43 +0100, Pal Szasz wrote:
>>>> Just a little addition: there is another flag which might be involved:
>>>>
>>>> -mfloat-abi=softfp
>>>>
>>> How do I pass those flags to the compiler by using crossedev?
>>>
>>> Here's the shell script I am currently using.
>>> I changed it to go with Jason's recommended toolset versions but I am
>>> still getting the same linking errors about floating-point
>>> incompatibilities...
>>>
>>> .-.-.-.-.-.-.-
>>>
>>> #!/bin/bash
>>>
>>> CBUILD="i686-pc-linux-gnu"
>>>
>>> CHOST=$CBUILD
>>>
>>> CTARGET="arm-softfloat-linux-uclibc"
>>>
>>> #export ROOT="/usr/arm-softfloat-linux-uclibc"
>>>
>>> PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-uclibc"
>>>
>>> UCLIBC_CPU="ARM920T" USE="-*" crossdev -v --binutils 2.17 --gcc 3.4.6-r2
(Continue reading)


Gmane