NSLU2-Linux
view · edit · print · history

WRP400.KernelCmdline History

Hide minor edits - Show changes to markup

November 26, 2008, at 02:08 AM by rwhitby --
Changed lines 19-20 from:
  • ip=192.168.15.1:192.168.15.111:::MV88W8518?:eth0:none
to:
  • ip=192.168.15.1:192.168.15.111:::MV88W8518:eth0:none
July 07, 2008, at 07:46 AM by rwhitby --
Changed lines 1-2 from:

Required parameters:

to:

The WRP400 has a very complex kernel cmdline, and many of the values provided in the vendor firmware are essential to being able to boot the device.

  • console=ttyS0,115200

This sets up the serial console. See the console_state parameter for details on how this can be disabled later.

  • root=/dev/mtdblock0

This points the root filesystem to /dev/mtdblock0, which is a dynamic offset into Image 1 of either the half or full u-boot multi-file images (Image 0 is the kernel in each).

  • ro

This sets the root filesystem to read-only on boot. The vendor firmware uses squashfs root filesystems which are read-only anyway.

  • noinitrd

This tells the kernel that there is no initial ramdisk.

  • ip=192.168.15.1:192.168.15.111:::MV88W8518?:eth0:none

See Documentation/nfsroot.txt for details.

  • console_state=locked

If console_state is set to locked on the command line, the Linux serial driver will refuse to initialise the ttyS0 console.

Deleted lines 27-29:
  Used in drivers/mtd/maps/mv88w8xx8_flash.c
Changed lines 29-30 from:
  Used in drivers/mtd/maps/mv88w8xx8_flash.c
to:
  • full_image_addr=ff9c0000
  • half_image_addr=ff800000
  • boot_image=1

The parameters are used in drivers/mtd/maps/mv88w8xx8_flash.c to initialise the MTD partition map.

The cy_flash_size and cy_flash_block_size parameters relate to the flash device soldered on the board, and therefore are fixed. Unfortunately, the kernel source code has these defaulting to incorrect values for the WRP400, so these correct values must be passed to the kernel on every invocation.

The full_image_addr and half_image_addr parameters relate to the locations of the u-boot images in flash, and could change depending on the sizes of the most recently flashed full and half images. The values above are those used in the vendor firmware version 1.00.4c (and probably for all subsequent vendor firmware images too).

The boot_image parameter defaults to the full_image and is used point the LINUX_ROOTFS dynamic partition at the root file system data from either the full image or the half image.

July 07, 2008, at 07:17 AM by rwhitby --
Added lines 1-9:

Required parameters:

  • cy_flash_size=0x800000
    Used in drivers/mtd/maps/mv88w8xx8_flash.c
  • cy_flash_block_size=0x10000
    Used in drivers/mtd/maps/mv88w8xx8_flash.c
view · edit · print · history · Last edited by rwhitby.
Originally by rwhitby.
Page last modified on November 26, 2008, at 02:08 AM