element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sci Fi Your Pi
  • Challenges & Projects
  • Design Challenges
  • Sci Fi Your Pi
  • More
  • Cancel
Sci Fi Your Pi
Blog Raspberry Pi 2 test, tutorial for upgrade to Raspbian Jessie and WCS working with PiFace
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: crimier
  • Date Created: 25 Apr 2015 9:58 PM Date Created
  • Views 847 views
  • Likes 2 likes
  • Comments 3 comments
  • pipboy_helper
  • jessie
  • sci_fi_your_pi
Related
Recommended

Raspberry Pi 2 test, tutorial for upgrade to Raspbian Jessie and WCS working with PiFace

crimier
crimier
25 Apr 2015

One more announcement - I have successfully booted my Raspberry Pi 2 and checked its performance. What can I say?

image

  1. It can easily perform as a desktop PC for developing this project, for example. Still nothing like 50 browser tabs without lag, but it's pretty much awesome - certainly better than RPi 1 =) I feel like I could make the entire project using it.
  2. With supplied MicroSD card, you don't get raspi-config fully working (no proper memory division dialog or camera function) until you do apt-get update&&upgrade. But then, it's much faster than it used to be, so that little detail doesn't matter =)
  3. Minecraft already on the card =) As well as Wolfram and some other things. See...

I'm building something that'd be a convenient&fast personal helper, not something that'd lag all the time. Do I need Wolfram? I doubt yet. Minecraft? Nah, I feel more like adding something more useful first.

IMHO the default environment is pretty bloated, and I think you should spend time installing things, not deleting them. Not only that speeds up the debugging for me, but also helps me be sure that I can customize the hell out of it.

As you can understand, clean install it is... How does one cleanly install Raspbian?

There's a netinstaller. Basically, you write it on the card, boot from it and watch it install the base system automagically. After that, you're left with a system that hardly takes space on an SD card (might want to see how much it took the last time I used it), is fast, non-bloated and shows a nice text console that enables you to install anything you want.

So - you want a clean system? Just use this tool. One thing - I haven't yet tested it with Raspberry Pi 2. Will do soon and make a quick tutorial.

 

Another thing I'll do is upgrade from 'stable' to 'testing'. I do that every time, and it's helping a lot. See, it basically installs newer versions of packages that are less tested but are more advanced and that's often a killer feature of this release.

Pros? You get newer versions of packages. That means bugfixes, features for you to use and often speed advancements. For example, two years before upgrading to 'testing' has solved USB connectivity problems I was having a lot - seems that patches were still on their way to 'stable'.

Cons? People hardly ever do this, it seems, so there might be less support, but then - it was never an issue for me. Also, you should always backup your card every time before you do 'apt-get dist-upgrade' or 'upgrade'. If power gets switched off due to e.g. faulty cable, it can get broken easily.

For example, 'chromium' version I have with 'stable' now doesn't even support HTML5. No YouTube for me, huh? At least 'epiphany' lets me listen to YT music videos while I do something... Pretty neat, I have to say! (it crashes when I switch from one video to another though)

 

Update it is, right? Well, let's see! Now, I'll show you how to update from 'stable' to 'testing'.

 

  1. Backup your SD card (I didn't LOL) - you better do it with dd from another Linux PC(link), for Windows there's Win32DiskImager.
  2. Boot your Pi from it. Launch the terminal and type:

sudo nano /etc/apt/sources.list

        There's a single uncommented line - our only repository. That simple. Right at the end of repository URL, there's 'wheezy'. Replace that with 'jessie' and close the file saving changes.

  1. Then, type

sudo apt-get update

        There'll be a bunch of lines that mention 'jessie' now, some of them start with 'Get' and indicate that your package index has been updated and system is ready to receive new packages.

  1. Then, it's the actual upgrade. I think you'd better close all open applications except Terminal, just in case. They're ALL going to get updated =)

sudo apt-get dist-upgrade

        It calculates an upgrade for a while, then... 698 packages to upgrade, 369 new to install. The most surprising part is "After this operation, 14.0 MB of additional disk space wil be used." Come on, how come it's that small? For fun, I'll save df output to check it:

df > df_before.txt

Okay, let's press "yes"... And set a stopwatch! For me, that's a simple "; date" added to the 'dist-upgrade' command - as soon as it finishes, it'll print the time to terminal which I can later check.

 

Seems that it has to get a lot of packages. LEDs on Ethernet blinking like crazy =)

After it has downloaded all of them, it will begin unpacking and installing. It'll ask questions. Answers are:

  • You can disable SSH root login if you care that much about security
  • You definitely should allow it to restart services while upgrading
  • Replace all the config files by 'package maintainer version' unless it was you who modified them. One thing I don't know about yet is that dphys-swapfile configuration file... Okay, you can replace it too =)

 

