Difference between revisions of "IoTGateway/BSP/Linux/Quark/FAQ"
From ESS-WIKI
(Add a install image to SD card) |
(Add a install image to SD card method and ssh method) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Frequently Asked Questions for Quark series}} | {{DISPLAYTITLE:Frequently Asked Questions for Quark series}} | ||
+ | |||
{| align="right" | {| align="right" | ||
− | + | |- | |
− | + | | __TOC__ | |
+ | |} | ||
<!-- | <!-- | ||
--> | --> | ||
+ | == Compiling == | ||
+ | |||
+ | === GRUB === | ||
− | |||
− | |||
Please refer to the following sections for details | Please refer to the following sections for details | ||
− | * Getting Started / Build Instructions / To build grub individually <sub>([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_grub_individually|LBV2]])</sub> | + | *Getting Started / Build Instructions / To build grub individually <sub>([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_grub_individually|LBV2]])</sub> |
+ | |||
+ | === Kernel === | ||
− | |||
Please refer to the following sections for details | Please refer to the following sections for details | ||
− | * Getting Started / Build Instructions / To build linux kernel individually <sub>([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_linux_kernel_individually|LBV2]])</sub> | + | *Getting Started / Build Instructions / To build linux kernel individually <sub>([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_linux_kernel_individually|LBV2]])</sub> |
+ | |||
+ | == Application == | ||
+ | |||
+ | === Static busybox === | ||
− | |||
− | |||
The following steps demonstrate how to build the static busybox. | The following steps demonstrate how to build the static busybox. | ||
− | * Install cross tool chain | + | |
− | # [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|To build all image files]] | + | *Install cross tool chain |
− | # [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_toolchain_installer|To build toolchain installer]] | + | |
− | # [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#Setting_up_SDK|Setting up SDK]] | + | #[[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|To build all image files]] |
− | # [[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#Setting_up_cross_compiling_environment|Setting up cross compiling environment]] | + | #[[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_toolchain_installer|To build toolchain installer]] |
− | * Install static linked libraries for cross compiling | + | #[[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#Setting_up_SDK|Setting up SDK]] |
− | : (Because the static linked libraries contained in cross toolchain installer are not full enough as contained in the yocto building environment.) | + | #[[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#Setting_up_cross_compiling_environment|Setting up cross compiling environment]] |
− | : <tt>$ pushd <span style="color:purple">'''${BSP_HOME}'''</span>/<span style="color:purple">'''${BDIR}'''</span>/tmp/sysroots/quark && tar zcvf ~/static_lib.tgz `find ./ -name "*.a"` && popd</tt> | + | |
− | : (Copy ~/static_lib.tgz from docker container to home directory in local file system if needed) | + | *Install static linked libraries for cross compiling |
− | : <tt>$ sudo tar xvf ~/static_lib.tgz -C /opt/iot-devkit/<span style="color:purple">'''${POKY}'''</span>/sysroots/i586-poky-linux --no-same-owner</tt> | + | |
− | * Unpack busybox tarball | + | :(Because the static linked libraries contained in cross toolchain installer are not full enough as contained in the yocto building environment.) |
− | : <tt>$ mkdir -p ~/code/test_quark</tt> | + | :<tt>$ pushd <span style="color:purple">'''${BSP_HOME}'''</span>/<span style="color:purple">'''${BDIR}'''</span>/tmp/sysroots/quark && tar zcvf ~/static_lib.tgz `find ./ -name "*.a"` && popd</tt> |
− | : <tt>$ tar xvf busybox-1.22.1.tar.bz2 -C ~/code/test_quark</tt> | + | :(Copy ~/static_lib.tgz from docker container to home directory in local file system if needed) |
− | : <tt>$ cd ~/code/test_quark/busybox-1.22.1</tt> | + | :<tt>$ sudo tar xvf ~/static_lib.tgz -C /opt/iot-devkit/<span style="color:purple">'''${POKY}'''</span>/sysroots/i586-poky-linux --no-same-owner</tt> |
− | * Select the option, <tt>"Busybox Settings ---> Build Options---> | + | |
− | : <tt>$ make menuconfig</tt> | + | *Unpack busybox tarball |
− | : Exit and Save | + | |
− | * do compiling | + | :<tt>$ mkdir -p ~/code/test_quark</tt> |
− | : <tt>$ make</tt> | + | :<tt>$ tar xvf busybox-1.22.1.tar.bz2 -C ~/code/test_quark</tt> |
− | : Eventually, the two files, busybox and busybox_unstripped, are built and located in directory <tt>"~/code/test_quark/busybox-1.22.1"</tt>. | + | :<tt>$ cd ~/code/test_quark/busybox-1.22.1</tt> |
+ | |||
+ | *Select the option, <tt>"Busybox Settings ---> Build Options---> '''[*] Build BusyBox as a static binary (no shared libs)'''"</tt> | ||
+ | |||
+ | :<tt>$ make menuconfig</tt> | ||
+ | :Exit and Save | ||
+ | |||
+ | *do compiling | ||
+ | |||
+ | :<tt>$ make</tt> | ||
+ | :Eventually, the two files, busybox and busybox_unstripped, are built and located in directory <tt>"~/code/test_quark/busybox-1.22.1"</tt>. | ||
== SDcard image == | == SDcard image == | ||
Line 49: | Line 65: | ||
To build from BSP, please refer to the following sections for details. | To build from BSP, please refer to the following sections for details. | ||
− | *Getting Started / Build Instructions / To build all image files <sub>([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|LBV2]])</sub><sub></sub> | + | *Getting Started / Build Instructions / To build all image files <sub>([[IoTGateway/BSP/Linux/Quark/Yocto_LBV2_User_Guide#To_build_all_image_files|LBV2]])</sub> |
+ | |||
+ | <sub>To install image to SD Card .</sub> | ||
+ | |||
+ | * When you get the intel Quark image files.Unzip the image file , you will see the files list as below (ex. UBC-222) [[File:UBC-222 Image files.JPG|RTENOTITLE]] | ||
+ | *Please format your SD card to FAT32 | ||
+ | *Please copy all files from the sdcard folder to your SD card . | ||
+ | |||
+ | [[File:Sdcard files list.JPG|RTENOTITLE]] | ||
+ | |||
+ | *When you have copied the all files to your SD card , you can use this SD card to boot up the UBC-222 Yocto system . | ||
+ | |||
+ | [[File:SD Card.JPG|RTENOTITLE]] | ||
+ | |||
+ | *Use debug cable via Terminal tool , you can see the debug massage as below . | ||
+ | |||
+ | [[File:UBC-222 boot up.JPG|RTENOTITLE]] | ||
+ | |||
+ | *Also you can use "ssh" to log into the Yocto system , but you need to know IP address of the Internet cable (ex . inet addr:172.22.16.154 ). | ||
+ | *You can use "Putty" tool to log into the device . | ||
+ | |||
+ | [[File:Putty connection.JPG|RTENOTITLE]] | ||
− | + | [[File:Ssh.JPG|RTENOTITLE]] | |
− | ==Mini-PCIe== | + | == Mini-PCIe == |
− | ==UART== | + | == UART == |
Latest revision as of 03:58, 23 November 2016
Compiling
GRUB
Please refer to the following sections for details
- Getting Started / Build Instructions / To build grub individually (LBV2)
Kernel
Please refer to the following sections for details
- Getting Started / Build Instructions / To build linux kernel individually (LBV2)
Application
Static busybox
The following steps demonstrate how to build the static busybox.
- Install cross tool chain
- To build all image files
- To build toolchain installer
- Setting up SDK
- Setting up cross compiling environment
- Install static linked libraries for cross compiling
- (Because the static linked libraries contained in cross toolchain installer are not full enough as contained in the yocto building environment.)
- $ pushd ${BSP_HOME}/${BDIR}/tmp/sysroots/quark && tar zcvf ~/static_lib.tgz `find ./ -name "*.a"` && popd
- (Copy ~/static_lib.tgz from docker container to home directory in local file system if needed)
- $ sudo tar xvf ~/static_lib.tgz -C /opt/iot-devkit/${POKY}/sysroots/i586-poky-linux --no-same-owner
- Unpack busybox tarball
- $ mkdir -p ~/code/test_quark
- $ tar xvf busybox-1.22.1.tar.bz2 -C ~/code/test_quark
- $ cd ~/code/test_quark/busybox-1.22.1
- Select the option, "Busybox Settings ---> Build Options---> [*] Build BusyBox as a static binary (no shared libs)"
- $ make menuconfig
- Exit and Save
- do compiling
- $ make
- Eventually, the two files, busybox and busybox_unstripped, are built and located in directory "~/code/test_quark/busybox-1.22.1".
SDcard image
To build from prebuilt image, please refer to the following sections for details.
- Getting Started / Introducing BSP / Prebuilt image (LBV2)
To build from BSP, please refer to the following sections for details.
- Getting Started / Build Instructions / To build all image files (LBV2)
To install image to SD Card .
- When you get the intel Quark image files.Unzip the image file , you will see the files list as below (ex. UBC-222)
- Please format your SD card to FAT32
- Please copy all files from the sdcard folder to your SD card .
- When you have copied the all files to your SD card , you can use this SD card to boot up the UBC-222 Yocto system .
- Use debug cable via Terminal tool , you can see the debug massage as below .
- Also you can use "ssh" to log into the Yocto system , but you need to know IP address of the Internet cable (ex . inet addr:172.22.16.154 ).
- You can use "Putty" tool to log into the device .