Skip to content
Permalink
Browse files

设置固定uboot环境变量 bootcmd, bootargs. SPI速度50Mhz, dtb偏移0x100000, zImage偏移0…

…x110000, 最大5M. JFFS2根文件系统偏移0x610000.
  • Loading branch information...
qq516333132 committed Apr 8, 2019
1 parent b63ce45 commit b9f440d625d727205970e93aace9639e7b23605f
Showing with 11 additions and 0 deletions.
  1. +11 −0 include/configs/sun8i.h
@@ -32,4 +32,15 @@
*/
#include <configs/sunxi-common.h>

#undef CONFIG_BOOTCOMMAND
#undef CONFIG_BOOTARGS

#ifndef CONFIG_BOOTCOMMAND
#define CONFIG_BOOTCOMMAND "sf probe 0 50000000;sf read 0x41800000 0x100000 0x4000;sf read 0x41000000 0x110000 0x500000; bootz 0x41000000 - 0x41800000"
#endif

#ifndef CONFIG_BOOTARGS
#define CONFIG_BOOTARGS "console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:992k(uboot)ro,32k(env)ro,64k(dtb)ro,5M(kernel)ro,-(rootfs) root=31:04 rw rootfstype=jffs2"
#endif

#endif /* __CONFIG_H */

0 comments on commit b9f440d

Please sign in to comment.
You can’t perform that action at this time.