海思3559AV100 双系统 Linux(big-little)+A53UP(Huawei LiteOS) emmc flash各个分区烧写命令及uboot启动参数设置

海思3559AV100 双系统 Linux(big-little)+A53UP(Huawei LiteOS) emmc flash各个分区烧写命令及uboot启动参数设置

  1. uboot
    烧写SDK自带uboot镜像:
    mw.b 0x42000000 0xff 0x80000; tftp 0x42000000 amp/u-boot-hi3559av100.bin; mmc write 0 0x42000000 0 0x400
    烧写自己生成的uboot镜像:
    mw.b 0x42000000 0xff 0x100000; tftp 0x42000000 amp/a01_hi3559av100_uboot.bin; mmc write 0 0x42000000 0 0x800

  2. kernel
    烧写SDK自带kernel镜像:
    mw.b 0x42000000 0xff 0xC00000; tftp 0x42000000 amp/uImage_hi3559av100_big-little; mmc write 0 0x42000000 0x800 0x6000
    烧写自己生成的kernel镜像:
    mw.b 0x42000000 0xff 0xC00000; tftp 0x42000000 amp/uImage_hi3559av100.bin; mmc write 0 0x42000000 0x800 0x6000

  3. rootfs
    烧写SDK自带rootfs镜像
    mw.b 0x42000000 0xff 0x6000000; tftp 0x42000000 amp/rootfs_96M_ext4.bin; mmc write.ext4sp 0 0x42000000 0x6800 0x30000
    在烧写 EXT4 文件系统时,从内存写入 EMMC 必须使用 mmc write.ext4sp,而不能使用 mmc write

  4. A53UP Huawei LiteOS
    烧写mpp/sample/vio生成的镜像,接HDMI直接可以出图像:
    mw.b 0x42000000 0xff 0x1000000; tftp 0x42000000 amp/sample_vio.bin; mmc write 0 0x42000000 0x36800 0x8000
    烧写PQTools生成的镜像,可以连接PC端的PQTools工具进行图像调节和图像预览:
    mw.b 0x42000000 0xff 0x1000000; tftp 0x42000000 amp/pq_sample.bin; mmc write 0 0x42000000 0x36800 0x8000

  5. Cortex-M7 Huawei LiteOS
    mw.b 0x42000000 0xff 0x100000; tftp 0x42000000 amp/sample.bin; mmc write 0 0x42000000 0x44800 0x800

  6. 设置bootargs
    setenv bootargs ‘mem=512M console=ttyAMA0,115200 clk_ignore_unused root=/dev/mmcblk0p3 rootfstype=ext4 rw init=/linuxrc rootwait blkdevparts=mmcblk0:1M(boot),12M(kernel),96M(rootfs),-(user)’;saveenv

  7. 设置bootcmd
    setenv bootcmd ‘mmc read 0 0x45000000 0x36800 0x8000; go_a53up 0x45000000; config_m7; mmc read 0 0x42000000 0x44800 0x800; cp.b 0x42000000 0x19000000 0x100000; go_m7; mmc read 0 0x42000000 0x800 0x6000;bootm 0x42000000’;saveenv

你可能感兴趣的:(海思3559AV100)