Hi Yongqiang

The subcommand "--baselibs" should be added, that is "gbs build -A i586 
-threads=4 --baselibs".
Here show you a reference document: 
https://source.tizen.org/documentation/developer-guide/all-one-instructions/creating-tizen-ivi-images-based-on-specific-snapshot-one-page


Thanks
Li Jinjing
From: General [mailto:[email protected]] On Behalf Of Yongqiang Gu
Sent: Wednesday, February 11, 2015 8:39 PM
To: tizen general
Subject: [Tizen General] mic create image error

Hi Sir,

I build tizen 3.0 common source with command "gbs build -A i586 --threads=4", 
after building, I download the ks file: 
http://download.tizen.org/releases/daily/tizen/common/latest/builddata/images/ia32-wayland/image-configurations/common-wayland-mbr-i586.ks

And I update the "repo" section in this ks file with local address:
repo --name=common-wayland_i586 
--baseurl=http://download.tizen.org/releases/daily/tizen/common/latest/repos/ia32-wayland/packages/
 --ssl_verify=no --priority=99
repo --name=local 
--baseurl=file:///home/yongqiang/work/tizen/GBS-ROOT-X/local/repos/tizen3.0_common/i586/
 --priority=1
repo --name=local-toolchain 
--baseurl=file:///home/yongqiang/work/tizen/src/pre-built/toolchain-x86/ 
--priority=2

After that, run command "gbs createimage --ks-file=common-wayland-mbr-i586.ks" 
to create image, it always try to download packages from official site like:

$ gbs createimage --ks-file=common-wayland-mbr-i586.ks
info: creating image for ks file: common-wayland-mbr-i586.ks
mic 0.24.3 (localhost Ubuntu 12.04 precise)
INFO: Substitute macro variable @BUILD_ID@/@ARCH@ in ks: 
common-wayland-mbr-i586.ks
INFO: Retrieving repo metadata:
INFO: Retrieving repomd.xml ...
INFO: Retrieving 
81b648e7da63ba9835009321362aad033c9ac1f6be086715841f85ba12fcf9da-primary.xml.gz 
...
INFO: Retrieving 
1d357773227c47386effbc0f67a8efc26ef5898ca4c9195c22d43f99604e476b-patterns.xml.gz
 ...
INFO: Retrieving 
ac4d30f38690bfab3f503852b28706dd5e83e38d96a292a064b79bd451aa4ccb-group.xml.gz 
...
 DONE
INFO: Use detected arch i686.
INFO: Creating tizen bootstrap ...
INFO: Retrieving mic-bootstrap-x86-arm-1.0-7.46.i586.rpm ...

If I comment out the remote repo address, just use local packages, it fails to 
create image with error  like:
$ gbs createimage --ks-file=common-wayland-mbr-i586.ks
info: creating image for ks file: common-wayland-mbr-i586.ks
mic 0.24.3 (localhost Ubuntu 12.04 precise)
INFO: Substitute macro variable @BUILD_ID@/@ARCH@ in ks: 
common-wayland-mbr-i586.ks
INFO: Retrieving repo metadata:
 DONE
INFO: Use detected arch i686.
INFO: Creating tizen bootstrap ...
ERROR: Failed to download/install bootstrap package or the package is in bad 
format: Can't get rpm binary: mic-bootstrap-x86-arm
error: <gbs>failed to create image

>From the error message, I find that it try to fetch file 
>"mic-bootstrap-x86-arm", but in my local, the file name should be 
>"mic-bootstrap-1.0-0.i686.vanish.rpm",
Does anyone meet such issue before? Could someone give a hand to take a look, I 
appreciate you very much.

Thanks and have a good day!

Regards,
Yongqiang

_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general

Reply via email to