Commit Graph

81 Commits

Author SHA1 Message Date
Peter Korsgaard
9dc7b73f3b System config: split static-dev device table setting into seperate option
As discussed here:

http://lists.busybox.net/pipermail/buildroot/2011-May/043251.html

Add BR2_ROOTFS_STATIC_DEVICE_TABLE for the extra device table file(s)
to create device nodes in /dev, rather than complicated logic in
BR2_ROOTFS_DEVICE_TABLE, making it complicated to move between static
and dynamic modes.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-07-25 00:09:33 +02:00
Luca Ceresoli
36b4b852ee fs/skeleton: allow rootfs not to be remounted read-write
[Peter: prefix option with TARGET_GENERIC_]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-07-10 22:44:24 +02:00
Peter Korsgaard
e23a4bc752 Move rootfs content options under system configuration
Instead of the current mix between system config and filesystem menus.

At the same time rename 'Target filesystem options' menu to
'Filesystem images' as it now only contains options about image formats.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-05-12 23:40:05 +02:00
Peter Korsgaard
7d9d09db67 target/generic: only show getty port option if default skeleton is used
The special marker in etc/inittab might not be present with a custom
skeleton. At the same time make the option always active, remove the
hardcoded tty1/tty2 gettys and reword the option description slightly.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-05-12 17:21:06 +02:00
Thomas Petazzoni
4e005c47e5 Allow several device tables and split in two parts our device table
This allows to have a device table for all directories/files and
another device table for the device files themselves. Both are needed
for static /dev, but only the first one is needed when
devtmpfs/mdev/udev are used.

We take this opportunity to move the documentation of the device table
format in a common location, package/makedevs/README.

[Peter: simplify code slightly, fix indentation]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-05-09 16:52:22 +02:00
Phil Edworthy
e5448c8e77 Add Renesas ttySC* devices
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-04-26 16:41:39 +02:00
Peter Korsgaard
983158e225 target-generic-hostname: add /etc/hosts entry as well
Some applications (like proftpd) tries to resolve hostname at startup,
so add it to /etc/hosts.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-04-22 11:45:27 +02:00
H Hartley Sweeten
a6f14be606 target/generic: add /dev/ttyAM* device nodes
Add ttyAM support for the ARM AMBA serial ports on the Cirrus EP93xx.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-01-11 00:03:41 +01:00
Yegor Yefremov
5cfc41c752 Free text field for serial port configuration
BR2_TARGET_GENERIC_GETTY_PORT has now a string type instead of choice.
This makes port configuration flexible and compact.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-16 15:07:44 +01:00
Thomas Petazzoni
beb43c7d26 Re-add target/generic/Config.in options to menuconfig
The options to customize the hostname, the banner and the serial port
configuration are now inside a menu named 'System configuration'.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-16 12:19:25 +01:00
Thomas Petazzoni
b8065ed29a Remove mini device table, it isn't used
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-15 16:00:51 +01:00
Thomas Petazzoni
fb7226ca2f target: support generic getty with sysvinit inittabs
In sysvinit inittab the "id" field (first field) must be no longer
than 4 bytes, and is not used by init to determine the output
terminal. Therefore, we adjust the strategy used to modify the inittab
file according to the getty configuration.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-14 00:25:18 +01:00
Dmytro Milinevskyy
d9119c0bc5 move default skeleton to fs/ and drop busybox skeleton
[Peter: fixup patch, adjust for busybox.mk changes]
Signed-off-by: Dmytro Milinevskyy <milinevskyy@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-18 23:08:55 +02:00
Baruch Siach
8dad77bac4 skeleton: remove loopback interface configuration from inittab
The lo interface is marked auto in /etc/network/interfaces, so the
configuration of the loopback network interface is part of the
S40network init script. This causes the "RTNETLINK answers: File exists" error
message to appear at startup time.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-06-09 13:38:58 +02:00
Baruch Siach
21350c5f2f busybox skeleton: allow logins from ttymxc[0-2]
Add ttymxc[0-2] to the list is the /etc/securetty of the Busybox skeleton.
This is useful for serial logins on i.MX based systems. The same serial
devices already appear in the generic "target_skeleton/".

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-05-26 14:40:12 +02:00
Peter Korsgaard
d39641ccd6 target/generic: inittab: fix devpts mounts when devtmpfs is used
If devtmpfs (the kernel-maintained /dev filesystem) is used, no
/dev/pts directory is created, causing the devpts mount to fail, which
in term causes stuff like dropbear to fail.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-05-03 12:01:19 +02:00
Thomas Petazzoni
32241116c8 Remove all TARGET_DEVICE_TABLE definitions
We have a special case for Xtensa, which was patching the generic
device_table.txt. Instead of doing this, we just keep a copy of the
device table, specific to Xtensa, with Xtensa specifities. The fact
that the patch wasn't applying anymore on the generic device table is
a sign that the existing approach wasn't working anyway.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-04-17 04:36:23 +02:00
Paulius Zaleckas
d6a0d6f309 Add missing directories to Busybox skeleton
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-04-02 15:17:33 +02:00
Paulius Zaleckas
8801de9c74 Remove ConfigFS from Busybox skeleton
It is not included in generic skeleton and very unlikely
that someone will use it on embedded devices.
AFAIK even Fedora does not include it in fstab.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-04-02 15:16:53 +02:00
Gustavo Zacarias
4833d1355c Drop generic package selection (access point, firewall, dev system)
Closes #813.

