DeployingANewMachineFido
Jump to navigation
Jump to search
Creating a new Machine from an existing Machine definition[edit | edit source]
In this example, we are copying the machine definition vr-om37-asdfridge and making one for vr-om37-asdfridge-gen3
All these steps are on embedded-dev2.
Machine file[edit | edit source]
start in this directory: /home/yocto-fido/poky/meta-venture/conf/machineon embedded-dev2cp vr-am33v2-linuxboard.conf vr-am33v2-shelfboard.conf- edit
KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/vr-am33v2-linuxboard.dts"
Kernel recipe[edit | edit source]
- next directory:
/home/yocto-fido/poky/meta-venture/recipes-kernel/linux - edit
linux-ti-venture.bb - add line for new device tree
KERNEL_DEVICETREE_vr-am33v2-shelfboard = "vr-am33v2-shelfboard-E.dtb vr-am33v2-shelfboard-F.dtb" - make sure git is checked in with new devicetree, update SRCREV to match
- copy kernel defconfig file from old device
cp -r /home/yocto-fido/poky/meta-venture/recipes-kernel/linux/linux-ti-venture/vr-am33v2-linuxboard /home/yocto-fido/poky/meta-venture/recipes-kernel/linux/linux-ti-venture/vr-am33v2-shelfboard
Adding kernel patches[edit | edit source]
use git...
u-boot[edit | edit source]
probably not needed for most modules... ?
vr-setup-gpio[edit | edit source]
- in svn dir, add entry for new machine
kevinb@embedded-dev:~/svn/vr/linux/src/vrreader-board-utils$ svn cp vr-setup-gpio-vr-om37-asdfridge vr-setup-gpio-vr-om37-asdfridge-gen3 A vr-setup-gpio-vr-om37-asdfridge-gen3 kevinb@embedded-dev:~/svn/vr/linux/src/vrreader-board-utils$ svn ci -m "adding vr-setup-gpio file for vr-om37-asdfridge-gen3 MACHINE" Adding vrreader-board-utils/vr-setup-gpio-vr-om37-asdfridge-gen3 Committed revision 630.
- then edit the vr-setup-gpio.bb file and bump SRCREV:
venture@embedded-dev:/home/yocto-danny/poky/build$ vi ../meta-venture/recipes-venture/vrreader-board-utils/vr-setup-gpio.bb
... SRCREV="630" ...
embedded-prod ipk dir[edit | edit source]
ssh venture@embedded-prod cd /home/yocto-fido/poky/build/tmp/deploy/ipk mkdir vr_am33v2_shelfboard ln -s vr_am33v2_shelfboard vr-am33v2-shelfboard
splash image[edit | edit source]
TODO TODO
is machine-specific.
/home/yocto-danny/poky/meta-venture/recipes-core/psplash $ vi psplash_git.bbappend
x server[edit | edit source]
TODO TODO
is machine specific.
/home/yocto-danny/poky/meta-venture/recipes-graphics/xorg-xserver/xserver-xf86-config $ cp -r vr-om37-asdfridge/ vr-om37-asdfridge-gen3
do the build![edit | edit source]
- in yocto build env:
[YOCTO-FIDO] /home/yocto-fido/poky/build $ MACHINE=vr-am33v2-shelfboard bitbake venture-image-vrreader