华为atlas500小站开机学习

Euler:~ # cd /tmp/
Euler:/tmp # fw_printenv
arch=arm
baudrate=115200
board=hi3559av100
board_name=hi3559av100
bootargs=cma=90M mem=4032M console=ttyAMA2,115200 initcall_debug ramdisk_size=524288 root=/dev/mmcblk0p3 rw rdinit=/sbin/init initrd=0x4a000000,256M cmdlinepart.mtdparts=hi_sfc:512K(boot),15878K(env) selinux=0 minid_3559=1 memmap=16M$0xC3000000 brd_t=sei audit=1
bootargs_a=cma=90M mem=4032M console=ttyAMA2,115200 initcall_debug ramdisk_size=524288 root=/dev/mmcblk0p2 rw rdinit=/sbin/init initrd=0x4a000000,256M cmdlinepart.mtdparts=hi_sfc:512K(boot),15878K(env) selinux=0 minid_3559=1 memmap=16M$0xC3000000 brd_t=sei audit=1
bootargs_b=cma=90M mem=4032M console=ttyAMA2,115200 initcall_debug ramdisk_size=524288 root=/dev/mmcblk0p3 rw rdinit=/sbin/init initrd=0x4a000000,256M cmdlinepart.mtdparts=hi_sfc:512K(boot),15878K(env) selinux=0 minid_3559=1 memmap=16M$0xC3000000 brd_t=sei audit=1
bootargs_g=cma=90M mem=4032M console=ttyAMA2,115200 initcall_debug ramdisk_size=524288 root=/dev/ram0 rw rdinit=/sc_init initrd=0x4a000000,256M cmdlinepart.mtdparts=hi_sfc:512K(boot),15878K(env) selinux=0 minid_3559=1 memmap=16M$0xC3000000 brd_t=sei
bootcmd=ext4load mmc 0:3 0x44000000 uImage_hi3559av100_multi-core;cmscheck 0x44000000;ext4load mmc 0:3 0x49ffffc0 SEI_FS.img;cmscheck 0x49ffffc0;bootm 0x44000040
bootdelay=2
cpu=armv8
env_ver=1.08
ethact=gmac0
soc=hi3559av100
stderr=serial
stdin=serial
stdout=serial
uboot_ver=21.0.2.9
vendor=hisilicon
verify=n
Euler:/tmp #

卸载和重新安装AtlasEdge软件

卸载操作不会保留数据。

应用场景

放弃使用当前版本,打算使用较当前版本更早的版本。且不符合版本回退的情况。

卸载和重新安装约束

由于只卸载AtlasEdge软件,并没有卸载对应的设备OM和固件,所以在重新安装时存在以下约束。

  • 21.0.3版本卸载后,只支持重新安装20.3.0版本。
  • 21.0.4版本卸载后,只支持重新安装20.3.0版本或21.0.2.9版本。
  • 22.0.0版本卸载后,只支持重新安装21.0.4版本。
  • 如果想安装其他版本,建议通过20.3.0版本过渡。

