00:45.57 | *** join/#elinux markl__ (n=mark@c-67-186-245-229.hsd1.ut.comcast.net) |
01:46.45 | *** join/#elinux zheng (n=zheng@210.51.34.202) |
03:13.08 | *** join/#elinux zheng (n=zheng@210.51.34.202) |
03:40.08 | *** join/#elinux linac (n=lin@125.77.70.65) |
05:45.19 | *** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com) |
05:46.02 | *** join/#elinux zheng_ (n=zheng@210.51.34.202) |
06:28.55 | *** join/#elinux zheng__ (n=zheng@210.51.34.202) |
06:48.47 | *** join/#elinux zheng (n=zheng@210.51.34.202) |
06:50.23 | *** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com) |
06:53.45 | *** join/#elinux landley (n=landley@cpe-70-116-30-223.austin.res.rr.com) |
07:05.29 | *** join/#elinux harpal (n=Harpal@122.169.108.195) |
07:34.53 | *** join/#elinux lyakh (n=lyakh@p57BD2A1D.dip0.t-ipconnect.de) |
08:37.19 | *** join/#elinux methril (n=Methril@213.27.233.98) |
08:53.40 | *** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com) |
08:57.22 | *** join/#elinux likewise (n=likewise@82-171-51-231.ip.telfort.nl) |
10:34.33 | *** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de) |
10:55.08 | *** join/#elinux kcyow (n=kcyow@219.85.4.148) |
10:56.34 | yow | hi everyone |
10:57.13 | yow | this is the first time i enter this chatroom |
10:58.40 | yow | i'm having problem to cross-compile busybox-1.12.1 for arm target, i've been working on it since last week |
10:59.57 | yow | sometimes, it seems to be rather close to succeed, yet, I feel like I'm getting no way... |
11:00.10 | yow | is there anyone here free to help me out? |
11:14.03 | yow | I've tried to cross-compile on Ubuntu edgy & FC4 but both failed on me |
11:14.25 | yow | i've tried using the following 3 commands: |
11:14.56 | yow | 01. make CROSS_COMPILE=arm-elf- |
11:15.23 | yow | 02. make ARCH=arm CROSS_COMPILE=arm-elf- |
11:15.53 | yow | 03. make ARCH=armnommu CROSS_COMPILE=arm-elf- |
11:16.33 | yow | i have also tried the following 2 variants: |
11:20.56 | yow | 01. make ARCH=arm CROSS_COMPILE=/usr/local/arm_tools/bin/arm-elf- |
11:21.24 | yow | 02. make ARCH=arm CROSS=arm-elf- |
11:24.28 | yow | I've also tried the various combinations of the ARCH & CROSS_COMPILE command options.. |
11:26.27 | yow | I wonder if the arch/arm subdirectory is needed as all the arch/* subdirectories are missing except arch/i386 |
11:27.25 | yow | does anyone know where my problem(s) lies or give me any pointer, advice? |
11:28.36 | yow | p.s. am i being too rude or is there any specific or strict rules as to the way i should ask my questions or present my problem to the room? |
11:30.53 | yow | hope someone can help me out |
11:30.57 | yow | thanks in advance |
11:35.30 | yow | p.s.: i'm now located in Taiwan, so, I'm going to have my dinner now and shall be back in an hour |
11:35.44 | yow | see you. |
11:37.38 | yow | by the way, i managed to make busybox on Etch, Edgy and FC4 using the host gcc, libs, etc. |
12:10.06 | *** join/#elinux nuix (n=alex@cpe-76-93-178-138.san.res.rr.com) |
12:15.48 | *** join/#elinux likewise (n=likewise@atwork-193.r-212.178.107.atwork.nl) |
12:36.17 | *** join/#elinux linac (n=lin@121.201.61.181) |
12:44.13 | yow | im back |
12:44.34 | yow | hi nuix, likewise & linac |
14:08.18 | *** join/#elinux prpplague (n=dave@mail.americanmicrosystems.com) |
14:31.17 | yow | hi prpplague, how are you? |
14:31.47 | prpplague | hello, i'm alive, not much else |
14:32.38 | yow | i've been here for a couple of hours, but, you're the first person who give me response, thanks :) |
14:32.57 | prpplague | #elinux has been pretty much dead for awhile |
14:33.04 | yow | ic |
14:33.18 | yow | however, there are 42 "people" in here?! |
14:33.37 | yow | and it seems to me some are coming and going... |
14:34.19 | prpplague | yow: they just have the channel on auto-join |
14:34.35 | yow | ic, thanks for letting me know |
14:34.44 | yow | im wondering if you're familiar with cross-compilling busybox? |
14:35.17 | prpplague | yea, busybox makefiles are specifically designed for cross-compilling |
14:35.51 | yow | as i've been trying to cross-compile busybox-1.12.1 for arm target since last week but have not yet succeeded :( |
14:36.50 | yow | it seems to me the Makefiles for different versions of busybox are quite different |
14:37.46 | yow | i've been able to make busybox-1.12.1 successfully under Etch, Edgy & FC4 |
14:38.33 | yow | but, when I tried the following 3 commands, they all failed: |
14:38.46 | yow | 01. make CROSS_COMPILE=arm-elf- |
14:38.56 | yow | 02. make ARCH=arm CROSS_COMPILE=arm-elf- |
14:39.06 | yow | 03. make ARCH=armnommu CROSS_COMPILE=arm-elf- |
14:39.45 | yow | i've also tried the the following 2 variants, but they failed too: |
14:39.58 | yow | 01. make ARCH=arm CROSS_COMPILE=/usr/local/arm_tools/bin/arm-elf- |
14:40.06 | yow | 02. make ARCH=arm CROSS=arm-elf- |
14:40.34 | yow | do u know what could be the cause(s) to my problem? |
14:41.21 | yow | i can only think of the following 2 possible causes: |
14:41.49 | prpplague | when they fail what is the error? use http://www.pastebin.ca to paste the log |
14:42.17 | yow | 01. the arch/arm subdirectory is needed but all the arch/* subdirectories are missing except arch/i386 |
14:42.44 | yow | ok, i'll paste the error messages there after this (ASAP) |
14:43.29 | yow | 02. the CFLAGS, UCFLAGS, LDLIBS AND INC are inccorect |
14:43.58 | yow | i've tried using the arm toolchains versions 2.95.3 and 3.0 but both failed |
14:44.38 | yow | i also noticed the directories structures are somewhat different for the 2 versions of arm toolchains |
14:44.54 | yow | i have 2 questions on top of my mind now: |
14:45.32 | yow | 01. Do you know if I need the arch/arm (or in arm/*) subdirectories? when i can download them? |
14:47.05 | yow | 02. does corss-compilling busybox for arm needs CFLAGS, UCFLAGS, LDLIBS and INC command-line options (or evironment variables?)? which ones it needs? How can i pass or set them? |
14:47.21 | yow | any idea? |
14:47.49 | yow | i'm going to paste the error messages on the webpage you gave me just now |
14:48.20 | yow | however, i hope u can give me some new ideas or pointers, if not the solution. |
14:48.43 | yow | i've trying and googling for the past week or so but failed... |
14:48.56 | yow | thanks in advance. |
14:49.51 | prpplague | normally cross-compiling busybox is very easy, i suspect you have something misconfigured |
14:50.25 | yow | the steps i carried out were: |
14:51.03 | yow | 01. make allnoconfig or make allyesconfig or make defconfig or make menuconfig |
14:51.08 | yow | 02. make |
14:51.16 | yow | that's all |
14:51.37 | yow | i'm now stuyding and trying to understand the Makefile... |
14:51.54 | yow | even when i make allnoconfig, the cross-compilation failed |
14:52.10 | yow | i've set my environment variables as follows: |
14:52.26 | yow | ROOT=/usr/local/arm_tools |
14:52.26 | yow | LIB1=$ROOT/arm-elf/lib |
14:52.26 | yow | LIB2=$ROOT/lib/gcc-lib/arm-elf/3.0 |
14:52.26 | yow | INC=$ROOT/arm-elf/inc |
14:52.27 | yow | CC="arm-elf-gcc" |
14:52.27 | yow | CFLAGS="-Wall -I$INC" |
14:52.29 | yow | LDLIBS="-lc -lgcc -lcrypt -L$LIB1 -L$LIB2" |
14:52.31 | yow | UCFLAGS="-Wl,-elf2flt" |
14:52.33 | yow | export PATH CC CFLAGS LDLIBS UCFLAGS |
14:53.06 | yow | one thing i do aware of is that it seems that UCFLAGS are not used?! correct me if im wrong |
14:53.33 | yow | i appended "-Wl,-elf2flt" to CFLAGS but still failed |
14:54.00 | yow | is there any problem with my environment variable settings? |
14:55.12 | prpplague | yow: sounds like you are trying to make this more complicated that it is suppose to be |
14:55.24 | yow | frankly, what i after is just the sendmail function of the busybox as i need the AUTH feature it provides |
14:55.27 | prpplague | yow: do you know for a fact that your cross-compile toolchain is working? |
14:56.15 | yow | i've corss-compile appilcation programmes for a ARM target board for a several months now |
14:56.57 | yow | and i know if i set the evn variables as i pasted before, i can make AP which will run on the target board |
14:57.08 | yow | however, this is the first time i try to make busybox |
14:57.24 | prpplague | normally you just need to add the path to your cross-compile toolchain to your main path |
14:57.49 | prpplague | i.e. export PATH="$PATH:/usr/local/arm/2.95.3/bin" |
14:57.51 | yow | actually, busybox is already avaible on the target board but it was the 0.51 version and does not have the sendmail function |
14:57.59 | prpplague | then just edit the make file for your items |
14:58.57 | prpplague | like i said, sounds like you are making it more complicated than it needs to be |
14:59.09 | yow | i have not yet started to modify the Makefile |
14:59.46 | yow | im not exactly sure which part of the makefile i need to modify and im half-way studying the Makefile now |
15:00.07 | yow | the PATH is definitely correct |
15:00.44 | yow | but im suspecting that i have not passed the correct lib & inc directories to the cross-compilation process |
15:00.48 | prpplague | yow: open up the make file and search for "cross" |
15:00.55 | prpplague | yow: the instructions are in the file |
15:01.27 | yow | i think that's the easy part and i've tried/done that since last week but failed |
15:01.51 | yow | the cross-compile section of the comments is WRONG |
15:02.09 | yow | there's no arch/* subdirectories!!! |
15:03.11 | yow | i've downloaded all the recent busybox .tar.bz2 but none contains the arch/* sub-dir, except arch/i386 |
15:03.20 | yow | do u know if i need arch/arm?? |
15:03.59 | yow | i can paste part of the comments here: |
15:04.02 | yow | # Cross compiling and selecting different set of gcc/bin-utils |
15:04.02 | yow | # --------------------------------------------------------------------------- |
15:04.02 | yow | # |
15:04.02 | yow | # When performing cross compilation for other architectures ARCH shall be set |
15:04.02 | yow | # to the target architecture. (See arch/* for the possibilities). |
15:04.03 | yow | # ARCH can be set during invocation of make: |
15:04.05 | yow | # make ARCH=ia64 |
15:04.14 | yow | # Another way is to have ARCH set in the environment. |
15:04.16 | yow | # The default ARCH is the host where make is executed. |
15:05.03 | yow | i've come across a couple of pages on the internet which suggested to use CROSS_COMPILE=arm-elf- |
15:05.18 | prpplague | yow: please do not paste large amounts of info to the channel, that is what pastebin is for |
15:05.25 | yow | and that's what i've been using but failed |
15:05.32 | prpplague | yow: the cross compile item depends on your toolchain |
15:05.38 | yow | sorry..... |
15:05.55 | yow | today is my first time here, sorry again |
15:06.33 | prpplague | yow: you should set SUBARCH := arm , and the CROSS_COMPILE := arm-elf- |
15:06.53 | prpplague | yow: then make sure that all of the toolchain is in the main path |
15:07.01 | prpplague | yow: then issue a make command |
15:07.06 | yow | ic |
15:07.18 | yow | i can try that quickly now |
15:07.23 | yow | give me a min |
15:09.30 | *** join/#elinux Kmarc_ (i=kari@kallio.biz) |
15:11.55 | *** join/#elinux linac (n=lin@121.201.61.181) |
15:11.55 | *** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de) |
15:11.55 | *** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who) [NETSPLIT VICTIM] |
15:11.55 | *** join/#elinux dmead (n=dan@ip226.sensaphone.us) |
15:12.03 | yow | there are many warning and one error mesage about arm-elf-strip |
15:12.38 | yow | im going to paste the error msgs to the website now |
15:17.06 | yow | there was problem when I tried to paste under elinks |
15:17.17 | yow | then, i upload the error messages |
15:17.21 | yow | hope u can see it now |
15:22.29 | yow | hi, are you still there, prpplague? |
15:22.54 | yow | i've just managed to paste the erro messages onto the pastebin |
15:23.02 | yow | the url is: http://www.pastebin.ca/1244048 |
15:24.11 | prpplague | looks |
15:24.29 | yow | thank you every much prpplague |
15:24.40 | yow | for your patient, time and effort |
15:25.57 | prpplague | yow: sounds like there is a typo somewhere or your toolchain doesn't support the -o option |
15:26.06 | prpplague | but it looks as though the binary was built |
15:26.17 | prpplague | you should see a busybox binary in the main directory |
15:26.29 | yow | ok, let me check |
15:27.09 | yow | there's no busybox binary but busybox_unstripped |
15:27.42 | yow | how can i fix the arm-elf-strip problem then? |
15:28.37 | yow | ./busybox_unstripped is not executable |
15:29.10 | yow | i was expecting busybox_unstripped can be executed |
15:29.47 | yow | isn't the difference between busybox_unstripped and busybox merely the former contains the "symbols" which are not stripped? |
15:30.34 | yow | frankly, i'm not 100% certain nor understand regarding the statement ("symbols") i just made :( |
15:31.02 | prpplague | yow: busybox_unstripped should be an arm file, use the file command to check: file busybox_unstripped |
15:31.21 | yow | i've just checked |
15:31.34 | yow | i made a mistake |
15:31.52 | yow | i ran ./busybox_unstripped on my fc4 host! |
15:32.22 | yow | do u think busybox_unstripped can be executed on my arm target? |
15:33.59 | yow | i'm nw setting up my arm system |
15:35.27 | *** join/#elinux linac (n=lin@121.201.61.181) [NETSPLIT VICTIM] |
15:35.27 | *** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de) |
15:35.28 | *** join/#elinux Dr_Who (n=tgall@gentoo/developer/dr-who) [NETSPLIT VICTIM] |
15:35.28 | *** join/#elinux dmead (n=dan@ip226.sensaphone.us) |
15:43.12 | prpplague | yow: yea, you can strip it, just do, arm-elf-strip busybox_unstripped |
16:13.26 | *** join/#elinux yow (n=kcyow@219.85.4.148) |
16:16.28 | yow | sorry but are you still there prpplague? |
16:16.48 | yow | i just realised that i might have been dc for sometime |
16:17.15 | yow | probably some of my previous megs have gone missing |
16:17.36 | yow | i just wish to thank you for your patient, time and effort |
16:17.46 | yow | however, the problem still not yet solved |
16:18.07 | yow | r u there, prpplague? |
16:18.27 | yow | i've just ftp a working arm AP to my debian host and check using file command: |
16:18.32 | yow | file siod: siod: BFLT executable - version 4 ram |
16:19.38 | yow | so, i guess i need to get the arm-elf-strip working or bypass it and then convert it to FLT format (via UCFLAGS & ld?). |
16:21.58 | prpplague | yow: yep, still here |
16:22.22 | yow | thanks |
16:22.55 | prpplague | np |
16:23.19 | yow | i think this could be the problem (inside the Makefile): $(Q)$(STRIP) -s --remove-section=.note --remove-section=.comment \ |
16:23.20 | yow | <PROTECTED> |
16:23.34 | yow | im going to upload the Makefile to the pastebin now |
16:25.50 | yow | this is the url for the Makefile: http://www.pastebin.ca/1244080 |
16:26.24 | yow | do u think line 699 is defective? |
16:26.58 | yow | the usage of $@ is errornous? |
16:32.14 | prpplague | yow: you can remove the -o $@ and just use a copy command after that |
16:34.40 | yow | i think i understand what u mean, let me try now |
16:35.39 | yow | cp busybox_unstripped busybox, right? |
16:36.23 | yow | thanks, the arm-elf-strip error msg has gone |
16:36.36 | yow | but the busybox binary is still ELF but not FLT |
16:37.45 | yow | is that because ld process did not run? is elf2flt supposedly to be executed by ld? |
16:39.03 | yow | let me check my AP makefile now |
16:48.54 | *** join/#elinux thraxisp (n=thraxisp@century.precidia.com) |
16:56.46 | yow | in the AP Makefile: $(CC) -o $@ $(OBJS) $(LDLIBS) $(UCFLAGS) |
16:57.09 | yow | so, i've commited the following modifications: |
16:57.45 | yow | 317 CFLAGS := $(UCFLAGS) |
16:58.16 | yow | 323 LDLIBS := $(LDLIBS) |
16:58.52 | yow | are $(UCFLAGS) & $(LDLIBS) evironment variables? |
16:59.08 | yow | is my mosdification correct? |
17:02.46 | yow | i tried: make 2>&1 >ucflags_ldlibs.log but all the warnings and err msgs are sent to stdout, do u know what's wrong with my command? |
17:17.42 | *** join/#elinux markl__ (n=mark@c-67-186-245-229.hsd1.ut.comcast.net) |
17:27.28 | *** join/#elinux boris_OmegA (n=boris@194.51.141.172) |
17:48.58 | *** join/#elinux aspartame (n=none@ip24-255-155-92.ks.ks.cox.net) |
17:52.40 | yow | ought to be: make >ucflags_ldlibs.log 2>&1 |
18:10.29 | yow | prpplague: the warning & error msgs for the latest make is now at: http://www.pastebin.ca/1244183 |
18:15.10 | *** join/#elinux lyakh (n=lyakh@p57BD2A1D.dip0.t-ipconnect.de) |
18:26.05 | *** join/#elinux BitSlop_ (n=BitSlop@pool-71-188-173-116.aubnin.fios.verizon.net) |
19:40.09 | yow | r u still there prpplague? |
19:41.17 | yow | at last i have the busybox-1.12.1 sendmail in the right format, i.e. BFLT executable - version 4 ram |
19:41.29 | yow | however, the arm-elf-strip still not working |
19:41.56 | yow | the rather short error messages are shown in http://www.pastebin.ca/1244241, if you are still interested |
19:41.57 | prpplague | yow: pastebin a copy of your makefile |
19:42.08 | yow | ok |
19:42.30 | yow | it's 03:42am over here i really have to go to bed soon |
19:42.54 | yow | if u have the time to read the latest err msgs and know the solution, pls let me know |
19:43.03 | yow | i'll continue working on it tomorrow |
19:43.14 | prpplague | yow: i think you have something else going on, it looks as though it wasn't compiled for arm |
19:43.17 | prpplague | yow: ok |
19:43.29 | yow | it is |
19:43.41 | yow | i've run it on my arm board |
19:44.00 | yow | altought i have not yet figure out how to use the command correctly |
19:44.33 | yow | but when i type ./sendmail --help, it showed me all the available options/help |
19:45.21 | prpplague | yow: then i'd suspect you have something wrong with your build environment |
19:47.08 | yow | i've made some minor modification to inttypes.h too |
19:47.48 | yow | r u referring to http://www.pastebin.ca/1244241? |
19:51.35 | prpplague | yow: yes that is what i am refering to |
19:52.14 | yow | kc@etch:~$ file sendmail |
19:52.14 | yow | sendmail: BFLT executable - version 4 ram |
19:53.36 | yow | may i know which part of the error msgs in http://www.pastebin.ca/1244241 make you think the resulting busybox_unstripped is not for arm, i.e. not the right format? |
19:54.32 | yow | i've just uploaded the Makefile I used to produce the busybox_unstripped: http://www.pastebin.ca/1244257 |
19:58.11 | yow | so, what do u think of the outcome so far? |
19:58.26 | yow | any idea to make it 100% successful? |
20:00.54 | *** join/#elinux likewise (n=likewise@82-171-51-231.ip.telfort.nl) |
20:01.07 | *** join/#elinux pleemans (n=toi@d54C2AAB7.access.telenet.be) |
20:51.11 | yow | prpplauge: r u still there? |
20:51.40 | yow | prpplauge: any new findings? |
20:59.07 | yow | prpplauge: it seems that BFLT file format do not need to be arm-elf-stripped |
21:01.03 | yow | bye everyone, take good care |
21:08.32 | *** join/#elinux mnemoc (n=amery@shell.opensde.net) |
21:08.33 | *** join/#elinux ashes (n=ashes@modemcable123.78-80-70.mc.videotron.ca) |
22:15.14 | *** join/#elinux GPSFan (n=kenm@64.92.145.112) |
22:48.35 | *** join/#elinux irotas (n=irotas@CPE00131042e14d-CM0018c0b37a44.cpe.net.cable.rogers.com) |
22:58.35 | *** join/#elinux pb_ (n=pb@88-111-134-150.dynamic.dsl.as9105.com) |
23:39.58 | *** join/#elinux thraxisp (n=thraxisp@24.139.16.154) |