Browse Source

Add tty1 console, nicer PS1, ntpd.

Thomas Buck 8 years ago
parent
commit
ecc01e0f05
3 changed files with 23 additions and 1 deletions
  1. 1
    1
      board/raspi/boot/cmdline.txt
  2. 20
    0
      board/raspi/rootfs_overlay/etc/profile
  3. 2
    0
      configs/raspi_defconfig

+ 1
- 1
board/raspi/boot/cmdline.txt View File

@@ -1 +1 @@
1
-console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootwait
1
+console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait

+ 20
- 0
board/raspi/rootfs_overlay/etc/profile View File

@@ -0,0 +1,20 @@
1
+export PATH=/bin:/sbin:/usr/bin:/usr/sbin
2
+
3
+if [ "$PS1" ]; then
4
+	if [ "`id -u`" -eq 0 ]; then
5
+		export PS1='\e[0;31m[\u@\h:\w]# \e[m'
6
+	else
7
+		export PS1='\e[0;34m[\u@\h:\w]$ \e[m'
8
+	fi
9
+fi
10
+
11
+export PAGER='/bin/more '
12
+export EDITOR='/bin/vi'
13
+
14
+# Source configuration files from /etc/profile.d
15
+for i in /etc/profile.d/*.sh ; do
16
+	if [ -r "$i" ]; then
17
+		. $i
18
+	fi
19
+	unset i
20
+done

+ 2
- 0
configs/raspi_defconfig View File

@@ -10,6 +10,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to the CamCorder"
10 10
 BR2_TARGET_GENERIC_ROOT_PASSWD="camcorder"
11 11
 BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
12 12
 BR2_SYSTEM_DHCP="eth0"
13
+BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL)/board/raspi/rootfs_overlay"
13 14
 BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL)/board/raspi/post_image.sh"
14 15
 BR2_LINUX_KERNEL=y
15 16
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
@@ -29,3 +30,4 @@ BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2=y
29 30
 BR2_PACKAGE_RPI_FIRMWARE=y
30 31
 # BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS is not set
31 32
 BR2_PACKAGE_DROPBEAR=y
33
+BR2_PACKAGE_NTP=y

Loading…
Cancel
Save