查看: 3479|回复: 1

[教程] 【转载】树莓派3(Raspberry pi 3)刷kali+3.5寸微雪屏

[复制链接]
  • TA的每日心情
    开心
    2017-12-29 15:29
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]初来乍到

    发表于 2016-7-15 14:06:55 | 显示全部楼层 |阅读模式
    分享到:
    1.点亮微雪3.5寸屏幕
    需要的工具1:https://github.com/swkim01/waveshare-dtoverlays
    1. git clone https://github.com/swkim01/waveshare-dtoverlays.git waveshare-dtoverlays
    2. cd waveshare-dtoverlays
    3. mount /dev/mmcblk0p1 /boot/
    4. cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays/
    复制代码
    编辑/boot/config.txt添加
    1. dtoverlay=waveshare35a
    复制代码
    需要的工具2:https://github.com/adafruit/Adafruit-PITFT-Helper
    1. git clone https://github.com/adafruit/Adafruit-PiTFT-Helper.git
    2. cd Adafruit-PiTFT-Helper
    3. mkdir /etc/kbd
    4. touch /etc/kbd/config
    5. ./adafruit-pitft-helper -t 35r -u /root
    复制代码

    全选y
    reboot,屏幕可以用了。

    2.换源
    编辑/etc/apt/sources.list文件
    对于Kali 2.0,使用ipv4网络添加如下内容

    1. deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
    2. deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
    3. deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free
    复制代码
    1. apt-install update
    复制代码
    3.屏幕校准
    1. apt-get install -y xinput-calibrator
    2. DISPLAY=:0.0 xinput_calibrator
    复制代码
    终端输出一组4个数字的数据,修改到/etc/X11/xorg.conf.d/99-calibration.conf
    如果触摸不正常请把此文件改成如下
    1. Section "InputClass"
    2.         Identifier      "calibration"
    3.         MatchProduct    "ADS7846 Touchscreen"
    4.         Option  "Calibration"   "3946 229 164 3881"
    5.         Option  "SwapAxes"      "1"
    6. EndSection
    复制代码
    4.安装raspi-config
    1. wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160527_all.deb
    2. apt-get install triggerhappy lua5.1  alsa-utils
    3. dpkg -i raspi-config_20160527_all.deb
    复制代码
    来源作者:wangandi
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2018-6-22 11:10
  • 签到天数: 49 天

    连续签到: 1 天

    [LV.5]常住居民I

    发表于 2016-8-7 21:31:01 | 显示全部楼层
    看看                     
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-20 12:30 , Processed in 0.115425 second(s), 16 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.