问题描述
我正在使用BeagleBone Black(BBB)进行嵌入式产品项目.我还需要一个触摸屏来显示信息和进行输入.由于我还需要5v电源才能在usb上添加网络摄像头,因此无法使用没有升压器的BBB的内置电池功能.我找到了符合我要求的斗篷: AndiceLabs提供的PowerCape .对于屏幕,我主要使用Circuita的 LCD4 ,还使用的是 4D系统的4DCAPE-43T ,我认为这是完全相同的,因此出现了问题两者.
I am working on a project of embedded product with a BeagleBone Black (BBB). I also need a touch screen to display information and for inputs. As I also need the 5v power to add a webcam on the usb, I couldn't use the built-in battery capabilities of the BBB which has no voltage booster. I found a cape that does what I want: PowerCape by AndiceLabs. For the screen, I am using mainly the LCD4 by circuitco but also the 4DCAPE-43T by 4D systems, which I think are exactly identical, and so the problem occurs with both.
因此,一切工作正常,并且将所有内容嵌入都非常不错.但是出于未知的原因,添加PowerCape时,启动时间(从按下电源按钮和LED开始亮起到控制台在屏幕上可见的那一刻起)的时间从20秒变为1分钟和30秒.而拥有一个能够执行快速启动而又无法获得它的功能的系统,这真是令人沮丧.
So, everything is working fine and it is pretty nice to have everything embedded. But for an unknown reason, the booting time (the time from which I push the power button and the LEDs begin to light to the moment where the console is visible on the screen) passed from 20seconds to 1minutes and 30seconds when I add the PowerCape. And that's very frustrating to have a system that has the capabilities to perform a fast boot and not being able to obtain it.
这里有一些技术信息:
操作系统:
Angstrom 2013-09-12 Linux kernell 3.8.13
这是全新安装,仅添加了Qt库.桌面环境已禁用.
启动时间:
仅BeagleBone Black:约20秒
BeagleBone Black + LCD4:〜20秒
BeagleBone Black + LCD4 + PowerCape:1mn30secs
Here some technical information:
OS:
Angstrom 2013-09-12 linux kernell 3.8.13
It is a clean install, only with Qt libraries added. The desktop environment is disabled.
Boot time:
BeagleBone Black alone: ~20secs
BeagleBone Black + LCD4: ~20secs
BeagleBone Black + LCD4 + PowerCape: 1mn30secs
我生成了一些带有或不带有PowerCape的日志,并联系了AndiceLabs,从他们的观点来看,PowerCape不应影响启动时间,因为与Barel插孔上的电源唯一的区别是Cape ROM,INA219和AVR. I2C总线.他们认为问题应该出在systemd上,它似乎在目标多用户"和目标图形界面"之间暂停.我做了一些有关systemd的研究,并试图理解它(我已经在与另一个问题作斗争),但确实令人困惑,我真的不知道要看什么.
I generated some logs with and without the PowerCape and contacted AndiceLabs, from their opinions, the PowerCape should not influence the booting time as only differences with the supply on the barel jack is the cape ROM, the INA219 and the AVR on the I2C bus. They think the problem should come from systemd which seems to pause between "target Multi-User" and "target Graphical Interface". I did some research about systemd and try to understand it (I have already been fighting with it for another problem here), but it is really confusing and I really don't know were to look.
日志:
没有PowerCape
使用PowerCape
仅在没有PowerCape的情况下出现的日志
仅与PowerCape一起出现的日志
Logs:
Without PowerCape
With PowerCape
Logs that only appear without PowerCape
Logs that only appear with PowerCape
推荐答案
60秒的启动延迟可以轻松解决.在您的 boot 分区上更改uEnv.txt并添加
The 60 seconds boot delay can be fixed easily. Alter uEnv.txt on your boot partition and add
capemgr.disable_partno=PowerCape
到以optargs开头的行.就我而言,我有:
to the line beginning with optargs. In my case I have:
optargs=quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,PowerCape
因为我不需要HDMI.这样可以防止海角管理器加载PowerCape覆盖文件(不存在).
as I don't need HDMI. This prevents the cape manager to load the PowerCape overlay file (which does not exist).
要修改uEnv.txt,请执行以下操作:
To modify uEnv.txt do something like:
cd /tmp
mkdir bootpart
sudo mount /dev/mmcblk0p1 bootpart
sudo vi bootpart/uEnv.txt
reboot
这篇关于BeagleBone Black + PowerCape + LCD4 Cape =慢速启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!