09 Jan, 2014

1 commit

  • With sandbox, errors and problems may be reported before console_init_f()
    is executed. For example, an argument may not parse correctly or U-Boot may
    panic(). At present this output is swallowed so there is no indication what
    is going wrong.

    Adjust the console to deal with a very early sandbox setup, by detecting that
    there is no global_data yet, and calling os functions in that case.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     

24 Jul, 2013

1 commit


14 Dec, 2012

3 commits


12 Dec, 2012

1 commit

  • The CONFIG_SYS_CONSOLE_INFO_QUIET option should suppress the console
    information, but allow boards to display it later if required. Adjust
    the code to support this.

    This is used to avoid printing the information while the LCD display
    is not ready, since it only becomes ready when stdio init is complete.

    Signed-off-by: Simon Glass

    Simon Glass
     

24 Mar, 2012

1 commit


18 Dec, 2011

1 commit


09 Dec, 2011

1 commit

  • This patch adds support for console output before the console is inited.
    The main purpose of this is to deal with a very early panic() which would
    otherwise cause a silent hang.

    A new board_pre_console_putc() function is added to the board API. If
    provided by the board it will be called in the event of console output
    before the console is ready. This function should turn on all UARTs and
    spray the character out if it possibly can.

    The feature is controlled by a new CONFIG_PRE_CONSOLE_PUTC option.

    Signed-off-by: Simon Glass
    Acked-by: Graeme Russ

    Simon Glass
     

06 Oct, 2011

1 commit

  • Allow redirection of console output prior to console initialisation to a
    temporary buffer.

    To enable this functionality, the board (or arch) must define:
    - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer
    - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer
    - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes)

    The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes
    Any earlier characters are silently dropped.

    Graeme Russ
     

02 Oct, 2011

1 commit

  • There are some locations in the code which anticipate printf() being called
    before the console is ready by squelching printf() on gd->have_console.
    Move this squelching into printf(), vprintf(), puts() and putc(). Also
    make tstc() and getc() return 0 if console is not yet initialised

    Signed-off-by: Graeme Russ
    Tested-by: Simon Glass

    Graeme Russ
     

29 Nov, 2010

1 commit


05 Jul, 2010

1 commit


24 Jun, 2010

1 commit

  • The AmigaOneG3SE board has been orphaned or a very long time, and
    broken for more than 12 releases resp. more than 3 years. As nobody
    seems to be interested any more in this stuff we may as well ged rid
    of it, especially as it clutters many areas of the code so it is a
    continuous pain for all kinds of ongoing work.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

22 Mar, 2010

1 commit

  • If a board uses cfb_console driver and splash image
    and also defines CONFIG_SILENT_CONSOLE, the user is
    locked out even if "silent" is not set. It is not
    possible to get any output, neither on vga console
    device nor on serial console after redirecting the
    output to the serial console, since the GD_FLG_SILENT
    flag remains set.

    Fix the problem by redirecting the output from frame
    buffer to serial console if splashimage is used.
    Only suppress the output if "silent" environment
    variable was set and don't set the GD_FLG_SILENT
    flag arbitrarily.

    Signed-off-by: Anatolij Gustschin

    Anatolij Gustschin
     

31 Aug, 2009

1 commit

  • The "console: unify printing current devices" patch goofed:
    CONFIG_SYS_CONSOLE_INFO_QUIET is supposed to *REMOVE* boot
    time noise, not add it. Said patch changed the #ifndefs
    to #ifdef; this one restores them to the proper sense.

    Signed-off-by: David Brownell

    David Brownell
     

19 Jul, 2009

1 commit


18 Jul, 2009

1 commit

  • So far the console API uses the following naming convention:

    ======Extract======
    typedef struct device_t;

    int device_register (device_t * dev);
    int devices_init (void);
    int device_deregister(char *devname);
    struct list_head* device_get_list(void);
    device_t* device_get_by_name(char* name);
    device_t* device_clone(device_t *dev);
    =======

    which is too generic and confusing.

    Instead of using device_XX and device_t we change this
    into stdio_XX and stdio_dev

    This will also allow to add later a generic device mechanism in order
    to have support for multiple devices and driver instances.

    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD

    Edited commit message.

    Signed-off-by: Wolfgang Denk

    Jean-Christophe PLAGNIOL-VILLARD
     

18 Feb, 2009

2 commits


07 Dec, 2008

1 commit

  • Modifications to support console multiplexing. This is controlled using
    CONFIG_SYS_CONSOLE_MUX in the board configuration file.

    This allows a user to specify multiple console devices in the environment
    with a command like this: setenv stdin serial,nc. As a result, the user can
    enter text on both the serial and netconsole interfaces.

    All devices - stdin, stdout and stderr - can be set in this manner.

    1) common/iomux.c and include/iomux.h contain the environment setting
    implementation.
    2) doc/README.iomux contains a somewhat more detailed description.
    3) The implementation in (1) is called from common/cmd_nvedit.c to
    handle setenv and from common/console.c to handle initialization of
    input/output devices at boot time.
    4) common/console.c also contains the code needed to poll multiple console
    devices for input and send output to all devices registered for output.
    5) include/common.h includes iomux.h and common/Makefile generates iomux.o
    when CONFIG_SYS_CONSOLE_MUX is set.

    Signed-off-by: Gary Jennejohn

    Gary Jennejohn
     

