source: trunk/config/debwrt_boot.in @ 517

Last change on this file since 517 was 517, checked in by amain, 6 years ago

Merge contrib branch 340:516. Main features added:

  • updated plugin architecture
  • improved patch system
  • bitten continous integration support
  • sever build fixed over time to remain in sync with OpenWrt
File size: 2.7 KB
Line 
1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2010 Johan van Zoomeren <amain@debwrt.net>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18menu "DebWrt Boot Options"
19
20choice
21    prompt "Boot method"
22        default BOOT_METHOD_SCRIPT
23        help
24          Select how DebWrt should boot
25
26config BOOT_METHOD_SCRIPT
27        bool "Use DebWrt boot script"
28        help
29          Auto discover root device, optionally kexec to a alternate kernel and boot from this device.
30          .
31          Normally DebWrt boots directly from the root= device. With this option enabled, DebWrt boots initially
32          from /dev/mtdblock2 and runs an alternate boot script (/etc/preinit). This scripts discovers block
33          devices and will look for a device with a label of DEBWRT_ROOT or fall back to /dev/sda1. And mounts it.
34          .
35          Next it will kexec to /boot/vmlinux.elf if it exits on the DEBWRT_ROOT device.
36          .
37          After mounting ( or kexec ), a pivot_root to the DEBWRT_ROOT device is done and /sbin/init is executed.
38
39config BOOT_METHOD_DEVICE
40        bool "Directly boot from device /dev/sda1"
41
42endchoice
43
44config CMDLINE_BOOL
45        bool
46        default y
47        depends BOOT_METHOD_DEVICE
48
49#CONFIG_CMDLINE="root=/dev/sda1 init=/sbin/init rootdelay=10 noinitrd console=ttyS0,115200"
50# default "root=/dev/sda1 init=/sbin/init rootdelay=15 noinitrd console=ttyS0,115200"
51# default "root=/dev/sda1 init=/sbin/init rootdelay=15 noinitrd console=ttyS0,115200 netconsole=6665@10.0.2.1/eth0,6666@10.0.2.2"
52# TODO: use patch-kernel script to append only netconsole=6665@192.168.1.1/eth0,6666@192.168.1.2/ to OpenWrt default cmdline"
53#       for now netconsole can't be set when BOOT_METHOD_SCRIPT
54config CMDLINE
55        string "Default kernel command line"
56        default "root=/dev/sda1 init=/sbin/init rootdelay=15 noinitrd console=ttyS0,115200 netconsole=6665@192.168.1.1/eth0,6666@192.168.1.2/"
57        depends BOOT_METHOD_DEVICE
58        help
59          Override OpenWrt default kernel command line. Tell the kernel to boot from /dev/sda1,
60          an USB storage device. Rootdelay is specified, to give the USB storage/SCSI driver
61          to become ready, before the kernel tries to boot from it.
62
63source "config/kexec.in"
64
65endmenu
Note: See TracBrowser for help on using the repository browser.