User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:newconsole

LininoIO shell

This is a brief introduction to the various way the user can interact by using the micro usb interface as a serial line.

lininoIO runs an AVR firmware, called bathos-mcuio, which permits to talk with the bootloader, the linux system and the AVR itself. Given that user knows how to run a minicom, putty or similar interfaces on its own PC, this is the list of supported features:

1) at startup, communication is with u-Boot. Type lin to enter the u-Boot shell.

2) if linux kernel is loaded with console=spicons command line parameter, it will then start seeing the linux console, i.e. the messages from the kernel. It is almost the same as you would see by typing dmesg from a Linux shell, except from some more verbose (debug) message, which is shown by dmesg and not shown on the console.

3) when the linux kernel launches its first process, init, a unix shell, provided by busybox, is launched on the tty running on the serial line. You will be prompted something like: root@linino:/# And you can interact with the system. There is only one limitation in this feature, though we are working to fix it: since we have a small internal buffer (16 bytes) you can not cut&paste big amount of data, but 16 chars at a time only. So, this interface is useful for quick commands given by hand using a keyboard (e.g. ifconfig, if you want to see what is your ip address), but not so useful for editing files or pasting long commands. Anyway, as stated before, we hope this will be improved as soon as possible.

One more limitation is that you can not run avrdude on the serial line shell, since the same channel (SPI) is used by both the tty and run-avrdude. So, always update AVR firmware, by running run-avrdude, by a shell on an ssh connection, and reboot the system after that, if you want your tty to be brought up again.

4) at any time, regardless of what the MIPS MPU is doing (bootm, kernel, userspace, kernel oops, etc…), you can always start speaking with the AVR firmware. Just type Ctrl+] (Control key and Closed Square Bracket key together) and you will be see something like:

lininoIO shell started
lininoIO>

Just type help for a quick reference, then use the commands you need. To exit this shell, just type exit or Ctrl+D (Control key and D key together).

/var/www/wiki.linino.org/data/pages/wiki/newconsole.txt · Last modified: 2014/09/17 08:53 by administrator

2014 © dog hunter llc and the Linino Community. Linino.org is a dog hunter sponsored community project. Credits