66

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 ...


48

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 ...


26

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.


25

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. So ...


22

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 ...


18

There is a tool called Etcher for Windows, Linux, and Mac. It has a simple GUI. A screenshot from the website: (source: etcher.io)


18

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 ...


14

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 ...


14

-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 ...


13

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 ...


13

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 ...


12

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 ...


12

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 ...


11

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 ...


11

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 ...


10

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 ;) ).


10

Python was designed as a teaching language. It's very easy to get started, and the Python ecosystem is very friendly to beginners[2]. 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. ...


9

Look at the lesson Baking Pi – Operating Systems Development. It's an ARM-only lesson, but it uses pieces of C for the USB driver.


9

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 ...


8

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 mkdir /tmp/noobs mount noobs partition sudo mount /dev/mmcblk0p3 tmp/noobs look which os is on which partition cat /tmp/noobs/...


8

Linux / OSX Download the image from here Extract the .xz file using any of the following methods Tar tar xf CentOS-Userland-7-armv7hl-Minimal-1511-RaspberryPi2.img.xz Unxz unxz 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 ...


7

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 ...


7

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 ...


7

Yes there is; my project Nard SDK http://www.arbetsmyra.dyndns.org/nard/ 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 ...


7

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 ...


7

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,...


7

4 things: 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 ...


6

To add a new user in raspbian: sudo useradd -m -G pi,sudo,gpio,audio,video steve Then: sudo passwd steve Explaination: -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 ...


6

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 ...


6

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 ...


Only top voted, non community-wiki answers of a minimum length are eligible