卸载和重新安装操作

 

  • 通过命令行卸载当前版本软件。如:卸载MindX Edge2.0.3版本可以在安装目录“/opt/middleware/AtlasEdge/”执行./run.sh uninstall
  • 通过SmartKit进行批量卸载,请参见《MindX Edge 应用部署与模型更新指南》中的“升级AtlasEdge软件 > FAQ >如何批量卸载预置的软件版本,重新安装新版本”章节。
  • 恢复出厂设置 - Atlas 500 智能小站 用户指南 (型号 3000, 3010) 14 - 华为 (huawei.com)
  • 切记恢复出厂设置以后develop模式的密码也是默认密码
  • Atlas 500 智能小站 - Atlas硬件产品 用户清单 02 - 华为 (huawei.com)
  • Euler:~ # ifconfig
    docker0: flags=4099  mtu 1500
            inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
            ether 02:42:98:4f:3a:ef  txqueuelen 0  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    eth0: flags=4163  mtu 1500
            inet 192.168.2.111  netmask 255.255.255.0  broadcast 192.168.2.255
            inet6 fe80::ce05:77ff:fefc:f6a7  prefixlen 64  scopeid 0x20
            ether cc:05:77:fc:f6:a7  txqueuelen 1000  (Ethernet)
            RX packets 894  bytes 205931 (201.1 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 473  bytes 49878 (48.7 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 40
    
    eth1: flags=4099  mtu 1500
            inet 192.168.3.111  netmask 255.255.255.0  broadcast 192.168.3.255
            ether cc:05:77:fc:f6:a8  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 41
    
    lo: flags=73  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 167  bytes 13568 (13.2 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 167  bytes 13568 (13.2 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    Euler:~ # timed out waiting for input: auto-logout
    IES:/->develop
    input root passwd
    Password:
    Last login: Wed May 18 16:44:06 CST 2022 on pts/0
    Euler:~ # ies_tool restore_factory -e eth0
    The system will be restored to factory settings, including the user name, password and so on.
    Are you sure want to continue? Y/N
    y
    Starting restore factory settings...
    The system will be automatically reset. Please wait about 10 minutes
    Euler:~ #
    ──────────────────────────────────────────────────────────
    admin
    
    Huawei12#$
    
    登录Atlas IES Web界面或命令行
    
    -
    
    root
    
    Huawei@SYS3
    
    进入develop模式
    
    Linux系统管理员用户,不可直接使用root用户登录开发者命令行界面。
    
    在命令行界面可通过执行develop命令登录开发者命令行界面。

Euler:/var/lib/docker # ./Ascend-cann-nnrt_5.1.RC2.alpha002_linux-aarch64.run --install
Verifying archive integrity...  100%   SHA256 checksums are OK. All good.
Uncompressing ASCEND_RUN_PACKAGE  100%
[NNRT] [20220518-10:47:40] [INFO] The path /opt/ascend is correct.
[NNRT] [20220518-10:47:40] [INFO] change umask 0022
[NNRT] [20220518-10:47:40] [INFO] touch /var/log/ascend_seclog/ascend_nnrt_install.log
[NNRT] [20220518-10:47:40] [INFO] LogFile:/var/log/ascend_seclog/ascend_nnrt_install.log
[NNRT] [20220518-10:47:40] [INFO] install start
[NNRT] [20220518-10:47:40] [INFO] The install path is /opt/ascend .
[NNRT] [20220518-10:47:40] [INFO] install package CANN-runtime-5.1.RC2.alpha002-linux_aarch64.run start
[NNRT] [20220518-10:47:55] [INFO] CANN-runtime-5.1.RC2.alpha002-linux_aarch64.run --full --quiet --nox11 install success
[NNRT] [20220518-10:47:55] [INFO] install package Ascend310-aicpu_kernels-1.82.t3.0.b100.run start
[NNRT] [20220518-10:48:00] [INFO] Ascend310-aicpu_kernels-1.82.t3.0.b100.run --full --quiet --nox11 install success
[NNRT] [20220518-10:48:00] [INFO] install package Ascend710-aicpu_kernels-1.82.t3.0.b100.run start
[NNRT] [20220518-10:48:06] [INFO] Ascend710-aicpu_kernels-1.82.t3.0.b100.run --full --quiet --nox11 install success
[NNRT] [20220518-10:48:06] [INFO] install package Ascend310-aicpu_kernels_minirc-1.82.t3.0.b100.run start
[NNRT] [20220518-10:48:11] [INFO] Ascend310-aicpu_kernels_minirc-1.82.t3.0.b100.run --full --quiet --nox11 install success
[NNRT] [20220518-10:48:11] [INFO] install package Ascend-pyACL_5.1.RC2.alpha002_linux-aarch64.run start
[NNRT] [20220518-10:48:12] [INFO] Ascend-pyACL_5.1.RC2.alpha002_linux-aarch64.run --full --quiet --nox11 install success
[NNRT] [20220518-10:48:12] [INFO] install package Ascend-test-ops_5.1.RC2.alpha002_linux.run start
[NNRT] [20220518-10:48:13] [INFO] Ascend-test-ops_5.1.RC2.alpha002_linux.run --full --quiet --nox11 install success
[NNRT] [20220518-10:48:13] [INFO] Please make sure that:
LD_LIBRARY_PATH includes :
        /opt/ascend/nnrt/latest/lib64:
PYTHONPATH includes :
        /opt/ascend/nnrt/latest/python/site-packages:
ASCEND_AICPU_PATH includes :
        /opt/ascend/nnrt/latest:
ASCEND_OPP_PATH includes :
        /opt/ascend/nnrt/latest/opp:
[NNRT] [20220518-10:48:13] [INFO] If your service is started using the shell script, you can call the /opt/ascend/nnrt/set_env.sh script to configure environment variables. Note that this script can not be executed mannually.
[NNRT] [20220518-10:48:14] [INFO] Ascend-cann-nnrt_5.1.RC2.alpha002_linux-aarch64 install success,The install path is /opt/ascend 

 

昇腾人工智能MindX SDK-昇腾社区 (hiascend.com)

你可能感兴趣的:(学习,华为)