Stuart Hughes | 1 Oct 2011 09:46

Re: busybox 1.19.2 fails to compile mtd-utils

Hi Jurgen,

Thanks for the patch.  I'll try to get that in as time permits.

Please send your UBU and I'll try to get that in too.

Please post your imx27pdk, maybe someone else on the list would have
time to clean it up and re-submit it.  Even if not, it could be helpful
to others.

Regards, Stuart

On 30/09/11 13:50, Lambrecht Jürgen wrote:
> On 09/30/2011 09:47 AM, Stuart Hughes wrote:
>> Hi Jurgen,
>>
>> This is not so much a dirty trick, but a necessary bug fix.
>>
>> So your options are:
>>
>>    1. Wait for the an updated release of busybox that includes this fix
>>    2. Use your fix
>>    3. Use an earlier version of busybox (in ltib)
>>
>> Probably the easiest thing is to use your bugfix for now.  What you
>> may like to do is re-name the patch and the reference to it in the
>> updated .spec file.
> indeed, did it.
>>
>> From what I recall, this version of busybox is not in the public
(Continue reading)

Lambrecht Jürgen | 3 Oct 2011 15:23
Favicon

Re: busybox 1.19.2 fails to compile mtd-utils -- add UBI support

On 10/01/2011 09:46 AM, Stuart Hughes wrote:
>
> Hi Jurgen,
>
> Thanks for the patch.  I'll try to get that in as time permits.
>
> Please send your UBU and I'll try to get that in too.
>
In attach 2 cvs unified diffs and a new file.
This adds UBI support.
Mark: you need a recent mtd-utils on your PC (=host)! I compiled it 
myself: v1.4.6.
And also the mtd-utils on the target be recent if you want to run ubi 
commands in linux, e.g. ubiupdatevol!
So I first cross-compiled mtd-utils 1.4.6 (already mailed it), but now I 
just use the mtd-utils tools inside busybox. It does not have ubinfo, 
but the necessary tools are there and work.

Enjoy,
Jürgen
>
>
> Please post your imx27pdk, maybe someone else on the list would have
> time to clean it up and re-submit it.  Even if not, it could be helpful
> to others.
>
> Regards, Stuart
>
[snip]

(Continue reading)

Lambrecht Jürgen | 7 Oct 2011 15:48
Favicon

how to get putenv from glibc compiled?

Hello,

I need 'putenv' (so busybox-dhcpc can pass the ntp server IP to the ntp 
client) on my target.
Putenv is in glibc, but in my built, it is not present.

Does anybody know which options to enable (do I need e.g. libc static 
libraries CONFIG_PKG_LIBC_WANT_STATIC_LIBS)?

Kind regards,
Jürgen

Stuart Hughes | 8 Oct 2011 12:20

Re: busybox 1.19.2 fails to compile mtd-utils -- add UBI support

Hi Jurgen,

Thanks for the patches.  I'll try to look at them when I get time.

Regards, Stuart

On 03/10/11 14:23, Lambrecht Jürgen wrote:
> On 10/01/2011 09:46 AM, Stuart Hughes wrote:
>>
>> Hi Jurgen,
>>
>> Thanks for the patch.  I'll try to get that in as time permits.
>>
>> Please send your UBU and I'll try to get that in too.
>>
> In attach 2 cvs unified diffs and a new file.
> This adds UBI support.
> Mark: you need a recent mtd-utils on your PC (=host)! I compiled it 
> myself: v1.4.6.
> And also the mtd-utils on the target be recent if you want to run ubi 
> commands in linux, e.g. ubiupdatevol!
> So I first cross-compiled mtd-utils 1.4.6 (already mailed it), but now I 
> just use the mtd-utils tools inside busybox. It does not have ubinfo, 
> but the necessary tools are there and work.
> 
> Enjoy,
> Jürgen
>>
>>
>> Please post your imx27pdk, maybe someone else on the list would have
(Continue reading)

Stuart Hughes | 8 Oct 2011 12:29

Re: how to get putenv from glibc compiled?

Hi Jürgen,

I'm not sure I understand this question?

putenv is supported by glibc, you'd need to call this library functions
from a C program.

If you want to set en environment variable you should be able to do this
from the she with

SOMEVAR=xxx
export SOMEVAR

Please give some more detail of what you're trying if this does not help.

Regards, Stuart

On 07/10/11 14:48, Lambrecht Jürgen wrote:
> Hello,
> 
> I need 'putenv' (so busybox-dhcpc can pass the ntp server IP to the ntp 
> client) on my target.
> Putenv is in glibc, but in my built, it is not present.
> 
> Does anybody know which options to enable (do I need e.g. libc static 
> libraries CONFIG_PKG_LIBC_WANT_STATIC_LIBS)?
> 
> Kind regards,
> Jürgen
> 
(Continue reading)

Stuart Hughes | 9 Oct 2011 13:31

Re: ltib breaks up due to parse.h:63:22

Hi Aaron,

Thanks again for the patch, this has been uploaded to the GPP and the
changes made to the .spec file in CVS.

Regards, Stuart

On 22/09/11 08:42, Stuart Hughes wrote:
> Hi Aaron,
> 
> Thanks for the patch, I'l try to get this added to the CVS version of
> ltib over the weekend.
> 
> Regards, Stuart
> 
> On 21/09/11 18:06, Aaron Wegner wrote:
>> I'm working with Fedora Core 15 as well.  If you check out the latest
>> sparse code, just Google
>>
>> mirrors/ftp.kernel.org/pub/scm/devel/sparse/sparse.git
>>
>> and then git clone one of them, you can see in the header parse.h that
>> that union member has been removed.  It is redundant to another union
>> member with the same types and the new compiler complains.
>>
>> You could edit the file yourself after the build crashes and remove the
>> lines.
>>
>> $ vi /opt/ltib/usr/src/rpm/BUILD/sparse-0.4/parse.h
>>
(Continue reading)

