Bug 4374 - SERIAL_CONSOLES creates entries in inittab which do not have a unique ID
Summary: SERIAL_CONSOLES creates entries in inittab which do not have a unique ID
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-04-22 09:23 UTC by John Toomey
Modified: 2013-05-03 10:05 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Toomey 2013-04-22 09:23:56 UTC
The following patch allows the use of SERIAL_CONSOLES to create multiple getty sessions on different serial ports: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7dec9be56bed73bbd8cbc42360620c64f1fed882

The inittab IDs used by the patch are not unique because the same IDs are used elsewhere in the poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb recipe:

        for n in ${SYSVINIT_ENABLED_GETTYS}
        do
            echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
        done
        echo "" >> ${D}${sysconfdir}/inittab

This results in myltiple lines in the inittab having the same ID which will cause a conflict.

I suggest that the patch be modified to use the IDs S0,S1,..,SN rather than 1,2,..,N as it is currently. 

echo "S${idx}:2345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
Comment 1 Richard Purdie 2013-04-22 13:53:14 UTC
Reassign to Paul since I think he's been talking to John...