Drop generic package selection (access point, firewall, dev system) since
they're too ambiguous and not very useful.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-12-26 09:13:10 +01:00
Peter Korsgaard
d31c7723ae target/generic: /etc/{hostname,issue}: work around quotes in kconfig
Otherwise the targets will always run.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-06 15:08:55 +02:00
Peter Korsgaard
d65976fe26 buildroot: reinstate /etc/{hostname,issue} kconfig when using generic target
These got lost in the recent cleanup, but are handy for minimal rootfs
customization.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-30 21:53:22 +02:00
Peter Korsgaard
0c050a7fe5 target: update default /etc/issue and /etc/hostname
Adjust default /etc/issue to print 'Welcome to Buildroot' like the
recently removed BR2_BANNER did, and adjust default hostname to be
'buildroot' instead of uclibc as we now support external glibc
toolchains as well.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-19 21:37:25 +02:00
Thomas Petazzoni
79c213fbe5 target: use qstrip
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-09-05 14:43:17 +02:00
Thomas Petazzoni
8d880c3e5c Fix PROGRAM_INVOCATION handling with external toolchains
BR2_UCLIBC_PROGRAM_INVOCATION is a toolchain configuration option,
like BR2_INET_IPV6, BR2_INET_RPC, on which some packages
depend. Therefore, it should be handled like BR2_INET_IPV6 and
BR2_INET_RPC in order to work properly with external toolchains.

