Hi,

You should not have any segfaults during the image builds. Two things come to my mind:

First that your qemu-arm-static version is 0.13 or newer. If not you can get 0.13 version for your distribution most probably from http://repo.meego.com/MeeGo/tools/repos/

Second should try if executing following will make any difference with the segfaults:

echo 0 | sudo tee /proc/sys/vm/vdso_enabled

It is in the mic log separated with = WARNING = texts.

Regards,
Marko

On 04/12/2011 10:50 AM, WuYongbo wrote:
Changing to bootstrap mode, it works !!!
although with some unusual log when installing package, like:

Installing: shared-mime-info #####################
[180/616]/var/tmp/rpm-tmp.JaHIPV: line 3: 25504 Segmentation fault (core
dumped) /usr/bin/update-mime-database /usr/share/mime >&/dev/null
Installing: PackageKit #####################
[507/616]/var/tmp/rpm-tmp.skk0Br: line 1: 25874 Segmentation fault (core
dumped) update-mime-database /usr/share/mime >&/dev/null

I am not sure whether this has any effort on using image ?


Also, actually I tried bootstrap mode this morning, it failed with error:

failed to find /var/cache/meego-bootstrap//parentroot.


在 2011年4月12日 下午2:44,Marko Saukko <marko.sau...@cybercom.com
<mailto:marko.sau...@cybercom.com>>写道:

    Hi,

    the problem in here is that you are not using bootstrap mode. armv7hl
    architecture is not supported by your host distribution tools and thus
    you can't use legacy mode to build armv7hl image. So add --run-mode=1 to
    the cmdline and you should be fine. Also should be noted that to build
    armv7hl image properly you need to have qemu 0.13 or newer.

    Regards,
    Marko

    On 04/12/2011 06:10 AM, WuYongbo wrote:
     > *OS:* FC 13
     > *MIC* version: 0.24.8
     >
     > *Cmdline:* mic-image-creator --arch=armv7hl --pkgmgr=yum --format=raw
     > --save-kernel --package=tar.gz
     > --config=meego-handset-armv7hl-n900-1.1.99.1.20110406.102.ks
     >
     > *run-mode* = 0 (legacy)
     >
     > *Error: failed to create image : Invalid target arch: armv7hl*
     > *
     > *
     > I deep into /usr/bin/mic-image-creator and find in run-mode 0, arch
     > armv7hl is supported.
     > *
     > *
     > *logs:*
     >
     > MIC2 version: 0.24.8
     > [main]
     > use_comps=1
     > outdir=.
     > tmpdir=/var/tmp
     > run_mode=0
     >
     >
     >
     > Local linux distribution:
     > Fedora release 13 (Goddard)
     >
     > Fedora release 13 (Goddard)
     >
     > Fedora release 13 (Goddard)
     >
     > Fedora release 13 (Goddard)
     > Kernel \r on an \m (\l)
     >
     >
     > Local Kernel version: 2.6.34.7-66.fc13.i686.PAE
     > Run mode: legacy
     > Using /var/tmp as tmpdir.
     > Using /var/tmp/cache as cache directory.
     > Using /home/Domain_Users/yuzheng as output directory.
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/oss/armv7hl/packages//repodata/repomd.xml
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/oss/armv7hl/packages//repodata/b7c7cff692e5ad8c5eb2fbaa9dedeeb1b80d34d88e041142b40720ffd3a470b9-primary.sqlite.bz2
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/oss/armv7hl/packages//repodata/72f8a3984159e43309b0254a4b26d8a33a76b69c8c1b6209dc403d27874d4098-patterns.xml.gz
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/oss/armv7hl/packages//repodata/cdc92f9c36226053c85deeeb5d05f170ad487bddd42f88e3ebb1309e805482e6-group.xml.gz
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/oss/armv7hl/packages//repodata/repomd.xml.key
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/non-oss/armv7hl/packages//repodata/repomd.xml
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/non-oss/armv7hl/packages//repodata/8b100fc1982d634506b5cd670bee62de67d12fe576ffa99d3106cedd6c7b4d3f-primary.sqlite.bz2
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/non-oss/armv7hl/packages//repodata/repomd.xml.key
     > ...OK
     > Retrieving
     >
    
http://download.meego.com/snapshots/1.1.99.1.20110406.102/repos/oss/armv7hl/packages//noarch/meego-release-1.1.90-1.1.noarch.rpm
     > ...OK
     > Available target architectures in repositories: [u'armv7hl']
     >
     > MeeGo release 1.1.90
     >
     > meego-handset-armv7hl-n900-1.1.99.1.20110406.102-1.1.90.20110412.1050
     > Target arch: armv7hl
     > Registering package manager: zypp
     > Registering package manager: yum
     >
     > = WARNING =
     > vdso is enabled on your host, which might cause problems with arm
     > emulations.
     > You can disable vdso with following command before starting image
    build:
     > echo 0 | sudo tee /proc/sys/vm/vdso_enabled
     > = WARNING =
     >
     > Use package manager yum
     > Loading dm_snapshot...
     > Filesystem label=
     > OS type: Linux
     > Block size=4096 (log=2)
     > Fragment size=4096 (log=2)
     > Stride=0 blocks, Stripe width=0 blocks
     > 112000 inodes, 447999 blocks
     > 4479 blocks (1.00%) reserved for the super user
     > First data block=0
     > Maximum filesystem blocks=461373440
     > 14 block groups
     > 32768 blocks per group, 32768 fragments per group
     > 8000 inodes per group
     > Superblock backups stored on blocks:
     > 32768, 98304, 163840, 229376, 294912
     >
     > Writing inode tables: 0/14 1/14 2/14 3/14 4/14 5/14 6/14 7/14 8/14
     > 9/14 10/14 11/14 12/14 13/14 done
     > Creating journal (8192 blocks): done
     > Writing superblocks and filesystem accounting information: done
     >
     > This filesystem will be automatically checked every 27 mounts or
     > 180 days, whichever comes first. Use tune2fs -c or -i to override.
     > tune2fs 1.41.10 (10-Feb-2009)
     > Setting maximal mount count to -1
     > Setting interval between checks to 0 seconds
     > mkfs.vfat 3.0.9 (31 Jan 2010)
     > unable to get drive geometry, using default 255/63
     > mkswap: /dev/loop02: warning: don't erase bootbits sectors
     > on whole disk. Use -f to force.
     > Setting up swapspace version 1, size = 8188 KiB
     > no label, UUID=65848fe9-c1d5-48c3-a6d6-0c290a04b1e8
     > /usr/sbin/setenforce: SELinux is disabled
     > *
     > *
     > *Error: failed to create image : Invalid target arch: armv7hl*
     >
     >
     > --
     > Good luck !
     >
     >
     > _______________________________________________
     > MeeGo-qa mailing list
     > meego...@lists.meego.com <mailto:meego...@lists.meego.com>
     > http://lists.meego.com/listinfo/meego-qa




--
Good luck !

_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to