查看Raspberry的源代码
←
Raspberry
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Login == <source lang=bash> Username: pi Password: raspberry </source> <br> == Image == === Raspberry PI 3B === * Raspbian-4.1 * raspberrypi-jessie-WAZIUP-demo.dmg.zip * 2019-04-08-raspbian-stretch-lite.zip <br> === Raspberry Model A/B === * raspberrypi-jessie-WAZIUP-demo.dmg.zip (HomeAssist) <br> === Notes === ;;Write image into SD card: <source lang=bash> $ sudo dd bs=1m if=2019-04-08-raspbian-stretch-lite.img of=/dev/rdisk2 conv=sync </source> ;; Make SD card into a img file: <source lang=bash> $ dd if=/dev/mmc0 | gzip -9 > sd-all.img.gz $ gzip -dc /tmp/sd-all.img.gz | sudo dd of=/dev/mmc0 </source> Using Qemu to custom system: * Fetch disk image from: http://www.raspberrypi.org/downloads * Get kernel img from: https://github.com/dhruvvyas90/qemu-rpi-kernel <source lang=bash> $ sudo apt-get install qemu $ qemu-system-arm -cpu'?' | grep arm1176 $ $ qemu-system-arm -cpu arm1176 -m 256 -M versatilepb \ -kernel ./kernel-qemu-4.14.79-stretch \ -dtb ./versatile-pb.dtb \ -hda ./2018-11-13-raspbian-stretch-lite.img \ -append 'root=/dev/sda2 panic=1 init=/bin/bash' \ -no-reboot </source> <pre> -net nic \ -net user,hostfwd=tcp::5022-:22 \ </pre> <br><br> == Pinout == === Model A and B === [[文件:Rasp-gpio-pins-1.jpg | 600px]] [[文件:Raspberry-1-gpio-led.png]] [[文件:Rasp-gpio-pins-2.png | 600px]] [[文件:Rasp-gpio-pins-3.png | 600px]] <br><br> === Models A+, B+, PI 2 B, PI 3 B === [[文件:Gpio-pins-pi2.jpg | 900px]] [[文件:Gpio-numbers-pi2.png | 900px]] [[文件:Physical-pin-numbers.png | 900px]] [[文件:Raspberry-pi-pinout.png | 900px]] <br><br> == Serial == === Enable === <pre> /boot/cmdline.txt "console=serial0,115200" /boot/config.txt enable_uart=1 </pre> <br> === Disable === Remove "console=serial0,115200" from /boot/cmdline.txt If you want to use the uart as IO device, add "enable_uart=1" into /boot/config.txt Or you can do it by run "sudo raspi-config" , enter "Advanced Options" and then enter "Serial" .... <br> === Connections === * RASP_TXD --- HEX_TX * RASP_RXD --- HEX_RX <br> == GPIO Control == * https://github.com/joan2937/pigpio * raspi-gpio * RAW: http://www.pieter-jan.com/node/15 * https://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/ <br><br> == Timezone == <pre> $ cat /etc/timezone Etc/UTC $ sudo echo "Asia/Shanghai" > /etc/timezone </pre> add following into /etc/profile: <pre> TZ=Asia/Shanghai export TZ </pre> $ sudo reboot <br><br> == Static IP == add following into /etc/dhcpcd.conf: <pre> interface eth0 static ip_address=192.168.1.45/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 </pre> <br><br> == ESP8266/ESP8089 == [[文件:Raspi-esp8089.png]] Note that the CH_PD signal is connected to the ID_SD signal. This must be mapped as a GPIO (GPIO0) and switched to an output and driven low then switched to an input again before the driver is loaded in order to reset the module. This will be added in the near future in the driver. https://github.com/al177/esp8089 https://hackaday.io/project/8678/instructions?page=1 <br><br> == Reference == * [[Raspberry精要]] * [https://blog.csdn.net/talkxin/article/details/81264605 QEMU扩展树莓派镜像增加剩余使用空间] * [https://blog.csdn.net/talkxin/article/details/50456282 树莓派镜像img裁剪瘦身] * [https://blog.csdn.net/talkxin/article/details/50464313 使用linux裁剪树莓派完整sd卡镜像] * [https://blog.csdn.net/robertsong2004/article/details/38532069 用QEMU模拟树莓派的方法] <br><br><br><br><br><br> <br><br><br><br><br><br>
返回到
Raspberry
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面