Stuart Hughes | 9 Oct 2011 14:02

Re: busybox 1.19.2 fails to compile mtd-utils

Hi Jurgen,

Thanks for the patches, I've uploaded the content to the GPP and updated
CVS.

When I can get to it, I'll look at adding your other UBI patches.

Regards, Stuart

On 30/09/11 13:50, Lambrecht Jürgen wrote:
> On 09/30/2011 09:47 AM, Stuart Hughes wrote:
>> Hi Jurgen,
>>
>> This is not so much a dirty trick, but a necessary bug fix.
>>
>> So your options are:
>>
>>    1. Wait for the an updated release of busybox that includes this fix
>>    2. Use your fix
>>    3. Use an earlier version of busybox (in ltib)
>>
>> Probably the easiest thing is to use your bugfix for now.  What you
>> may like to do is re-name the patch and the reference to it in the
>> updated .spec file.
> indeed, did it.
>>
>> From what I recall, this version of busybox is not in the public
>> Savannah LTIB?  so it may be worth asking
> indeed. We use now ltib from cvs (spring this year) and downloaded
> busybox recently from busybox.net.
(Continue reading)

Lambrecht Jürgen | 10 Oct 2011 17:22
Favicon

glibc uses wrong path to toolchain headers (in my ARM case)

Hello,

from 'dist/lfs-5.1/glibc/glibc.spec':
# Use the toolchain headers as the default for the glibc build unless the
# BSP kernel headers have been selected.
if [ "${GLIBC_WANT_KERNEL_HEADERS}" = "y" ]
then
     TC_HEADERS_DIR="${DEV_IMAGE}/usr/src/linux/include"
else
     TC_HEADERS_DIR="${TOOLCHAIN_PATH}/${OPT_CFGHOST}/libc/usr/include"
fi

In my case, this is wrong, and it should be 'sysroot' instead of 'libc':
     TC_HEADERS_DIR="${TOOLCHAIN_PATH}/${OPT_CFGHOST}/sysroot/usr/include"

Is this a general error? Then I can submit a patch.

FYI:
- the complete (wrong) path: 
TC_HEADERS_DIR=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/usr/include
- I noticed this only because I changed the option "C library package" 
from the default "from toolchain only" (CONFIG_CHOICE_BASE_LIBS) to 
"glibc" (CONFIG_CHOICE_GLIBC)
- now the compile goes on, but I get this error:

sudo /opt/ltib/usr/bin/rpm --root /usr/src/cross/Ltib-svn/rootfs 
--dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs 
--noscripts --define '_tmppath /tmp/ltib' 
/usr/src/cross/Ltib-svn/rpm/RPMS/arm/base_libs-1.2-1.arm.rpm
error: failed dependencies:
(Continue reading)

Stuart Hughes | 11 Oct 2011 10:08

Re: busybox 1.19.2 fails to compile mtd-utils

On 11/10/11 07:49, Lambrecht Jürgen wrote:
> On 10/09/2011 02:02 PM, Stuart Hughes wrote:
>> Hi Jurgen,
>>
>> Thanks for the patches, I've uploaded the content to the GPP and updated
>> CVS.
>>
> Stuart, when trying to unpack busybox (for bug in udhcpc), I got an md5
> checksum error on the patch when downloading it from the GPP.
> In attachment the md5 checksum that works for me.
>
> Regards,
> Jürgen
>
> P.S.: soon a second busybox patch
>
> [snip]

Hi Jurgen,

The issue is that somewhere along the process of saving the attachment 
and uploading it, the encoding of the  author got messed up (UTF-8).

Because you  already had the named file, ltib downloaded the md5 file 
for the (modified) file and they didn't match.

What I need to do is to re-upload the file once I figure out where the 
corruption occurred.  I will use a new name 
busybox-1.19.2-ubi-user-h-1.patch to avoid any issues with people who 
have already downloaded this version with the bad author encoding (which 
(Continue reading)

Stuart Hughes | 11 Oct 2011 10:15

Re: busybox 1.19.2 fails to compile mtd-utils

On 11/10/11 09:08, Stuart Hughes wrote:
> On 11/10/11 07:49, Lambrecht Jürgen wrote:
>> On 10/09/2011 02:02 PM, Stuart Hughes wrote:
>>> Hi Jurgen,
>>>
>>> Thanks for the patches, I've uploaded the content to the GPP and 
>>> updated
>>> CVS.
>>>
>> Stuart, when trying to unpack busybox (for bug in udhcpc), I got an md5
>> checksum error on the patch when downloading it from the GPP.
>> In attachment the md5 checksum that works for me.
>>
>> Regards,
>> Jürgen
>>
>> P.S.: soon a second busybox patch
>>
>> [snip]
>
> Hi Jurgen,
>
> The issue is that somewhere along the process of saving the attachment 
> and uploading it, the encoding of the  author got messed up (UTF-8).
>
> Because you  already had the named file, ltib downloaded the md5 file 
> for the (modified) file and they didn't match.
>
> What I need to do is to re-upload the file once I figure out where the 
> corruption occurred.  I will use a new name 
(Continue reading)


Gmane