Currently , when i want to control Sam460 via serial from the putty (i mean typing symbols on the terminal instead of on the SAM's keyboard), i should physically detach mouse and keyboard from. But, is there are some variable/environment which i can set, to avoid detaching of keyboard/mouse physically ?
For example, on pegasos2, when i want to have control over terminal and not over peg2's keyboard, i set "setenv output-device ttya", and then use putty without "flow control" to make it works. And to give control back to peg2's keyboard i set it back like "setenv output-device screen". But this is openfirmware, while sam460 is uboot based.
So, question is : is there any environment of this kind like on peg2, which when i set, i have control by terminal of my sam460, without detaching keyboard/mouse from them ?
Setting "stdout=serial" of course only mean to threw output to serial instead of screen, but not about ability to type from serial.
Yeah, it works for current session (When i am in uboot shell already) , but , when i reboot, i can't "esc" from putty's keyboard to go to the uboot , neither from usb keyboard. But i definately have "serial" for both stdin and stdout.
Maybe i need some special serial settings to make "esc" works form keyboard on serial to go to uboot ? I currently tried 115200, data bits 8, stop bits 1, parity NONE, and flow control NONE (at least with XON/XOFF it didn't works for me on pegasos2).
@m3x Right ! "q" works then ! Strange why not ESC, but so far there is a way. And issue only when both stdin and stdout set to serial. If i set stdin to serial, but stdout to vga, then ESC from putty still works. But if i want both output/input to/from serial, then i had to use "q" , as ESC didn't works.
And btw, not only "q", but also "space" works too to go to the uboot-graphical menu: and even with "stdout=serial" it will throw on VGA, which can't be controlled very well as i have both stdout and stdin to "serial" : i.e. up/down/left/right didn't work, but instead act like "esc" :) Maybe if play with different terminal settings it can work, but then if "q" work, then all fine. Is there reasons why "esc" stop working after stdin+stdout at the same time set to serial ?
ps. Btw, is uboot for sam only support "ext2" by default and no fat one ? I just see everywhere in the internet uboot should have "fatls", "fatload" commands, etc, while our one only have "ext2ls" and "ext2load"
yes, it supports only ext2fs, fat support was removed to save space on the 512 Kb boot eeprom, maybe we can add it back again with a new u-boot version.
Yeah, it works for current session (When i am in uboot shell already) , but , when i reboot, i can't "esc" from putty's keyboard to go to the uboot , neither from usb keyboard. But i definately have "serial" for both stdin and stdout.
Setenv only changes variables for the current session, if you want to make it permanent use
maybe can the 'ESC not working' be a putty setting/config issue?
EDIT1: tried here on a WinXP and putty 0.73 and ESC works fine:
U-Boot 2015.a (May 16 2015 - 14:20:11)
CPU: AMCC PowerPC 460EX Rev. B at 1155 MHz (PLB=231 OPB=115 EBC=115)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache
Board: Sam460ex/cr, PCIe 4x + PCIe 1x
I2C: ready
DRAM: 2 GiB (ECC not enabled, 462 MHz, CL4)
PCI: Bus Dev VenId DevId Class Int
00 04 1095 3114 0104 00
00 06 126f 0501 0380 00
PCIE0: link is not up.
PCIE1: successfully set as root-complex
02 00 1002 699f 0300 ff
Net: ppc_4xx_eth0
FPGA: Revision 03 (2010-10-07)
SM502: found
PERMD2:not found
VGA: 1
VESA: OK
Board: Sam460ex, PCIe 4x + PCIe 1x
USB: EHCI 1.00
scanning bus for devices... 5 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
SATA Device 0: OK
Model: HL-DT-S Firm: EX03 Ser#: DVDRAM GH22NS70
Type: Removable CD ROM
Capacity: not available
Model: Crucial_CT275MX300SSD1 Firm: M0CR040 Ser#: 1730181A767F
Type: Hard Disk
Supports 48-bit addressing
Capacity: 262321.6 MB = 256.1 GB (537234768 x 512)
Press SPACE for menu, ESC or Q for prompt, Enter for boot source
Countdown.. 1 break... <-- [here I pressed ESC on my miggy keyboard]
] boota
A1 Second-level booter V2.
Idea, design and main code: Andrea Vallinotto.
...
@javier As i point before issue with non working ESC happens when you have and stdout set to serial _and_ stdin too (to be able to type from terminal while usb keyboard still attached to sam). In your case stdin is usbkbd. This combo works. But once you will set it to serial, then only "q" will work, while "esc" didnt
Try set to serial also stdin (and not forget to set flow control to None in putty, at least with my cable i shoukd to do so to be able to type from putty)