[Bug 954] New: MokoMakefile does not build image files even after successful packages compilation

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Mon Oct 22 23:18:05 CEST 2007


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=954

           Summary: MokoMakefile does not build image files even after
                    successful packages compilation
           Product: OpenMoko
           Version: current svn head
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: autobuilds
        AssignedTo: mickey at vanille-media.de
        ReportedBy: bugslayer at o2.pl
                CC: buglog at lists.openmoko.org


MokoMakefile does not build image files even after successful packages compilation

repro:
1. make update-makefile && make setup update openmoko-devel-image
2. make qemu-local

what's wrong:
make openmoko-devel-image does not generate image files, even when I see such
text as "NOTE: build 200710222253: completed", so make qemu cannot continue -
the truth is, it fails with the following output:

[ -e build/qemu ] || \
        ( mkdir -p build/qemu )
[ -e build/qemu/Makefile ] || \
        ( . ./setup-env && cd build/qemu && \
          ${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/configure \
                --target-list=arm-softmmu )
[ -e build/qemu/openmoko ] || \
        ( . ./setup-env && cd build/qemu && mkdir openmoko && \
          for f in ${OMDIR}/openmoko/trunk/src/host/qemu-neo1973/openmoko/* ; do
 \
            ln -s $f openmoko/`basename $f` ; \
          done )
ln -sf `pwd`/openmoko/trunk/src/host/qemu-neo1973/openmoko/env build/qemu/openmo
ko/env
[ -d stamps ] || mkdir stamps
touch stamps/qemu
( cd build/qemu && make )
make[1]: Entering directory `/home/openmoko/om/build/qemu'
make -C arm-softmmu all
make[2]: Entering directory `/home/openmoko/om/build/qemu/arm-softmmu'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/openmoko/om/build/qemu/arm-softmmu'
make[1]: Leaving directory `/home/openmoko/om/build/qemu'
( cd build && . ../setup-env && \
          bitbake openmoko-devel-image uboot-openmoko )
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to incr
ease performance.
NOTE: Handling BitBake files: / (4772/4772) [100 %]
NOTE: Parsing finished. 4542 cached, 0 parsed, 230 skipped, 0 masked.
NOTE: build 200710222302: started

OE Build Configuration:
BB_VERSION     = "1.8.8"
OE_REVISION    = "7f97df68d9bbb4bbdb3287edf727a04a5a29c6a8"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux-gnueabi"
MACHINE        = "fic-gta01"
DISTRO         = "openmoko"
DISTRO_VERSION = "P1-Snapshot-20071022"
TARGET_FPU     = "soft"

NOTE: Resolving missing task queue dependencies
NOTE: preferred version 2.5 of glibc not available (for item virtual/arm-angstro
m-linux-gnueabi-libc-for-gcc)
NOTE: multiple providers are available for virtual/libqte2 (qte-mt-static, qte,
qte-mt);
NOTE: consider defining PREFERRED_PROVIDER_virtual/libqte2
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 4958 of 4959 (ID: 4, /home/openmoko/om/openembedded/packages/
images/openmoko-devel-image.bb, do_rootfs)
NOTE: package openmoko-devel-image-1.0: started
NOTE: package openmoko-devel-image-1.0-r0: task do_rootfs: started
NOTE: package openmoko-devel-image-1.0-r0: task do_rootfs: completed
NOTE: package openmoko-devel-image-1.0: completed
NOTE: Running task 4959 of 4959 (ID: 5, /home/openmoko/om/openembedded/packages/
images/openmoko-devel-image.bb, do_build)
NOTE: package openmoko-devel-image-1.0: started
NOTE: package openmoko-devel-image-1.0-r0: task do_build: started
NOTE: package openmoko-devel-image-1.0-r0: task do_build: completed
NOTE: package openmoko-devel-image-1.0: completed
NOTE: Tasks Summary: Attempted 4959 tasks of which 4957 didn't need to be rerun
and 0 failed.
NOTE: build 200710222302: completed
[ -d stamps ] || mkdir stamps
touch stamps/openmoko-devel-image
( cd build/qemu && openmoko/flash.sh ../tmp/deploy/glibc/images/fic-gta01 )
/usr/bin/gmake
which: no gecho in (/opt/kde3/bin:/usr/java/jdk1.6.0_03/bin:/home/po/bin:/usr/lo
cal/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bi
n:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin)
openmoko/flash.sh: line 27: cd: ../tmp/deploy/glibc/images/fic-gta01: No such fi
le or directory
/usr/bin/pngtopnm
/usr/bin/ppmtorgb3
gmake[1]: Entering directory `/home/openmoko/om/build/qemu/openmoko'
gmake[1]: `splash.gz' is up to date.
gmake[1]: Leaving directory `/home/openmoko/om/build/qemu/openmoko'
ls: cannot access /home/openmoko/om/build/qemu/uImage-2.6.*-fic-gta01.bin: No su
ch file or directory
basename: missing operand
Try `basename --help' for more information.
ls: cannot access /home/openmoko/om/build/qemu/OpenMoko*.rootfs.jffs2: No such f
ile or directory
basename: missing operand
Try `basename --help' for more information.
ls: cannot access /home/openmoko/om/build/qemu/u-boot-gta01b*.bin: No such file
or directory
basename: missing operand
Try `basename --help' for more information.
Using '' as the kernel image.
Using '' as the root filesystem image.
Using '' as bootloader.
gmake[1]: Entering directory `/home/openmoko/om/build/qemu/openmoko'
# Making an empty/erased flash image.  Need a correct echo behavior.
echo -en \\0377\\0377\\0377\\0377\\0377\\0377\\0377\\0377 > .8b
cat .8b .8b > .16b # OOB is 16 bytes
cat .16b .16b .16b .16b .16b .16b .16b .16b > .512b
cat .16b .16b .16b .16b .16b .16b .16b .16b >> .512b
cat .16b .16b .16b .16b .16b .16b .16b .16b >> .512b
cat .16b .16b .16b .16b .16b .16b .16b .16b >> .512b
cat .512b .16b > .sec # A sector is 512 bytes of data + OOB
cat .sec .sec .sec .sec .sec .sec .sec .sec > .8sec
cat .8sec .8sec .8sec .8sec .8sec .8sec .8sec .8sec > .64sec
cat .64sec .64sec .64sec .64sec .64sec .64sec .64sec .64sec > .512sec
cat .512sec .512sec .512sec .512sec > .2ksec
cat .2ksec .2ksec .2ksec .2ksec .2ksec .2ksec .2ksec .2ksec > .16ksec
# Neo NAND is 128k sectors big
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec > openmoko-f
lash.base
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec
gmake[1]: Leaving directory `/home/openmoko/om/build/qemu/openmoko'
Please wait, programming the NAND flash...
sleep: invalid time interval `setenv'
sleep: invalid time interval `dontask'
sleep: invalid time interval `y'
sleep: invalid time interval `nand'
sleep: invalid time interval `createbbt'
sleep: invalid time interval `setenv'
sleep: invalid time interval `bootcmd'
sleep: invalid time interval `\'setenv'
sleep: invalid time interval `bootargs'
sleep: invalid time interval `${bootargs_base}'
sleep: invalid time interval `${mtdparts};'
sleep: invalid time interval `bootm'
sleep: invalid time interval `0x31000000\''
sleep: invalid time interval `setenv'
sleep: invalid time interval `menu_1'
sleep: invalid time interval `\'Set'
sleep: invalid time interval `console'
sleep: invalid time interval `to'
sleep: invalid time interval `USB:'
sleep: invalid time interval `setenv'
sleep: invalid time interval `stdin'
sleep: invalid time interval `usbtty;'
sleep: invalid time interval `setenv'
sleep: invalid time interval `stdout'
sleep: invalid time interval `usbtty;'
sleep: invalid time interval `setenv'
sleep: invalid time interval `stderr'
sleep: invalid time interval `usbtty\''
sleep: invalid time interval `setenv'
sleep: invalid time interval `menu_2'
sleep: invalid time interval `\'Set'
sleep: invalid time interval `console'
sleep: invalid time interval `to'
sleep: invalid time interval `serial:'
sleep: invalid time interval `setenv'
sleep: invalid time interval `stdin'
sleep: invalid time interval `serial;'
sleep: invalid time interval `setenv'
sleep: invalid time interval `stdout'
sleep: invalid time interval `serial;'
sleep: invalid time interval `setenv'
sleep: invalid time interval `stderr'
sleep: invalid time interval `serial\''
sleep: invalid time interval `setenv'
sleep: invalid time interval `menu_3'
sleep: invalid time interval `\'Power'
sleep: invalid time interval `off:'
sleep: invalid time interval `neo1973'
sleep: invalid time interval `power-off\''
sleep: invalid time interval `setenv'
sleep: invalid time interval `splashimage'
sleep: invalid time interval `\'nand'
sleep: invalid time interval `read.e'
sleep: invalid time interval `splash'
sleep: invalid time interval `0x5000;'
sleep: invalid time interval `unzip'
sleep: invalid time interval `0x96000\''
sleep: invalid time interval `setenv'
sleep: invalid time interval `mtdids'
sleep: invalid time interval `nand0=neo1973-nand'
sleep: invalid time interval `setenv'
sleep: invalid time interval `mtdparts'
sleep: invalid time interval `mtdparts=neo1973-nand:0x00050000(u-boot),0x0000400
0(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)'
sleep: invalid time interval `#dynpart'
sleep: invalid time interval `nand'
sleep: invalid time interval `write.e'
sleep: invalid time interval `u-boot'
sleep: invalid time interval `dynenv'
sleep: invalid time interval `set'
sleep: invalid time interval `u-boot_env'
sleep: invalid time interval `saveenv'
Try `sleep --help' for more information.
openmoko/flash.sh: line 88: 26418 Terminated              $qemu -mtdblock "$scri
                                                    pt_dir/$flash_base" -kernel
"$script_dir/$1" -serial stdio -nographic -usb -moni                           
                         tor null 0<&0

U-boot failed to finish writing in setenv dontask y nand createbbt setenv bootcm
                                                    d 'setenv bootargs
${bootargs_base} ${mtdparts}; bootm 0x31000000' setenv menu_1                  
                                   'Set console to USB: setenv stdin usbtty;
setenv stdout usbtty; setenv stderr u                                          
          sbtty' setenv menu_2 'Set console to serial: setenv stdin serial;
setenv stdout                                                      serial;
setenv stderr serial' setenv menu_3 'Power off: neo1973 power-off' seten       
                                             v splashimage 'nand read.e
0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000                          
                           0x96000' setenv mtdids nand0=neo1973-nand setenv
mtdparts mtdparts=neo1973-nand                                                 
  
:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash)
                                                    ,0x039a4000(rootfs) #dynpart
nand write.e 0x31000000 u-boot 0x1000 dynenv set u-                            
                        boot_env saveenv seconds, giving up.

make: *** [flash-qemu-local] Error 255

how should it be:
make openmoko-devel-image should generate image files, so make qemu-local can
exit with success.

additional info:
1. OS: opensuse 10.3
2. local.conf file:
MACHINE = "fic-gta01"
DISTRO = "openmoko"
BUILD_ARCH = "i686"
INHERIT += "rm_work"
PARALLEL_MAKE = "-j 4"
BB_NUMBER_THREADS = "4"
GLIBC_GENERATE_LOCALES = "en_US.UTF-8 pl_PL.UTF-8"
3. No additional issues observed. Some time ago everytning worked fine on the
same configuration.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the buglog mailing list