beaglebone-black.tmpl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. (targets '("/dev/mmcblk1"))))
  15. ;; This module is required to mount the SD card.
  16. (initrd-modules (cons "omap_hsmmc" %base-initrd-modules))
  17. (file-systems (cons (file-system
  18. (device (file-system-label "my-root"))
  19. (mount-point "/")
  20. (type "ext4"))
  21. %base-file-systems))
  22. ;; This is where user accounts are specified. The "root"
  23. ;; account is implicit, and is initially created with the
  24. ;; empty password.
  25. (users (cons (user-account
  26. (name "alice")
  27. (comment "Bob's sister")
  28. (group "users")
  29. ;; Adding the account to the "wheel" group
  30. ;; makes it a sudoer. Adding it to "audio"
  31. ;; and "video" allows the user to play sound
  32. ;; and access the webcam.
  33. (supplementary-groups '("wheel"
  34. "audio" "video")))
  35. %base-user-accounts))
  36. ;; Globally-installed packages.
  37. (packages (append (list screen openssh) %base-packages))
  38. (services (append (list (service dhcp-client-service-type)
  39. ;; mingetty does not work on serial lines.
  40. ;; Use agetty with board-specific serial parameters.
  41. (agetty-service
  42. (agetty-configuration
  43. (extra-options '("-L"))
  44. (baud-rate "115200")
  45. (term "vt100")
  46. (tty "ttyO0"))))
  47. %base-services)))