Install Ubuntu 16.04 into Raspberry Pi 3 B+

After some investigation, I finally figured out how to install Ubuntu 16.04 into the new Raspberry Pi 3 B+.

Because the bootloader has been updated, with existing Ubuntu 16.04 images, Raspberry Pi 3 B+ can’t be booted. You will be stuck at the rainbow screen.

To fix it, the bootloader and some other driver files needs to be replaced. Here are the detailed instructions.

Download Ubuntu 16.04 Image File for Raspberry Pi 3

On this page, there are several options

I am familiar with Xfce, so I downloaded the xubuntu 16.04.2 image file.

Burn the Image into SD Card

On Windows, you can use a free tool named Etcher

Replace the Bootloader and Driver Files

After burning, there will have two partitions in the SD card. One for boot PI_BOOT, the other for root PI_ROOT

The latest Raspberry bootloader and other driver files can be downloaded from https://github.com/raspberrypi/firmware.

  1. Copy all boot files in folder boot into PI_BOOT partition.
  2. Copy all files/folders in folder modules into PI_BOOT/lib/modules

Boot it

Insert the SD card into Raspberry Pi 3 B+ and connect it the USB cable. It will be successfully booted.

A known problem so far. There has no default wireless network adapter. Need to use a USB wireless adapter.

References

用Raspberry Pi搭个宝宝视频监视器

现在租住的是一个两层的Townhome,宝宝睡在二楼,有时大人在楼下,真的不放心楼上的宝宝。家里有个旧的Raspberry Pi和闲置的Logitech Web Camera,于是动手自制了一个视频监视器。

器材

Raspberry Pi 2 Model B

Logitech Web Camera C525 (支持720P的视频录制)

很多年前买的,闲置状态。这种Web Camera可以即插即用,不需要安装额外的驱动,很方便。

 

通用USB网卡(从Raspberry Pi 3开始,网卡就内置了,不需要再买网卡)

软件

视频监控主要是要实现视频流(Video Streaming),按这个思路可以找到一些软件,如motion, mjpg-streamer和VLC。对比之后,感觉mjpg-streamer比较适合,功能强大,配置简单。

编译安装mjpg-streamer

这里有篇非常好的帖子,step by step的教你安装。详见

运行mjpg-streamer

我写了一个init.d的启动脚本,可以让raspberry在启动时就自动运行mjpg-streamer。

在/etc/init.d/目录下,新建一个脚本mjpg_streamer

脚本中,使用了nohup,可以让mjpg-streamer成为daemon进程。

再运行命令

就可以把这个脚本加到默认run level(2)的启动项里。

结果

一切就绪,全家就可以在各种设备上看到宝宝了。缺点是还没有声音,下一步的功课吧!也许要用到vlc。😁

Screenshot_20160705-223049