mirror of https://github.com/OpenIPC/wiki.git
				
				
				
			Merge branch 'OpenIPC:master' into master
						commit
						b4dc5850ab
					
				|  | @ -102,3 +102,11 @@ _i - inverted value_ | ||||||
| | Processor   | IRCUT1 | IRCUT2 | IRLED | DEVICE ID                | | | Processor   | IRCUT1 | IRCUT2 | IRLED | DEVICE ID                | | ||||||
| |-------------|--------|--------|-------|--------------------------| | |-------------|--------|--------|-------|--------------------------| | ||||||
| | Hi3516Ev300 | 40     | 41     | 65    | unknown                  | | | Hi3516Ev300 | 40     | 41     | 65    | unknown                  | | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ### Jovision boards | ||||||
|  | 
 | ||||||
|  | | Processor   | IRCUT1 | IRCUT2 | LIGHT | | ||||||
|  | |-------------|--------|--------|-------| | ||||||
|  | | Hi3516Ev200 | 53     | 52     | 4     | | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -68,3 +68,36 @@ reset | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| [1]: guide-supported-devices.md | [1]: guide-supported-devices.md | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ### Uboot without tftp command | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | setenv uk 'mw.b 0x42000000 ff 1000000; setenv bootfile uImage.${soc} && tftpboot && sf probe 0; sf erase 0x50000 0x200000; sf write 0x40080000 0x50000 ${filesize}' | ||||||
|  | setenv ur 'mw.b 0x42000000 ff 1000000; setenv bootfile rootfs.squashfs.${soc} && tftpboot && sf probe 0; sf erase 0x250000 0x500000; sf write 0x40080000 0x250000 ${filesize}' | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ### backup device | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | setenv ipaddr 192.168.1.10 | ||||||
|  | setenv serverip 192.168.1.254    # Your TFTP server IP address. | ||||||
|  | 
 | ||||||
|  | sf read 0x42000000 0x0 0x800000 | ||||||
|  | tftpput 0x42000000 0x800000 backup.img | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ### restore device | ||||||
|  | 
 | ||||||
|  | if something goes wrong uboot can be bricked! | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | setenv bootfile backup.img | ||||||
|  | tftpboot | ||||||
|  | sf probe 0 | ||||||
|  | sf erase 0x0000 0x800000 | ||||||
|  | sf write 0x40080000 0x0 ${filesize} | ||||||
|  | reset | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | @ -39,3 +39,32 @@ After you have finished flashing new firmware, please run `firstboot` command | ||||||
| to format jffs2 partition used to store settings. | to format jffs2 partition used to store settings. | ||||||
| 
 | 
 | ||||||
| ### Known issues | ### Known issues | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ### Uboot with out tftp command | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | setenv uk1 'mw.b 0x81000000 ff 1000000; setenv bootfile uImage.${soc}; tftpboot' | ||||||
|  | setenv uk2 'sf probe 0; sf erase 0x50000 0x200000; sf write 0x81000000 0x50000 ${filesize}' | ||||||
|  | setenv uk 'run uk1 ; run uk2' | ||||||
|  | setenv ur1 'mw.b 0x81000000 ff 1000000; setenv bootfile rootfs.squashfs.${soc}; tftpboot' | ||||||
|  | setenv ur2 'sf probe 0; sf erase 0x250000 0x500000; sf write 0x81000000 0x250000 ${filesize}' | ||||||
|  | setenv ur 'run ur1 ; run ur2' | ||||||
|  | saveenv | ||||||
|  | 
 | ||||||
|  | run uk; run ur; reset | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | ### Backup device (no tftpput) | ||||||
|  | 
 | ||||||
|  | open the serial console with a logfile | ||||||
|  | Note: dumping via Serial takes long | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | sf probe 0 | ||||||
|  | sf read 0x81000000 0x0 0x800000 | ||||||
|  | md.b 0x81000000 0x800000 | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | use `cut -b 11-57 | xxd -r -p` to reconstruct the binary from `md.b` output | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -7,13 +7,9 @@ Additional requirements for kernel configuration | ||||||
| ``` | ``` | ||||||
| CONFIG_BLK_DEV=y | CONFIG_BLK_DEV=y | ||||||
| CONFIG_BLK_DEV_LOOP=y | CONFIG_BLK_DEV_LOOP=y | ||||||
| ``` |  | ||||||
| 
 | 
 | ||||||
| ``` |  | ||||||
| CONFIG_IP_MULTICAST=y | CONFIG_IP_MULTICAST=y | ||||||
| ``` |  | ||||||
| 
 | 
 | ||||||
| ``` |  | ||||||
| CONFIG_IP_PNP=y | CONFIG_IP_PNP=y | ||||||
| CONFIG_IP_PNP_DHCP=y | CONFIG_IP_PNP_DHCP=y | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue