Redboot short reference

From BlueWiki

Jump to: navigation, search


These instructions were written especially for the CM-i.MX27. This reference is meant for instructional use, not for "copy & paste". Values may differ for specific boards. Please see the appropriate board section for detailed, board-specific information.

  • Loading file via serial:
load -r -b 0x100000 -m xmodem
Then do in kermit:
set proto xmodem
send [file]
  • Dump memory:
dump -b [addr] -l [len]
(does not work with 16-bit Strataflash)
  • Ping:
ping -n 3 -h [ip addr] -r 10
  • Loading a new redboot image:
load -r -b 0x100000 redboot.bin
(For serial transfer: append -m xmodem)
To run loaded file: run
To save current redboot to flash: romupdate

Redboot over serial terminal

  • Loading Linux:
Loading from TFTP server: load -r -b 0x100000 zImage
Loading from NOR flash: fis load kernel
Booting linux: exec -b 0x100000 -l 0x200000 -c "<options>"

<options>: common_opt [nfs_opt|nor_opt] eth_opt
common_opt: noinitrd console=ttymxc0,115200
nfs_opt: root=/dev/nfs rw nfsroot=[host IP]:/tftpboot/rootfs/,v3,tcp
nor_opt: root=/dev/mtdblock4 rw rootfstype=jffs2 ("cat /proc/mtd" to determine the correct device file)
eth_opt: ip=<target IP>:<host IP> (static configuration) | ip=dhcp (dynamic configuration) [fec_mac=xx:xx:xx:xx:xx:xx] (set the FEC MAC address)
  • Writing Linux+rootfs into NOR flash:
fis init (if not done before)

Unlocking the flash:

fis unlock -f 0xc0000000 -l 0x01ffffff

Loading linux kernel:

load -r -b 0x100000 zImage

Write into flash:

fis create kernel

Loading linux file system:

load -r -b 0x100000 rootfs.jffs2

Write into flash:

fis create -l 0x1de0000 root
  • Create empty partition:
fis create -b 0x100000 -l 0x1ff40000 -s 0x10 userfs(nand)

Should also work with the -n option, but this does not work for i.MX27 Redboot.

Personal tools