beaglebone-black.tmpl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ;; -*- mode: scheme; -*-
  2. ;; This is an operating system configuration template
  3. ;; for a "bare bones" setup on BeagleBone Black board.
  4. (use-modules (gnu) (gnu bootloader u-boot))
  5. (use-service-modules networking)
  6. (use-package-modules bootloaders screen ssh)
  7. (operating-system
  8. (host-name "komputilo")
  9. (timezone "Europe/Berlin")
  10. (locale "en_US.utf8")
  11. ;; Assuming /dev/mmcblk1 is the eMMC, and "my-root" is
  12. ;; the label of the target root file system.
  13. (bootloader (bootloader-configuration
  14. (bootloader u-boot-beaglebone-black-bootloader)
  15. (targets '("/dev/mmcblk1"))))
  16. ;; This module is required to mount the SD card.
  17. (initrd-modules (cons "omap_hsmmc" %base-initrd-modules))
  18. (file-systems (cons (file-system
  19. (device (file-system-label "my-root"))
  20. (mount-point "/")
  21. (type "ext4"))
  22. %base-file-systems))
  23. ;; This is where user accounts are specified. The "root"
  24. ;; account is implicit, and is initially created with the
  25. ;; empty password.
  26. (users (cons (user-account
  27. (name "alice")
  28. (comment "Bob's sister")
  29. (group "users")
  30. ;; Adding the account to the "wheel" group
  31. ;; makes it a sudoer. Adding it to "audio"
  32. ;; and "video" allows the user to play sound
  33. ;; and access the webcam.
  34. (supplementary-groups '("wheel"
  35. "audio" "video")))
  36. %base-user-accounts))
  37. ;; Globally-installed packages.
  38. (packages (append (list screen openssh) %base-packages))
  39. (services (append (list (service dhcp-client-service-type)
  40. ;; mingetty does not work on serial lines.
  41. ;; Use agetty with board-specific serial parameters.
  42. (service agetty-service-type
  43. (agetty-configuration
  44. (extra-options '("-L"))
  45. (baud-rate "115200")
  46. (term "vt100")
  47. (tty "ttyO0"))))
  48. %base-services)))