核桃派1B debian2.2.1 无法安装LCD3.5驱动

之前树莓派用的屏,按照这里( 3.5inch RPi Display - LCD wiki
安装驱动出现异常报错

报错内容如下:自动重启之后蓝灯不再亮,无法进系统

root@WalnutPi:/home/pi# cd LCD-show/
root@WalnutPi:/home/pi/LCD-show# sudo ./LCD35-show 
grep: /boot/cmdline.txt: No such file or directory
cp: cannot stat '/boot/cmdline.txt': No such file or directory
cp: cannot stat '/etc/rc.local': No such file or directory
(Reading database ... 130920 files and directories currently installed.)
Removing xserver-xorg-input-evdev (1:2.10.6-2+b1) ...
Processing triggers for man-db (2.11.2-2) ...
./system_config.sh: line 3: lsb_release: command not found
Hit:1 http://mirrors.ustc.edu.cn/debian bookworm InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  python3-ntp
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  cmake-data librhash0 libuv1
Suggested packages:
  cmake-doc cmake-format elpa-cmake-mode ninja-build
The following NEW packages will be installed:
  cmake cmake-data librhash0 libuv1
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 9097 kB of archives.
After this operation, 36.9 MB of additional disk space will be used.
Get:1 http://mirrors.ustc.edu.cn/debian bookworm/main arm64 librhash0 arm64 1.4.3-3 [131 kB]
Get:2 http://mirrors.ustc.edu.cn/debian bookworm/main arm64 libuv1 arm64 1.44.2-1 [133 kB]
Get:3 http://mirrors.ustc.edu.cn/debian bookworm/main arm64 cmake-data all 3.25.1-1 [2026 kB]
Get:4 http://mirrors.ustc.edu.cn/debian bookworm/main arm64 cmake arm64 3.25.1-1 [6806 kB]
Fetched 9097 kB in 5s (2005 kB/s)
Selecting previously unselected package librhash0:arm64.
(Reading database ... 130910 files and directories currently installed.)
Preparing to unpack .../librhash0_1.4.3-3_arm64.deb ...
Unpacking librhash0:arm64 (1.4.3-3) ...
Selecting previously unselected package libuv1:arm64.
Preparing to unpack .../libuv1_1.44.2-1_arm64.deb ...
Unpacking libuv1:arm64 (1.44.2-1) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../cmake-data_3.25.1-1_all.deb ...
Unpacking cmake-data (3.25.1-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.25.1-1_arm64.deb ...
Unpacking cmake (3.25.1-1) ...
Setting up libuv1:arm64 (1.44.2-1) ...
Setting up librhash0:arm64 (1.4.3-3) ...
Setting up cmake-data (3.25.1-1) ...
Setting up cmake (3.25.1-1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
bad network, copy native fbcp!!!
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/LCD-show/rpi-fbcp/build
[ 50%] Building C object CMakeFiles/fbcp.dir/main.c.o
/home/pi/LCD-show/rpi-fbcp/main.c:9:10: fatal error: bcm_host.h: No such file or directory
    9 | #include <bcm_host.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/fbcp.dir/build.make:76: CMakeFiles/fbcp.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/fbcp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
install: cannot stat 'fbcp': No such file or directory
2024
need to update touch configuration
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  python3-ntp
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  xserver-xorg-input-evdev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 120 kB of archives.
After this operation, 183 kB of additional disk space will be used.
Get:1 http://ftp.cn.debian.org/debian bookworm/main arm64 xserver-xorg-input-evdev arm64 1:2.10.6-2+b1 [120 kB]
Fetched 120 kB in 1s (83.9 kB/s)                
Selecting previously unselected package xserver-xorg-input-evdev.
(Reading database ... 134157 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-input-evdev_1%3a2.10.6-2+b1_arm64.deb ...
Unpacking xserver-xorg-input-evdev (1:2.10.6-2+b1) ...
Setting up xserver-xorg-input-evdev (1:2.10.6-2+b1) ...
Processing triggers for man-db (2.11.2-2) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
reboot now

Broadcast message from root@WalnutPi on pts/6 (Tue 2024-05-21 14:23:56 UTC):

The system will reboot now!


Broadcast message from root@WalnutPi on pts/6 (Tue 2024-05-21 14:23:56 UTC):

The system will reboot now!

root@WalnutPi:/home/pi/LCD-show# 
连接断开

1 个赞

建议使用核桃派官方3.5寸LCD:3.5寸显示屏(电阻触摸) | 核桃派

1 个赞