forked from OpenIPC/firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
install_hisi
Igor Zalatov edited this page Jun 20, 2021
·
23 revisions
Please read this info.
#
setenv bootargs 'mem=${osmem:-32M} console=ttyAMA0,115200 panic=20 root=/dev/mtdblock3 rootfstype=squashfs init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data)'
setenv bootcmd 'setenv setargs setenv bootargs ${bootargs}; run setargs; sf probe 0; sf read 0x42000000 0x50000 0x200000; bootm 0x42000000'
setenv uk 'mw.b 0x42000000 ff 1000000; tftp 0x42000000 uImage.${soc} && sf probe 0; sf erase 0x50000 0x200000; sf write 0x42000000 0x50000 ${filesize}'
setenv ur 'mw.b 0x42000000 ff 1000000; tftp 0x42000000 rootfs.squashfs.${soc} && sf probe 0; sf erase 0x250000 0x500000; sf write 0x42000000 0x250000 ${filesize}'
saveenv
setenv soc hi351xxxxxxx <= Set you SoC as hi3516ev200 or hi3516ev300 or hi3518ev300
setenv osmem 32M
setenv totalmem 64M <= 64M for hi3516ev200 or hi3518ev300 and 128M for hi3516ev300
setenv ipaddr 192.168.1.10
setenv serverip 192.168.1.254 <= Set you TFTP server IP
saveenv
run uk; run ur; reset <= Flash kernel, rootfs and reboot device
run uk; run ur; reset
If you have Hi3516Ev300 based board run this command:
set_allocator cma
firstboot
If you have Hi3516Ev200 or Hi3518Ev300 based board run this command:
set_allocator hisi
firstboot
Our resources: OpenIPC | OpenCollective | Twitter | Telegram
- Introduction
- Installation
- Usage
- Firmware
- Development
- Contacts
- Roadmap