VRLinuxBoardFido

From VentureResearchWiki
Jump to navigation Jump to search

BOARD SETUP[edit | edit source]

VR Linux Board 4.3,4.4,4.5 loading (FIDO image)

Yocto-fido machine = vr-am33v2-linuxboard

LINUX 4.5r Board shown with required cables. (Micro SD Card not visible)

Initial Nand Image (u-boot,kernel,fs)[edit | edit source]

  • power-on or reboot device
  • Keep pressing the space-bar until prompt "VAR-SOM-AM33 #"
  • Copy and paste the following commands (pressing enter after each line, waiting until "U-Boot#" appears showing the board is ready for next command)
save
setenv serverip 192.168.19.35
bootp
tftp ${loadaddr} zImage-vr-am33v2-linuxboard-20220902.bin
  • Load the Board image for the correct Board and module combination. Current production = F Modules on 4.5 Boards. (See #Alternate_Board_Images for other options)
tftp ${fdtaddr} zImage-vr-am33v2-linuxboard45-F-20220902.dtb
setenv serverip 192.168.19.35
setenv rootpath /srv/nfs/vr-am33-m2mreader
setenv nfsopts nolock,mountproto=tcp,proto=tcp
run netargs
bootz ${loadaddr} - ${fdtaddr}
  • Board will reboot automatically

Filesystem[edit | edit source]

  • Login after bootup:
username root
password rfid4ever_vr
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33v2-linuxboard/vr-prefirstrun-fido.sh -O /tmp/vr-prefirstrun.sh
  • Load the Standard development image:
sh /tmp/vr-prefirstrun.sh vr-am33v2-linuxboard 20220902 venture-image-vrreader vr
  • Follow on-screen prompts to complete filesystem setup:
    1. Scan Variscite MFC Number (and write on Board sheet)
      Variscite MFC Number
    2. Variscite Letter Designation
      Variscite Module Designation
    3. Board Configuration (noted on Board Label)
      Board Label
  • Board will reboot automatically

Provisioning[edit | edit source]

  • Login after bootup:
username root
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33v2-linuxboard/vr-firstrun.sh -O /tmp/vr-firstrun.sh
sh /tmp/vr-firstrun.sh
  • Follow on-screen prompts to complete filesystem setup:
    1. Scan Wi-Fi MAC Address
      Wi-Fi MAC Address
    2. Last 5 digits of Parent VRSN
  • Board will reboot automatically

Board Test[edit | edit source]

  • Login after bootup:
username root
password rfid4ever_vr
  • Update CAN Reset and Test Scripts
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33v2-linuxboard/vr-cantest.sh -O /home/user/vr-cantest.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/src/forkliftreader_linux/utils/can_reset.sh -O /home/user/can_reset.sh
systemctl restart rfid
ifconfig
  • Write down LAN MAC Address on board sheet (listed under "eth0 HWaddr")
  • Write down Hostname
  • Copy eth0 IP Address for VR Hardware Manager Test
  • Complete VR Hardware Manager Test

Extra Instructions (>special use only<)[edit | edit source]

Alternate_Board_Images[edit | edit source]

# 4.4 board:

# A modules
tftp ${fdtaddr} zImage-vr-am33v2-linuxboard-A-20220902.dtb
# B modules
tftp ${fdtaddr} zImage-vr-am33v2-linuxboard-B-20220902.dtb
# E modules
tftp ${fdtaddr} zImage-vr-am33v2-linuxboard-E-20220902.dtb
# F modules
tftp ${fdtaddr} zImage-vr-am33v2-linuxboard-F-20220902.dtb

# 4.5 board: 
# E modules
tftp ${fdtaddr} zImage-vr-am33v2-linuxboard45-F-20220902.dtb

OpenVPN connect[edit | edit source]

manual connection to OpenVPN server

systemctl start openvpn@venture

Disable WiFi and bluetooth[edit | edit source]

opkg remove ti-compat-wireless-wl18xx
opkg remove --force-depends kernel-module-btwilink

old u-boot to new u-boot[edit | edit source]

Inside U-boot;

bootp
tftp ${loadaddr} u-boot-vr-am33v2-linuxboard-20170728.bin
nand erase 0x000c0000 0x00100000
nand erase 0x00260000 0x00020000
nand write ${loadaddr} 0x000c0000 0x00100000

tftp ${loadaddr} MLO-vr-am33v2-linuxboard-20170728.bin
nand erase 0x00000000 0x00080000
nand write ${loadaddr} 0x00000000 0x00020000
nand write ${loadaddr} 0x00020000 0x00020000
nand write ${loadaddr} 0x00040000 0x00020000
nand write ${loadaddr} 0x00060000 0x00020000

reset

update script (added to procedure 05/11/2023)[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33v2-linuxboard/vr-cantest.sh -O /home/user/vr-cantest.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/src/forkliftreader_linux/utils/can_reset.sh -O /home/user/can_reset.sh

update uart link to UART5[edit | edit source]

ln -sf /dev/ttyO5 /var/run/vrgpio/uart
ls /var/run/vrgpio/uart -all


OLD - base image[edit | edit source]

## base image
sh /tmp/vr-prefirstrun.sh vr-am33v2-linuxboard 20220902 venture-image-base vr