DeployingANewMachineFido

From VentureResearchWiki
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]

  1. start in this directory: /home/yocto-fido/poky/meta-venture/conf/machine on embedded-dev2
  2. cp vr-am33v2-linuxboard.conf vr-am33v2-shelfboard.conf
  3. edit KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/vr-am33v2-linuxboard.dts"

Kernel recipe[edit | edit source]

  1. next directory: /home/yocto-fido/poky/meta-venture/recipes-kernel/linux
  2. edit linux-ti-venture.bb
  3. add line for new device tree KERNEL_DEVICETREE_vr-am33v2-shelfboard = "vr-am33v2-shelfboard-E.dtb vr-am33v2-shelfboard-F.dtb"
  4. make sure git is checked in with new devicetree, update SRCREV to match
  5. 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]

  1. in yocto build env:
[YOCTO-FIDO] /home/yocto-fido/poky/build $ MACHINE=vr-am33v2-shelfboard bitbake venture-image-vrreader