Since we move it out of toolchain/uClibc/Config.in into
toolchain/Config.in.2, we rename the option to BR2_PROGRAM_INVOCATION
(since BR2_INET_RPC and others don't have UCLIBC in their name).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-07-31 11:40:34 +02:00
Peter Korsgaard
691cf5eb42 target/generic: add /dev/sd{a,b}*, /dev/ub{a,b}* device nodes
E.G. for usb disks.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-06-21 14:42:15 +02:00
Peter Korsgaard
33f7d7929f target/generic: add /dev/i2c-N device nodes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-06-21 14:37:09 +02:00
Daniel Mack
ee0ebdfd59 Add support for Freescale's MXC serial terminals
This patch makes ttymxc[012] an option to choose for
BR2_TARGET_GENERIC_GETTY.

It also adds these ports to the generic device table and to securetty.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-06-10 20:00:59 +02:00
Peter Korsgaard
d41f360565 target/generic: add ttySACx support to serial console config
Add ttySACx (samsung s3c SoC) support to the generic serial console
config.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-06-07 23:10:27 +02:00
Peter Korsgaard
635346844c target/generic: support for busybox >= 1.14.x speed=0 handling 2009-04-15 13:42:12 +00:00
Peter Korsgaard
f91a64d224 package: auto* needs perl 2009-03-23 21:45:52 +00:00
Peter Korsgaard
cb69d005ad target/generic: s/TTYSO/TTYS0/
Thanks to Hiroshi Shinji for noticing.
2009-03-23 09:44:13 +00:00
Peter Korsgaard
9611fd600b target/generic: add kconfig for serial getty config (port + baudrate)
These are the settings people most often want to tweak for embedded boards,
so add kconfig variables to make it easy to do.
2009-03-20 21:59:43 +00:00
Peter Korsgaard
1a57a54804 target/generic: skeleton: add netdev group for dbus 2009-03-20 08:38:33 +00:00
Peter Korsgaard
624b1c4cf1 target/generic: development system needs wchar + program invocation 2009-03-04 11:14:40 +00:00
Peter Korsgaard
87736033ab target/generic: add ttyCPMx device nodes to device_table / securetty
Serial devices for CPM cores on ppc.
2009-02-03 14:30:44 +00:00
Peter Korsgaard
7b981dbf06 Revert r24952 (BR2_TARGET_TEST_PACKAGES)
As discussed on the list. It is already out of date
(BR2_TARGET_UBOOT_2009_01_RC3, BR2_PACKAGE_RAIDTOOLS), is the wrong solution
and breaks the make allyesconfig; make menuconfig / sed workflow.
2009-01-23 20:45:30 +00:00
Ulf Samuelsson
6fd0d36d32 Add simple way to enable most (but not all) targets for testing purposes 2009-01-22 07:53:24 +00:00
Peter Korsgaard
585aca9a5a add .empty files for git-svn
git-svn (and git) doesn't handle empty directories, so add .empty files
to those dirs like elsewhere in buildroot.

Those empty directories are normally not a big deal, but the recent changes
to u-boot broke the build.
2009-01-05 15:47:00 +00:00
Peter Korsgaard
cd7245fc11 target/generic: add ttyAMAx device nodes (E.G. for qemu-system-arm) 2008-12-23 14:54:49 +00:00
Peter Korsgaard
7139678f78 make the default etc/init.d/S40network compatible with msh
msh is currently the only good choice for uClinux but it doesn't
understands shell functions.  In this case there is nothing to gain
by using shell functions anyway.

Signed-off-by: Nicolas Pitre <nico@cam.org>
2008-12-08 14:52:16 +00:00
Peter Korsgaard
cb9d03ca6e target: add /sys directory to target skeletons needing it
The remaining target_skeletons where /etc/fstab mentions sysfs
2008-10-18 13:00:58 +00:00
Peter Korsgaard
921eb994f8 Add Xilinx UARTLITE and MPC5200 PSC device files (serial ports)
From: Grant Likely <grant.likely@secretlab.ca>

The Xilinx UART Lite and MPC5200 Programmable Serial Controller (PSC)
devices have dedicated major/minor numbers.  Add them to the device
table data file so they get are present in the root filesystem
2008-10-17 10:19:41 +00:00
Peter Korsgaard
49e3aba2d9 target/generic: add uartlite ttyULx devices to securetty 2008-09-16 18:44:54 +00:00
Peter Korsgaard
f8bc2e1e31 target/generic/mini: remove udhcpc default.script entry
It isn't provided in the target skeleton, and avahi gets the
permissions correct so it isn't needed and just confuses users.
2008-08-31 06:26:40 +00:00
Peter Korsgaard
4683420c4c Kconfig: remove 'default n'
'default n' is the default, so there's no need to say it explicitly.
2008-07-17 20:01:44 +00:00
Peter Korsgaard
66acd5b9e8 generic: fix fb1..3 device_table.txt entries 2008-06-30 15:24:23 +00:00
Peter Korsgaard
6d0862e422 generic target_skeleton: add /sys to fstab 2008-05-31 07:27:43 +00:00
Peter Korsgaard
5ec6ca9f20 generic target_skeleton: mark /sys with .empty file
/sys somehow didn't got an .empty file like the rest in r21586. Fixed.
2008-05-31 07:27:40 +00:00
Peter Korsgaard
01c5168579 target_skeleton: mark empty directories with .empty files
Mark empty directories in target skeletons with .empty files
and remove them while copying to target (like it's already done for
svn and cvs files) to better support version control system which don't
handle empty directories (E.G. git-svn).
2008-03-30 20:45:42 +00:00