bargees / barge-os

Yet another lightweight Linux distribution for Docker containers
GNU General Public License v2.0
161 stars 14 forks source link

Support Raspberry Pi #20

Closed ailispaw closed 8 years ago

ailispaw commented 8 years ago

Resources:

ailispaw commented 8 years ago

Raspberry Pi 3 Board is Powered by Broadcom BCM2837 Cortex A53 Processor, Sells for $35 http://www.cnx-software.com/2016/02/29/raspberry-pi-3-board-is-powered-by-broadcom-bcm2827-cortex-a53-processor-sells-for-35/

BCM43438 - Single-Chip IEEE 802.11 b/g/n MAC/Baseband/Radio with Bluetooth 4.1 and an FM Receiver | Cypress Semiconductors http://www.cypress.com/documentation/datasheets/bcm43438-single-chip-ieee-80211-bgn-macbasebandradio-bluetooth-41-and-fm

Raspberry Pi 3 is out now! Specs, benchmarks & more - The MagPi MagazineThe MagPi Magazine https://www.raspberrypi.org/magpi/raspberry-pi-3-specs-benchmarks/

LAN9514 - USB to Ethernet Controllers http://www.microchip.com/wwwproducts/en/LAN9514

Raspberry Pi Hardware - Raspberry Pi Documentation https://www.raspberrypi.org/documentation/hardware/raspberrypi/

pi 3 - Where can I find the documentation for the BCM2837? - Raspberry Pi Stack Exchange http://raspberrypi.stackexchange.com/questions/45759/where-can-i-find-the-documentation-for-the-bcm2837

ailispaw commented 8 years ago

Raspberry Pi emulation on OS X http://royvanrijn.com/blog/2014/06/raspberry-pi-emulation-on-os-x/

dhruvvyas90/qemu-rpi-kernel: Qemu kernel for emulating Rpi on QEMU https://github.com/dhruvvyas90/qemu-rpi-kernel

http://downloads.raspberrypi.org/raspbian/images/ https://www.pcsteps.com/1199-raspberry-pi-emulation-for-windows-qemu/#comment-2492663726

Emulating Jessie image with 4.x.xx kernel · dhruvvyas90/qemu-rpi-kernel Wiki https://github.com/dhruvvyas90/qemu-rpi-kernel/wiki/Emulating-Jessie-image-with-4.x.xx-kernel

The workaround is needed to boot successfully.

$ qemu-system-arm \
  -name "Raspberry Pi" \
  -machine versatilepb \
  -cpu arm1176 \
  -m 256 \
  -no-reboot \
  -serial stdio \
  -kernel kernel-qemu-4.4.12-jessie \
  -drive file=2016-05-27-raspbian-jessie-lite.img,index=0,media=disk,format=raw \
  -append "root=/dev/sda2 rootfstype=ext4 rw panic=1" \
  -net nic -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80
$ ssh pi@localhost -p 2222 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
pi@localhost's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Sep  7 03:32:33 2016 from 10.0.2.2
pi@raspberrypi:~ $ 
ailispaw commented 8 years ago

Building ARM containers on any x86 machine, even DockerHub https://resin.io/blog/building-arm-containers-on-any-x86-machine-even-dockerhub/

[root@barge ~]# mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc  
[root@barge ~]# echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
[barge@barge ~]$ docker run -it --rm resin/armv7hf-debian:jessie-20160903 bash
root@be9a445a4001:/#
ailispaw commented 8 years ago

Wireless on Raspberry Pi with Buildroot http://www.digitalpeer.com/blog/wireless-on-raspberry-pi-with-buildroot

Wireless on Raspberry Pi with Buildroot | Dev@Work https://delog.wordpress.com/2014/10/10/wireless-on-raspberry-pi-with-buildroot/

ailispaw commented 8 years ago

https://hub.docker.com/u/armhf/ https://hub.docker.com/u/hypriot/

ailispaw commented 8 years ago

Released https://github.com/bargees/barge-os/releases/tag/2.2.2-rpi