beaglebone-black.tmpl 2.2 KB

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