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

Driver does not compile on Kali 2019.2 #144

Open
abujed opened this issue Jun 15, 2019 · 17 comments
Open

Driver does not compile on Kali 2019.2 #144

abujed opened this issue Jun 15, 2019 · 17 comments

Comments

@abujed
Copy link

abujed commented Jun 15, 2019

Fails to compile and bricks OS - trace below...
HELP!?

root@kali:~/Downloads/LCD-show# ./MHS35-show
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.20.1-2).
The following additional packages will be installed:
cmake-data librhash0 libuv1
Suggested packages:
cmake-doc ninja-build
The following NEW packages will be installed:
cmake cmake-data librhash0 libuv1
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 4,747 kB of archives.
After this operation, 24.3 MB of additional disk space will be used.
Get:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main arm64 cmake-data all 3.13.4-1 [1,476 kB]
Get:2 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main arm64 librhash0 arm64 1.3.8-1 [121 kB]
Get:3 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main arm64 libuv1 arm64 1.24.1-1 [105 kB]
Get:4 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main arm64 cmake arm64 3.13.4-1 [3,046 kB]
Fetched 4,747 kB in 7s (653 kB/s)
Selecting previously unselected package cmake-data.
(Reading database ... 254665 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.13.4-1_all.deb ...
Unpacking cmake-data (3.13.4-1) ...
Selecting previously unselected package librhash0:arm64.
Preparing to unpack .../librhash0_1.3.8-1_arm64.deb ...
Unpacking librhash0:arm64 (1.3.8-1) ...
Selecting previously unselected package libuv1:arm64.
Preparing to unpack .../libuv1_1.24.1-1_arm64.deb ...
Unpacking libuv1:arm64 (1.24.1-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.13.4-1_arm64.deb ...
Unpacking cmake (3.13.4-1) ...
Setting up libuv1:arm64 (1.24.1-1) ...
Setting up librhash0:arm64 (1.3.8-1) ...
Setting up cmake-data (3.13.4-1) ...
Setting up cmake (3.13.4-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Cloning into 'rpi-fbcp'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 61 (delta 3), reused 5 (delta 1), pack-reused 52
Unpacking objects: 100% (61/61), done.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Downloads/LCD-show/rpi-fbcp/build
Scanning dependencies of target fbcp
[ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o
/root/Downloads/LCD-show/rpi-fbcp/main.c:9:10: fatal error: bcm_host.h: No such file or directory
#include <bcm_host.h>
^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/fbcp.dir/build.make:63: CMakeFiles/fbcp.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/fbcp.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
install: cannot stat 'fbcp': No such file or directory
this is not raspberrypi kernel, no need to update touch configure, reboot
Connection to closed by remote host.
Connection to closed.

I would post other pertinent system info but it's bricked :-(

@runopsrun
Copy link

Same issue here and a bricked system.

root@kali:~/LCD-show# ./MHS35-show
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.20.1-2).
The following additional packages will be installed:
cmake-data librhash0 libuv1
Suggested packages:
cmake-doc ninja-build
The following NEW packages will be installed:
cmake cmake-data librhash0 libuv1
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 4747 kB of archives.
After this operation, 24.3 MB of additional disk space will be used.
Get:1 http://kali.download/kali kali-rolling/main arm64 cmake-data all 3.13.4-1 [1476 kB]
Get:2 http://kali.download/kali kali-rolling/main arm64 librhash0 arm64 1.3.8-1 [121 kB]
Get:3 http://kali.download/kali kali-rolling/main arm64 libuv1 arm64 1.24.1-1 [105 kB]
Get:4 http://kali.download/kali kali-rolling/main arm64 cmake arm64 3.13.4-1 [3046 kB]
Fetched 4747 kB in 1s (4126 kB/s)
Selecting previously unselected package cmake-data.
(Reading database ... 254704 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.13.4-1_all.deb ...
Unpacking cmake-data (3.13.4-1) ...
Selecting previously unselected package librhash0:arm64.
Preparing to unpack .../librhash0_1.3.8-1_arm64.deb ...
Unpacking librhash0:arm64 (1.3.8-1) ...
Selecting previously unselected package libuv1:arm64.
Preparing to unpack .../libuv1_1.24.1-1_arm64.deb ...
Unpacking libuv1:arm64 (1.24.1-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.13.4-1_arm64.deb ...
Unpacking cmake (3.13.4-1) ...
Setting up libuv1:arm64 (1.24.1-1) ...
Setting up librhash0:arm64 (1.3.8-1) ...
Setting up cmake-data (3.13.4-1) ...
Setting up cmake (3.13.4-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Cloning into 'rpi-fbcp'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 61 (delta 3), reused 5 (delta 1), pack-reused 52
Unpacking objects: 100% (61/61), done.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/LCD-show/rpi-fbcp/build
Scanning dependencies of target fbcp
[ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o
/root/LCD-show/rpi-fbcp/main.c:9:10: fatal error: bcm_host.h: No such file or directory
#include <bcm_host.h>
^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/fbcp.dir/build.make:63: CMakeFiles/fbcp.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/fbcp.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
install: cannot stat 'fbcp': No such file or directory
this is not raspberrypi kernel, no need to update touch configure, reboot

@bseb
Copy link

bseb commented Jun 24, 2019

+1 , same symptoms as above

@fschlaef
Copy link

@abujed @runopsrun @bseb this script has many issues, and overwrites system config as explained here : #140

I have created a better alternative here that should work fine as a replacement for MHS35-show : https:/fschlaef/raspi-lcd

Would you mind giving it a try ? At the very least, it won't brick your system :)

@abujed
Copy link
Author

abujed commented Jun 26, 2019 via email

@abujed
Copy link
Author

abujed commented Jun 26, 2019 via email

@runopsrun
Copy link

Same, white screen but no brick

@abujed
Copy link
Author

abujed commented Jun 26, 2019 via email

@fschlaef
Copy link

Hello @abujed and thank you for testing my script !

I am not the vendor neither affiliated to it, I am indeed just trying to help :)

I have not tested on Kali Linux yet so that might be the cause of the white screen you are encountering.
About the inverted X/Y axis, try this :

  • Open /usr/share/X11/xorg.conf.d/99-calibration.conf
  • Change SwapAxes to "0"
  • Reboot

For further issues / questions, would you mind opening them on my repo ? I don't want to have problems 😄

https:/fschlaef/raspi-lcd/issues

Thank you very much !

@abujed
Copy link
Author

abujed commented Jun 27, 2019 via email

@abujed
Copy link
Author

abujed commented Jun 27, 2019 via email

@goodtft
Copy link
Owner

goodtft commented Jun 29, 2019 via email

@goodtft
Copy link
Owner

goodtft commented Jun 29, 2019 via email

@goodtft
Copy link
Owner

goodtft commented Jun 29, 2019 via email

@goodtft
Copy link
Owner

goodtft commented Jun 29, 2019 via email

@goodtft
Copy link
Owner

goodtft commented Jun 29, 2019 via email

@goodtft
Copy link
Owner

goodtft commented Jun 29, 2019 via email

@DonCanDo
Copy link

@abujed @runopsrun @bseb this script has many issues, and overwrites system config as explained here : #140

I have created a better alternative here that should work fine as a replacement for MHS35-show : https:/fschlaef/raspi-lcd

Would you mind giving it a try ? At the very least, it won't brick your system :)

This made my day. Thanks man

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

6 participants