Comments on: About the Book https://www.exploringrpi.com Companion Site for the book Exploring Raspberry Pi Fri, 27 Apr 2018 02:56:25 +0000 hourly 1 https://wordpress.org/?v=5.0.1 By: Marco Siqueira https://www.exploringrpi.com/#comment-327 Wed, 31 Jan 2018 18:10:20 +0000 https://www.exploringrpi.com/?page_id=13#comment-327 Hello! I will start studing Raspberry. Is it possible to use the book with Raspberry Pi 3 ?

]]>
By: Pavel Yermolenko https://www.exploringrpi.com/#comment-319 Thu, 11 Jan 2018 19:17:11 +0000 https://www.exploringrpi.com/?page_id=13#comment-319 Page 245:
pi@erpi ~/exploringrpi/chp06 $ cat /proc/iomem

At my side this command doesn’t work properly without sudo: all addresses are ‘0’, but once with sudo, it becomes Ok.

]]>
By: Pavel Yermolenko https://www.exploringrpi.com/#comment-317 Thu, 11 Jan 2018 18:34:53 +0000 https://www.exploringrpi.com/?page_id=13#comment-317 Page 250:
*(gpio + 2) = (*(gpio + 2) & ~(7 << 21) | (0 << 21));
// Writing the 000 is not necessary but is there for clarity.

The comment below the code isn't quite accurate … rather "ORing 0" (e.g. | (0 << 21) isn't necessary …

]]>
By: James Blacksher https://www.exploringrpi.com/#comment-311 Fri, 05 Jan 2018 03:08:53 +0000 https://www.exploringrpi.com/?page_id=13#comment-311 Mr. Molloy,

I just got the Raspberry Pi 3B, and plan to go through your book to familiarize myself with the capabilities and uses of the device. Do you recommend installing Stretch or Jesse as the better platform for the code examples in the book, or are both equally compatible?

Best Regards,
Jim

]]>
By: Darrell R https://www.exploringrpi.com/#comment-309 Mon, 25 Dec 2017 01:32:43 +0000 https://www.exploringrpi.com/?page_id=13#comment-309 Hi Derek,

As of the November 2016 release, Raspbian has the SSH server disabled by default. You might want to add information around page 30 to tell new users how to enable ssh. Refer to the following link. Great book by the way!

https://www.raspberrypi.org/documentation/remote-access/ssh/

]]>
By: Roger King https://www.exploringrpi.com/#comment-303 Sun, 10 Dec 2017 22:41:40 +0000 https://www.exploringrpi.com/?page_id=13#comment-303 Hi Derek,
Thanks for the book, I have made it to Chapter 5 and I am mainly (90%) enjoying it; so far it is my favourite option.

The only downside is that I am having problems with the examples that access the GPIO in C.

As an example, the makeLED programme in Ch05, which fails to compile under C at line 38; reporting ” makeLED.c:38:7: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration] usleep(100000); // sleep for 100ms. requiring the inclusion of to allow compilation.

Even then the program fails to run reporting “segmentation faults”; such as on line 48 “writeGPIO(GPIO4_PATH “value”, “1”);”

I assume that my issues surround the programming differences between the various RPi’s; personally I am using an RPi 3, running Raspbian Version 9 (“Stretch”).

In an endeavour to fully progress through your book, could you confirm which RPi and software the book was actually used for testing the programmes?

My aim is then to configure an identical RPi, to complete the book and then explore the GPIO programming across the versions.

I must confess that it is this variety of GPIO configurations that is confusing me, (and probably many other readers) and any help would be welcome.

Thank you in anticipation.

Roger King

]]>
By: Scott B. https://www.exploringrpi.com/#comment-301 Thu, 23 Nov 2017 17:21:22 +0000 https://www.exploringrpi.com/?page_id=13#comment-301 Since the post above, I was able to get an installable hello.ko file working for the pi board mentioned above. The source I downloaded was linux-rpi-4.9.y The book (page 656 step 3) uses

make oldconfig

This defaults all questions based on the contents of your existing ./.config file and asks about new config symbols. I gather if the new symbol questions aren’t answered correctly this leads to building an incompatible hello.ko, hence the error message when loading. I used the following instead:

make defconfig

Which worked. If you enter the linux-rpi-4.9.y directory there is a README file. Starting at line 146 you’ll see all the make options. In the newer linux version I was unable to find (in /proc) the .config or config.gz files. I gather this has changed since 4.1.12-v7+ Also when assigning KHEADER=’pwd’ you’ll want to use KHEADER=$(pwd) Same for the ‘uname -r’ Use $(uname -r) instead. Otherwise all is well. Hope this helps a few out there.

]]>
By: Scott B. https://www.exploringrpi.com/#comment-299 Tue, 21 Nov 2017 21:31:49 +0000 https://www.exploringrpi.com/?page_id=13#comment-299 Hi – Purchased your Exploring Raspberry PI book and am working through the hello.ko install. No problems with getting the make file to create the module files. However, I received the following error when trying to install the finished hello.ko Last step in the process.

insmod: ERROR: could not insert module hello.ko: Invalid module format

The kernel I’m running is: Linux raspberrypi 4.9.57-v7+ #1045 SMP Fri Oct 20 11:44:49 BST 2017 armv7l GNU/Linux (per uname -a)

The source I downloaded is linux-rpi-4.9.y I’m thinking this is an incompatible version problem? But the source and current kernel appear to be the same. Confusing.

Can you please provide any suggestions. Perhaps others have encountered this problem. Many thanks – Scott

]]>
By: Gabriel Raya https://www.exploringrpi.com/#comment-287 Mon, 02 Oct 2017 21:44:32 +0000 https://www.exploringrpi.com/?page_id=13#comment-287 Is it possible to buy the pdf version?

]]>
By: viveka narendra https://www.exploringrpi.com/#comment-229 Wed, 31 May 2017 07:06:47 +0000 https://www.exploringrpi.com/?page_id=13#comment-229 Hi Derek
Have worked on embedded control systems, 8085, Atmel . Was exploring Raspberry PI. This is really a great book. Thank you some much for putting all together.

Regards
Viveka N

]]>