How to Compile a VxWorks Bootloader

This is a VIP similar to a VxWorks kernel except that it is set up to boot another VxWorks Kernel. Follow the instructions above but instead run the setup.sh script as follows:

$ sh ./setup.sh --bootapp

If you are using this on a host where you for example have Linux installed using Grub2 to boot you can install the above boot loader as follows.

Start by copying the above bootloader to a file system available to Grub2:

$ sudo cp bootapp_.../default/vxWorks /boot/BootApp

Add the following file to Grub2's configuration:

$ cat >07_BootApp <<-EOF
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.

menuentry "VxWorks BootApp" {
multiboot /boot/BootApp sysbootline:fei(0,0)my_host:/home/my_user/workspace/vip_x86_32_core/default/vxWorks h=192.168.1.244 e=192.168.1.174 g=192.168.1.1 u=my_user pw=my_password f=0x8 tn=my_target
}
EOF

Edit the file where:

  • fei(0,0) is the ethernet device
  • my_host is the development host name
  • The h parameter is the IP address of the host where you have a ftp server running (192.168.1.244)
  • The e parameter is the IP address of the target board (192.168.1.174)
  • The g parameter is the gateway (192.168.1.1)
  • The u parameter is the ftp user (my_user)
  • The pw parameter is the ftp password (my_password)
  • The f parameter is the boot flags (0x8)
  • The tn parameter is the target name (my_target)

Copy the configuration file, update grub, and halt the system:

$ sudo mv /etc/grub.d/07_BootApp
$ sudo update-grub
$ shutdown -h now

Power the target and it should now boot into VxWorks.