Commit graph

88 commits

Author SHA1 Message Date
John Ericson 2227789392 lib: Collect system/platform related files
Previously, platforms was a random thing in top-level
2017-04-17 17:13:01 -04:00
John Ericson f3055a3c50 top-level/platforms.nix: Reformat and clean up whitespace 2017-04-10 15:39:47 -04:00
Nikolay Amiantov 250ab7a26a {armv7l,aarch64}-linux: build all kernel modules 2017-04-09 22:46:07 +03:00
Tuomas Tynkkynen fee43308ed platforms.nix: Remove unnecessary kernelExtraConfig for ARMv7
AHCI_IMX is already enabled in multi_v7_defconfig since kernel 4.9.
2017-02-20 15:22:14 +02:00
Tuomas Tynkkynen 2bfd83ab6d platforms.nix: Add some aarch64-specific kernel config
This makes Raspberry Pi 3 and some Cavium ThunderX server hardware work.
2017-01-25 02:14:46 +02:00
Tuomas Tynkkynen 7c8a060c09 stdenv: Bringup aarch64 architecture support 2017-01-25 00:01:51 +02:00
Tuomas Tynkkynen fd60260a77 platforms.nix: selectPlatformBySystem: Convert to "switch-case"
Looks generally nicer and used recently in nixpkgs in e.g.
3e197f7d8 ("top-level: Normalize stdenv booting")
2017-01-24 22:13:36 +02:00
John Ericson 05c12f147e top-level: Move default-choosing logic to top-level/platforms.nix
This mirrors stdenv/default.nix
2016-12-01 11:24:32 -05:00
Lluís Batlle i Rossell a97db109a2 Disabling OABI_COMPAT on ARM platforms.
Otherwise, systemd-logind fails to work because SECCOMP_FILTER cannot be
enabled with OABI_COMPAT set. We don't need OABI_COMPAT at all on ARM, I
guess.

With this change, the rpi kernel boots fine for raspberrypi2.

We discussed this change with Dezgeg.
2016-11-06 12:20:43 +01:00
Tuomas Tynkkynen 322faf9219 platforms.nix: Switch ARMv7 to vfpv3-d16
Make ARMv7 compatible with non-NEON chips, changing to the same float ABI
that Debian and Arch Linux use. This is apparently required for the
binaries to work on Scaleway, for instance.
2016-07-20 02:38:10 +03:00
Tuomas Tynkkynen 171c7f0e63 make-bootstrap-tools-cross.nix: Have more consistency with platforms.nix
E.g. we had `arch = "arm"` in the former and `arch = "armv6"` in the
latter. Try to have some more consistency.
2016-07-20 02:38:10 +03:00
Tuomas Tynkkynen 953249db34 platforms.nix: kirkwood_defconfig is gone, use multi_v5_defconfig
kirkwood_defconfig was removed in 3.17, and our kernel headers are based
on 4.4. Make this change to allow the armv5tel bootstrap tarball
to build again (I can't test it, though).
2016-07-20 02:38:10 +03:00
Tuomas Tynkkynen 44955a73b2 platforms.nix: Enable DTB for the ARMv6 Raspberry Pi 2016-07-04 15:13:13 +03:00
Tuomas Tynkkynen 7ae1e9bb6d multi_v7_defconfig: Enable AHCI_IMX 2016-06-14 01:31:57 +03:00
Tuomas Tynkkynen 6102398d46 platforms.nix: Use bcm2835_defconfig for RPi kernelHeadersBaseConfig
kirkwood_defconfig was removed in the 3.17 kernel release, so
kernelHeadersBaseConfig needs to be changed in order to build
any Raspberry Pi stuff against linuxHeaders_3_18 (which has been the
default since the systemd 227 merge).
2015-11-16 02:37:13 +02:00
Tuomas Tynkkynen 1793fdbfb1 platforms.nix: Remove IntegratorCP and Versatile
These ARM boards are very old and quite likely used only for booting in
QEMU emulation. I'll focus on making the multiplatform image easy to
boot in QEMU instead.
2015-06-30 10:33:25 +03:00
Lluís Batlle i Rossell caeaddcf18 Enabling NEON for armv7l. Also use a common platform for armv7.
I added some comments about our decision for fpu flags. It's about the boards
we have in mind to support. NVidia Tegra2 is out, because it lacks neon.
2015-05-10 10:59:29 +00:00
Tuomas Tynkkynen a6aa673849 ARMv7 platforms: switch header config to multi_v7_defconfig
Otherwise they wouldn't be able to share a binary cache since glibc et
al would get a different hash due to different linux-headers package.
2015-05-07 06:04:10 +03:00
Tuomas Tynkkynen 0d5e144210 platforms: Add ARMv7 (hard float) multiplatform
Based on the 'multi_v7_defconfig' that supports numerous boards.
2015-05-07 06:04:10 +03:00
Lluís Batlle i Rossell 0c5be7164c sheevaplug: fix kernel build.
I added platform.kernelMakeFlags. This allows setting the required
parameter to make the required kernel uImage for the sheevaplug,
since it became a platform with devicetree (3.10).

I have tried it with linux 3.18 and it built fine.
2015-05-06 09:50:51 +02:00
Lluís Batlle i Rossell 9d8c26efae Add comment explaining the rpi2 gcc flags. 2015-03-05 10:00:21 +00:00
Ambroz Bizjak c1b803ba0e Cut down on the gcc flags for raspberrypi2. 2015-03-05 09:23:24 +00:00
Lluís Batlle i Rossell 1c7fc46ee5 Adding the raspberrypi2 platform. 2015-03-05 09:09:30 +00:00
Ambroz Bizjak cf317b85ad Add platform definition for BeagleBone and default to it on armv7l-linux. 2015-02-05 21:26:43 +01:00
Shea Levy 58246936e4 platforms.nix: Separate 32-bit and 64-bit PCs
With this, stdenv.platform.kernelArch can be used by the kernel builder
for PC platforms too.

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-31 21:34:44 -05:00
Eelco Dolstra f155a35d7d Move kernelExtraConfig to common-config.nix (for x86)
It's bad to have the kernel config scattered across two places.  (This
should also be done for the other architectures.)

