Opened 3 years ago

Closed 2 years ago

#18685 closed defect (wontfix)

Fon can't change kernel command line

Reported by: xuefer Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: Cc:


I'm trying to override command line using exec -c, but kernel never get the cmdline provided by redboot

RedBoot> fis load -l kernel
Image loaded from 0x80041000-0x80333a4c
RedBoot> exec -c "console=ttyS0,115200"
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline : console=ttyS0,115200
[    0.000000] Linux version 3.14.26 (xuefer@gentoo) (gcc version 4.9.2 (OpenWrt/Linaro GCC 4.9-2014.10 r43707) ) #1 Mon Jan 5 20:56:55 CST 2015
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019064 (MIPS 4KEc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x00ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x00ffffff]
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  console=ttyS0,9600 rootfstype=squashfs,jffs2

see the 2 command lines

i'm using current trunk (or git master)

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by anonymous

Please take note of the kernel options "CONFIG_CMDLINE" and "CONFIG_CMDLINE_OVERRIDE". The former sets the Linux kernel's built-in command-line and the latter tells it to ignore any command-line that is passed in. I find OpenWRT's default setting of these a bit troublesome, but they're not too hard to find if you look (or perhaps I'm used to a bit of kernel hacking).

comment:2 Changed 2 years ago by jow

  • Resolution set to wontfix
  • Status changed from new to closed

OpenWrt does not respect the uboot command line on this platform.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.