Skip to content
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

Help needed building EC update on NovaCustom NV41 I7-1260P #888

Open
aluciani opened this issue Jun 20, 2024 · 2 comments
Open

Help needed building EC update on NovaCustom NV41 I7-1260P #888

aluciani opened this issue Jun 20, 2024 · 2 comments

Comments

@aluciani
Copy link

aluciani commented Jun 20, 2024

Dasharo version

Dasharo Heads-v0.2.0-2193-gd9a0cac

Dasharo variant

NovaCustom NV41 I7-1260P

Question text
I wanted to update the EC on my computer because the light on my keyboard no longer activates and I saw in the new version of the EC that a bug related to this had been resolved.
I regularly update HEADS that I build from https://linuxboot/heads, but I don't think this procedure updates the computer's EC.
I followed the EC build instructions:

git clone https://github.com/Dasharo/ec.git
cd ec
git checkout novacustom_nv4x_adl_v1.7.2
git submodule update --init --recursive --checkout
EC_BOARD_VENDOR=novacustom EC_BOARD_MODEL=nv4x_adl ./build.sh

But I get an error.

Makefile:64: src/arch//toolchain.mk: No such file or directory
make: *** No rule to make target 'src/arch//toolchain.mk'.  Stop.
Failed to build EC firmware : (2)

Did I miss something ?

@macpijan
Copy link
Contributor

macpijan commented Jun 28, 2024

Commands look fine, and work perfectly fine for me. What OS are you running? Can you provide a full log?
Are you running docker, or perhaps podman? Which versions?
The build environment is on the docker container already, so should be fairly portable.

@aluciani
Copy link
Author

aluciani commented Jul 5, 2024

Linux laptop 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64 GNU/Linux

user@laptop:~/tmp$ git clone https://github.com/Dasharo/ec.git
Cloning into 'ec'...
remote: Enumerating objects: 11942, done.
remote: Counting objects: 100% (3150/3150), done.
remote: Compressing objects: 100% (950/950), done.
remote: Total 11942 (delta 2438), reused 2574 (delta 2112), pack-reused 8792
Receiving objects: 100% (11942/11942), 1.81 MiB | 4.56 MiB/s, done.
Resolving deltas: 100% (7055/7055), done.

user@laptop:~/tmp$ cd ec

user@laptop:~/tmp/ec$ git checkout novacustom_nv4x_adl_v1.7.2
Note: switching to 'novacustom_nv4x_adl_v1.7.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 2b2c17a tps65987: remove unused function

user@laptop:~/tmp/ec$ git submodule update --init --recursive --checkout
Submodule 'ecflash' (https://github.com/system76/ecflash.git) registered for path 'ecflash'
Submodule 'ecsim' (https://github.com/system76/ecsim.git) registered for path 'ecsim'
Submodule 'ecspy' (https://github.com/system76/ecspy.git) registered for path 'ecspy'
Cloning into '/home/user/tmp/ec/ecflash'...
Cloning into '/home/user/tmp/ec/ecsim'...
Cloning into '/home/user/tmp/ec/ecspy'...
Submodule path 'ecflash': checked out '2b94b81b971dce74f11fc8549fa8d6c4acd68657'
Submodule path 'ecsim': checked out '2d672adae558a5f2841a44af17d92d0a98f27acc'
Submodule 'area8051' (https://gitlab.redox-os.org/redox-os/area8051.git) registered for path 'ecsim/area8051'
Cloning into '/home/user/tmp/ec/ecsim/area8051'...
Submodule path 'ecsim/area8051': checked out '2be60cac8994810214a57becec0ae61f7029aa0e'
Submodule path 'ecspy': checked out '3ff52b23483afe8965e89f2cea89bd571ca28900'
user@laptop:~/tmp/ec$ ./scripts/deps.sh
Installing system build dependencies
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://ftp.fr.debian.org/debian bookworm InRelease                                    
Hit:3 http://ftp.fr.debian.org/debian bookworm-updates InRelease                            
Hit:4 https://download.docker.com/linux/debian bookworm InRelease                           
Hit:5 https://brave-browser-apt-release.s3.brave.com stable InRelease                       
Hit:6 https://packages.microsoft.com/repos/ms-teams stable InRelease                        
Hit:7 https://repo.steampowered.com/steam stable InRelease                                  
Hit:8 https://packages.element.io/debian default InRelease                                  
Get:9 https://apt.syncthing.net syncthing InRelease [15.1 kB]                               
Hit:10 https://deb.kicksecure.com bookworm InRelease                                        
Hit:11 https://deb.oxen.io bookworm InRelease                                               
Hit:12 https://download.vscodium.com/debs vscodium InRelease  
Fetched 15.1 kB in 2s (8,311 B/s)       
Reading package lists... Done
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libc6-dev' instead of 'libc-dev'
avr-libc is already the newest version (1:2.0.0+Atmel3.6.2-3).
avrdude is already the newest version (7.1+dfsg-3).
clang-format is already the newest version (1:14.0-55.7~deb12u1).
curl is already the newest version (7.88.1-10+deb12u6).
gcc is already the newest version (4:12.2.0-3).
gcc-avr is already the newest version (1:5.4.0+Atmel3.6.2-3).
libc6-dev is already the newest version (2.36-9+deb12u7).
libhidapi-dev is already the newest version (0.13.1-1).
libudev-dev is already the newest version (252.26-1~deb12u2).
make is already the newest version (4.3-4.1).
pkgconf is already the newest version (1.8.1-1).
sdcc is already the newest version (4.2.0+dfsg-1).
shellcheck is already the newest version (0.9.0-1).
xxd is already the newest version (2:9.0.1378-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Initializing submodules
Installing git hooks
'.git/hooks/pre-commit' -> '../../scripts/hooks/pre-commit.sh'
Updating rustup
info: checking for self-update
  rustup unchanged - 1.27.1

Installing pinned Rust toolchain and components
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/user/.rustup

nightly-2023-01-21-x86_64-unknown-linux-gnu (overridden by '/home/user/tmp/ec/rust-toolchain.toml')
rustc 1.68.0-nightly (5ce39f42b 2023-01-20)
Successfully installed dependencies

user@laptop:~/tmp/ec$ source $HOME/.cargo/env

user@laptop:~/tmp/ec$ EC_BOARD_VENDOR=novacustom EC_BOARD_MODEL=nv4x_adl ./build.sh
Makefile:64: src/arch//toolchain.mk: No such file or directory
make: *** No rule to make target 'src/arch//toolchain.mk'.  Stop.
Failed to build EC firmware : (2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants