Skip to contentSkip to conversation

Micrel KSZ9692 boot loader issue

U-Boot sujithkuroor 1 participant 1 message Jul 19, 2014

lore
Share & tools
lore
#0 lore raw

I used the u-boot code from ftp://micrel.com/ethernet/8692/8692-uboot.bz2

Changes made:

In my board am having two 32MB DDRs each with data width 32 bit. Total DDR
memory will be 64MB

i run the command make ks8692_micron_166_config

Then i modified the include/config.h file as below ( since config.h is
generated as read only, i changed the file permission before editing)

#define MICRON_166_DDR
#define PHYS_SDRAM_1_SIZE 0x04000000 /* 64MB*/
#define KS8692_DDR_ROW_COLON_CONF DDR_256MBIT_BY_16 /* each IC is 256Mb with 16 bit data width */
#define KS8692_DDR_BUS_SIZE_CONF DDR_BUS_32BIT

/* Automatically generated - do not edit */
#include <configs/ks8692.h>

I made similar changes in include/configs/ks8692.h

Changed CONFIG_CONS_INDEX to 2 in include/configs/ks8692.h as i am using UART2

Changes in lowlevel_init.s (

1. Changed all UART1 to UART2

2. Changed ldr r4, =0x03000000 /* somewhere in DDR RAM */

to ldr r4, =0x01000000 /* somewhere in DDR RAM */

3. Changed ldr pc, =0x3000000 /* jump to DDR instruction */ to
ldr pc, =0x1000000 /* jump to DDR instruction */

I compiled and dowloaded the u-boot.bin to flash. I am not able to see any prints in hyperterminal.

Hyperterminal was set for baudrate: 1152000

For debugging purpose i added the following lines just after serial init in lowlevel_init.s

    ldr    r1, =KS8692_IO_BASE+KS8692_UART2_TX_HOLDING
    ldr    r2, =65  /* alphabet A */
    str    r2, [r1]
    ldr    r1, =KS8692_IO_BASE+KS8692_UART2_TX_HOLDING
    ldr    r2, =66  /* alphabet B */
    str    r2, [r1]

Now am able to continuous stream of ABABABABABAB......... in the hyperterminal.

Please help me to debug and fix the issue.

--
View this message in context: http://u-boot.10912.n7.nabble.com/Micrel-KSZ9692-boot-loader-issue-tp184482.html
Sent from the U-Boot mailing list archive at Nabble.com.