Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

Add Raspberry-Pi support #66

Closed
viric opened this issue Jan 5, 2013 · 25 comments
Closed

Add Raspberry-Pi support #66

viric opened this issue Jan 5, 2013 · 25 comments

Comments

@viric
Copy link
Member

viric commented Jan 5, 2013

Now, stdenv-updates builds fine many packages for the pi.

The current nixos can be built fine. But we still have to prepare its boot.loader (a vfat on /boot, with some firmware included).

generationsDir won't work in the current state, because it uses symlinks.

@viric
Copy link
Member Author

viric commented Jan 10, 2013

I had some issues adding the raspberrypi-firmware, related to a curl problem: NixOS/nix#85

@viric
Copy link
Member Author

viric commented Jan 28, 2013

I have an untested bootloader in https://github.com/viric/nixos/tree/raspberrypi

@viric
Copy link
Member Author

viric commented Jan 29, 2013

Ok, I updated the bootloader, and I almost got there. The kernel lacked the ext4 support!

nixos-pi

@viric
Copy link
Member Author

viric commented Jan 29, 2013

I wrote information on how to use the current raspberrypi nixpkgs/nixos: https://nixos.org/wiki/Raspberry_Pi

@viric
Copy link
Member Author

viric commented Jan 31, 2013

With some help from distcc, I could build a basic nixos from bootstrap-tools in 30h.

@viric
Copy link
Member Author

viric commented Jan 31, 2013

drewc hosts a SD image I prepared (For 2GiB SD cards minimum):
http://drewc.org/nixos/nixos-raspberrypi-3c2f45695-be88539d84-sd2g.img.xz (~250MB)

SHA256: 6297894c386a3b41a7b839a44bc19c694bcb69041bcd7630af97a566a4642fb0
Please test it and report.

@rickynils
Copy link
Member

I tried it out, but it just seem to hang somewhere during stage-1 module loading, after it has loaded my usb keyboard modules. I will see if I can fiddle around with it a bit more.

@viric
Copy link
Member Author

viric commented Feb 3, 2013

On Sun, Feb 03, 2013 at 04:36:53AM -0800, Rickard Nilsson wrote:

I tried it out, but it just seem to hang somewhere during stage-1 module loading, after it has loaded my usb keyboard modules. I will see if I can fiddle around with it a bit more.

The pi image shouldn't be using the stage1 at all. I haven't tried to run the
stage 1 (initrd).

@rickynils
Copy link
Member

Ok, then it hangs in the pi-image's pre-stage-1. It stops during early boot. It loads eth0-modules, and then usb-devices. The last thing it loads is my usb-keyboard.

@domenkozar
Copy link
Member

What is the latests revision of this? On 16.2. we have nixos install fest and I might want to try to get nixos working on rpi.

@viric
Copy link
Member Author

viric commented Feb 7, 2013

On Sun, Feb 03, 2013 at 07:24:42AM -0800, Rickard Nilsson wrote:

Ok, then it hangs in the pi-image's pre-stage-1. It stops during early boot. It loads eth0-modules, and then usb-devices. The last thing it loads is my usb-keyboard.

All in-kernel I guess. Did you check the cmdline.exe? Does it say anything about
the rootfs?

As for the latest version... Well, the latest version is the latest version
here.

@viric
Copy link
Member Author

viric commented Feb 16, 2013

Right! Garbas reported the same. The fix is very easy! In 'cmdline.txt', replace "root=/dev/sda5" to "root=/dev/mmcblk0p2".

It was simply in 'rootwait'.

@viric
Copy link
Member Author

viric commented Feb 24, 2013

New image uploaded, should boot straight: http://piqd.com/api?g=E6714360-6570-44A7-90FF-446D692CC305&dl (~165MB): nixos-raspberrypi-233cc2fda-be88539d84-sd2g.img.xz, sha256 9bad90e40439e230730a979aaae6960b25b9cdf113477f24c74ec56c67d1de7d

@viric
Copy link
Member Author

viric commented Feb 25, 2013

New image, same versions as above, but now with vim, git, ts, and some other useful pieces: http://piqd.com/api?g=5D523A3A-D8F9-4CDD-95CF-91270B79DEFC&dl (~201MB): nixos-raspberrypi-233cc2fda-be88539d84-sd2g.img.xz, sha256 53aa211e9865b2442419b13f8f6f5ffcc15929e2bd0af7467d3ac8b490e6dd06
Update: it had a link with a bad download, before. But I fixed it, writing a new url.

@garbas
Copy link
Member

garbas commented Feb 25, 2013

i think image is broken i get

