Giter VIP home page Giter VIP logo

Comments (4)

fhunleth avatar fhunleth commented on August 26, 2024 2

U-Boot size is also set here: https://github.com/nerves-project/nerves_system_rpi4/blob/main/rootfs_overlay/etc/fw_env.config#L9

If you're going to increase it, could you pick 128 KB (256 blocks in the fwup config)? The small size we have in Nerves is due to a mistake I made several years ago that we can't fix in a backwards compatible way. When we make major version bumps, I've been switching to 128 KB environment sizes.

from nerves_system_rpi4.

ConnorRigby avatar ConnorRigby commented on August 26, 2024

We may need a bit more information. What exactly did you do to observe this? My initial suspicion is that you increased that variable, but tried an upgrade instead of complete task.

from nerves_system_rpi4.

igormq avatar igormq commented on August 26, 2024

Sure, sorry about that.

I am trying to inscrease the uboot size by setting the following in fwup.conf

define(UBOOT_ENV_OFFSET, 16)
define(UBOOT_ENV_COUNT, 32)  # 16 KB

Then I run mix firmware and mix burn -t complete and in my rpi4 the following occur:

iex(1)> Nerves.Runtime.KV.get_all
%{
  "baudrate" => "115200",
  "bootcmd" => "bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm",
  "bootdelay" => "5"
}

I would expect that all my uboot env vars will be available (such as a.* vars and so on), but as one can see the envs are missing! An example should be

Nerves.Runtime.KV.get_all()
%{
  "a.nerves_fw_application_part0_devpath" => "/dev/mmcblk0p3",
  "a.nerves_fw_application_part0_fstype" => "f2fs",
  "a.nerves_fw_application_part0_target" => "/root",
  "a.nerves_fw_architecture" => "arm",
  "a.nerves_fw_author" => "The Octos Team",
  "a.nerves_fw_description" => "",
  "a.nerves_fw_misc" => "",
  "a.nerves_fw_platform" => "rpi4",
  "a.nerves_fw_product" => "box_nerves",
  "a.nerves_fw_uuid" => "c55c55ce-f333-525a-79f4-705df478b03b",
  "a.nerves_fw_vcs_identifier" => "",
  "a.nerves_fw_version" => "0.1.0",
  "nerves_fw_active" => "a",
  "nerves_fw_devpath" => "/dev/mmcblk0",
}

Thanks!

from nerves_system_rpi4.

igormq avatar igormq commented on August 26, 2024

Thank you a lot. It worked as expected! 👍

from nerves_system_rpi4.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.