You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

Build a boot-time image

                $ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-raspberrypi.xml -b morty

                $ repo sync -j4 --no-clone-bundle

                $ source meta-cmf-raspberrypi/setup-environment

   Select  raspberrypi-rdk-boot-time-broadband.conf

                $ bitbake rdk-generic-broadband-boot-image

     After the build is completed , flash  *.rootfs.rpi-sdimg from the path build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband/

                $ sudo dd if=*.rootfs.rpi-sdimg


Extend the size of rootfs

             Extend the size of rootfs to 420 MB not more than that. So that newly created partition could occupy the dedicated space.

To extend the size use gparted on your linux PC.

  $ sudo gparted

On the UI

  1) Select ext3 partition and click on resize

 

                     

 2)  Resize the New-size (MB) attribute to 420 M and click on resize

                    

Place the sd-card on rpi board slot .


On Virtual Machine(VM)

                 Create repo.sh with following content

 #!/bin/sh
RUNAT="Wednesday:12:00"

while [ 1 ]
do
    DATE=`/bin/date +%A:%H:%M`
    if [ $DATE. = $RUNAT. ]
    then
        rm -rf daily-build
        mkdir daily-build
        cd daily-build
        repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-raspberrypi.xml -b morty
        repo sync -j4 --no-clone-bundle
       MACHINE=raspberrypi-rdk-boot-time-broadband source meta-cmf-raspberrypi/setup-environment
       cd build-raspberrypi-rdk-boot-time-broadband
       bitbake rdk-generic-broadband-boot-image -f
   fi
        if [ -f /mnt/home/rdkb/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband/*.rootfs.tar.bz2 ]
        then
        echo " Build is been initiated and completed "
            cp /mnt/home/rdkb/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband/*.rootfs.tar.bz2 /mnt/home/rdkb/rajkumar-A/test1/
        sleep 10
                stat /mnt/home/rdkb/rajkumar-A/test1/*.rootfs.tar.bz2 | grep "Size" | cut -d " " -f4 > /mnt/home/rdkb/rajkumar-A/test1/filesize.txt
        sleep 30
        rm /mnt/home/rdkb/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband/*.rootfs.tar.bz2    
        fi
done

                   

Change mode and run the script

              $ chmod 777 repo.sh

              $ . repo.sh &

As mentioned on the script it initiates the build at "Wednesday:12:00" , It could be changed.


On Board

 Once Board is up and running scp key-file into image /home/root/

Rename the VM key-file  to dvm_rdkb , as the script on image uses it.

     $ mv "key-file" dvm_rdkb

Copy the key-file to kernel partition for further rootfs flash

     $ mount /dev/mmblk0p1 /mnt

     $ cp key-file /mnt

     $ umount /mnt

 Reboot the image

      $ reboot


Once the build is completed on VM it will be copied and boot -time info uploaded on the following page RDK-B Boot time data plot.



  • No labels