Comments (11)
And I read this as you have the keyboard connected to the PI itself? I.e, no UART involved here?
from build.
Yes, plain standard USB Keyboard connected to RPI3 USB port.
from build.
Hi @msa2,
I've never faced the issue you described when I used my RPi3+USB keyboard setup ("usb start" in CONFIG_PREBOOT works for me out of the box)
When using default u-boot configuration (without manually specifying preboot
var in uboot.env.txt), have you seen scanning bus for devices...
USB enumeration line in u-boot log before Press any key to stop
message?
from build.
Ok, maybe I pulled some intermediate version at some point. I'm not constantly updating to the latest, because I need some stability for my own tests.
What is the role of ./build/rpi3/firmware/uboot.env.txt
(my version does on mention preboot) -- how is CONFIG_PREBOOT merged with uboot.env.txt?
If this problem does not appear for others, it must be something in my specific version and setup (and as I said, I found a "work around").
from build.
I was wrong. I just checked my RPi3 setup once more - I have the same issue with a keyboard, seems that I was confused and all memories mixed up after I've been playing with Hikey and TI board setups for the last two days :) .
It seems, that uboot.env
just replaces the whole U-boot default env, even variables, that are not defined in this uboot.env
.
If you try to use env default preboot
, it will create a new variable preboot
with a value, which is defined by CONFIG_PREBOOT
U-Boot> printenv
# No preboot here
U-Boot> env default preboot
U-Boot> printenv
...
preboot=usb start
...
Pretty interesting, before this case I thought that default and custom environments are merged :)
from build.
@msa2 so the only way to fix it - is to do what you did, just add needed vars to uboot.env.txt
and generate new uboot.env
from build.
I think there is u-boot modification/addition, which reads the environment variables from a text file, if one with specific name uEnv.txt exists (actually haven't checked whether it is already supported)
Adding this feature might be better approach than generating uboot.env at build time.
from build.
@msa2
right, you can use a chain of fatload/import commands. I think I'll prepare PR to switch to this approach in near future
You can just add this lines to CONFIG_EXTRA_ENV_SETTINGS/CONFIG_BOOTCOMMAND defines in rpi.h
configuration file and it should work (I haven't tested it), just an example from another platform:
#define CONFIG_EXTRA_ENV_SETTINGS \
"loadaddr=0x80200000\0" \
"bootenv=uEnv.txt\0" \
"mmcdev=0\0" \
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=env import -t $loadaddr $filesize\0" \
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"if run loadbootenv; then " \
"run importbootenv;" \
"fi;" \
"fi;" \
In this case env definitions in uEnv.txt will be just added to your default configuration.
from build.
I'm adding this as a "known issue" in the changelog, when we're about to make the 2.4.0
release (today). I've just tested RPi3 running latest (according to the manifest ... non-stable) and it seems to work fine otherwise. I've been using the UART (and I've tested using NFS).
from build.
May we close this issue, as fix has been already provided (48ade15)?
from build.
yes
from build.
Related Issues (20)
- Failed to boot on RPI3
- [RFC] Makefiles for RISC-V platforms HOT 13
- Fail to build OP-TEE 3.21.0 for Hikey 960 HOT 7
- Optee build failed on RPi 3B+ due to make[4]: *** [Makefile:2377: s-automata] Error 137 HOT 2
- Build latest version on debian 11 fails HOT 1
- OP-TEE building under company proxy HOT 1
- Error building op-tee for QEMUv8 HOT 6
- Using hikey620's uart0 to console NW world HOT 1
- Issue with building image - v3.22.0 on Raspberry Pi 3B+ HOT 1
- Modify the linux kernel but not working HOT 3
- Failure to run with manifest qemu_v8.xml and SPMC_AT_EL=2 HOT 2
- AMD Versal ACAP - do not update to BSP 2023.1 HOT 4
- cannot find -lpci error while cross compiling for LS1043 HOT 1
- Who can help me!make -f qemu.mk all and get a error :ccache: error: Exec format error HOT 5
- Openssl doesn't get built in when build called from qemu.mk HOT 2
- RPI3b:-sh: apt-get: not found HOT 3
- Does the build support the config XEN_BOOT=y && SPCM_AT_EL=2 on qemu_v8 HOT 5
- Rust error "could not rename downloaded file" HOT 3
- Rust error: "failed to install component: 'rust-std-aarch64-unknown-linux-gnu', detected conflict" HOT 2
- Legacy BR options in tooclhain build HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.