1 Reply Latest reply on May 1, 2014 5:21 PM by JPMontero_Intel

    ksize.py & dirsize.py for  Yocto on Galileo

    LeiZhou

      Hi

      I followed : Intel Galileo - Building Linux Image - Malinov Family Web Presence

      to build full image of Yocto on Galileo. I found there are not ksize.py & dirsize.py. So I found them on internet as attached files.

      When I run ksize.py under yocto_build directory, the result is as following:

      ---------------------------------------------------------------------------------------------------------------------------

      [leizhou@localhost yocto_build]$ ksize.py > ksize.log

      [leizhou@localhost yocto_build]$ cat ksize.log

      Linux Kernel                          total |       text       data        bss

      --------------------------------------------------------------------------------

      vmlinux                                   0 |          0          0          0

      --------------------------------------------------------------------------------

      --------------------------------------------------------------------------------

      sum                                       0 |          0          0          0

      delta                                     0 |          0          0          0

       

      And when I run dirsize.py under /meta-clanton_v0.7.5/yocto_build/tmp/deploy/images/meta-clanton_v0.7.5/yocto_build/tmp/deploy/images directory, the result is:

      -----------------------------------------------------------------------------------------------------------------------------

      [leizhou@localhost images]$ dirsize.py 100000 > dirsize-100k.log
      [leizhou@localhost images]$ cat dirsize-100k.log
      636093135 .
      314572800 ./image-full-clanton-20140429011544.rootfs.ext3
      314572800 ./image-full-clanton-20140429155141.rootfs.ext3
         2113920 ./bzImage--3.8-r0-clanton-20140429011544.bin
         1432459 ./core-image-minimal-initramfs-clanton-20140429155141.rootfs.cpio.gz
         1432407 ./core-image-minimal-initramfs-clanton-20140429011544.rootfs.cpio.gz
         1322167 ./modules--3.8-r0-clanton-20140429011544.tgz
          367104 ./bootia32.efi
          278383 ./grub.efi
      Displayed 636092040/636093135 bytes (100.00%)

       

      It seems to be a wrong way to build the tiny system. Could you tell me what is the problem?

      Thanks so much.

       

      Lei