Lichee Zero 荔枝派 零 入坑记录

参考官方网站 http://zero.lichee.pro

buildroot-2019.08-rc1

busybox-1.31.0 重编译

#rm .stamp_built #rm .stamp_target_installed 删除 .stamp_built .stamp_target_installed ,然后buildroot目录下重新执行make 重新将 buildroot-2019.08-rc1/output/images/rootfs.tar 解压到目标中 tar -xvf rootfs.tar -C /media/sys

修改getty.c进行自动登录

修改函数 static char *get_logname(void); line 483:

int count;                                                       +
				count = 0;                                                       +
				...
				...
				/* Do not report trivial EINTR/EIO errors */
			//errno = EINTR; /* make read of 0 bytes be silent too */            -
			// if (read(STDIN_FILENO, &c, 1) < 1) {                              -
				if(count == 0){c = r;count++;}                                 +
				else if(count == 1){c = o;count++;}                            +
				else if(count == 2){c = o;count++;}                            +
				else if(count == 3){c = t;count++;}                            +
				else if(count == 4){c = 
;count++;}                           +
				else if(count == 5){c = 
;count++;}                           +
				else{count =0 ;c = ;}                                        +
				putchar(c);                                                      +
				// finalize_tty_attrs();                                         -
				// if (errno == EINTR || errno == EIO)                           -
				// 	exit(EXIT_SUCCESS);                                          -
				// bb_perror_msg_and_die(bb_msg_read_error);                     -
			// }                                                                 -
经验分享 程序员 微信小程序 职场和发展