您尚未登录。

楼主 #1 2020-08-21 11:58:56

barcode
会员
注册时间: 2020-03-27
已发帖子: 3
积分: 2.5

无意中看到一篇文章,直接用spl引导linux, 不用u-boot,应该可以加快3秒开机

离线

#2 2020-08-21 12:22:25

春风吹又生
会员
注册时间: 2020-02-25
已发帖子: 61
积分: 60

Re: 无意中看到一篇文章,直接用spl引导linux, 不用u-boot,应该可以加快3秒开机

好像是开启 CONFIG_SPL_OS_BOOT 开关就行了?

离线

#3 2020-08-21 13:37:36

明月照我沟渠
会员
注册时间: 2020-07-09
已发帖子: 120
积分: 114

Re: 无意中看到一篇文章,直接用spl引导linux, 不用u-boot,应该可以加快3秒开机

春风吹又生 说:

好像是开启 CONFIG_SPL_OS_BOOT 开关就行了?

全志的看来没戏了,

arch/arm/mach-sunxi/spl_spi_sunxi.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2016 Siarhei Siamashka <siarhei.siamashka@gmail.com>
 */

#include <common.h>
#include <image.h>
#include <log.h>
#include <spl.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/libfdt.h>
#include <asm/arch/spl.h>

#ifdef CONFIG_SPL_OS_BOOT
#error CONFIG_SPL_OS_BOOT is not supported yet
#endif

编译出错:

COPY    u-boot.bin
  SYM     u-boot.sym
  CC      spl/arch/arm/mach-sunxi/spl_spi_sunxi.o
arch/arm/mach-sunxi/spl_spi_sunxi.c:18:2: error: #error CONFIG_SPL_OS_BOOT is not supported yet
#error CONFIG_SPL_OS_BOOT is not supported yet
  ^~~~~
scripts/Makefile.build:265: recipe for target 'spl/arch/arm/mach-sunxi/spl_spi_sunxi.o' failed
make[2]: *** [spl/arch/arm/mach-sunxi/spl_spi_sunxi.o] Error 1
scripts/Makefile.spl:428: recipe for target 'spl/arch/arm/mach-sunxi' failed
make[1]: *** [spl/arch/arm/mach-sunxi] Error 2
Makefile:1926: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
#
#

离线

#4 2020-08-21 19:50:06

迪卡
会员
所在地: 河北
注册时间: 2018-11-02
已发帖子: 916
积分: 903
个人网站

Re: 无意中看到一篇文章,直接用spl引导linux, 不用u-boot,应该可以加快3秒开机

F1C200S的tina里写着可以

离线

#5 2020-08-22 00:12:09

OggyJFX
会员
注册时间: 2019-05-21
已发帖子: 109
积分: 108.5

Re: 无意中看到一篇文章,直接用spl引导linux, 不用u-boot,应该可以加快3秒开机

TI的AM335X系列有这个功能。

离线

#6 2021-06-07 20:30:49

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 无意中看到一篇文章,直接用spl引导linux, 不用u-boot,应该可以加快3秒开机

说好的分享V3S R11的SPL,无需uboot SPI DMA直接启动kernel
https://whycan.com/t_5613.html
(出处:哇酷开发者社区)





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn