-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libubootenv v0.3.2 cannot read env #20
Comments
Cannot read default environment from file ==> you have to provide u-boot-initial-env as built by U-Boot. From your tests, the only reason I can imagine is that the environment size in U-Boot is different as 0x2000 you set in fw_env.config. |
Hi, thanks for response. After copying manually u-boot-init-env I can see output on fw_printenv which is default env. I'll check other things. |
How did you manually copy u-boot-init-env ? |
env size in config file was incorrect. When fix it it works as expected. |
Yes I understood your particular problem, glad you resolve it, but my question was - how did you generate and copy u-boot-init-env. I'm working with Yocto thud and there isn't generation of u-boot-init-env as in yocto hardknott and try to figure out how to achieve that file. So I do asking how you copy it. |
I'm using meta-mender and magic in that layer ;) (I didn't study it sorry) |
Ok understood, last question - what version of Yocto did you use, Hardknott? |
dunfell |
Hi,
out=serial is the last env variable so I think the offset and size specified in the fw_env.config file should fit. Are the uboot env formats that are not compatible with the libubootenv? But I'm using the standard uboot-mkimage from yocto kirkstone to compile the environment, that is provided by poky/meta/recipes-bsp/u-boot/u-boot-tools_2022.01.bb where also the poky/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb file is located. Maybe I'm using the wrong size? Does it have to be blocksize aligned or something like that? I already tried 0x200 and 0x400 as size but it gives me the same error. |
Moved to #25. |
Hi, I'm having strange issue on cm4. I'm using v0.3.2 and print env ends with:
I checked config file and it's present with content:
I checked with dd and hexdump if env is present at offset and it is:
print me :
Am i missing something? Thanks.
The text was updated successfully, but these errors were encountered: