Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

$ repo sync -j4 --no-clone-bundle ( common for both Emulator and Raspberry Pi )


Note
  • Cloning the code before login once to code.rdkcentral.com, user would get the Authentication error, even though the account is in good standing and has all the required access.
  • Please login to code.rdkcentral.com before attempting to clone.


Building

For Emulator:

$ source meta-cmf-bsp-emulator/setup-environment

...

-             ${HOME}/RaspberryPi/build-raspberrypi-rdk-broadband/tmp/deploy/images/raspberrypi-rdk-broadband/rdkb-generic-broadband-image-raspberrypi-rdk-broadband.rpi-sdimg


Example:

.../build-raspberrypi-rdk-broadband/tmp/deploy/images/raspberrypi-rdk-broadband/rdkb-generic-broadband-image_default_20200206062343.rootfs.rpi-sdimg

...

Pictorial representation of changes in memfd.c file:

Gliffy Diagramdrawio
sizediagramName1200nameERR1_Emu.drawio
size1200
revision1pagePin7
         

Patch file for changes in memfd.c attached below:

...

draw.io Diagram
bordertrue
diagramNamememfd.c pictorial representation
simpleViewerfalse
widthlinksauto
tbstyletop
lboxtrue
diagramWidth121
revision1

...

Pictorial representation of changes in ucresolv_1.0.bb file:

draw.io Diagram
diagramName
Gliffy Diagram
size1200
nameERR2_Emu.drawio
size1200
revision1pagePin10


Patch file for changes in ucresolv_1.0.bb attached below:

...

draw.io Diagram
width
bordertrue
diagramName__mbstate_t.h
simpleViewerfalse
linksauto
tbstyletop
lboxtrue
diagramWidth426
revision1

...

Pictorial representation of changes in create_inode.c file:

draw.io Diagram
diagramName
Gliffy Diagram
size1200
nameERR3_Emu.drawio
size1200
revision1pagePin3

Patch file for changes in create_inode.c attached below:

...

draw.io Diagram
width
bordertrue
diagramNameCreate_inode.c
simpleViewerfalse
linksauto
tbstyletop
lboxtrue
diagramWidth121
revision1

...

Pictorial representation of changes in memfd.c file:

draw.io Diagram
diagramName
Gliffy Diagram
size1200
nameERR1_Emu.drawio
size1200
revision1pagePin7

Patch file for changes in memfd.c attached below:

...

draw.io Diagram
width
bordertrue
diagramName__mbstate_t.h Rpi
simpleViewerfalse
linksauto
tbstyletop
lboxtrue
diagramWidth121
revision1

...

Patch file for changes in ucresolv_1.0.bb attached below:

draw.io Diagram
diagramName
Gliffy Diagram
size1200
nameERR2_Emu.drawio
size1200
revision1pagePin10

ucresolv_1.0.patch

Path for changes in ucresolv_1.0.bb file:

draw.io Diagram
bordertrue
diagramNameUcresolve
simpleViewerfalse
widthlinksauto
tbstyletop
lboxtrue
diagramWidth401
revision1

...

Pictorial representation of changes in create_inode.c file:

draw.io Diagram
diagramName
Gliffy Diagram
size1200
nameERR3_Emu.drawio
size1200
revision1pagePin3

Patch file for changes in create_inode.c attached below:

...

draw.io Diagram
bordertrue
diagramNameCreate_inode.c
simpleViewerfalse
widthlinksauto
tbstyletop
lboxtrue
diagramWidth121
revision1

Special Considerations

Error

/home/amrita/

...

Desktop/

...

Emu_Feb3/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/rules.mak:59: recipe for target 'util/memfd.o' failed
| make: *** [util/memfd.o] Error 1
| make: *** Waiting for unfinished jobs....
| /home/amrita/

...

Desktop/

...

Emu_Feb3/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c: In function ‘follow_path’:
| /home/amrita/

...

Desktop/

...

Emu_

...

Feb3/

...

build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c:126:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
| if (!cursor->populated_entries)
| ^~
| /

...

home/amrita/Desktop/Emu_Feb3/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c:128:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
| cursor = *source;
| ^~~~~~
| WARNING: /

...

home/amrita/Desktop/Emu_Feb3/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/temp/run.do_compile.8435:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/amrita/

...

Desktop/

...

Emu_Feb3/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/temp/log.do_compile.8435)
ERROR: Task (virtual:native:/home/amrita/

...

Desktop/

...

Emu_Feb3/openembedded-core/meta/recipes-devtools/qemu/qemu_2.7.0.bb:do_compile) failed with exit code '1'

Solution:

Removed   1. #ifdef CONFIG_

...

MEMFD    2. #include <sys/memfd.h>    3.

...

#elif defined CONFIG_LINUX  and

...

added  1.#include <sys/mman.

...

h>    2.#if defined CONFIG_LINUX && !defined CONFIG_MEMFD

...

in    /x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/memfd.c

Pictorial representation of changes in memfd.c file:

...

draw.io Diagram
diagramNameERR4.drawio
size1200

...

revision1

Patch file for changes in memfd.c attached below:

memfd.patch

Path for changes in memfd.c file:

draw.io Diagram
bordertrue
diagramNameMem
simpleViewerfalse
linksauto
tbstyletop
lboxtrue
diagramWidth241
revision1


Support

Contact

Organization

Phone

Email

Role

Rajkumar Narayanan

L&T Technology Services

<Phone>Nill

rajkumar.narayanan@ltts.com

Program Manager

...