精华内容
下载资源
问答
  • 树莓派zero w 图像传输

    千次阅读 热门讨论 2020-02-26 16:09:01
    树莓派 zero w Raspbian Buster Lite(系统) RPi-Cam-Web-Interface(图像传输软件) Mobaxterm(串口访问软件) 硬件连接 软件安装过程中所有命令使用串口输入(使用串口之前,先使能树莓派串口) Mobaxterm ...

    安装环境及所需软件

    1. 树莓派 zero w
    2. Raspbian Buster Lite(系统)
    3. RPi-Cam-Web-Interface(图像传输软件)
    4. Mobaxterm(串口访问软件)

    硬件连接

    在这里插入图片描述
    软件安装过程中所有命令使用串口输入(使用串口之前,先使能树莓派串口
    在这里插入图片描述

    Mobaxterm 使用

    1. New session
      在这里插入图片描述
    2. 选择Serial,波特率115200,建立连接在这里插入图片描述
    3. 输入用户名和密码
    pi
    raspberry
    

    在这里插入图片描述

    软件安装流程

    Step 1: 安装系统到你的树莓派
    Step 2: 将相机连接到你的树莓派
    Step 3: 使能树莓派的相机
    Step 4: 使用以下命令更新你的树莓派(可以换成国内源,换源时要注意与系统版本对应,这里是Buster)

    #国内源
    deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
    deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
    
    sudo apt-get update
    sudo apt-get dist-upgrade
    

    Step 4:

    运行以下命令安装Git

    sudo apt-get install git
    

    运行以下命令,下载程序到树莓派并安装

    git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git
    cd RPi_Cam_Web_Interface
    ./install.sh
    

    执行安装命令会,安装相关支持软件,如果未安装相关支持可以考虑,软件运行环境未成功安装,可能是软件源问题

    运行安装指令后,会出现选项框,最好按照下图配置
    在这里插入图片描述

    运行效果

    访问你的树莓派IP(可以将树莓派设置成固定ip,我的设置时192.168.0.1),如果不显示此页面考虑,用于程序相关支持未成功安装
    在这里插入图片描述
    如果想要单独显示摄像头视频可以访问

    http://树莓派ip/min.php
    

    在这里插入图片描述

    相关网站

    1. 镜像站
    2. RPi-Cam-Web-Interface
    展开全文
  • #树莓派 zero w 5.4.51 系统降级方法,恢复到 4.19 内核 本文介绍了树莓派 zero w 系统降级方法,理论上可以恢复到任意版本内核。文章介绍了起因,解决过程及结果,您也可以直接跳到文末看结论。 ##缘起 尝试安装...

    树莓派 zero w 5.4.51 系统降级方法,恢复到 4.19 内核

    本文介绍了树莓派 zero w 系统降级方法,理论上可以恢复到任意版本内核。文章介绍了起因,解决过程及结果,您也可以直接跳到文末看结论。

    缘起

    尝试安装某个项目M时,查看使用说明,支持 kernel 4.9, 4.14, 4.19,依稀记得树莓派 zero w 的内核是 4.19 ,所以依照手册步骤,执行

    apt-get update && apt-get upgrade

    pi@rpi0:~ $ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following package was automatically installed and is no longer required:
      rpi-eeprom-images
    Use 'sudo apt autoremove' to remove it.
    The following packages will be upgraded:
      arandr bluez ca-certificates dbus dbus-user-session dbus-x11 ffmpeg firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree
      firmware-realtek glib-networking glib-networking-common glib-networking-services imagemagick imagemagick-6-common imagemagick-6.q16 libavcodec-dev
      libavcodec58 libavdevice58 libavfilter7 libavformat-dev libavformat58 libavresample-dev libavresample4 libavutil-dev libavutil56 libbluetooth3
      libdbus-1-3 libexif-dev libexif-doc libexif12 libexiv2-14 libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libgnutls30
      libinput-bin libinput10 libjavascriptcoregtk-4.0-18 libjson-c3 liblirc-client0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
      libmariadb3 libnode-dev libnode64 libnss3 libopenmpt-modplug1 libopenmpt0 libpostproc55 libpython3.7 libpython3.7-dev libpython3.7-minimal
      libpython3.7-stdlib libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libruby2.5 libswresample-dev libswresample3 libswscale-dev
      libswscale5 libunwind8 libvlc-bin libvlc5 libvlccore9 libwebkit2gtk-4.0-37 lxpanel lxpanel-data lxplug-bluetooth lxplug-network lxplug-ptbatt
      lxplug-volume mariadb-common nfs-common node-minimist nodejs nodejs-doc openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless
      pcmanfm pi-bluetooth pi-greeter pi-package pi-package-data pi-package-session piclone pipanel piwiz pprompt python-pil python3-pil python3-pil.imagetk
      python3.7 python3.7-dev python3.7-minimal python3.7-venv raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspberrypi-ui-mods raspi-config
      realvnc-vnc-server realvnc-vnc-viewer rp-bookshelf rp-prefapps rpi-chromium-mods rpi-eeprom rpi-eeprom-images ruby-kramdown ruby2.5 scratch2 vlc vlc-bin
      vlc-data vlc-l10n vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output vlc-plugin-video-splitter
      vlc-plugin-visualization xserver-common xserver-xorg-core
    135 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 567 MB of archives.
    After this operation, 7,294 kB disk space will be freed.
    Do you want to continue? [Y/n] 
    

    粗略看了一下,没发现什么异常,就输入了 “Y”;更新完毕后,查看了日志,只是 java 报了一个错,检索后得知 armv6 不支持 openjdk 11,降级到 8 就正常了。

    重启后,似乎一起正常

    Linux rpi0 5.4.51+ #1333 Mon Aug 10 16:38:02 BST 2020 armv6l
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    
    

    然后放心的去执行后续步骤… N 步之后,突然出现编译错误,仔细核对所有细节后,发现树莓派的 kernel 被升级到 5.4.51+, 于是悲剧开始了…

    系统降级

    要使用项目M,只能将内核降级到 4.19 才可以;
    一个方案是用旧版的系统镜像重新写入,但这需要重新配置环境,安装各种依赖,过程繁琐,耗时不可估计。
    另一个方案是设法只降级内核及固件驱动,我决定采用这个方案。

    一番搜索后,找到了 rpi-update 指令,然后又翻到了最后一个 4.19 内核 4.19.118+ 对应到 hash 码,目测很简单,估计分分钟就能解决,窃喜。(打脸开始…)

    round 1 , 执行降级指令

    $sudo rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2
     *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
     *** Performing self-update
     !!! Failed to download update for rpi-update!
     !!! Make sure you have ca-certificates installed and that the time is set correctly
    

    看起来证书或者时间有问题,于是更新证书,更新时间

    sudo apt-get install ca-certificates
    sudo ntpdate -u ntp.ubuntu.com
    

    round 2 , 执行降级指令

    $ sudo rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2
     *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
     *** Performing self-update
     *** Relaunching after update
     *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
     *** We're running for the first time
     *** Backing up files (this will take a few minutes)
     *** Backing up firmware
     *** Backing up modules 5.4.51+
     *** Downloading specific firmware revision (this will take a few minutes)
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   168  100   168    0     0     26      0  0:00:06  0:00:06 --:--:--    41
    100  233k    0  233k    0     0   1321      0 --:--:--  0:03:00 --:--:--     0^C
    

    后容易备份完成,居然下载速度 xxx bytes/s ,这要天荒地老啊!果断终止,寻找替代方法。

    似乎可以用 HTTPS_PROXY 设置代理。

    round 3 , 执行降级指令

    $ sudo rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2
     *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
     *** Performing self-update
     !!! Failed to download update for rpi-update!
     !!! Make sure you have ca-certificates installed and that the time is set correctly
    

    添加代理后,就一直是这个错误,无论怎么同步时间都无效,也许代理服务器时间不准?
    于是尝试在树莓派 zero w 上直接安装代理服务。

    。。。省略一万字,成功安装代理后,问题依旧,仍然报同样的错误!

    再次检索文献后,得知可以手动下载固件,然后再更新,于是

    round 4, 手动下载固件

    wget https://github.com/Hexxeh/rpi-firmware/archive/e1050e94821a70b2e4c72b318d6c6c968552e9a2.tar.gz
    
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [application/x-gzip]
    Saving to: ‘e1050e94821a70b2e4c72b318d6c6c968552e9a2.tar.gz’
    
                                    e1050e     [                                                                        <=>  ] 497.05K  12.2KB/s               ^C
    
    

    速度 12+k ! ,中断,使用代理,速度 300+K,然后开始掉速,慢慢靠近 30+k。

    尝试用 folx 下载,不支持代理,极慢。
    尝试用 free download manager,可以支持代理,然而那个源不支持长度反馈,不支持断点续传。
    在这里插入图片描述
    每次都如上图这种,忽然就断了,也许是下载源的 session 超时了。

    然后发现 uget 似乎支持断点续传,于是尝试编译之,

    然后新的噩梦开始

    ld: library not found for -lgpgme
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [libwget.la] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    
    

    尝试直接登录代理服务器,下载资源后,在scp 下来,然而

    ssh abc
    def@123.456.789.000: Permission denied (publickey).
    

    莫名又登录不了!
    又回去折腾 uget 编译,
    先编译依赖项 gettext-0.21.tar.xz
    安装各种依赖,

    brew install gpgme intltool pkg-config gtk+3 libnotify gstreamer openssl
    

    再编译

    No package 'libcrypto' found
    
    $ LIBCRYPTO_CFLAGS=-I/usr/local/opt/openssl/include LIBCRYPTO_LIBS=-L/usr/local/opt/openssl/lib ./configure
    

    终于编译好了,结果运行时

    GLib-GObject-WARNING **: : gsignal.c:2523: signal 'activate' is invalid for instance '0x342fs42f3' of type '(null)'
    Segmentation fault: 11
    

    无奈,又试图用尝试用 free download manager下载,常常在11xM时下载中断,
    已经凌晨了,简直想哭,100+M的资源…我好难!

    终于再某次重试后,下载完成了,下载完成了,下载它完成了!
    2020 年,200M 的电信宽带,在夜深人静的时候,成功下载完成 100+M 资源!!!

    round 5, 执行降级指令

    将资源复制到树莓派里,切换 root用户,解压后,移动到 .rpi-firmware

    root@rpi0:~# UPDATE_SELF=0 SKIP_DOWNLOAD=1 rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2
     *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
    
     *** We're running for the first time
     *** Backing up files (this will take a few minutes)
     *** Remove old firmware backup
     *** Backing up firmware
     *** Remove old modules backup
     *** Backing up modules 5.4.51+
     *** Updating firmware
     *** Updating kernel modules
     *** depmod 4.19.118+
     *** depmod 4.19.118-v7l+
     *** depmod 4.19.118-v8+
     *** depmod 4.19.118-v7+
     *** Updating VideoCore libraries
     *** Using HardFP libraries
     *** Updating SDK
     *** Running ldconfig
     *** Storing current firmware revision
     *** Deleting downloaded files
     *** Syncing changes to disk
     *** If no errors appeared, your firmware was successfully updated to e1050e94821a70b2e4c72b318d6c6c968552e9a2
     *** A reboot is needed to activate the new firmware
    

    重启后,

    ssh rpi0-1
    Linux rpi0 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Mon Aug 24 03:03:04 2020
    

    从下午 4 点多到凌晨 3 点,终于成功降级估计到 4.19。
    我都忘记我为啥要降级了…
    我也不记得这是多少次和缥缈的资源做挣扎了,写个blog纪念一下被它撞碎的11个小时。

    也提醒各位不要轻易执行 apt-get upgrade。
    资源已上传 csdn 这里下载,为各位节省宝贵的生命。

    展开全文
  • 树莓派Zero w 4.19 内核头文件安装方法 本文介绍了树莓派 zero w 系统安装内核头文件的方法,理论上可以安装任意版本内核。文章介绍了起因,解决过程及结果,您也可以直接跳到文末看结论。 缘起 话说我为了安装M项目...

    树莓派Zero w 4.19 内核头文件安装方法

    本文介绍了树莓派 zero w 系统安装内核头文件的方法,理论上可以安装任意版本内核。文章介绍了起因,解决过程及结果,您也可以直接跳到文末看结论。

    缘起

    话说我为了安装M项目,将树莓派 zero w 内核手动降级到 4.19.118 版本,兴高采烈的去编译 M 项目,结果到最后依然出错,抱怨找不到头文件。

      APPLYING FLASHPATCHES gen/flashpatches.mk => brcmfmac43430-sdio.bin (details: log/flashpatches.log)
      APPLYING PATCHES gen/nexmon.mk => brcmfmac43430-sdio.bin (details: log/patches.log)
      BUILDING DRIVER for kernel 4.19 brcmfmac_4.19.y-nexmon/brcmfmac.ko (details: log/driver.log)
    make[1]: *** /lib/modules/4.19.118+/build: No such file or directory.  Stop.
    make: *** [Makefile:46: brcmfmac.ko] Error 2
    
    

    手动检查头文件,果然不存在

    $ ls /lib/modules/4.19.118+/build
    ls: cannot access '/lib/modules/4.19.118+/build': No such file or directory
    

    检查已安装的头文件,依然是 5.4.51-v7l

    $ dpkg -S linux-headers
    raspberrypi-kernel-headers: /usr/src/linux-headers-5.4.51+/arch/arm/mach-ixp4xx/Makefile
    raspberrypi-kernel-headers: /usr/src/linux-headers-5.4.51-v7l+/drivers/phy/lantiq/Kconfig
    raspberrypi-kernel-headers: /usr/src/linux-headers-5.4.51+/arch/x86/math-emu/Makefile
    ...
    

    我只好又执行一遍安装指令,失败

    sudo apt-get install --reinstall raspberrypi-kernel-headers
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
    Need to get 26.2 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster/main armhf raspberrypi-kernel-headers armhf 1.20200811-1 [26.2 MB]
    Fetched 26.2 MB in 15s (1,704 kB/s)                                                                                                                        
    (Reading database ... 213822 files and directories currently installed.)
    Preparing to unpack .../raspberrypi-kernel-headers_1.20200811-1_armhf.deb ...
    Unpacking raspberrypi-kernel-headers (1.20200811-1) over (1.20200811-1) ...
    Setting up raspberrypi-kernel-headers (1.20200811-1) ...
    W: Operation was interrupted before it could finish
    
    

    尝试明确指明头文件版本,未发现安装包

    $ sudo apt-get install linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package linux-headers-4.19.118
    E: Couldn't find any package by glob 'linux-headers-4.19.118'
    E: Couldn't find any package by regex 'linux-headers-4.19.118'
    

    全网搜索,终于找到手动安装内核头文件的方法,使用 rpi-source

    $ sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/local/bin/rpi-source && sudo chmod +x /usr/local/bin/rpi-source && /usr/local/bin/rpi-source -q --tag-update
    
     *** SoC: BCM2835
    ERROR:
    bc is NOT installed. Needed by 'make modules_prepare'. On Raspbian, run 'sudo apt-get install bc' to install it.
    
    Help: https://github.com/notro/rpi-source/wiki
    

    看起来缺少 bc 包,安装之

    $ sudo apt-get install bc
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      bc
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 101 kB of archives.
    After this operation, 220 kB of additional disk space will be used.
    Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf bc armhf 1.07.1-2 [101 kB]
    Fetched 101 kB in 0s (228 kB/s)
    Selecting previously unselected package bc.
    (Reading database ... 205567 files and directories currently installed.)
    Preparing to unpack .../archives/bc_1.07.1-2_armhf.deb ...
    Unpacking bc (1.07.1-2) ...
    Setting up bc (1.07.1-2) ...
    Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
    Processing triggers for doc-base (0.10.8) ...
    Processing 1 added doc-base file...
    Processing triggers for man-db (2.8.5-2) ...
    

    再次尝试安装头文件

    $ rpi-source 
    
     *** SoC: BCM2835
    
     *** rpi-update: https://github.com/Hexxeh/rpi-firmware
    
     *** Firmware revision: e1050e94821a70b2e4c72b318d6c6c968552e9a2
    
     *** Linux source commit: fe2c7bf4cad4641dfb6f12712755515ab15815ca
    
     *** Download kernel source
     --2020-08-25 00:48:40--  https://github.com/raspberrypi/linux/archive/fe2c7bf4cad4641dfb6f12712755515ab15815ca.tar.gz
     Length: unspecified [application/x-gzip]
    Saving to: ‘/home/pi/linux-fe2c7bf4cad4641dfb6f12712755515ab15815ca.tar.gz’
    
    b6f12712755515ab15815ca.tar.gz             [                                         <=>                                 ]  27.41M  4.70KB/s               
    

    噩梦重现,又是龟速下载未知大小的文件,果断终止;以我的经验,遇到这种情况千万不小心存幻想去慢慢下载,失败概率 99.99%。

    查阅资料得知,rpi-source 支持手动下载安装,于是设法提前下载好资源包,需要的朋友可以从这里下载,树莓派 zero w 4.19.118 内核头文件,下载后,存放在用户家目录,再次执行

    $ rpi-source 
    
     *** SoC: BCM2835
    
     *** rpi-update: https://github.com/Hexxeh/rpi-firmware
    
     *** Firmware revision: e1050e94821a70b2e4c72b318d6c6c968552e9a2
    
     *** Linux source commit: fe2c7bf4cad4641dfb6f12712755515ab15815ca
    
     *** Download kernel source: Already downloaded /home/pi/linux-fe2c7bf4cad4641dfb6f12712755515ab15815ca.tar.gz
    
     *** Unpack kernel source
    ...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
     *** Add '+' to kernel release string
    
     *** Create symlink: /home/pi/linux
    
     *** Create /lib/modules/<ver>/{build,source} symlinks
    
     *** .config
    
     *** Module.symvers
    
     *** make modules_prepare
      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/kconfig/conf.o
      YACC    scripts/kconfig/zconf.tab.c
      LEX     scripts/kconfig/zconf.lex.c
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    scripts/kconfig/conf  --syncconfig Kconfig
    *
    * Restart config...
    *
    *
    * Kernel hacking
    *
    Magic SysRq key (MAGIC_SYSRQ) [Y/?] y
      Enable magic SysRq key functions by default (MAGIC_SYSRQ_DEFAULT_ENABLE) [0x1] 0x1
      Enable magic SysRq key over serial (MAGIC_SYSRQ_SERIAL) [Y/n/?] y
    Kernel debugging (DEBUG_KERNEL) [Y/?] y
    Code coverage for fuzzing (KCOV) [N/y/?] (NEW) 
    

    可以看到顺利开始安装对应版本的头文件,在编译 modules_prepare 时,会卡住,这里接受默认值,回车即可。

    Debug shared IRQ handlers (DEBUG_SHIRQ) [N/y/?] n
    Panic on Oops (PANIC_ON_OOPS) [N/y/?] n
    panic timeout (PANIC_TIMEOUT) [0] 0
    Collect scheduler debugging info (SCHED_DEBUG) [Y/?] y
    Collect scheduler statistics (SCHEDSTATS) [Y/?] y
    Detect stack corruption on calls to schedule() (SCHED_STACK_END_CHECK) [N/y/?] n
    Enable extra timekeeping sanity checking (DEBUG_TIMEKEEPING) [N/y/?] n
    Stack backtrace support (STACKTRACE) [Y/?] y
    Warn for all uses of unseeded randomness (WARN_ALL_UNSEEDED_RANDOM) [N/y/?] n
    kobject debugging (DEBUG_KOBJECT) [N/y/?] n
    Verbose BUG() reporting (adds 70K) (DEBUG_BUGVERBOSE) [Y/n/?] y
    Debug linked list manipulation (DEBUG_LIST) [N/y/?] n
    Debug priority linked list manipulation (DEBUG_PI_LIST) [N/y/?] n
    Debug SG table operations (DEBUG_SG) [N/y/?] n
    Debug notifier call chains (DEBUG_NOTIFIERS) [N/y/?] n
    Debug credential management (DEBUG_CREDENTIALS) [N/y/?] n
    Force round-robin CPU selection for unbound work items (DEBUG_WQ_FORCE_RR_CPU) [N/y/?] n
    Force extended block device numbers and spread them (DEBUG_BLOCK_EXT_DEVT) [N/y/?] n
    Notifier error injection (NOTIFIER_ERROR_INJECTION) [N/m/y/?] n
    Fault-injection framework (FAULT_INJECTION) [N/y/?] n
    Latency measuring infrastructure (LATENCYTOP) [Y/n/?] y
    Enable debugging of DMA-API usage (DMA_API_DEBUG) [N/y/?] n
    Memtest (MEMTEST) [N/y/?] n
    Trigger a BUG when data corruption is detected (BUG_ON_DATA_CORRUPTION) [N/y/?] n
    Undefined behaviour sanity checker (UBSAN) [N/y/?] n
    Filter access to /dev/mem (STRICT_DEVMEM) [N/y/?] n
    Export kernel pagetable layout to userspace via debugfs (ARM_PTDUMP_DEBUGFS) [N/y/?] n
    Warn on W+X mappings at boot (DEBUG_WX) [N/y/?] n
    Enable stack unwinding support (EXPERIMENTAL) (ARM_UNWIND) [Y/n/?] y
    Verbose user fault messages (DEBUG_USER) [N/y/?] n
    Kernel low-level debugging functions (read help!) (DEBUG_LL) [N/y/?] n
    Kprobes test module (ARM_KPROBES_TEST) [N/m/y/?] n
    Write the current PID to the CONTEXTIDR register (PID_IN_CONTEXTIDR) [N/y/?] n
      SYSHDR  arch/arm/include/generated/uapi/asm/unistd-common.h
      SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
      SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
      UPD     include/config/kernel.release
      WRAP    arch/arm/include/generated/uapi/asm/bitsperlong.h
      WRAP    arch/arm/include/generated/uapi/asm/bpf_perf_event.h
      WRAP    arch/arm/include/generated/uapi/asm/errno.h
      WRAP    arch/arm/include/generated/uapi/asm/ioctl.h
      WRAP    arch/arm/include/generated/uapi/asm/ipcbuf.h
      WRAP    arch/arm/include/generated/uapi/asm/msgbuf.h
      WRAP    arch/arm/include/generated/uapi/asm/param.h
      WRAP    arch/arm/include/generated/uapi/asm/poll.h
      WRAP    arch/arm/include/generated/uapi/asm/resource.h
      WRAP    arch/arm/include/generated/uapi/asm/sembuf.h
      WRAP    arch/arm/include/generated/uapi/asm/shmbuf.h
      WRAP    arch/arm/include/generated/uapi/asm/siginfo.h
      WRAP    arch/arm/include/generated/uapi/asm/socket.h
      WRAP    arch/arm/include/generated/uapi/asm/sockios.h
      WRAP    arch/arm/include/generated/uapi/asm/termbits.h
      WRAP    arch/arm/include/generated/uapi/asm/termios.h
      WRAP    arch/arm/include/generated/asm/compat.h
      WRAP    arch/arm/include/generated/asm/current.h
      WRAP    arch/arm/include/generated/asm/early_ioremap.h
      WRAP    arch/arm/include/generated/asm/emergency-restart.h
      WRAP    arch/arm/include/generated/asm/exec.h
      WRAP    arch/arm/include/generated/asm/extable.h
      WRAP    arch/arm/include/generated/asm/irq_regs.h
      WRAP    arch/arm/include/generated/asm/kdebug.h
      WRAP    arch/arm/include/generated/asm/local.h
      WRAP    arch/arm/include/generated/asm/local64.h
      WRAP    arch/arm/include/generated/asm/mm-arch-hooks.h
      WRAP    arch/arm/include/generated/asm/msi.h
      WRAP    arch/arm/include/generated/asm/parport.h
      WRAP    arch/arm/include/generated/asm/preempt.h
      WRAP    arch/arm/include/generated/asm/rwsem.h
      WRAP    arch/arm/include/generated/asm/seccomp.h
      WRAP    arch/arm/include/generated/asm/segment.h
      WRAP    arch/arm/include/generated/asm/serial.h
      WRAP    arch/arm/include/generated/asm/simd.h
      WRAP    arch/arm/include/generated/asm/sizes.h
      WRAP    arch/arm/include/generated/asm/timex.h
      WRAP    arch/arm/include/generated/asm/trace_clock.h
      UPD     include/generated/uapi/linux/version.h
      UPD     include/generated/utsrelease.h
      SYSNR   arch/arm/include/generated/asm/unistd-nr.h
      GEN     arch/arm/include/generated/asm/mach-types.h
      SYSTBL  arch/arm/include/generated/calls-oabi.S
      SYSTBL  arch/arm/include/generated/calls-eabi.S
      CC      kernel/bounds.s
      UPD     include/generated/bounds.h
      UPD     include/generated/timeconst.h
      CC      arch/arm/kernel/asm-offsets.s
      UPD     include/generated/asm-offsets.h
      CALL    scripts/checksyscalls.sh
      HOSTCC  scripts/dtc/dtc.o
      HOSTCC  scripts/dtc/flattree.o
      HOSTCC  scripts/dtc/fstree.o
      HOSTCC  scripts/dtc/data.o
      HOSTCC  scripts/dtc/livetree.o
      HOSTCC  scripts/dtc/treesource.o
      HOSTCC  scripts/dtc/srcpos.o
      HOSTCC  scripts/dtc/checks.o
      HOSTCC  scripts/dtc/util.o
      LEX     scripts/dtc/dtc-lexer.lex.c
      YACC    scripts/dtc/dtc-parser.tab.h
      HOSTCC  scripts/dtc/dtc-lexer.lex.o
      YACC    scripts/dtc/dtc-parser.tab.c
      HOSTCC  scripts/dtc/dtc-parser.tab.o
      HOSTLD  scripts/dtc/dtc
      HOSTCC  scripts/genksyms/genksyms.o
      YACC    scripts/genksyms/parse.tab.c
      HOSTCC  scripts/genksyms/parse.tab.o
      LEX     scripts/genksyms/lex.lex.c
      YACC    scripts/genksyms/parse.tab.h
      HOSTCC  scripts/genksyms/lex.lex.o
      HOSTLD  scripts/genksyms/genksyms
      CC      scripts/mod/empty.o
      HOSTCC  scripts/mod/mk_elfconfig
      MKELF   scripts/mod/elfconfig.h
      HOSTCC  scripts/mod/modpost.o
      CC      scripts/mod/devicetable-offsets.s
      UPD     scripts/mod/devicetable-offsets.h
      HOSTCC  scripts/mod/file2alias.o
      HOSTCC  scripts/mod/sumversion.o
      HOSTLD  scripts/mod/modpost
      HOSTCC  scripts/bin2c
      HOSTCC  scripts/kallsyms
      HOSTCC  scripts/pnmtologo
      HOSTCC  scripts/conmakehash
      HOSTCC  scripts/recordmcount
      HOSTCC  scripts/sortextable
      HOSTCC  scripts/asn1_compiler
      HOSTCC  scripts/extract-cert
    
     *** Help: https://github.com/notro/rpi-source/wiki
    

    安装成功后,可以确认一下,build目录存在

    $ ls /lib/modules/4.19.118+/
    build/               modules.alias        modules.builtin      modules.dep          modules.devname      modules.softdep      modules.symbols.bin
    kernel/              modules.alias.bin    modules.builtin.bin  modules.dep.bin      modules.order        modules.symbols      source/
    

    然后就可以愉快的编译 M 项目了。

    展开全文
  • 树莓派ZeroW-使用Etcher安装Raspbian系统

    千次阅读 2019-04-23 21:52:56
    WIn7笔记本电脑,读卡器,树莓派ZeroW,16G卡。 1. 安装Etcher https://www.balena.io/etcher/ 我的网络太慢了,所以在百度里面找到国内的一个软件下载网站,下载到版本是1.5.5。官网是1.5.29。无所谓了…… 2. ...

    0. 环境:

    WIn7笔记本电脑,读卡器,树莓派ZeroW,16G卡。

    1. 安装Etcher

    https://www.balena.io/etcher/

    我的网络太慢了,所以在百度里面找到国内的一个软件下载网站,下载到版本是1.5.5。官网是1.5.29。无所谓了……

    2. 下载树莓派镜像

    https://www.raspberrypi.org/downloads/raspbian/

    选择Raspbian Stretch with desktop and recommended software。1.9G的压缩包,解压缩后是5.03GB的IMG文件。

    3. 烧录镜像到TF卡

    3.1 选择镜像

    3.2 选择U盘

    3.3 点Flash!

     

    Tips: 假如事先TF卡刷了系统,需要使用SDCardFormatter将TF卡还原至空卡。

    https://www.sdcard.org/downloads/formatter/eula_windows/index.html

    4 开启ssh

    将SD卡连接到电脑上并打开,直接新建“SSH”文件(无后缀)即可

    5 开启串口调试

    用读卡器读取boot里面,修改config.txt,最后一行添加enable_uart=1

     

     

    参考资料:

    1 树莓派3b+安装Raspbian系统,https://www.jianshu.com/p/467335f07e05

    2  Etcher – 将「系统镜像文件」快速制作为 USB/SD 启动盘[Win/macOS/Linux],https://www.appinn.com/etcher-burn-better/

    展开全文
  • 树莓派zero w上手记录

    2021-01-25 18:07:51
    本意是想买个树莓派尝试...raspberrypi zero w usb数据线 sd卡 流程 1.先是写入系统程序 参照了https://blog.CSDN.net/px_528/article/details/71725251 下载lite镜像文件…用win32diskimanager烧录到sd卡…在boot分区
  • 树莓派zero-w 搭建网页服务器1. 安装 PHP 及 Nginx2. 安装 MySQL 和 phpMyAdmin2.1. 修改数据库密码3. 安装 FTP(vsftpd)3.1. 创建用户数据库3.2. 配置 PAM 文件3.3. 创建虚拟帐号对应的系统用户3.4. 建立配置文件...
  • 树莓派zero W断线自动重连WiFi

    千次阅读 2020-08-05 09:42:59
    前言 树莓派系统版本 Raspbian 10 buster ...在树莓派zero W WiFi断网后,不会自动重连,手动使用 sudo ifdown wlan0 ;sudo ifup wlan0 (显示错误信息unknown interface wlan0,在这个系统版本不能使用)
  • 树莓派Zero W初始化配置

    千次阅读 2018-08-03 17:21:20
    树莓派系统下载地址 2、使用SD Card Formatter格式化内存卡 3、使用Etcher烧写系统 中途跳出格式化窗口,直接X掉 4、在boot分区新建ssh文件,以开启ssh。 空文件即可 5、新建wpa_supplicant.conf文件...
  • 树莓派ZeroW-网络配置

    千次阅读 2019-04-23 22:16:34
    已经把树莓派系统raspbian烧录到TF卡里面,树莓派开启了uart调试。(读卡器修改config.txt,里面最后一行添加enable_uart=1)。 但是树莓派需要连接上wifi。 1. 使用raspi-config 串口界面中,通过默认的用户名pi...
  • 树莓派zero w (raspberrypi 0 w)tensorflow库的艰难安装最最最想说的 写在前面raspberrypi官方系统的安装安装tensorflow库的流程赶紧测试一下tensorflow这是我安装tensorflow过程中遇到的奇葩报错 最最最想说的 写...
  • 1. 通过修改树莓派系统的配置 ,打开usb端口模拟网卡的功能.然后可以通过这个虚拟的网口,用ssh方式或者vnc方式控制树莓派.对树莓派0这种端口很少的设备非常管用. 2.是usb端口,不是usb供电口 3.把镜像烧录到tf卡上...
  • 2018年买的树莓派zero w ,安装的系统是respberry. 因毕设需要用,到现在才开始弄。 之前已经配置过。还自己设置了密码(自己挖坑啊,两年之后,我真心记不得了)。 我差点就想重新安装系统,配置文件了。不过最终...
  • 本文是树莓派爱好者投稿文章...一、给zero w写好一个官方系统,然后连接上无线网络,具体联网方式可以参考树莓派爱好者基地新手教程中的连接wifi教程 二、修改配置文件 sudo nano /boot/config.txt 在文件最后加入 dt
  • 树莓派Zero制作U盘

    2020-05-14 22:16:41
    1.首先需要一个ZERO-W的USB扩展模块 如下图 2.刷好原版系统 执行命令添加一行(该模式也可以制作USB无线网卡,这里不做介绍) echo “dtoverlay=dwc2” | sudo tee -a /boot/config.txt 3.启用模块 执行命令添加一...
  • 本文介绍树莓派ZeroW在没有OTG转接线的情况下(无法连接键盘)用Win10电脑连接配置的方法。 2. 方法 2.1 使用官方工具/Etcher在TF卡中刷入Raspian系统 这里我选择的是无GUI精简版系统 2.2 修改系统配置 ...
  • 一、配置rc.local文件设置树莓派开机启动项 编辑/etc/rc.local文件 sudo vi /etc/rc.local 在文件中的 exit 0 之前添加需要执行的程序,注意要使用绝对路径,如下 python python /home/pi/example.py &...

空空如也

空空如也

1 2 3 4 5
收藏数 87
精华内容 34
关键字:

w系统树莓派zero