given that the processor is 64 bits, isn't it obvious that running the OS in 64 bits will be better in every way?
No actually, it's not. In some ways, running a 64 bit operating system could deteriorate the Raspberry Pi's performance.
Benefits of 64 bit:
The two primary benefits of using a 64 bit processor/operating system is that the device can handle more ...
I found my answer in the very next section of the wiki; silly me. I found that the solution didn't go much into detail about what kind or error messages you see though, and thought it might be helpful to have the exact error message "googleable". I also found the instructions slightly unclear (especially around step 8/9; I wasn't sure if the ...
Buy yourself a smartphone, you'll get "Android OS with camera, Bluetooth, gyro, GPS, and SIM card and with a lot of programmable buttons and LEDs" -- all already included, working and with plenty of documentation and development environments available.
raspbian package repo contains raspberrypi-bootloader package which contains firmware, kernel and kernel modules that rpi-update downloads. The version is not the latest, but files should be fine and stable. Now it shows a 20130902 version, so it's about 2 months old. The package is installed by default and is updated when a new version arrives in repo.
It's worth noting that the situation is different for ARM and Intel/AMD. That's because the switch to x86_64 was also used as an opportunity to update the badly-aging architecture, basically crippled by only having 8 general-purpose registers — and doubled in 64-bit mode. So, switching an Intel/AMD system to 64-bit mode also means enabling real features ...
There seems to be Raspberry PI support in the pfsense github repository. See pfsense repository.
For raspBSD see RaspBSD.
It seems feasible to compile pfSense for the Raspberry PI.
I think it would be a useful port to have for people that don't require a lot of bandwidth or want to implement their own cheap WIFI router. And it would be interesting to play ...
I wrote a very simple kernel years ago, and ran it on a 386. I haven't done bare metal programming in years, but in broad terms you need to write some assembler code that will:
disable interrupts during the boot process
if the Pi has a memory controller, you'll need to set that up
set up a timer tick
configure the interrupt controller
set up a stack so ...
-Update Aug 2017-
Unfortunately pfSense has no interest in creating arm based images.
pfSense HAD no interest in porting over to an ARM based version because the BSD kernel was not stable on ARM yet. Since the time of the original answer a few things have changed with the latest Pi hardware, BSD runs on ARM fine and pfSense has been overwhelmed with ...
I haven't looked at your code in depth, but it seems to me you're on the right track. Make sure that:
The _start symbol is indeed the one used when compiling & linking your assembly file and your C file (and that main() isn't used instead)
When calling main(), you need to use the C calling convention:
push on the stack the address of the instruction ...
Dedicating a core is probably overkill.
I suggest you try my pigpio library. By default it will time GPIO level changes to within 10µs.
As a quick test I suggest you look at this Python example, which will print any GPIO level transition and the time in microseconds since the last transition on that GPIO.
pigpio is not installed by default in Jessie ...
Meanwhile the kernel is part of the raspberrypi-kernel-package in Raspbian.
So rpi-update is not needed anymore to update the kernel.
There are two kernels in the package, that means it works on every hardware-version of the Pi (ARMv6, ARMv7 and ARMv8
Just use this fancy one-liner to keep your Pi up-to-date:
apt-get update && apt-get dist-upgrade ...
XBMC is not an operating system, but a cross-platform media player. It needs an existing operating system in order to be installed and run.
From the XBMC website:
XBMC is an award-winning free and open source (GPL) software media
player and entertainment hub for digital media. XBMC is available for
Linux, OSX, and Windows. Created in 2003 by a group ...
Having looked at the RPi, it seems like a fairly secure device out the box, as long as you do a couple of things.
The default user/pass needs changed. At the very least, change the password. For better security again, change the username as well. (Add a new user, then disable PI. Check that ROOT is also disabled from SSH login, though I think it is by ...
I want to run a Windows OS or Android OS
Unfortunately, this is not possible. Windows just isn't supported at all on the Pi (only a lesser version called Windows 10 IoT Core, which isn't much like the regular Windows). Android is equally problematic; while there are ways to install it, it is noted that:
No version of Android is officially compatible with ...
The answer marked as correct is in fact outdated, and in a problematic way: rpi-update will update the firmware to the latest published version, which has to be considered "not stable". So following the recipe given you might end up with an unstable system (has happened to me ;) ).
Python was designed as a teaching language.
It's very easy to get started, and the Python ecosystem is very friendly to beginners. Just go check out archives for the Python Tutor list.
Replies like this one are extremely common - especially for non-help-vampires.
I have yet to find a community anywhere nearly as welcoming and friendly to newcomers. ...
If you don't need the graphical capabilities of the full Raspbian distro, I would recommend Raspbian Lite. Raspbian, has the largest user base and hence the most projects and tutorials available. The large user base and community support can make developing and troubleshooting your projects a lot easier. Both are available for download from the Pi foundation ...
For doing so, login to your raspberry py with putty or another SSH client.
Now you have to change one value in the noobs.conf. To be able to access this config file you have to do some stepps:
Make directory to mount
mount noobs partition
sudo mount /dev/mmcblk0p3 tmp/noobs
look which os is on which partition
Linux / OSX
Download the image from here
Extract the .xz file using any of the following methods
tar xf CentOS-Userland-7-armv7hl-Minimal-1511-RaspberryPi2.img.xz
The Unarchiver (OSX)
Install from Mac App Store here
Use the disk cloning command dd to copy the img contents to your ...
Extra trick on raspbian with usermod
usermod command won't run if there are any processes of the to-be-changed user running on the machine when the command is run.
If your on console of the pi there is a way to get around this without having to make another user (or set a pw on root):
Assuming nothing else is running with your username other then the ...
Jivings answer holds true if you happen to have an image of Arch Linux around. As of now however such images are no longer issued by Arch Linux. Instead the full file system is provided as a .tar.gz and has to be installed to the SD card from scratch.
After preparation of the partition table using fdisk and creation of the file systems mkfs the root and ...
Yes there is; my project Nard SDK
does exactly what you want. It's a minimal OS which runs entirely from RAM. After bootup one can even remove the SD card and it will continue run just fine. During system upgrade it has preventive actions against power cut in the middle of the upgrade.
N ot A nother R aspberry D ...
It depends on what you want! NOOBS is the all around favorite and most suggested for beginners, as it is simple and makes the setup of the Raspberry Pi very easy. NOOBS is the top option on the RaspberryPi.org downloads page and is the officially suggested option by the Raspberry Pi Foundation. However, NOOBS is simply the way to install the OS', it isn't an ...
Powering the Raspberry Pi
You should supply your Raspberry Pi via its microUSB port. It takes 5V and you should make sure it can draw up to 2A - that should be sufficient, if you don't plug in too much peripherals like keyboards, USB drives etc.
Using your 12V auxiliary power outlet, you would need a car-to-USB-adapter and a USB-to-microUSB-cable. However,...
proper shutdown: what is meant by "proper shutdown" in @Fantilein's answer is what we call a "software shutdown." You need to issue a "shutdown" command in the OS, either via the command-line or the GUI so that the OS shuts down completely. This only takes a few seconds, so not a lot of power is needed there.
power: the Pi runs on 5V but can draw ...
To add a new user in raspbian:
sudo useradd -m -G pi,sudo,gpio,audio,video steve
sudo passwd steve
-m - Create a new home directory
-G group1,group2,group3 - Add the user to these groups, don't add sudo if you don't want the user to have sudo privileges.
steve - Name of new user
passwd - Linux requires a password to login, so set ...
I've recently forked the Raspberry Pi/ARM port of JonesGorth and removed the dependency on Linux. It now runs bare-metal on the Raspberry Pi, booting directly into the Forth interpreter. Many important words have been re-implemented in assembly, or as part of the built-in definitions. In addition, there is an XMODEM bootloader which allows hot-swap rebooting ...
Before I ran a few commands on my raspberry pi I had less than 4 MB of memory left!
Wrong. You had 76.5 MB left.
total used free shared buffers cached
Mem: 120544 116840 3704 0 4268 68612
-/+ buffers/cache: 43960 76584
Please read ...