Been looking everywhere and tried a lot of things but can't get it to work. A BIG Banana to the one which will save me.
Objective. Install the rtl8812au driver on my Raspberry 4
Steps:
git clone https://github.com/gnab/rtl8812au
cd rtl8812au
sudo vi Makefile
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = y
CONFIG_POWER_SAVING = n
sudo chmod +x install.sh
sudo ./install.sh
Then get the following error either through make or sudo ./install.sh
make[1]: Entering directory '/root/linux-ff93994fb3f92070d8521d709ad04675ecaa5817'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Makefile:632: include/config/auto.conf: No such file or directory
make[1]: *** [Makefile:704: include/config/auto.conf] Error 1
make[1]: Leaving directory '/root/linux-ff93994fb3f92070d8521d709ad04675ecaa5817'
make: *** [Makefile:1068: modules] Error 2
Of course, I tried make oldconfig && make prepare which returned:
make: *** No rule to make target 'oldconfig'. Stop.
Related
I am trying to run cocotb simulations with modelsim, however, I am getting an error and no success, in the last two days, fixing it.
I have installed cocotb using "pip3 install cocotb". The python version I am using is 3.7.0. I have installed the questa/modelsim Lite version 19.1 (which is free through Intel).
I am able to run cocotb simulations with icarus and verilator, however, with modelsim I run into following error:
mehdi#mehdi:~/Dropbox/Test_Tools/testcocotbVerilator$ make SIM=modelsim
make results.xml
make[1]: Entering directory '/home/mehdi/Dropbox/Test_Tools/testcocotbVerilator'
set -o pipefail; cd sim_build && LD_LIBRARY_PATH=/home/mehdi/Dropbox/Test_Tools/testcocotbVerilator/build/libs/x86_64::/usr/lib:/usr/lib:/usr/lib:/usr/lib MODULE=TB TESTCASE= TOPLEVEL="work.dff" COCOTB_SIM=1 \
GPI_EXTRA= TOPLEVEL_LANG=verilog PYTHONPATH=/home/mehdi/Dropbox/Test_Tools/testcocotbVerilator/build/libs/x86_64:/home/mehdi/Dropbox/Test_Tools/testcocotbVerilator:/home/mehdi/.local/lib/python3.5/site-packages: \
/home/mehdi/intelFPGA_lite/19.1/modelsim_ase/linuxaloem/vsim -c -64 -do runsim.do 2>&1 | tee sim.log
/bin/sh: 1: set: Illegal option -o pipefail
/home/mehdi/.local/lib/python3.5/site-packages/cocotb/share/makefiles/simulators/Makefile.questa:147: recipe for target 'results.xml' failed
make[1]: *** [results.xml] Error 2
make[1]: Leaving directory '/home/mehdi/Dropbox/Test_Tools/testcocotbVerilator'
/home/mehdi/.local/lib/python3.5/site-packages/cocotb/share/makefiles/Makefile.sim:79: recipe for target 'sim' failed
make: *** [sim] Error 2
I would appreciate it if someone could advise me how should I fix this problem
That "-o pipefail" option is only available in bash version 3 or later. So either you're running an older version of bash, or some other non-bash shell that doesn't support it.
i want to kernel-compile at linux-5.2.9, but make not operate after make clean.
how should i do?
i show tryed list
tar xfJ linux-5.2.9
cd linux-5.2.9
pwd
ls
apt-get -y install qt5-default libssl-dev
make mrproper - kernel init
make xconfig ( File systems ) -> (DOS/FAT/NT Filesystem ) -> (NTFS filesystem support ) low-level check all
make clean
make < - from error
make modules_install
make install
I am following this tutorial to develop a hello world operating system.
The config part shown below gets done successfully
# Delete the build directory if it already exists.
rm -rfv binutils-build
mkdir binutils-build
cd binutils-build
../binutils-2.23.1/configure --prefix=$HOME/opt/cross --target=i586-elf \
--disable-nls
But when I execute make nice make -j4 I get the following errors:
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[3]: Nothing to be done for 'info'.
make[3]: Leaving directory '/home/souban/OS/binutils-build/bfd/po'
make[3]: Entering directory '/home/souban/OS/binutils-build/bfd'
make[3]: Nothing to be done for 'info-am'.
make[3]: Leaving directory '/home/souban/OS/binutils-build/bfd'
Makefile:1617: recipe for target 'info-recursive' failed
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory '/home/souban/OS/binutils-build/bfd'
Makefile:2505: recipe for target 'all-bfd' failed
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory '/home/souban/OS/binutils-build'
Makefile:837: recipe for target 'all' failed
make: *** [all] Error 2
The actual error message is not in the part you quoted, but the build process probably cannot find the makeinfo program, which is part of the texinfo package in most distributions.
For anyone else coming across this error, you can get around it by running the configure command with MAKEINFO=missing in front of it... i.e.
MAKEINFO=missing ../binutils-2.23.1/configure --prefix=$HOME/opt/cross --target=i586-elf --disable-nls
And likewise with make:
MAKEINFO=missing make -j8
I am trying to run an executable from makefile using cygwin make, The executable has proper permissions, still make fails saying permission denied, Error log :
C:\jenkins\workspace\donotship\sdk>make exe
ls -l C:/jenkins/workspace/donotship/sdk/InstallAnywhere/build.exe
-rwxr-xr-x 1 c_celuru Domain Users 558368 Oct 20 16:27 C:/jenkins/workspace/donotship/sdk/InstallAnywhere/build.exe
C:/jenkins/workspace/donotship/sdk/InstallAnywhere/build.exe
make: execvp: C:/jenkins/workspace/donotship/sdk/InstallAnywhere/build.exe: Permission denied
Makefile:463: recipe for target 'exe' failed
make: *** [exe] Error 127
The makefile contains following instructions for exe target
exe:
ls -l C:/jenkins/workspace/donotship/sdk/InstallAnywhere/build.exe
C:/jenkins/workspace/sdk/InstallAnywhere/build.exe
I am able to execute C:/jenkins/workspace/sdk/InstallAnywhere/build.exe from command line but not through make.
When I run C:/jenkins/workspace/sdk/InstallAnywhere/build.exe manually I get a popup saying "Do you want to allow the following program to make changes to this computer", to avoid this I changed "User Account control settings" in control panel to "Never Notify".From then I can execute build.exe without previous popup, but from make, it fails saying permission denied
When I run the make batch file in my Cygwin terminal I get the following output:
mparadis#A-082-MPARADI-0 ~/pepper_19/examples$ make
make -C dlopen
make[1]: Entering directory `/cygdrive/c/nacl_sdk/pepper_19/examples/dlopen' /cygdrive/c/nacl_sdk/pepper_19/toolchain/win_x86_glibc/bin/i686-nacl-g++ -o dlopen_x86_32.o -c
dlopen.cc -m32 -g -O0 -pthread -std=gnu++98 -Wno-long-long -Wall
Makefile:92: recipe for target `dlopen_x86_32.o' failed
make[1]: *** [dlopen_x86_32.o] Error 127
make[1]: Leaving directory `/cygdrive/c/nacl_sdk/pepper_19/examples/dlopen'
Makefile:33: recipe for target `dlopen_TARGET' failed
make: *** [dlopen_TARGET] Error 2
It took some time to get Python properly set up because I needed the language interpreter package for it and was not aware I didn't have it already. My env variable for Python is correctly set to C:\python27. I get the same results when compiling my co-workers code which, I can compile fine on a Mac or Linux box. Unfortunately, I need to get this working in my Cygwin environment as well.
Anybody with any experience using google native client or know why this is happening please advise. I've been at this for so long I'm staring cross-eyed at the computer screen.
UPDATE:
If I insert the --version flag into the referenced command within the makefile, I receive the same error as above. However, if I type the command, as is, from the same working directory as the make file I get the following:
mparadis#A-082-MPARADI-0 ~/pepper_19/examples/dlopen> $ /cygdrive/c/nacl_sdk/pepper_19/toolchain/win_x86_glibc/bin/i686-nacl-g++.exe -o dlopn_x86_32.o -c dlopen.cc -m32 -g -O0 -pthread -std=gnu++98 --version
mparadis#A-082-MPARADI-0 ~/pepper_19/examples/dlopen $
In other words, it simply thinks for a split second, then returns to the prompt.
tl;dr: your cygwin may be buggy and give this return code to all batch file. My does this. My cygwin version:
$ uname -srv
CYGWIN_NT-6.1-WOW64 1.7.17(0.262/5/3) 2012-10-19 14:39
From your comment, I see something called "make.bat":
mparadis#A-082-MPARADI-0 ~/pepper_19/examples/dlopen
$ ls dlopen.cc dlopen.html eightball.cc eightball.h make.bat Makefile
You can test your cygwin with this little bash script, too..
#!/bin/bash
echo echo foo %errorlevel% bar >temp.bat
./temp.bat
if [ $? -eq 127 ]; then echo "bug"; fi
If your make recipe for that target uses make.bat, and you have this bug, then this cygwin bug is causing the Error 127