Connecting
Login
Commands
help : show list of commands
help [command] : help on command
boot [target] : boot kernel
flash : boot from flash (0x00006000)
kernel : boot kernel on RAM (0x01008000)
image : boot image on RAM (0x01400000)
[addr] : jump to specified address
config <name> [options] : configure boot loader
load : load configuration
serial <baudrate> : UART configuration
valid baud rate : 9600, 19200, 38400 (default), 57600, 115200
net : network configuration
file : download filename setting
download [media] <target> : download image via various media
[media] : serial / net (network)
<target> : boot / romfs / kernel / [addr]
dump [option] <addr> <len> : dump memory area
[option] : -d (4 bytes), -w (2 bytes), -b (1 byte)
flash [command] <options> : flash commands
probe <addr> : probe flash
list : show flash chip information
erase [addr] <len> : erase one or more sectors of flash memory
eraseall : erase all flash memory
writeb [addr] [data] : write one byte of data into specified address
writew [addr] [data] : write one word of data into specified even address
write [to] [from] [len] : write block of data into specified address
boot : write boot loader image on RAM into FLASH
romfs : write ROMFS image on RAM into FLASH
mem [op] <args> : read from or write to memory
rb [addr] : read one byte of data
rw [addr] : read two bytes of data
rl [addr] : read four bytes of data
wb [addr] [data] : write one byte of data
ww [addr] [data] : write two bytes of data
wl [addr] [data] : write four bytes of data
memcmp [addr1] [addr2] <len> : compare memory region
memcpy [to] [from] <len> : copy memory region
net [command] <args> : network commands
config : show current network configuration
up : enable networking
down : disable networking
arp : show entire ARP table
arp [IP addr] : get the hardware address of specfied host
ping [IP addr] : send ICMP echo message to specified host
dhcp : request DHCP
tftp [loader/romfs/kernel] : download via TFTP from server
tftp [IP addr] [filename] : download specified file from specified server
eeprom [command] : manipulate EEPROM connected to Ethernet chipset
dump : dump EEPROM contents
ww [reg] [data] : update EEPROM contents
dump : dump ethernet RX buffer contents
|
On the serial console we have commands to download kernel and cramfs filesystem, and even flash them.
pbarette: The bootloader saves the config settings, but I can't get it to save a new default serial baudrate. I usually connect at 38400 then issue "config serial 115200" and disconnect, change the baud on my comm port and reconnect. Since the serial interface is a 3-wire deal, the MG35 doesn't notice the dis/re-connect at all.
gadgetmind:
What "boot image" expects is a full rom image at 0x1400000
So -
boot> memcpy 0x1400000 0 0x400000 (4MBytes of rom to 0x1400000)
boot> boot image
Results in a successful inflate of the kernel and the box booting. However, it's currently hard to tell if it's using the new kernel and/or cramFS.
I guess I'd also need -
mem wl 0x1440000 0x014e2809
to tell it to use the new cramFS
Also note that there's an unlisted "config save" command, but that doesn't seem to change the default baudrate either.
"config file" - This lets you set the file names of the loader, linux, romfs and image. The most useful is probably setting the romfs to somewhere in /tftpboot so you can use tftp to download new romfs without needing heavy tftp server reconfiguration. Quite what the names of the loader and linux are for isn't known - there are no path names on the default version.
Comments (0)
You don't have permission to comment on this page.