RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
$ repo sync -j4 --no-clone-bundle ( common for both Emulator and Raspberry Pi )
Note |
---|
|
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 sizediagramName 1200 name ERR1_Emu.drawio size 1200 revision 1 pagePin 8
Patch file for changes in memfd.c attached below:
...
draw.io Diagram | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Pictorial representation of changes in ucresolv_1.0.bb file:
draw.io Diagram diagramName Gliffy Diagram size 1200 name ERR2_Emu.drawio size 1200 revision 1 pagePin 10
Patch file for changes in ucresolv_1.0.bb attached below:
...
draw.io Diagram border true diagramName __mbstate_t.h simpleViewer false widthlinks auto tbstyle top lbox true diagramWidth 426 revision 1
...
Pictorial representation of changes in create_inode.c file:
draw.io Diagram diagramName Gliffy Diagram size 1200 name ERR3_Emu.drawio size 1200 revision 1 pagePin 3
Patch file for changes in create_inode.c attached below:
...
draw.io Diagram border true diagramName Create_inode.c simpleViewer false widthlinks auto tbstyle top lbox true diagramWidth 121 revision 1
...
Pictorial representation of changes in memfd.c file:
draw.io Diagram diagramName Gliffy Diagram size 1200 name ERR1_Emu.drawio size 1200 revision 1 pagePin 8
Patch file for changes in memfd.c attached below:
...
draw.io Diagram border true diagramName __mbstate_t.h Rpi simpleViewer false widthlinks auto tbstyle top lbox true diagramWidth 121 revision 1
...
Patch file for changes in ucresolv_1.0.bb attached below:
draw.io Diagram diagramName Gliffy Diagram size 1200 name ERR2_Emu.drawio size 1200 revision 1 pagePin 10
Path for changes in ucresolv_1.0.bb file:
draw.io Diagram border true diagramName Ucresolve simpleViewer false width links auto tbstyle top lbox true diagramWidth 401 revision 1
...
Pictorial representation of changes in create_inode.c file:
draw.io Diagram diagramName Gliffy Diagram size 1200 name ERR3_Emu.drawio size 1200 revision 1 pagePin 3
Patch file for changes in create_inode.c attached below:
...
draw.io Diagram border true diagramName Create_inode.c simpleViewer false width links auto tbstyle top lbox true diagramWidth 121 revision 1
Error
/home/amrita/home2Desktop/jared_huang/rdk-20194qEmu_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/home2Desktop/jared_huang/rdk-20194qEmu_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/home2Desktop/jaredEmu_huangFeb3/rdk-20194q/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)
| ^~
| /home2/jared_huang/rdk-20194q/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: /home2/jared_huang/rdk-20194q/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 /home2/jared_huang/rdk-20194q/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/home2Desktop/jared_huang/rdk-20194qEmu_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, MEMFD 2. #include <sys/memfd.h> 3. h>, #elif defined CONFIG_LINUX and added added 1.#include <sys/mman.h> 2.h>, #if defined CONFIG_LINUX && !defined CONFIG_MEMFD in 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 gliffydiagramName ERR4.drawio size 1200 name ERR4 revision pagePin 1
Patch file for changes in memfd.c attached below:
Path for changes in memfd.c file:
draw.io Diagram border true diagramName Mem simpleViewer false widthlinks auto tbstyle top lbox true diagramWidth 241 revision 1
...