...time passed from when I started the installation. I managed to get some sleep =) When I woke up, install was stuck at "Should I rewrite that conffile, master?" dialog. Oh, so my time measurements most certainly will not mean anything =D

 

diff df_before df_after

< /dev/root

> /dev/root

6520152 2886768   3279132  47% /

6520152 4668636   1497264  76% /

 

See, that's not exactly 14.0MB. And it's after I deleted Chromium and Epiphany. Shame on you, apt-get, you filthy liar.

image

What will fundamentally change?

  • You'll get systemd. From my experience, it's actually awesome. I use it a lot and it hardly ever lets me down, and autorun scripts have never been that easy to write, and boot times have increased due to parallel starting of processes (Now you finally can put your 4 cores to work while booting!)
  • As for now, you'll get some bugs connected to how systemd works with previous init scripts, if I understood the situation correcty. I managed to fix them, but it felt more like magic and I don't know what I did, aside from disabling some initscripts I felt were not needed.
  • You'll get newer versions of packages of course - that means improvements and bugfixes. For example, my Microsoft keyboard now works properly with the RPi (before that I had some weird key mappings, such as @ replaced by " and vice-versa.)
  • You'll get broken Epiphany and Chromium, at least at this moment =D I just switched to Iceweasel after some hours of reading gdb backtraces, and removed both offenders from the system. Sorry, folks, I didn't bother reporting the bug in Epiphany. My bad, I am realy busy now and this reporting stuff is quite new for me =(

About Chromium - its version in Raspbian repos is frozen at 22.something, when recent versions are 44 and so on. My opinion? Forget about Chromium. Here's a link that has some explanation.

Personally, I found Iceweasel quite good and already managed to code some things for my project using it to google things, while watching YouTube videos =) BTW, HTML5 is there and properly working, yaaay!

image

So - the system works for me and is clearly newer than the 'stable' release. All the features I wanted are there and working. But - you should use this method at your own risk.

image

Shucks. I forgot about my project description again. Sorry =( Will do that ASAP. I will need to learn SketchUp before that, though - to give you all an idea about how it all will look like!

But I did integrate PiFace Control and Display device screen into my Wearable Control System. The corresponding WCS repository branch is here, it's quite a dirty job as for now (heck, I basically threw out a lot of helper functions I made before for future expansion) and only shows that it's working, but I'll certainly integrate it properly =) Keys on the PiFaceCAD are not integrated yet, too. Just quick hardware test. Here, watch this video!

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

It's the essence of my WCS framework. You can see keypad-controlled prototype menu system with submenus, all callback-driven. See that "Third function selected" in the end? It's a function I activated by using this menu, and it could be anything you'd want it to be, for example, SMS sending function =) There's a lot to be done to make it work, such as enabling it to work with some form of RPC (you don't want to 'import' every program that uses screen and keypad in the control module executable).

 

That's all to it. I'll keep you updated. This post was written from my Raspberry Pi 2 =) ...Okay, not quite. Javascript performance still sucks, even with 4 cores. Also, it keeps throwing those undervoltage notifications and I feel like things will not work properly until I replace the power supply. So I used i5-based Windows laptop just to finish publishing the article - I do want to sleep now, and waiting for letters to actually appear after I have typed them is not the best way of publishing an article. See you all!image

UPD: Just realised I had my Pi slightly underclocked. I think I'll retract that statement for a while =)

Oh, and it does crash when you shine a camera flash at it! I was wearing headphones when I decided to check if it does, triggered the flash and was deafened by a sudden buzz in headphones (was listening to music, probably PWM had continued with the same frequency as it had at the moment of crash). 0/10 wouldn't flash again.

  • Sign in to reply
  • mcb1
    mcb1 over 10 years ago in reply to crimier

    crimier

    Thanks for the reply.

    I'll have to try out your link....thanks

     

    You can ask Jamie to make a copy of it in Raspberry Pi ...it well worth it IMO.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • crimier
    crimier over 10 years ago in reply to mcb1

    I remember using this tool for both writing and creating images =) I have long dismissed that in favor of dd, but here's a guide. Apparently, Win32DiskImager is smart enough to backup the whole card. I guess the images created even are dd-compatible.
    I wish you luck with all your Raspberry Pi affairs =) Do you think that should be made a separate post in the Raspberry Pi area? I can do that, just a little later.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago

    Arsenij

    Great writeup and excellent post about the distribution and alternatives.

     

    This would be an excellent post in Raspberry Pi area with perhaps a few little 'extras' to help the less familiar.

    One this that would be great is if you could enhance on this, since many ask but I've yet to see a decent guide.

    Also, you should always backup your card every time

    I hadn't thought to use DiskImager as I understood there were parts of the card that windows din;t recognise correctly ... hence never tried it.

     

    Well done

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube