Brillo: 将系统移植到Raspberry Pi 2B(树莓派)上

官方编译Raspberry Pi 2B的方法,相关文档:

https://github.com/raspberrypi/documentation/blob/master/linux/kernel/building.md

Raspberry Pi 2 Default Build Configuration

cd linux
KERNEL=kernel7
make bcm2709_defconfig

Build and install the kernel, modules and Device Tree blobs; this step takes a long time…

make zImage modules dtbs
sudo make modules_install
sudo cp arch/arm/boot/dts/*.dtb /boot/
sudo cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/
sudo scripts/mkknlimg arch/arm/boot/zImage /boot/$KERNEL.img

Note: On a Raspberry Pi 2, adding -j4 (make -j4 zImage modules dtbs) splits the work between all four cores, speeding up compilation significantly.

 

《Brillo: 将系统移植到Raspberry Pi 2B(树莓派)上》有9个想法

  1. 不错的想法,在raspberry pi 2b上做开发,硬件相当便宜(相对于google默认支持的开发板,intel edison以及qualcomm dragon board)

        1. 我在github.com/yudatun这里创建了一个orgnization, 用于brillo的深度定制,目前我已经做了不少工作了,我觉得我们可以把彼此好的想法融合在一起,方便留个邮箱交流下么?

  2. 不好意思,
    我用您的步驟方法,
    畫面和輸出都與您的相同,
    不過在用avahi-daemon看輸出時,
    完全沒有反應,
    只能看到自己,
    我用HDMI接上螢幕,
    螢幕也是黑的,
    不知道可以提供一些建議嗎??
    感恩感恩~~
    ——————————————————————————————————————————-
    $ avahi-browse -a -r
    + eth0 IPv6 my-ubuntu [4c:72:b9:c8:32:a4] Workstation local
    + eth0 IPv4 my-ubuntu [4c:72:b9:c8:32:a4] Workstation local
    = eth0 IPv6 my-ubuntu [4c:72:b9:c8:32:a4] Workstation local
    hostname = [my-ubuntu.local]
    address = [fe80::4e72:b9ff:fec8:32a4]
    port = [9]
    txt = []
    = eth0 IPv4 my-ubuntu [4c:72:b9:c8:32:a4] Workstation local
    hostname = [my-ubuntu.local]
    address = [192.168.157.2]
    port = [9]
    txt = []

    1. 目前存在的问题是有时候有线网络可能会分配不到IPv4的IP地址,也就无法通过avahi-browse查看。(也有可以是有线网络使用的是固定的IP地址)
      你可以通过串口查看kernel log及执行shell命令查看问题出在哪里。
      你可以查看我这篇文章https://www.brobwind.com/archives/975,运行我预编译的系统,同时这里包含最新的RPi BSP代码,你可以编译看看(很可惜有线网络有时候也不能自动获取IP地址,无线网络(RPi 3B)没有发现问题)。

发表评论

电子邮件地址不会被公开。 必填项已用*标注