2009-10-30 21:47:31 uClinux-dist & GIT = no kernel dir
Alex Williams (RUSSIAN FEDERATION)
Message: 81924
I just downloaded uClinux-dist from git mirror... After git clean -f -d -x = linux-2.6.x dir and all it's content - lost. I have succesfully built toolchain and kernel for my board. How to use my separate existing kernel then?
QuoteReplyEditDelete
2009-10-31 15:20:24 Re: uClinux-dist & GIT = no kernel dir
Mike Frysinger (UNITED STATES)
Message: 81950
the uclinux-dist git does not contain a kernel. you have to symlink it in yourself.
QuoteReplyEditDelete
2009-10-31 20:08:57 Re: uClinux-dist & GIT = no kernel dir
Alex Williams (RUSSIAN FEDERATION)
Message: 81957
Thank you. I read your previous suggest about symlink... I thought that using symlinks in complex projects is not good idea (since my experience with OpenEmbedded - this does not allow to use symlinks for build dirs)... And seems that this is true - using symlinks lead to errors... This is my log with error: pastebin.com/mf0e65d4
Line 382 - first error... Right after notice about symlinks to kernel in line 380...
build.log
QuoteReplyEditDelete
2009-11-01 07:56:31 Re: uClinux-dist & GIT = no kernel dir
Mike Frysinger (UNITED STATES)
Message: 81965
please dont post links to external build logs, especially using things like pastebins. you can already easily post log files as attachments to any forum message. ive gone ahead and edited your last post to do just that.
at any rate, i dont know what OE's problem is with symlinks. they work just fine under the uclinux-dist build system. your build log shows that things work fine for you too. that error you show has nothing to do with your kernel. strace is failing.
if ! CPP=bfin-uclinux-gcc BUILD_CC=gcc ./check-entities.sh /home/s/my/work2/akvilon/uclinux-dist/linux-2.6.x blackfin strace-4.5.19 bfin ; then [ -d .svn ] && exit 1 ; fi
Strace: bfin in strace-4.5.19
Kernel: blackfin in /home/s/my/work2/akvilon/uclinux-dist/linux-2.6.x
export: 124: -E: bad variable name
make[3]: *** [.check] Error 1
and ive fixed that error in the latest uclinux-dist now
QuoteReplyEditDelete
2009-11-01 10:54:23 Re: uClinux-dist & GIT = no kernel dir
Alex Williams (RUSSIAN FEDERATION)
Message: 81969
> please dont post links to external build logs, especially using things like pastebins. you can already easily post log files as attachments to any forum message. ive gone ahead and edited your last post to do just that
Sorry, I apologize for this... I didn't noticed attachment possibility...
> and ive fixed that error in the latest uclinux-dist now
Thank you for fix! This is latest commit I see in my local repo: "strace: fix CPP setup thinko". I performed total clean kernel and dist (with git clean -f -d -x) before retry. Then tried to build again - error still the same:
if ! CPP=bfin-uclinux-gcc BUILD_CC=gcc ./check-entities.sh /home/s/my/work2/akvilon/uclinux-dist/linux-2.6.x blackfin strace-4.5.19 bfin ; then [ -d .svn ] && exit 1 ; fi
Strace: bfin in strace-4.5.19
Kernel: blackfin in /home/s/my/work2/akvilon/uclinux-dist/linux-2.6.x
export: 124: -E: bad variable name
make[3]: *** [.check] Error 1
Now I know where to find source of this error and I'll try to fix this manually.
P.S.
Configuration of dist is default. I tried to "reset to default" when menuconfig. Then, before ready to make, it promted me to choose all NEW parameters. I choosed all default except of system type - my system is Akvilon. Then I rerun menuconfig again and selected to customize dist build peremeters - added "ed" editor program. Kernel is configured separately for my board. It builds fine.
QuoteReplyEditDelete
2009-11-01 14:01:07 Re: uClinux-dist & GIT = no kernel dir
Alex Williams (RUSSIAN FEDERATION)
Message: 81974
My board with BF561. I decided to use EZKIT BF561 as target to generate filsystem (I hope they're compatible in rootfs...)
So, build of most recent kernel for EZKIT BF561 - success and uclinux-dist - also failed with same error. Probably I doing something wrong, but 10 days ego I had successful build of initramfs image from uclinux-dist (I did exactly the same things)...
QuoteReplyEditDelete
2009-11-01 15:11:29 Re: uClinux-dist & GIT = no kernel dir
Mike Frysinger (UNITED STATES)
Message: 81978
ive tweaked something else, but it wont fix your problem. you're using a distro that has decided to use dash for their /bin/sh and it is often broken (as is the case here).
QuoteReplyEditDelete
2009-11-01 19:22:21 Re: uClinux-dist & GIT = no kernel dir
Alex Williams (RUSSIAN FEDERATION)
Message: 81982
You right about dash... I "resymlinked" sh to /bin/bash and it builds easy and working great! ^_^
Problem solved! Thank you very much!
> ive tweaked something else, but it wont fix your problem. you're using a distro that has decided to use dash for their /bin/sh and it is often broken (as is the case here).
P.S.
I had to reinstall my system... because I wasn't noticed absolute paths in initramfs archive... =))) haha... Before system crashed I used OpenEmbedded and linked sh to bash as it require. That explains why I did not encountered with this problem first time...