RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Credentials:cm5hcmF5YW5hbjpDb21jYXN0== (Encoded base 64 rdk.wiki.central credential)
Imagepath:/mnt/home/rdkb/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband (The path where our rootfs resides after bitbake)
Sourcepath:/mnt/home/rdkb/boot-time/test1 (Path where your rootfs tar will be present on your VM)
...
→ Make sure the Sourcepath directory is present, if not use create it using mkdir -p p /mnt/home/rdkb/boot-time/test1
Here is a sample boot-info.txt
Credentials:cm5hcmF5YW5hbjpDb21jYtre0MTIzIQ==
Sourcepath:/mnt/home/pathrdkb/rajkumar-A/test1
Imagepath:/mnt/home/rdkb/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband
Create ~/repo.sh with following content
##!/bin/sh
RUNAT="Wednesday:12:00"
source=$(cat ~/boot-info.txt | grep Sourcepath | cut -d ":" -f2)
echo $source
imagepath=$(cat ~/boot-info.txt | grep Imagepath | cut -d ":" -f2)
echo $imagepath
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 ~/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadbandif [ -f ${imagepath}/*.rootfs.tar.bz2 ]
then
echo then
echo " Build is been initiated and completed "
cp ~/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband/ cp ${imagepath}/*.rootfs.tar.bz2 ${source}
sleep sleep 10
stat ${source}/*.rootfs.tar.bz2 | grep "Size" | cut -d " " -f4 > ${source}/filesize.txt
sleep 30
rm ~/daily-build/build-raspberrypi-rdk-boot-time-broadband/tmp/deploy/images/raspberrypi-rdk-boot-time-broadband/ sleep 30
rm ${imagepath}/*.rootfs.tar.bz2
fi
done fi
Change mode and run the script
...
Execute the script with .(dot)
$ $ . repo.sh &
As mentioned on the script it initiates the build at "Wednesday:12:00" , It could be changed.
...