G4安装指南



本教程适用于工厂生产的新板子,也适用于用 dd 命令破坏了分区结构的板子。

重要的事情说三遍:

dd 破坏板子分区之后的维修不属于 EE 工作范围,EE 不提供支持、答疑服务。


安装 NL

⬆️ 回到目录

步骤概览

  1. 下载 FL,烧写到 Type-C 口的 U 盘,让板子从 U 盘启动。
  2. 在 U 盘的 FL 中,为板子安装 NL。
  3. 拔掉 U 盘,重启板子到 1 分区,进入安装好的 NL。
  4. 基于 NL 可以继续安装 FL 或者 UP。

详细步骤(以 G4 为例)

1. 下载 FL 并烧写到 U 盘

FL 下载地址:

将 FL 烧写到 Type-C 口的 U 盘(Windows 可用 Rufus,Linux 可用 balenaEtcher),让板子从 U 盘启动。

2. 下载 NL

NL 下载地址:

将 NL 的 cxp 文件 scp 到板子:

scp <NL文件> <板子IP>:/tmp/NL.cxp

注意: 文件名必须改为 NL.cxp

3. 参考安装文档

在以下网页搜索文档号 131 63-KDU 137 0114/1 Uen

下载文档 Program Storage Information for G4 products,参考 14.2.4 章节 Install NL

4. 执行安装命令

确认板子有 /tmp/NL.cxp 之后,依次执行:

# 14.2.3 Prepare disk - 格式化磁盘、分区并创建文件系统
fltool prepare_disk

# 14.2.4 Install NL - 安装 NL 到 type 2 area
fltool install_nl

# 14.2.5 Create boot variables - 创建启动变量
fltool create_boot_var

# 15.11.1 Vendor Credentials for Security Unlocked boards
vce write_unsecure

注意: 不要忘记 vce write_unsecure 命令,否则板子可能不会正常启动。以上指令以文档 Program Storage Information for G4 products 14.2.4 章节为准,可能会变化。

5. 完成

拔掉 U 盘,重启板子到 1 分区,即进入刚刚安装好的 NL。


安装 FL

⬆️ 回到目录

G4 FL 下载地址:https://mia.npee.gic.ericsson.se/products/LXA1192853_1

Install FL using cxp image


安装 UP

⬆️ 回到目录

Prebuilt UP

G5G4:

/proj/ee-tmp/rcs-ee-yocto/g5-ee/rcs-yocto-g5-master-latest/dus_G5_G4-up/EE_TESTUP_DUS_G5_G4_MINI.zip

G4:

/proj/ee-tmp/rcs-ee-yocto/g4-ee/rcs-yocto-g4-master-latest/dus_G4-up/EE_BLACK_DUS_G4_MINI.zip

Install UP using E2C scripts

If the board is a dusXXXX board (e.g. dus9009), you can install UP from the E2C server using scripts.

  1. If the board is running FL or has no NL3, install NL and NL type3 first (see “Install NL” section). Then restart the board to NL3:

     efibootmgr -n 3
     pghli crestart
  2. Run rcstprep script:

     /proj/rcsee/scripts/bin/rcstprep.sh <dusXXXX> <up_path>
  3. Clone the rcs-test repo if not already done, and git pull to latest. Then start semi-automatic installation:

    If not cloned:

     cd /repo/$USER
     git clone <rbs_platform/rcs/rcs-yocto/rcs-test>
     cd rcs-test && git checkout g5/master

    If already cloned:

     cd /repo/$USER/rcs-test
     git checkout g5/master && git pull

    Then run:

     /repo/$USER/rcs-test/ee-install/rcs_start_semi.sh <dusXXXX>
  4. Wait for the board to finish UP installation. If overlayfs is needed, login to the board and run:

     install_overlayfs
     pghli crestart

Install UP/CXP’ using cup

This describes how to install CXPs/UP manually from NL in G4.
!!! OBS !!!

From RCSEE G4 R1A232 onwards corresponding NL R1A232 or newer is needed to be able to
install the node since there has been changes in LV volumes (rcs-lv has been replaced
by cscore-lv + mw-lv) and mount points of those, which requires that the NL version used to
perform the installation.

As long as a valid NL is included in the UP the AI will work from an old NL type 2, but if you
do manual installation using “cup” comamand you must make sure to first update NL type 3 to
the new version and start on that one.

1. Enter NL mode. To enter NL mode from phv or run mode in Linux, run command:

efibootmgr -n 1
pghli crestart

2. Run the command

cup --setup_fs

3. Fetch the CXPs or UP that you want to install from:

https://mia.npee.gic.ericsson.se/

4. If UP is used, transfer the UP to the node and unpack at e.g /tmp/

5. If CXPs, transfer the CXPs to node at e.g /tmp. NOTE: if needed start SSH on the board use:

/etc/init.d/sshd start

6. Create a list of the CXP’s to be installed including the path e.g:

ls -1 /tmp/*.cxp > /tmp/list

7. Run the command

cup -l -p /tmp/list
cup --confirm_os
mkdir /tmp/home
cup --mkview home -e 1 -t /tmp/home
ln -s /software/* /tmp/home/sirpa/software/
mkdir /tmp/home/sirpa/ee
touch /tmp/home/sirpa/ee/pgh_no_restart
umount /tmp/home/
rmdir /tmp/home/

9. To start in phv mode:

pghli crestart -p

10. To start in run mode

pghli crestart

Now the system shall come up and mount all installed CXPs:

Note:

Optional

To build an own CXC/CXP:

cd rcs-yocto
make -C make/g4-hw package
<path to rcs-test>/jenkins/makecxp -r <CXC rev> -R <CXP rev> -o make/build/build_intel-axxia-grr_g4-hw/export/delivery/RCSEE-G4_CXP2030215_1.cxp -i make/build/build_intel-axxia-grr_g4-hw/export/delivery/

Latest RCSEE-G4 CXP:

locally

/proj/ee-tmp/rcs-ee-yocto/g4-ee/rcs-yocto-g4-master-latest/black_cxps/RCSEE-G4_CXP2030215_1-R99*.cxp

or MIA/Nexus:

https://mia.npee.gic.ericsson.se/products/CXP2030215_1

Build a UP:

<path to rcs-test>/ee-install/mkrcseecxs.sh -v -o EE_BLACK_DUS_G4_MINI.zip -V g4_master-1 -i make/build/build_intel-axxia-grr_g4-hw/export/delivery/RCSEE-G4_CXC2014049_1.tar.gz -u /proj/rcsee/yocto/g4/bufferBaseline/EE_BLACK_DUS_G4_MINI.zip -n main