Makefiles for OE (both 1.5 and HEAD)
If you’d like to create images from Git, you can try one of the new Makefiles.
Makefile-opendreambox-1.5 is the successor of the old monotone based Makefile-opendreambox.
Makefile-opendreambox builds from a much newer branch, of which opendreambox 1.6 will become a spin-off once a stable state is reached. Today it won’t even finish an image, but you’re invited to test it early and to report any problems occuring in your build environment, so we can fix them for you.
One notable thing is that the directory layout changed to create one subdirectory per platform and a shared directory for bitbake and the sources. If you’d like to keep the old directory structure for version 1.5, to upgrade without rebuilding everything, then you can set UPGRADE_FROM_MONOTONE=1 in the Makefile. But don’t forget to move away your monotone repository.
If you’re going to make commits to your new Git-repository, then you should definitely edit GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL, because this information will be kept in the commit history forever. Otherwise Git will create a mail adress from your local username and hostname.
The command to build an image has been unchanged: make -f Makefile-opendreambox-1.5 image
[Jan. 12, 2009: Updated Makefiles to work with old versions of Git (1.4.x)]
[Jan. 15, 2009: Updated Makefile-opendreambox to use bitbake 1.8.12 to fix problems with some versions of Git]
December 13th, 2008 at 20:37
Hi,
for Makefile-opendreambox (Ubuntu/Debian) it would be a nice idea to say that the packet texinfo is missing instead of makeinfo because you cannot apt-get makeinfo.
Ralf
January 13th, 2009 at 17:09
Trying to make 1.6 image but always getting this error.
Can u help to continue compile?
NOTE: Running task 595 of 1878 (ID: 1719, /enigma2/opendreambox1.6/dm800/openembedded/packages/tuxbox/tuxbox-libtuxtxt.bb, do_fetch)
NOTE: package libtuxtxt-0.0+cvs20080814: started
NOTE: package libtuxtxt-0.0+cvs20080814-r2: task do_fetch: started
NOTE: Fetch cvs://anoncvs@cvs.tuxbox.org/cvs/tuxbox;module=apps/tuxbox/libs;method=ext
The authenticity of host 'cvs.tuxbox.org (82.149.243.100)' can't be established.
RSA key fingerprint is 14:9b:f1:b3:1f:d2:d8:4d:04:28:37:d4:00:a6:a0:2d.
Are you sure you want to continue connecting (yes/no)? yes
January 13th, 2009 at 17:39
That’s not an error. Just answer yes to continue. The fingerprint will then be stored on your computer and you won’t be asked again in the future.
January 14th, 2009 at 15:36
On ubuntu 8.10 desktop with 1.6 make file it successfully get git rep than starting to make an image then this error occured ::
rm -f ./libgcc.a
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar rc ./libgcc.a libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_clear_cache.o libgcc/./_enable_execute_stack.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_paritydi2.o libgcc/./_powisf2.o libgcc/./_powidf2.o libgcc/./_powixf2.o libgcc/./_powitf2.o libgcc/./_mulsc3.o libgcc/./_muldc3.o libgcc/./_mulxc3.o libgcc/./_multc3.o libgcc/./_divsc3.o libgcc/./_divdc3.o libgcc/./_divxc3.o libgcc/./_divtc3.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfsi.o libgcc/./_fixunsxfsi.o libgcc/./_fixsfdi.o libgcc/./_fixunssfdi.o libgcc/./_floatdisf.o libgcc/./_floatundisf.o libgcc/./_fixdfdi.o libgcc/./_fixunsdfdi.o libgcc/./_floatdidf.o libgcc/./_floatundidf.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_floatundixf.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_floatunditf.o libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./addsf3.o libgcc/./divsf3.o libgcc/./eqsf2.o libgcc/./gesf2.o libgcc/./lesf2.o libgcc/./mulsf3.o libgcc/./negsf2.o libgcc/./subsf3.o libgcc/./unordsf2.o libgcc/./fixsfsi.o libgcc/./floatsisf.o libgcc/./floatunsisf.o libgcc/./adddf3.o libgcc/./divdf3.o libgcc/./eqdf2.o libgcc/./gedf2.o libgcc/./ledf2.o libgcc/./muldf3.o libgcc/./negdf2.o libgcc/./subdf3.o libgcc/./unorddf2.o libgcc/./fixdfsi.o libgcc/./floatsidf.o libgcc/./floatunsidf.o libgcc/./extendsfdf2.o libgcc/./truncdfsf2.o libgcc/./tramp.o libgcc/./darwin-ldouble.o libgcc/./eabi.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde-glibc.o libgcc/./unwind-sjlj.o libgcc/./gthr-gnat.o libgcc/./unwind-c.o
*** buffer overflow detected ***: /ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0x40131558]
/lib/tls/i686/cmov/libc.so.6[0x4012f680]
/lib/tls/i686/cmov/libc.so.6[0x4012ed68]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0xc8)[0x400a4a18]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xed)[0x40097e0d]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0×27cf)[0x4007915f]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xa7)[0x4012ee17]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0×2d)[0x4012ed5d]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x8051542]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x804f6fb]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x8052238]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x8059548]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x804bd45]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x804cae0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0x4004d685]
/ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar[0x8049741]
======= Memory map: ========
08048000-080b7000 r-xp 00000000 08:06 2115939 /ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar
080b7000-080b8000 r–p 0006e000 08:06 2115939 /ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar
080b8000-080b9000 rw-p 0006f000 08:06 2115939 /ztaf/dm600pvr/build/tmp/cross/ppc405/powerpc-linux/bin/ar
080b9000-080bd000 rw-p 080b9000 00:00 0
08d4f000-0905e000 rw-p 08d4f000 00:00 0 [heap]
40000000-4001a000 r-xp 00000000 08:06 6004755 /lib/ld-2.8.90.so
4001a000-4001b000 r-xp 4001a000 00:00 0 [vdso]
4001b000-4001c000 r–p 0001a000 08:06 6004755 /lib/ld-2.8.90.so
4001c000-4001d000 rw-p 0001b000 08:06 6004755 /lib/ld-2.8.90.so
4001d000-40029000 rw-p 4001d000 00:00 0
40033000-40035000 r-xp 00000000 08:06 6022299 /lib/tls/i686/cmov/libdl-2.8.90.so
40035000-40036000 r–p 00001000 08:06 6022299 /lib/tls/i686/cmov/libdl-2.8.90.so
40036000-40037000 rw-p 00002000 08:06 6022299 /lib/tls/i686/cmov/libdl-2.8.90.so
40037000-4018f000 r-xp 00000000 08:06 6022293 /lib/tls/i686/cmov/libc-2.8.90.so
4018f000-40191000 r–p 00158000 08:06 6022293 /lib/tls/i686/cmov/libc-2.8.90.so
40191000-40192000 rw-p 0015a000 08:06 6022293 /lib/tls/i686/cmov/libc-2.8.90.so
40192000-40196000 rw-p 40192000 00:00 0
401aa000-401b7000 r-xp 00000000 08:06 6004798 /lib/libgcc_s.so.1
401b7000-401b8000 r–p 0000c000 08:06 6004798 /lib/libgcc_s.so.1
401b8000-401b9000 rw-p 0000d000 08:06 6004798 /lib/libgcc_s.so.1
bff87000-bffa0000 rw-p bffe7000 00:00 0 [stack]
make[4]: *** [libgcc.a] Aborted
make[4]: *** Deleting file `libgcc.a’
make[4]: Leaving directory `/ztaf/dm600pvr/build/tmp/work/ppc405-linux/gcc-cross-initial-4.2.4-r5/gcc-4.2.4/build.i686-linux.powerpc-linux/gcc’
make[3]: *** [stmp-multilib] Error 2
make[3]: Leaving directory `/ztaf/dm600pvr/build/tmp/work/ppc405-linux/gcc-cross-initial-4.2.4-r5/gcc-4.2.4/build.i686-linux.powerpc-linux/gcc’
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory `/ztaf/dm600pvr/build/tmp/work/ppc405-linux/gcc-cross-initial-4.2.4-r5/gcc-4.2.4/build.i686-linux.powerpc-linux’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/ztaf/dm600pvr/build/tmp/work/ppc405-linux/gcc-cross-initial-4.2.4-r5/gcc-4.2.4/build.i686-linux.powerpc-linux’
+ die oe_runmake failed
+ oefatal oe_runmake failed
+ echo FATAL: oe_runmake failed
FATAL: oe_runmake failed
+ exit 1
do you have any idea about this buffer owerflow?
January 15th, 2009 at 18:15
This is a ubuntu specific problem, see https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2
January 15th, 2009 at 19:55
You can try applying one of these patches, if one of them matches the version of binutils: http://cgit.openembedded.net/cgit.cgi?url=openembedded%2Flog&h=org.openembedded.dreambox&qt=grep&q=binutils%3A+fix+possible+buffer+overflow+in+ar
Otherwise you’ll have to “port” the patch to the version used for powerpc.
February 23rd, 2009 at 9:42
Hi. Im tried to make dm8000 oe 1.6 image but get error:
tuxbox-libtuxtxt.bb do_install failed
log here:
NOTE: make DESTDIR=/home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image install
make[1]: Entering directory `/home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/libs/libtuxtxt’
test -z “/usr/lib” || /bin/mkdir -p “/home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image/usr/lib”
/bin/sh ../mipsel-linux-libtool –mode=install /usr/bin/install -c -p ‘libtuxtxt.la’ ‘/home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image/usr/lib/libtuxtxt.la’
/usr/bin/install -c -p .libs/libtuxtxt.so.0.0.0 /home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image/usr/lib/libtuxtxt.so.0.0.0
(cd /home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image/usr/lib && rm -f libtuxtxt.so.0 && ln -s libtuxtxt.so.0.0.0 libtuxtxt.so.0)
(cd /home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image/usr/lib && rm -f libtuxtxt.so && ln -s libtuxtxt.so.0.0.0 libtuxtxt.so)
/usr/bin/install -c -p .libs/libtuxtxt.lai /home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/image/usr/lib/libtuxtxt.la
mipsel-linux-libtool: install: warning: remember to run `mipsel-linux-libtool –finish /usr/lib’
/bin/sh /home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/libs/install-sh -d /usr/share/fonts
cp ../../plugins/tuxtxt/font/tuxtxt.otb /usr/share/fonts
cp: cannot stat `../../plugins/tuxtxt/font/tuxtxt.otb’: No such file or directory
make[1]: *** [install-data-local] Error 1
make[1]: Leaving directory `/home/enigma/dreambox/dm800/dm8000/build/tmp/work/mipsel-linux/libtuxtxt-0.0+cvs20090130-r0/libs/libtuxtxt’
make: *** [install-am] Error 2
FATAL: oe_runmake failed
February 24th, 2009 at 16:09
hi all,i can´t usage update-offline.I have update in my pc,but is in format ²tar.gz² and my receiver(dm600pvr) write ²format refuse². sorry for my english,anybody can help me please?
March 31st, 2009 at 19:31
Hi, I’m manage with crosscompiling dreambox branch (openembedded.git) for sh4 devices based on stlinux22 (with kernel 2.6.17.14-stm22_00XX) like Ipbox 910 and Katherin UFS 910.
Now prepared (for additional testing) is: toolchain, crosscompiler, glibc, kernel, python, and many minor packages
Does is possible to create git branch (e.g. openenigma2 - common distro for Ipboxes and Katherin) for that paltforms in yours repo?