source: trunk/config/firmware/shared/kernel/boot.in @ 919

Last change on this file since 919 was 919, checked in by amain, 2 years ago

octeon-native: fix boot cmdline configuration, firmware: create header and modules tar.gzs with default owner/group root

File size: 3.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 "Boot Options"
19
20config IMAGE_CMDLINE_HACK
21        tristate
22        default n if BOOT_METHOD_BOOTLOADER
23        default y if !BOOT_METHOD_BOOTLOADER
24         
25
26choice
27    prompt "Boot method"
28        default BOOT_METHOD_BOOTLOADER if TARGET_octeon
29        default BOOT_METHOD_BOOTLOADER if TARGET_octeon-native
30        default BOOT_METHOD_DEVICE
31        help
32          Select how DebWrt should boot
33
34config BOOT_METHOD_DEVICE
35        bool "Directly boot from device /dev/sda1"
36
37config BOOT_METHOD_BOOTLOADER
38        bool "Ignore OpenWrt built-in kernel command line"
39        help
40          Don't use the OpenWrt built-in kernel command line, but use the command line
41          provided by the boot loader.
42          .
43          Many embedded devices don't provided easy access to the bootloader, or if you
44          manage to get access, the bootloader is very limited and might not allow changing
45          the kernel command line parameters.  Therefore OpenWrt normally creates kernels
46          with the kernel command line built-in.
47          .
48          This automatically sets OpenWrt's IMAGE_CMDLINE_HACK setting to n and replaces
49          the the patch-cmdline tool with a no-op script. Which is an ugly hack, but the
50          only way to avoid big patches.
51
52config BOOT_METHOD_SCRIPT
53        bool "Use DebWrt boot script (obsolete)"
54        help
55          Auto discover root device, optionally kexec to a alternate kernel and boot from this device.
56          .
57          Normally DebWrt boots directly from the root= device. With this option enabled, DebWrt boots initially
58          from /dev/mtdblock2 and runs an alternate boot script (/etc/preinit). This scripts discovers block
59          devices and will look for a device with a label of DEBWRT_ROOT or fall back to /dev/sda1. And mounts it.
60          .
61          Next it will kexec to /boot/vmlinux.elf if it exits on the DEBWRT_ROOT device.
62          .
63          After mounting ( or kexec ), a pivot_root to the DEBWRT_ROOT device is done and /sbin/init is executed.
64
65endchoice
66
67config CMDLINE_BOOL
68        bool
69        default y
70        depends BOOT_METHOD_DEVICE
71
72#CONFIG_CMDLINE="root=/dev/sda1 init=/sbin/init rootdelay=10 noinitrd console=ttyS0,115200"
73# default "root=/dev/sda1 init=/sbin/init rootdelay=15 noinitrd console=ttyS0,115200"
74# 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"
75# TODO: use patch-kernel script to append only netconsole=6665@192.168.1.1/eth0,6666@192.168.1.2/ to OpenWrt default cmdline"
76#       for now netconsole can't be set when BOOT_METHOD_SCRIPT
77config CMDLINE
78        string "Default kernel command line"
79        default "root=/dev/sda1 init=/sbin/init rootdelay=5 noinitrd console=ttyS0,115200 netconsole=6665@192.168.1.1/eth0,6666@192.168.1.2/"
80        depends BOOT_METHOD_DEVICE
81        help
82          Override OpenWrt default kernel command line. Tell the kernel to boot from /dev/sda1,
83          an USB storage device. Rootdelay is specified, to give the USB storage/SCSI driver
84          to become ready, before the kernel tries to boot from it.
85
86source "config/firmware/shared/kernel/kexec.in"
87
88source "config/firmware/shared/kernel/nfs.in"
89
90endmenu
91
Note: See TracBrowser for help on using the repository browser.