`
sillycat
  • 浏览: 2559930 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Play Raspberry Pi(4)Raspberry Pi B+ and Software Update

 
阅读更多
Play Raspberry Pi(4)Raspberry Pi B+ and Software Update

1. Install the official operation system
Download the RASPBIAN JESSIE from here
https://www.raspberrypi.org/downloads/raspbian/

Follow the first Blog
http://sillycat.iteye.com/blog/2166582

Use the UI tool to erase the disk with MS-DOC FAT32 format.

Check the disk
> diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.1 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +249.8 GB   disk1
                                 Logical Volume on disk0s2
                                 64D3838A-7AC0-43C9-BB1C-517280DB2593
                                 Unencrypted
/dev/disk2 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *31.2 GB    disk2
   1:             Windows_FAT_32 NO NAME                 31.2 GB    disk2s1

Unmount the disk
> sudo diskutil unmount /dev/disk2s1

Write file to the disk
> sudo dd if=2015-05-05-raspbian-wheezy.img of=/dev/disk2 bs=2m

Then, we can use keyboard and monitor to start the computer and set up the SSH and network.

Set up Latest Node ENV
Use the version http://nodejs.org/dist/v0.12.7/

Try to compile and install the package
> ./configure --prefix=/home/carl/tool/node-v0.12.7

>make
>make install
Check the version after that
> node --version && npm --version
v0.12.7
2.11.3

Java Env are there
> java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)

Python Env are there
> python -V
Python 2.7.3

Mongo DB Env
http://sillycat.iteye.com/blog/2155801

http://sillycat.iteye.com/blog/2066225

http://sillycat.iteye.com/blog/2065123

http://sillycat.iteye.com/blog/1965857

To install on raspberry, since it is Debian, I choose the Debian version.
> wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian71-3.0.7.tgz

Unzip it and place it in the right directory. Add the file to the path, but it seems that the command does not work.
Try the generic linux version
> wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.7.tgz

It does not work.

Check the source codes from here https://fastdl.mongodb.org/src/mongodb-src-r3.0.7.tar.gz?_ga=1.77026064.465631442.1447176269

https://docs.mongodb.org/manual/contributors/tutorial/build-mongodb-from-source/

vi docs/building.md

Prepare Tools
> sudo apt-get install scons

> scons --version
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation

Fails
> scons all
scons: Reading SConscript files ...
SCons 2.3 or greater required, but you have SCons 2.1.0

Try Install latest scons
wget http://iweb.dl.sourceforge.net/project/scons/scons/2.4.0/scons-2.4.0.tar.gz

Unzip the file and Install with following command
> sudo python setup.py install

> sudo ln -s /usr/local/bin/scons /usr/bin/scons

Great
> scons --version
SCons by Steven Knight et al.:
script: v2.4.0.rel_2.4.0:3365:9259ea1c13d7, 2015/09/21 14:03:43, by bdbaddog on hpmicrodog
engine: v2.4.0.rel_2.4.0:3365:9259ea1c13d7, 2015/09/21 14:03:43, by bdbaddog on hpmicrodog
engine path: ['/usr/local/lib/scons-2.4.0/SCons']
Copyright (c) 2001 - 2015 The SCons Foundation

Fail to build, because fail to meet the requirement
> scons all
scons: Reading SConscript files ...
Mkdir("build/scons")
scons version: 2.4.0
python version: 2 7 3 'final' 0
Checking whether the C++ compiler works... yes
Checking whether the C compiler works... yes
Checking if C++ compiler "g++" is GCC... yes
Checking if C compiler "gcc" is GCC... yes
Checking if C compiler is GCC 4.8.2 or newer...no
Checking if C++ compiler is GCC 4.8.2 or newer...no
ERROR: Refusing to build with compiler that does not meet requirements

Upgrade the C Compiler and C++ Compiler
> sudo apt-get install gcc-4.8 g++-4.8

Remote and relink the command
> sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc

> sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++

At least the latest mongoDB is not supported on my raspberry
Unsupported architecture: armv7l:

References:
http://sillycat.iteye.com/blog/2166582
http://sillycat.iteye.com/blog/2169096
http://sillycat.iteye.com/blog/2173417

File download place
https://www.raspberrypi.org/downloads/raspbian/
分享到:
评论

相关推荐

    RaspberryPi-CPUMiner, CPUMiner RaspberryPi零,Pi 3,Pi 2,B+,+.zip

    RaspberryPi-CPUMiner, CPUMiner RaspberryPi零,Pi 3,Pi 2,B+,+ raspberrypi CPUMiner + CPUMiner,带有新算法( 检查波纹管)CPUMiner RaspberryPi零,Pi 3,引脚 2,B+,A+ 。克隆:池 PiZero指令:下载minerd到...

    Raspberry Pi 3B+ bootloader更新文件

    本次提供的压缩包“pi-bootloader”包含了Raspberry Pi 3B+的重要组成部分——GPU固件和引导加载程序(bootloader)的更新文件。这些文件对于理解和优化Raspberry Pi的启动过程以及系统性能至关重要。 首先,我们要...

    Raspberry Pi3 B+ 原理图.zip_Raspberry Pi3 B+_raspberry_ringlft_树莓派_

    **Raspberry Pi 3 Model B+ (树莓派3B+) 是一款流行的单板计算机,由英国树莓派基金会设计,广泛应用于教育、物联网(IoT)项目、媒体中心和其他低功耗计算任务。该设备的硬件配置和设计是其核心特点。** **在...

    Raspberry Pi 4 Beginner’s Guide.pdf

    介绍Raspberry Pi 4的用户手册,值得一读。 In our opinion, you will certainly adore the Raspberry Pi 4. Ultra-small, affordable, even cheaper than most video games, you can use the Pi to build ...

    树莓派 Raspberry Pi B+ 原理图

    树莓派 Raspberry Pi B+ 原理图知识点总结: 树莓派(Raspberry Pi)是一个系列的单板计算机,由英国Raspberry Pi基金会开发,旨在提供一种低价、便携、适合教育用途的计算机解决方案。Raspberry Pi B+ 是该系列中...

    Raspberry Pi

    MEDIA CENTER WITH XBMC AND RASPBERRY PI 2 MINIATURE BALLOON MINECRAFT SERVER RUNNING ON RASPBERRY PI 2 CHAPTER 3: USING THE RASPBERRY PI 2FOR YOUR PROJECT DIFFERENCES BETWEEN THE ARDUINO BOARD AND ...

    Advanced Raspberry Pi Raspbian Linux and GPIO Integration.zip

    You'll work with Linux driver information and explore the different Raspberry Pi models, including the Pi Zero, Pi Zero W, Pi 2, Pi3 B and Pi3 B+. You'll also review a variety of project examples ...

    Raspberry Pi Zero Cookbook

    The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens ...

    树莓派RaspberryPi 4B+ 操作系统+Nginx安装手册

    树莓派Raspberry Pi 4B+是一款小巧而强大的单板计算机,被广泛用于学习编程、搭建服务器和各种DIY项目。本操作手册将指导您如何在树莓派上安装操作系统,并配置Nginx服务器。 首先,您需要从提供的链接(由于实际...

    Raspberry.Pi.User.Guide.4th.Edition.1119264367

    This new fourth edition has been updated to cover the Raspberry Pi 3 board and software, with detailed discussion on its wide array of configurations, languages, and applications. You'll learn how to...

    Raspberry Pi Cookbook.pdf

    The world of Raspberry Pi is evolving quickly, with many new interface boards and software libraries becoming available all the time. In this cookbook, prolific hacker and author Simon Monk provides ...

    Getting Started with Raspberry Pi Zero.pdf

    This practical tutorial will help you quickly get up and running with Raspberry Pi Zero to control hardware and software and write simple programs and games. You will learn to build creative programs...

    Raspberry Pi 树莓派 1代 B完整原理图

    本文将详细解析Raspberry Pi 1代B的原理图,主要涉及电源、USB、网卡接口以及BCM2835处理器等关键部分。 首先,我们来看电源部分。Raspberry Pi 1代B模型需要通过USB Power Input提供5V电压,至少700mA的电流来保证...

    linux-为RaspberryPi3B构建ChromiumOS

    本文将详细介绍如何在Raspberry Pi 3B上构建并运行Chromium OS,让你的小型设备焕发新的活力。 首先,确保你已经拥有以下硬件和软件准备: 1. 一台Raspberry Pi 3B模型,包括电源和microSD卡。 2. 最新版本的...

    Raspberry.Pi.Computer.Architecture.Essentials.17843

    Experiment with connecting electronics up to your Raspberry Pi 2 and interacting with them through software Learn about the Raspberry Pi 2 architecture and Raspbian operating system through innovative...

    Wiley Learning Python with Raspberry Pi 2014

    《Wiley Learning Python with Raspberry Pi 2014》是一本专为初学者设计的教程,旨在引导读者通过树莓派这一小型计算机平台学习Python编程。这本书由2014年出版,当时Python已是编程界的热门语言,而树莓派因其低...

Global site tag (gtag.js) - Google Analytics