[yocto] yocto_installer test script update

Zhang, Jessica jessica.zhang at intel.com
Thu Dec 2 16:22:54 PST 2010


Liping,

I ran into error right away, and it's a very valid situation that we need to
be able to handle.  So in the terminal that I test the installer, I happened
to already have /opt/poky and source the environment-setup-i586 script which
alter all my host sysroot to be under /opt/poky/sysroot/i586-pokysdk-linux/,
etc...which triggered your opkg autotool project configure failed, please
see the attached config.log file for details.

Also, yesterday, I spent quite some time re-wrote lots of prompt messages in
the yocto_main, can you merge them into the new code?

In the installation terminal I saw the following prompt:
	Check User Configuration For Arch Type x86
	Check User Configuration For Arch Type arm
	Check User Configuration For Arch Type powerpc
	Check User Configuration For Arch Type mips
	Check architecture type x86 whether it needs to download images
	Check architecture type arm whether it needs to download images
	Check architecture type powerpc whether it needs to download images
	Check architecture type mips whether it needs to download images
	Do you want to go on installing, please enter Y/N:Y

	Beginning installation process...

	Begin to install selected native ADT!
	make dir ///var/lib/opkg successfully!
	Downloading http://llu-piketon.sh.intel.com/ipk_sdk/Packages.
	Downloading http://llu-piketon.sh.intel.com/ipk_sdk/all/Packages.
	Downloading
http://llu-piketon.sh.intel.com/ipk_sdk/i586-nativesdk/Packages.
	Downloading
http://llu-piketon.sh.intel.com/ipk_sdk/i586-i586-canadian/Packages.
	Downloading
http://llu-piketon.sh.intel.com/ipk_sdk/i586-arm-canadian/Packages.
	Downloading
http://llu-piketon.sh.intel.com/ipk_sdk/i586-powerpc-canadian/Packages.
	Downloading
http://llu-piketon.sh.intel.com/ipk_sdk/i586-mips-canadian/Packages.
	Downloading
http://llu-piketon.sh.intel.com/ipk_sdk/i586-x86_64-canadian/Packages. 

And by looking at your yocto_config file, which as following 
Host Area
YOCTOADT_TARGETS="powerpc"
YOCTOADT_QEMU="Y"
YOCTOADT_NFS_UTIL="Y"
YOCTOADT_BITBAKE="Y"
YOCTOADT_METADATA="Y"

#Target Area
YOCTOADT_TARGET_arm="N"
YOCTOADT_ROOTFS_arm="sato sdk"
YOCTOADT_TARGET_SYSROOT_IMAGE_arm="sato"
YOCTOADT_TARGET_SYSROOT_arm="$HOME/test-yocto/arm"

YOCTOADT_TARGET_x86="Y"
YOCTOADT_ROOTFS_x86="sdk minimal"
YOCTOADT_TARGET_SYSROOT_IMAGE_x86="sdk"
YOCTOADT_TARGET_SYSROOT_x86="$HOME/test-yocto/x86"

YOCTOADT_TARGET_powerpc="N"
YOCTOADT_ROOTFS_powerpc="sdk sato minimal"
YOCTOADT_TARGET_SYSROOT_IMAGE_powerpc="minimal"
YOCTOADT_TARGET_SYSROOT_powerpc="$HOME/test-yocto/mips"

YOCTOADT_TARGET_mips="N"
YOCTOADT_ROOTFS_mips="sdk"
YOCTOADT_TARGET_SYSROOT_IMAGE_mips="sdk"
YOCTOADT_TARGET_SYSROOT_mips="$HOME/test-yocto/mips"

Questions/comments
1. I'm assuming the "Check user configuration" and "Check architecture type"
messages are just for debugging and the in the final code they'll be gone
right?

2. Why I'm seeing so many downloading for all the cross-canadian for all
arches? According to your configure file, shouldn't just
i586-powerpc-canadian?  Also, don't know where the "Downloading http://..."
message from, are they from the opkg install?

Thanks,
Jessica
Ke, Liping wrote:
> Hi, Jessica
> I have update the installer on http://llu-piketon.sh.intel.com/. I
> have tested in your machine roughly, downloading should work if you
> use wget -Y off to turn off all your proxy settings for testing.
> Since there're dangling folders in your machine, I can't rudely
> delete it. You can download the new package and test.    
> 
> There're some other prompt problems I need to adjust. Today is not
> the final code, only for your reviewing and testing. 
> 
> Any problem, just let me know.
> 
> Thanks& Regards,
> criping
> 
> 
> 
>> -----Original Message-----
>> From: Zhang, Jessica
>> Sent: Thursday, December 02, 2010 8:19 AM
>> To: Ke, Liping; Lu, Lianhao; Tian, Kevin
>> Cc: yocto at yoctoproject.org
>> Subject: RE: yocto_installer test script update
>> 
>> Liping,
>> 
>> I've modified couple files mainly for the messaging, styling, etc.
>> Also, globaly changed SDK to ADT (Application Development Tools,
>> which is the new name that came out refering to the toolchains,
>> etc.). Please see attachment. 
>> 
>> Other comments:
>> 1. I'd expect after your do the code clean up, the code logic flow
>> should be more clearer, now the functions and main installation  code
>> are mingled together 2. There're couple places that I commented off
>> with my initial JZ which I don't think there're the needs for the
>> code, we can walk through them tonight...
>> 3. For target sysroot setup, I'd expect similar prompt to the user
>> about the specified configuration and confirmation 4. Also for target
>> sysroot setup, in the yocto_config file, you specify
>> ROOTFS_powerpc="sdk" TARGET_SYSROOT_IMAGE_powerpc="sato"
>> I'd expect the installer will run into error since the download
>> images only contain SDK no sato, sysroot can't be setup using sato,
>> which I think it's missing from the current code...
>> 
>> In general it looks good and main flow that needs to be covered are
>> there... 
>> 
>> Thanks,
>> Jessica
>> 
>> 
>> -----Original Message-----
>> From: Ke, Liping
>> Sent: Wednesday, December 01, 2010 2:06 AM
>> To: Zhang, Jessica; Lu, Lianhao; Tian, Kevin
>> Cc: yocto at yoctoproject.org
>> Subject: yocto_installer test script update
>> 
>> Hi, Jessica
>> 
>> The newer version of the installer is in lianhao's location. You can
>> directly run ./yocto_installer http://llu-piketon.sh.intel.com/ Today
>> we tested both on 32 bit and 64 bit ubuntu host.
>> 
>> It's very initial and rough, I will move many non-root required ops
>> into the outer wrapper script later.
>> 
>> Any early comments are welcomed, just let me know.
>> 
>> Thanks& Regards,
>> criping
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 10833 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20101202/d8f1e6e6/attachment.obj>
-------------- 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/20101202/d8f1e6e6/attachment.bin>


More information about the yocto mailing list