% sha256sum nixos-raspberrypi-233cc2fda-be88539d84-sd2g.img.xz
99b7f25c5be5b38ad733598344ed6009f2bb5b740def74067093932baa41effe  nixos-raspberrypi-233cc2fda-be88539d84-sd2g.img.xz

% xz -d nixos-raspberrypi-233cc2fda-be88539d84-sd2g.img.xz
xz: nixos-raspberrypi-233cc2fda-be88539d84-sd2g.img.xz: Unexpected end of input

@viric
Copy link
Member Author

viric commented Feb 25, 2013

I agree. Broken link. No idea what happened.
Ok, new upload address. I've tested the download, this time: http://piqd.com/api?g=5D523A3A-D8F9-4CDD-95CF-91270B79DEFC&dl

@garbas
Copy link
Member

garbas commented Feb 26, 2013

download above link using "wget -cnd " ... downloading browser (FF, Chrome) fails

@viric
Copy link
Member Author

viric commented Feb 27, 2013

It worked for me, from firefox 18. Also worked for me, using curl. But I used the same firefox/curl in the previous url (now gone in this thread), and I got the 99... checksum too.

@viric
Copy link
Member Author

viric commented Mar 23, 2013

Latest image from today: magnet:?xt=urn:btih:3a1273137a31ef65453ddc44eafcf8e0ede24731&dn=nixos-raspberrypi-ef28e8e70e96-0236cc5d8826-sd2g.img.xz

Now that this is merged into master, I think we can close the issue and use the wiki page as documentation: https://nixos.org/wiki/Raspberry_Pi

@viric viric closed this as completed Mar 23, 2013
@qknight
Copy link
Member

qknight commented Sep 12, 2014

i have a copy of that file here: https://lastlog.de/misc/nixos-raspberrypi-ef28e8e70e96-0236cc5d8826-sd2g.img.xz

md5sum nixos-raspberrypi-ef28e8e70e96-0236cc5d8826-sd2g.img
1d3de3b85b93814b5700aeb1b14e7163  nixos-raspberrypi-ef28e8e70e96-0236cc5d8826-sd2g.img

sha256sum nixos-raspberrypi-ef28e8e70e96-0236cc5d8826-sd2g.img
4e31c596a2c5898c2645bdc3d624ae56349ae1ca467d0ff980630f6863830d72  nixos-raspberrypi-ef28e8e70e96-0236cc5d8826-sd2g.img

i'm also seeding the magent link.

thanks viric!

@viric viric removed their assignment Sep 12, 2014
@ghost
Copy link

ghost commented May 1, 2016

The torrent seems dead from my end. 😢

Maybe it would make sense to create a github project with releases for this?

@garbas
Copy link
Member

garbas commented May 30, 2016

anybody running nixos on RPi? which model? what are you running? media server, file sharing server, vpn, ...?

@qknight
Copy link
Member

qknight commented May 30, 2016

hey,

i'm running nixos on rpi2 (abandoned), odroid u3 (abandoned), odroid xu4
and on my APU (amd64).

On 30.05.2016 14:04, Rok Garbas wrote:

anybody running nixos on RPi? which model? what are you running? media
server, file sharing server, vpn, ...?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#66 (comment), or
mute the thread
https://github.com/notifications/unsubscribe/AAIYvvgshR1S8UKaNDOgUpzySSmVy9VAks5qGtJggaJpZM4AWBCY.

Joachim Schiele

blog: http://lastlog.de/blog
wiki: http://lastlog.de/wiki
jabber: josh@jabber.ccc.de
GPG: 6D8F75EE (key here: https://lastlog.de/blog/about.html)

@garbas
Copy link
Member

garbas commented May 30, 2016

anybody tried to run it on rpi3?

@qknight
Copy link
Member

qknight commented May 30, 2016

just use the rpi2 image and basically follow this guide:

https://nixos.org/wiki/Raspberry_Pi#Raspberry_Pi_variant.28s.29_fix

you really need the usb console interface to make it work as you
wouldn't know the boot issues otherwise. in general: if you see nothing
on the terminal you probably failed providing the correct revisions of:

  • bootcode.bin
  • start.elf
  • start_cd.elf
  • fixup_cd.dat
  • fixup.dat
  • fixup_x.dat

just download them for the rpi3 and copy them like described. good luck

On 30.05.2016 14:41, Rok Garbas wrote:

anybody tried to run it on rpi3?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#66 (comment), or
mute the thread
https://github.com/notifications/unsubscribe/AAIYvg3XwGwWz7foj6VWuRb5S64I5eI3ks5qGtsCgaJpZM4AWBCY.

Joachim Schiele

blog: http://lastlog.de/blog
wiki: http://lastlog.de/wiki
jabber: josh@jabber.ccc.de
GPG: 6D8F75EE (key here: https://lastlog.de/blog/about.html)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants