[yocto] Try latest yocto adt script installer

Zhang, Jessica jessica.zhang at intel.com
Mon Dec 13 15:09:14 PST 2010


Ke, Liping wrote:
> Hi, Jessica
> 
> I have put the installer script tar ball in the below links:
> http://llu-piketon.sh.intel.com/installer.tar 
> 
> You can have a try. Below is some key notes:
> 
> 1. since now version has problems, we have submit bug 586
> http://bugzilla.pokylinux.org/show_bug.cgi?id=586 
> So currently we have no available x86_64 repository. (same packages
> now belong to different version because they are built in two days).
> So currently only 32 bit host could run the script  
> 2. after untar this installer, under adt_installer folder, directly
> running $ ./yocto_installer. 
Why we must run the script under the adt-installer directory? Actually I
tried to run under $HOME or / but specifying the full path to
yocto_installer, and got the error: 
[ADT_INST] script file util is not  found!

#############################################
# Meet error when installing Yocto ADT.
#############################################

2 comments here:
1. we should be able to allow user run the yocto_installer script from any
location and it should be able to locate the needed surporting files or
scripts
2. As a convention and to be consistent, I'd suggest change the above error
message as "[ADT_INST] Error: Script file util is not found!"  There're
several error messages in the scripts has the Error message format that I'm
talking about here, which you can look up as a reference.

> 3. Build log are located @ adt_installer/yoctoadt_installer.log
> 4. User config ( install which targets) are defined/changed in
> Yocto_installer.conf. Note: now only i586 qemu rootfs are available
> in repository.  
> 
> Any problem, just let me know.

Just by playing with it, I change YOCTOADT_TARGETS="ppc" in
yocto_installer.conf. And the prompt that I got is as follows:

[ADT_INST] selected archs defined in Host Area Item: YOCTOADT_TARGETS is not
valid!
Error: Terminate installation process due to errors!

Comments here:
1. Add the "Error: " to the error message as mentioned before
2. YOCTADT_TARGETS is now replaces by the specified value (ppc)
3. It would be nice to point out Host Area resides in which file, and also
tells user what are the valid entries
4. It's not consistent when existing the program when running into errors,
see the above and here just "Error: "...

During the Make opkg..., there're bunch of warning messages can we redirect
them to the log file?
Also, it seems the log file contents is less than what shows on the screen
(STDOUT), which I think should be the reverse case, people should be able to
trace more info in the log file? E.g. during downloading rootfs, all the
info where it download from and saved to where are showed on the screen but
missing in the log file...

Toward the end of the installation, I run into:

[ADT_INST] Re-generate environment script file according to rootfs location.
Ls: cannot access /opt/poky/0.9+snapshot-20101211/environment-setup-i586*:
No such file or directory
Sed: no input files

################################################
# Yocto ADT has been successfully installed.
################################################

Since there's error, why it claims successfully installed?

In general, as I mentioned, we need to do more thorough unit test for the
script since we're in the refining phase of the implementation...

Thanks,
Jessica
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 8455 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20101213/ce467ba3/attachment.bin>


More information about the yocto mailing list