Skip to content

Commit 74e6919

Browse files
committed
hs38_vdk: use overlay for specific features in "inittab"
This is the only way to instantiate getty on both serial port (ttyS3) and LCD/keyboard (tty0). And since we use custom "inittab" remove fs remount from it so no need to extra option in Buildroot config. Signed-off-by: Alexey Brodkin <[email protected]>
1 parent 201798f commit 74e6919

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# /etc/inittab
2+
#
3+
# Copyright (C) 2001 Erik Andersen <[email protected]>
4+
#
5+
# Note: BusyBox init doesn't support runlevels. The runlevels field is
6+
# completely ignored by BusyBox init. If you want runlevels, use
7+
# sysvinit.
8+
#
9+
# Format for each entry: <id>:<runlevels>:<action>:<process>
10+
#
11+
# id == tty to run on, or empty for /dev/console
12+
# runlevels == ignored
13+
# action == one of sysinit, respawn, askfirst, wait, and once
14+
# process == program to run
15+
16+
# Startup the system
17+
null::sysinit:/bin/mount -t proc proc /proc
18+
null::sysinit:/bin/mkdir -p /dev/pts
19+
null::sysinit:/bin/mkdir -p /dev/shm
20+
null::sysinit:/bin/mount -a
21+
null::sysinit:/bin/hostname -F /etc/hostname
22+
# now run any rc scripts
23+
::sysinit:/etc/init.d/rcS
24+
25+
# Start an "askfirst" shell on the console (whatever that may be)
26+
#::askfirst:-/bin/sh # ASKFIRST_SHELL
27+
28+
# /sbin/getty invocations for selected ttys
29+
tty1::respawn:/sbin/getty 115200 tty1
30+
31+
# Put a getty on the serial port
32+
ttyS3::respawn:/sbin/getty -L ttyS3 115200 vt100
33+
34+
# Stuff to do for the 3-finger salute
35+
::ctrlaltdel:/sbin/reboot
36+
37+
# Stuff to do before rebooting
38+
::shutdown:/etc/init.d/rcK
39+
::shutdown:/sbin/swapoff -a
40+
::shutdown:/bin/umount -a -r

configs/hs38_smp_vdk_defconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y
99
BR2_PACKAGE_HOST_GDB=y
1010
BR2_TARGET_GENERIC_HOSTNAME="axs103"
1111
BR2_TARGET_GENERIC_ISSUE="Welcome to the HS38 VDK Software Development Platform"
12-
BR2_INIT_SYSV=y
1312
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
14-
BR2_TARGET_GENERIC_GETTY_PORT="ttyS3"
15-
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
13+
BR2_ROOTFS_OVERLAY="board/hs38_vdk/fs-overlay"
1614
BR2_LINUX_KERNEL=y
1715
BR2_LINUX_KERNEL_CUSTOM_GIT=y
1816
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/foss-for-synopsys-dwc-arc-processors/linux.git"

configs/hs38_vdk_defconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ BR2_TOOLCHAIN_BUILDROOT_CXX=y
99
BR2_PACKAGE_HOST_GDB=y
1010
BR2_TARGET_GENERIC_HOSTNAME="axs103"
1111
BR2_TARGET_GENERIC_ISSUE="Welcome to the HS38 VDK Software Development Platform"
12-
BR2_INIT_SYSV=y
1312
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
14-
BR2_TARGET_GENERIC_GETTY_PORT="ttyS3"
15-
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
13+
BR2_ROOTFS_OVERLAY="board/hs38_vdk/fs-overlay"
1614
BR2_LINUX_KERNEL=y
1715
BR2_LINUX_KERNEL_CUSTOM_GIT=y
1816
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/foss-for-synopsys-dwc-arc-processors/linux.git"

0 commit comments

Comments
 (0)