* [PATCHES] Porting sysvinit changes from arago to meta-arago
@ 2012-08-01 22:25 Cooper Jr., Franklin
2012-08-03 13:44 ` Maupin, Chase
2012-08-08 2:14 ` Denys Dmytriyenko
0 siblings, 2 replies; 6+ messages in thread
From: Cooper Jr., Franklin @ 2012-08-01 22:25 UTC (permalink / raw)
To: meta-arago@arago-project.org; +Cc: Cooper Jr., Franklin
[-- Attachment #1.1: Type: text/plain, Size: 117 bytes --]
Regards,
Franklin Cooper Jr.
Texas Instruments
Application Engineer
fcooper@ti.com<mailto:fcooper@ti.com>
[-- Attachment #1.2: Type: text/html, Size: 2023 bytes --]
[-- Attachment #2: 0001-sysvinit-Port-from-arago-to-meta-arago.patch --]
[-- Type: application/octet-stream, Size: 3173 bytes --]
From 29e2068cc15ac65331684a67d06818f3aa5dc16a Mon Sep 17 00:00:00 2001
From: Franklin S Cooper Jr <fcooper@ti.com>
Date: Mon, 30 Jul 2012 11:49:09 -0500
Subject: [PATCH 1/2] sysvinit - Port from arago to meta-arago
* Port changes from arago to meta-arago
* Copy rcS-default from oe-core /meta/recipes-core/sysvinit/sysvinit
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
.../recipes-core/sysvinit/sysvinit/rcS-default | 25 ++++++++++++++++++++
.../sysvinit/sysvinit_2.88dsf.bbappend | 24 +++++++++++++++++++
2 files changed, 49 insertions(+), 0 deletions(-)
create mode 100644 meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
create mode 100644 meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
diff --git a/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
new file mode 100644
index 0000000..fc6d415
--- /dev/null
+++ b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
@@ -0,0 +1,25 @@
+#
+# Defaults for the boot scripts in /etc/rcS.d
+#
+
+# Time files in /tmp are kept in days.
+TMPTIME=0
+# Set to yes if you want sulogin to be spawned on bootup
+SULOGIN=no
+# Set to no if you want to be able to login over telnet/rlogin
+# before system startup is complete (as soon as inetd is started)
+DELAYLOGIN=no
+# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
+# UTC=yes
+# Set VERBOSE to "no" if you would like a more quiet bootup.
+VERBOSE=no
+# Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically
+EDITMOTD=no
+# Whether to fsck root on boot
+ENABLE_ROOTFS_FSCK=no
+# Set FSCKFIX to "yes" if you want to add "-y" to the fsck at startup.
+FSCKFIX=yes
+# Set TICKADJ to the correct tick value for this specific machine
+#TICKADJ=10000
+# Enable caching in populate-volatile.sh
+VOLATILE_ENABLE_CACHE=yes
diff --git a/meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend b/meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
new file mode 100644
index 0000000..07c822b
--- /dev/null
+++ b/meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
@@ -0,0 +1,24 @@
+# Arago-specific amendments to the standard OE SysVinit recipe
+
+# look for files in this layer first
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PR_append = "-arago0"
+
+# When building for "unified" arago machine, start gettys on first 3 serial consoles (ttyS?/ttyO?)
+add_arago_gettys () {
+ echo "S0:2345:respawn:${base_sbindir}/getty 115200 ttyS0" >> ${D}${sysconfdir}/inittab
+ echo "S1:2345:respawn:${base_sbindir}/getty 115200 ttyS1" >> ${D}${sysconfdir}/inittab
+ echo "S2:2345:respawn:${base_sbindir}/getty 115200 ttyS2" >> ${D}${sysconfdir}/inittab
+ echo "O0:2345:respawn:${base_sbindir}/getty 115200 ttyO0" >> ${D}${sysconfdir}/inittab
+ echo "O1:2345:respawn:${base_sbindir}/getty 115200 ttyO1" >> ${D}${sysconfdir}/inittab
+ echo "O2:2345:respawn:${base_sbindir}/getty 115200 ttyO2" >> ${D}${sysconfdir}/inittab
+}
+
+do_install_append_arago-armv5 () {
+ add_arago_gettys
+}
+
+do_install_append_arago-armv7 () {
+ add_arago_gettys
+}
--
1.7.0.4
[-- Attachment #3: 0002-sysvinit-Port-changes-to-rcS-default-from-arago.patch --]
[-- Type: application/octet-stream, Size: 1184 bytes --]
From 1fb70449619c01b6a3e5af23f797df1cb2ec57a0 Mon Sep 17 00:00:00 2001
From: Franklin S Cooper Jr <fcooper@ti.com>
Date: Mon, 30 Jul 2012 11:53:27 -0500
Subject: [PATCH 2/2] sysvinit - Port changes to rcS-default from arago
* Modify the base rcS-default file which was taken from oe-core
and tweak the file based on the rcS-default file located in arago
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
.../recipes-core/sysvinit/sysvinit/rcS-default | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
index fc6d415..91043f2 100644
--- a/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
+++ b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
@@ -11,6 +11,8 @@ SULOGIN=no
DELAYLOGIN=no
# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
# UTC=yes
+# Set to no to not run hwclock for rtc
+HWCLOCKACCESS=no
# Set VERBOSE to "no" if you would like a more quiet bootup.
VERBOSE=no
# Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCHES] Porting sysvinit changes from arago to meta-arago
2012-08-01 22:25 [PATCHES] Porting sysvinit changes from arago to meta-arago Cooper Jr., Franklin
@ 2012-08-03 13:44 ` Maupin, Chase
2012-08-03 16:18 ` Cooper Jr., Franklin
2012-08-08 2:14 ` Denys Dmytriyenko
1 sibling, 1 reply; 6+ messages in thread
From: Maupin, Chase @ 2012-08-03 13:44 UTC (permalink / raw)
To: Cooper Jr., Franklin, meta-arago@arago-project.org
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
Use : in the commit message instead of -.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: chase.maupin@ti.com
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Cooper Jr., Franklin
Sent: Wednesday, August 01, 2012 5:26 PM
To: meta-arago@arago-project.org
Cc: Cooper Jr., Franklin
Subject: [meta-arago] [PATCHES] Porting sysvinit changes from arago to meta-arago
Regards,
Franklin Cooper Jr.
Texas Instruments
Application Engineer
fcooper@ti.com<mailto:fcooper@ti.com>
[-- Attachment #2: Type: text/html, Size: 6700 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHES] Porting sysvinit changes from arago to meta-arago
2012-08-03 13:44 ` Maupin, Chase
@ 2012-08-03 16:18 ` Cooper Jr., Franklin
0 siblings, 0 replies; 6+ messages in thread
From: Cooper Jr., Franklin @ 2012-08-03 16:18 UTC (permalink / raw)
To: Maupin, Chase, meta-arago@arago-project.org; +Cc: Cooper Jr., Franklin
[-- Attachment #1.1: Type: text/plain, Size: 933 bytes --]
Please use these updated patches instead.
From: Maupin, Chase
Sent: Friday, August 03, 2012 8:44 AM
To: Cooper Jr., Franklin; meta-arago@arago-project.org
Subject: RE: [meta-arago] [PATCHES] Porting sysvinit changes from arago to meta-arago
Use : in the commit message instead of -.
Sincerely,
Chase Maupin
Software Applications
ARM MPU
e-mail: chase.maupin@ti.com
phone: (214) 567-2950
For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/
From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Cooper Jr., Franklin
Sent: Wednesday, August 01, 2012 5:26 PM
To: meta-arago@arago-project.org
Cc: Cooper Jr., Franklin
Subject: [meta-arago] [PATCHES] Porting sysvinit changes from arago to meta-arago
Regards,
Franklin Cooper Jr.
Texas Instruments
Application Engineer
fcooper@ti.com<mailto:fcooper@ti.com>
[-- Attachment #1.2: Type: text/html, Size: 7612 bytes --]
[-- Attachment #2: 0001-sysvinit-Port-from-arago-to-meta-arago.patch --]
[-- Type: application/octet-stream, Size: 3172 bytes --]
From 58abb2c7733372c72e3579ae8c1942f79f333042 Mon Sep 17 00:00:00 2001
From: Franklin S Cooper Jr <fcooper@ti.com>
Date: Mon, 30 Jul 2012 11:49:09 -0500
Subject: [PATCH 1/2] sysvinit: Port from arago to meta-arago
* Port changes from arago to meta-arago
* Copy rcS-default from oe-core /meta/recipes-core/sysvinit/sysvinit
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
.../recipes-core/sysvinit/sysvinit/rcS-default | 25 ++++++++++++++++++++
.../sysvinit/sysvinit_2.88dsf.bbappend | 24 +++++++++++++++++++
2 files changed, 49 insertions(+), 0 deletions(-)
create mode 100644 meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
create mode 100644 meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
diff --git a/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
new file mode 100644
index 0000000..fc6d415
--- /dev/null
+++ b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
@@ -0,0 +1,25 @@
+#
+# Defaults for the boot scripts in /etc/rcS.d
+#
+
+# Time files in /tmp are kept in days.
+TMPTIME=0
+# Set to yes if you want sulogin to be spawned on bootup
+SULOGIN=no
+# Set to no if you want to be able to login over telnet/rlogin
+# before system startup is complete (as soon as inetd is started)
+DELAYLOGIN=no
+# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
+# UTC=yes
+# Set VERBOSE to "no" if you would like a more quiet bootup.
+VERBOSE=no
+# Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically
+EDITMOTD=no
+# Whether to fsck root on boot
+ENABLE_ROOTFS_FSCK=no
+# Set FSCKFIX to "yes" if you want to add "-y" to the fsck at startup.
+FSCKFIX=yes
+# Set TICKADJ to the correct tick value for this specific machine
+#TICKADJ=10000
+# Enable caching in populate-volatile.sh
+VOLATILE_ENABLE_CACHE=yes
diff --git a/meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend b/meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
new file mode 100644
index 0000000..07c822b
--- /dev/null
+++ b/meta-arago-extras/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
@@ -0,0 +1,24 @@
+# Arago-specific amendments to the standard OE SysVinit recipe
+
+# look for files in this layer first
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PR_append = "-arago0"
+
+# When building for "unified" arago machine, start gettys on first 3 serial consoles (ttyS?/ttyO?)
+add_arago_gettys () {
+ echo "S0:2345:respawn:${base_sbindir}/getty 115200 ttyS0" >> ${D}${sysconfdir}/inittab
+ echo "S1:2345:respawn:${base_sbindir}/getty 115200 ttyS1" >> ${D}${sysconfdir}/inittab
+ echo "S2:2345:respawn:${base_sbindir}/getty 115200 ttyS2" >> ${D}${sysconfdir}/inittab
+ echo "O0:2345:respawn:${base_sbindir}/getty 115200 ttyO0" >> ${D}${sysconfdir}/inittab
+ echo "O1:2345:respawn:${base_sbindir}/getty 115200 ttyO1" >> ${D}${sysconfdir}/inittab
+ echo "O2:2345:respawn:${base_sbindir}/getty 115200 ttyO2" >> ${D}${sysconfdir}/inittab
+}
+
+do_install_append_arago-armv5 () {
+ add_arago_gettys
+}
+
+do_install_append_arago-armv7 () {
+ add_arago_gettys
+}
--
1.7.0.4
[-- Attachment #3: 0002-sysvinit-Port-changes-to-rcS-default-from-arago.patch --]
[-- Type: application/octet-stream, Size: 1183 bytes --]
From fcf85498336ab3454c67fe46048a892b15f7f7dc Mon Sep 17 00:00:00 2001
From: Franklin S Cooper Jr <fcooper@ti.com>
Date: Mon, 30 Jul 2012 11:53:27 -0500
Subject: [PATCH 2/2] sysvinit: Port changes to rcS-default from arago
* Modify the base rcS-default file which was taken from oe-core
and tweak the file based on the rcS-default file located in arago
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
---
.../recipes-core/sysvinit/sysvinit/rcS-default | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
index fc6d415..91043f2 100644
--- a/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
+++ b/meta-arago-extras/recipes-core/sysvinit/sysvinit/rcS-default
@@ -11,6 +11,8 @@ SULOGIN=no
DELAYLOGIN=no
# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.
# UTC=yes
+# Set to no to not run hwclock for rtc
+HWCLOCKACCESS=no
# Set VERBOSE to "no" if you would like a more quiet bootup.
VERBOSE=no
# Set EDITMOTD to "no" if you don't want /etc/motd to be edited automatically
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCHES] Porting sysvinit changes from arago to meta-arago
2012-08-01 22:25 [PATCHES] Porting sysvinit changes from arago to meta-arago Cooper Jr., Franklin
2012-08-03 13:44 ` Maupin, Chase
@ 2012-08-08 2:14 ` Denys Dmytriyenko
2012-08-08 22:18 ` Cooper Jr., Franklin
1 sibling, 1 reply; 6+ messages in thread
From: Denys Dmytriyenko @ 2012-08-08 2:14 UTC (permalink / raw)
To: Cooper Jr., Franklin; +Cc: meta-arago@arago-project.org
Franklin,
As previously mentioned, we should not blindly port all the old fixes and
workarounds from Arago to meta-arago. Specifically, in these 2 patches you are
bringing in setting default gettys for the fake "arago" machine, which you
don't need or have (although, I'll be porting that soon) as well as disabling
hwclock due to some old issue we used to have. I'd recommend checking the
history of such changes before deciding if we still need those in meta-arago:
$ git log recipes/sysvinit/sysvinit/rcS-default
commit 393de1d0a68bd371328c3765b5df0fc32bb3f0be
Author: Denys Dmytriyenko <denis@denix.org>
Date: Wed Jun 17 21:35:04 2009 -0400
rcS-default: disable hwclock use due to missing RTC (temporary?)
Do we still have this issue with our current platforms? Is it applicable to
all out supported platforms?
Denys
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHES] Porting sysvinit changes from arago to meta-arago
2012-08-08 2:14 ` Denys Dmytriyenko
@ 2012-08-08 22:18 ` Cooper Jr., Franklin
2012-08-09 15:13 ` Cooper Jr., Franklin
0 siblings, 1 reply; 6+ messages in thread
From: Cooper Jr., Franklin @ 2012-08-08 22:18 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-arago@arago-project.org, Cooper Jr., Franklin
Your right. The "add_arago_gettys" can stay and I will probably modify the commit to explain why it is needed. What was the exact issue that required hwclock to be disabled? RTC is currently supported by all of our platforms but I don't know what to really look to make sure this problem still doesn't exist.
-----Original Message-----
From: Denys Dmytriyenko [mailto:denis@denix.org]
Sent: Tuesday, August 07, 2012 9:14 PM
To: Cooper Jr., Franklin
Cc: meta-arago@arago-project.org
Subject: Re: [meta-arago] [PATCHES] Porting sysvinit changes from arago to meta-arago
Franklin,
As previously mentioned, we should not blindly port all the old fixes and
workarounds from Arago to meta-arago. Specifically, in these 2 patches you are
bringing in setting default gettys for the fake "arago" machine, which you
don't need or have (although, I'll be porting that soon) as well as disabling
hwclock due to some old issue we used to have. I'd recommend checking the
history of such changes before deciding if we still need those in meta-arago:
$ git log recipes/sysvinit/sysvinit/rcS-default
commit 393de1d0a68bd371328c3765b5df0fc32bb3f0be
Author: Denys Dmytriyenko <denis@denix.org>
Date: Wed Jun 17 21:35:04 2009 -0400
rcS-default: disable hwclock use due to missing RTC (temporary?)
Do we still have this issue with our current platforms? Is it applicable to
all out supported platforms?
Denys
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHES] Porting sysvinit changes from arago to meta-arago
2012-08-08 22:18 ` Cooper Jr., Franklin
@ 2012-08-09 15:13 ` Cooper Jr., Franklin
0 siblings, 0 replies; 6+ messages in thread
From: Cooper Jr., Franklin @ 2012-08-09 15:13 UTC (permalink / raw)
To: Cooper Jr., Franklin, Denys Dmytriyenko
Cc: meta-arago@arago-project.org, Cooper Jr., Franklin
In oe-core, the modification to inittab is done in a new recipe called sysvinit-inittab. Unlike in oe-classic they added support for having multiple serial consoles being added to inittab via the SERIAL_CONSOLES variable which is set inside the machine's conf file.
Ex:
SERIAL_CONSOLES = "115200;ttyO0 \
115200;ttyO2 \
115200;ttyO4
If you use the SERIAL_CONSOLES variable in your generic/unified arago machine file then we can avoid having to make any modifications to the sysvinit/sysvinit-inittab recipe.
Unless there is a specific feature in RTC that is still an issue that requires disabling hwclock we can ignore my two patches since they both aren't needed.
-----Original Message-----
From: Cooper Jr., Franklin
Sent: Wednesday, August 08, 2012 5:19 PM
To: Denys Dmytriyenko
Cc: meta-arago@arago-project.org; Cooper Jr., Franklin
Subject: RE: [meta-arago] [PATCHES] Porting sysvinit changes from arago to meta-arago
Your right. The "add_arago_gettys" can stay and I will probably modify the commit to explain why it is needed. What was the exact issue that required hwclock to be disabled? RTC is currently supported by all of our platforms but I don't know what to really look to make sure this problem still doesn't exist.
-----Original Message-----
From: Denys Dmytriyenko [mailto:denis@denix.org]
Sent: Tuesday, August 07, 2012 9:14 PM
To: Cooper Jr., Franklin
Cc: meta-arago@arago-project.org
Subject: Re: [meta-arago] [PATCHES] Porting sysvinit changes from arago to meta-arago
Franklin,
As previously mentioned, we should not blindly port all the old fixes and
workarounds from Arago to meta-arago. Specifically, in these 2 patches you are
bringing in setting default gettys for the fake "arago" machine, which you
don't need or have (although, I'll be porting that soon) as well as disabling
hwclock due to some old issue we used to have. I'd recommend checking the
history of such changes before deciding if we still need those in meta-arago:
$ git log recipes/sysvinit/sysvinit/rcS-default
commit 393de1d0a68bd371328c3765b5df0fc32bb3f0be
Author: Denys Dmytriyenko <denis@denix.org>
Date: Wed Jun 17 21:35:04 2009 -0400
rcS-default: disable hwclock use due to missing RTC (temporary?)
Do we still have this issue with our current platforms? Is it applicable to
all out supported platforms?
Denys
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-08-09 15:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01 22:25 [PATCHES] Porting sysvinit changes from arago to meta-arago Cooper Jr., Franklin
2012-08-03 13:44 ` Maupin, Chase
2012-08-03 16:18 ` Cooper Jr., Franklin
2012-08-08 2:14 ` Denys Dmytriyenko
2012-08-08 22:18 ` Cooper Jr., Franklin
2012-08-09 15:13 ` Cooper Jr., Franklin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.