19 Oct, 2008

1 commit


07 Sep, 2008

1 commit


31 Aug, 2008

1 commit


21 May, 2008

1 commit

  • This commit gets rid of a huge amount of silly white-space issues.
    Especially, all sequences of SPACEs followed by TAB characters get
    removed (unless they appear in print statements).

    Also remove all embedded "vim:" and "vi:" statements which hide
    indentation problems.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

06 May, 2007

1 commit


01 Apr, 2006

1 commit


01 Apr, 2005

1 commit


19 Apr, 2004

1 commit

  • * Patch by Rune Torgersen, 16 Apr 2004:
    LBA48 fixes

    * Patches by Pantelis Antoniou, 16 Apr 2004:
    - Fix some compile problems;
    add "once" functionality for the netretry variable

    wdenk
     

24 Mar, 2004

1 commit

  • - show PCI clock frequency on MPC8260 systems
    - add FCC_PSMR_RMII flag for HiP7 processors
    - in do_jffs2_fsload(), take load address from load_addr if not set
    explicit, update load_addr otherwise
    - replaced printf by putc/puts when no formatting is needed
    (smaller code size, faster execution)

    wdenk
     

09 Feb, 2004

1 commit

  • ARM memory layout fixes: the abort-stack is now set up in the
    correct RAM area, and the BSS is zeroed out as it should be.

    Furthermore, the magic variables 'armboot_end' and 'armboot_end_data'
    of the linker scripts are replaced by '__bss_start' and '_end',
    resp., which is a further step to eliminate unnecessary differences
    between the implementation of the CPU architectures.

    wdenk
     

07 Feb, 2004

1 commit


16 Oct, 2003

1 commit


10 Oct, 2003

1 commit


30 Sep, 2003

1 commit


18 Sep, 2003

1 commit

  • - fix spelling errors
    - set GD_FLG_DEVINIT flag only after device function pointers
    are valid
    - Allow CFG_ALT_MEMTEST on systems where address zero isn't
    writeable
    - enable 3.rd UART (ST-UART) on PXA(XScale) CPUs
    - trigger watchdog while waiting in serial driver

    wdenk
     

25 Jul, 2003

1 commit


20 Jun, 2003

1 commit

  • - Hymod board database mods: add "who" field and new xilinx chip types
    - provide new "init_cmd_timeout()" function so code external to
    "common/main.c" can use the "reset_cmd_timeout()" function before
    entering the main loop
    - add DTT support for adm1021 (new file dtt/adm1021.c; config
    slightly different. see include/configs/hymod.h for an example
    (requires CONFIG_DTT_ADM1021, CONFIG_DTT_SENSORS, and
    CFG_DTT_ADM1021 defined)
    - add new "eeprom_probe()" function which has similar args and
    behaves in a similar way to "eeprom_read()" etc.
    - add 8260 FCC ethernet loopback code (new "eth_loopback_test()"
    function which is enabled by defining CONFIG_ETHER_LOOPBACK_TEST)
    - gdbtools copyright update
    - ensure that set_msr() executes the "sync" and "isync" instructions
    after the "mtmsr" instruction in cpu/mpc8260/interrupts.c
    - 8260 I/O ports fix: Open Drain should be set last when configuring
    - add SIU IRQ defines for 8260
    - allow LDSCRIPT override and OBJCFLAGS initialization: change to
    config.mk to allow board configurations to override the GNU
    linker script, selected via the LDSCRIPT, make variable, and to
    give an initial value to the OBJCFLAGS make variable
    - 8260 i2c enhancement:
    o correctly extends the timeout depending on the size of all
    queued messages for both transmit and receive
    o will not continue with receive if transmit times out
    o ensures that the error callback is done for all queued tx
    and rx messages
    o correctly detects both tx and rx timeouts, only delivers one to
    the callback, and does not overwrite an earlier error
    o logic in i2c_probe now correct
    - add "vprintf()" function so that "panic()" function can be
    technically correct
    - many Hymod board changes

    wdenk
     

20 Apr, 2003

1 commit

  • * MPC823 LCD driver: Fill color map backwards, to allow for steady
    display when Linux takes over

    * Patch by Erwin Rol, 27 Feb 2003:
    Add support for RTEMS (this time for real).

    * Add support for "bmp info" and "bmp display" commands to load
    bitmap images; this can be used (for example in a "preboot"
    command) to display a splash screen very quickly after poweron.

    * Add support for 133 MHz clock on INCA-IP board

    wdenk
     

06 Mar, 2003

1 commit

  • - fix bug in BOOTP code (must use NetCopyIP)
    - update of CSB226 port
    - clear BSS segment on XScale
    - added support for i2c_init_board() function
    - update to the Innokom plattform

    * Extend support for redundand environments for configurations where
    environment size < sector size

    wdenk