Also, restore Xen and KVM guest support in Linux 3.10.
2013-08-01 14:35:31 +02:00
Lluís Batlle i Rossell b513ea43e4 Enable blowfish/twoflish crypto in sheevaplug kernel 2013-07-20 23:16:50 +02:00
Shea Levy 270ba268d7 Add HYPERVISOR_GUEST for linux 3.10
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-06-30 21:42:51 -04:00
Shea Levy 0d8025c612 Linux 3.10
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-06-30 20:55:21 -04:00
Lluís Batlle i Rossell 2ba0d9d3ae fuloong linux: add CGROUPS and disable FTRACE
FTRACE was making linux not load at all. And systemd
wants cgroups.
2013-03-30 23:38:39 +01:00
Lluís Batlle i Rossell 0bf70832f4 Raspberrypi platform: make ext4 in kernel
I also make other modules in-kernel. I originally copied this
from the sheevaplug kernel, but the sheevaplug runs the initrd
and the raspberrypi not.
2013-01-29 20:17:36 +01:00
Lluís Batlle i Rossell 60f2d9c6bb raspberrypi platform: adding a missing uboot attr
It's required, even if set to null, along all nixpkgs.
2013-01-29 20:17:30 +01:00
Lluís Batlle i Rossell d770ea2ad2 Fixing the kernel target for raspberrypi (zImage)
Removing uboot things about it too.
2013-01-29 20:17:28 +01:00
Peter Simons 9e9cd7b529 Merge branch 'master' into stdenv-updates. 2013-01-04 21:00:53 +01:00
Lluís Batlle i Rossell 2402bb2613 gcc: Moving the arch=loongson2f to the current platform approach 2012-12-31 09:38:32 +00:00
Lluís Batlle i Rossell 97d81bde0c Adding platform gcc information for raspberrypi, and the gcc support.
Without it, gcc builds for softfloat, and the glibc doesn't have support for
softfloat (it ends up requiring some gnu-soft.h file). We'll have to test if
this fixes the build of gcc or not, though.
2012-12-30 21:55:02 +00:00
Lluis Batlle db6925ea37 Add kgdb to the sheeveaplug. It can help in case of troubles. 2012-12-29 12:22:50 +01:00
root 1b29d29c76 First movement to get the raspberrypi stdenv building. 2012-12-26 21:59:54 +00:00
Shea Levy 9ddd1cc78b Linux 3.7
Kernel configuration succeeds, I'll let hydra test the build
2012-12-11 11:57:04 -05:00
Rickard Nilsson 4959fd19f4 sheevaplug platform: Add hardware watchdog support 2012-10-04 13:11:13 +02:00
Rickard Nilsson 0c88675592 sheevaplug platform: Add VLAN support (CONFIG_VLAN_8021Q=m) 2012-10-04 13:10:24 +02:00
Lluis Batlle 30e76124e6 platforms: adding sha1 to the sheevaplug
The mv-cesa requires soft sha1 as fallback, to work.
2012-09-25 19:37:17 +02:00
Lluis Batlle 04f93115a3 sheevaplug: adding ubifs support to the kernel. 2012-09-16 22:46:57 +02:00
Lluís Batlle i Rossell 0820367a35 Adding the XFS and JFS modules to the sheevaplug kernel. They may be worth
using.


svn path=/nixpkgs/trunk/; revision=34426
2012-06-10 19:11:07 +00:00
Lluís Batlle i Rossell 5d263987a0 Updating the sheevaplug kernel config to include btrfs and netconsole.
svn path=/nixpkgs/trunk/; revision=34412
2012-06-09 20:27:00 +00:00
Rickard Nilsson 00b9523bbb Added IP_PNP_DHCP to the SheevaPlug kernel configuration.
This allows the SheevaPlug to set up the network automatically with
DHCP, if the "ip=dhcp" kernel option is set.

svn path=/nixpkgs/trunk/; revision=34105
2012-05-15 14:00:21 +00:00
Rickard Nilsson 3e2a3f5d09 Added ZRAM module support to the SheevaPlug kernel.
svn path=/nixpkgs/trunk/; revision=34104
2012-05-15 13:51:03 +00:00
Lluís Batlle i Rossell e0cfa58706 Updating the cifs utils (I think even the hash did not match for 4.5),
and adding some CIFS support to the sheevaplug kernel.

Patch by Rickard Nilsson.


svn path=/nixpkgs/trunk/; revision=32298
2012-02-15 11:08:38 +00:00
Lluís Batlle i Rossell e6c1aa2005 Fixing the kernel configuration for Fuloong2F. Specially with VGA_CONSOLE enabled,
it will not boot.

svn path=/nixpkgs/trunk/; revision=31750
2012-01-21 00:34:38 +00:00
Lluís Batlle i Rossell 9c87cccee9 Adding cgroups to the sheevaplug kernel.
svn path=/nixpkgs/trunk/; revision=31114
2011-12-27 19:33:36 +00:00