Problems to Boot Custom Board iMX233

Started by ssosgar, April 27, 2017, 04:39:23 am

Previous topic - Next topic

ssosgar

I developed a custom board with IMX233 without battery with RAM - MT46V32M16P-5B XIT:J and Openwrt as operating system

My problem is the openwrt boot on Olimex Maxi MX233 from SD when I put my SD in my custom board the only output lines are:

U-BOOT 2017.01 (MAR 30 2017 - 17:48:18)
CPU: Freescale i.MX23 rev 1.4 AT 454 MHZ
Boot: SSP SD/MCC#0
DRAM: 64MiB
MMC:   MXS MMC: 0
*** Warning - bad CRC, USING DEFAULT ENVIROMENT
IN:    serial
OUT:   serial
ERR:   serial
NET:   net initialization skip
Not Ethernet found
Hit any key to stop autoboot: 3
Hit any key to stop autoboot: 0
=>

"Why the boot process is stopped?

I appreciate any advice related to generate a u-boot image in SD card

Thanks

Sergio Sosa

JohnS

Incompatible RAM?  Or broken? Badly routed? Badly soldered?  Etc.

John

lambda

a) Is this reproducable, ie. always exactly the same output hanging at exactly the same line?
b) What happens if you enter something at the u-boot prompt?

ssosgar

I found someone with the same problem in the following link

http://www.starterkit.ru/html/index.php?name=forum&op=view&id=9628&num=1

I download sd/image to test memory

contain the simple test of sdram and some initialization for evk boards in the bootloader

and my output looks fine but my problem is How can I generate a Linux SD Image

PowerPrep' 'start' 'initialize' 'power...
Battery' 'Voltage' '=' '0.28V
No' 'battery' 'or' 'bad' 'battery\t\t\t\t\tdetected!!!.Disabling' 'battery\t\t\t\t\tvoltage' 'measurements./r/nOct' '21' '201014:24:50
EMI_CTRL' '0x1C084040
FRAC' '0x92926192
init_ddr_mt46v32m16_133Mhz
power' '0x00820710
Frac' '0x92926192
PowerPrep' 'start' 'initialize' 'power...
Battery' 'Voltage' '=' '3.01V
Chargeable' 'battery' 'detected' 'but\t\t\t\t\tthe' 'voltage' 'is' 'too' 'low' 'for' 'battery\t\t\t\t\tpowered' 'operation.Booting' 'from' '5V\t\t\t\t\tpower' 'source.
Oct' '21' '201014:24:50
EMI_CTRL' '0x1C084040
FRAC' '0x92926192
init_ddr_mt46v32m16_133Mhz
power' '0x00820710
Frac' '0x92926192
start' 'change' 'cpu' 'freq
hbus' '0x00000003
cpu' '0x00010001
mem' '00000000' '-' '0x01010001
mem' '00000001' '-' '0x00010100
mem' '00000002' '-' '0x01000101
mem' '00000003' '-' '0x00000001
mem' '00000004' '-' '0x00010101
mem' '00000005' '-' '0x00000000
mem' '00000006' '-' '0x00010000
mem' '00000007' '-' '0x01000001
mem' '00000008' '-' '0x01010000
mem' '00000009' '-' '0x00000001
mem' '0000000A' '-' '0x07000200
mem' '0000000B' '-' '0x04070202
mem' '0000000C' '-' '0x02020000
mem' '0000000D' '-' '0x04040A01
mem' '0000000E' '-' '0x0D000201
mem' '0000000F' '-' '0x0204000D
mem' '00000010' '-' '0x02080800
mem' '00000011' '-' '0x19330F08
mem' '00000012' '-' '0x0D0D1400
mem' '00000013' '-' '0x02021313
mem' '00000014' '-' '0x02061521
mem' '00000015' '-' '0x0000000A
mem' '00000016' '-' '0x00080008
mem' '00000017' '-' '0x00200020
mem' '00000018' '-' '0x00200020
mem' '00000019' '-' '0x00200020
mem' '0000001A' '-' '0x000003F7
mem' '0000001B' '-' '0x00000000
mem' '0000001C' '-' '0x00000000
mem' '0000001D' '-' '0x00000020
mem' '0000001E' '-' '0x00000020
mem' '0000001F' '-' '0x00C80000
mem' '00000020' '-' '0x000A23CD
mem' '00000021' '-' '0x204100C8
mem' '00000022' '-' '0x00006665
mem' '00000023' '-' '0x00000000
mem' '00000024' '-' '0x00000101
mem' '00000025' '-' '0x00000001
mem' '00000026' '-' '0x00000000
mem' '00000027' '-' '0x00000000
mem' '00000028' '-' '0x00010000
start' 'memory' 'write
memory' 'write' 'stop
start' 'memory' 'read
memory' 'read' 'stop' '-' 'If' 'no' 'error' 'reportsCOMMA' 'memory' 'test' 'is' 'successfully' 'finished
Uncompressing' 'Linux...' 'doneCOMMA' 'booting' 'the' 'kernel.
Linux' 'version' '2.6.31.12-626-g602af1c' '(root@sasa-laptop)' '(gcc' 'version' '4.3.4' '(crosstool-NG-1.8.1)' ')' '#20' 'PREEMPT' 'Thu' 'Oct' '21' '01:00:51' 'MSD' '2010
CPU:' 'ARM926EJ-S' '[41069265]' 'revision' '5' '(ARMv5TEJ)COMMA' 'cr=00053177
CPU:' 'VIVT' 'data' 'cacheCOMMA' 'VIVT' 'instruction' 'cache
Machine:' 'Freescale' 'MX23EVK' 'board
Memory' 'policy:' 'ECC' 'disabledCOMMA' 'Data' 'cache' 'writeback
Built' '1' 'zonelists' 'in' 'Zone' 'orderCOMMA' 'mobility' 'grouping' 'on.' '' 'Total' 'pages:' '16256
Kernel' 'command' 'line:' 'console=ttyAM0COMMA115200
PID' 'hash' 'table' 'entries:' '256' '(order:' '8COMMA' '1024' 'bytes)
Dentry' 'cache' 'hash' 'table' 'entries:' '8192' '(order:' '3COMMA' '32768' 'bytes)
Inode-cache' 'hash' 'table' 'entries:' '4096' '(order:' '2COMMA' '16384' 'bytes)
Memory:' '64MB' '=' '64MB' 'total
Memory:' '56472KB' 'available' '(2660K' 'codeCOMMA' '177K' 'dataCOMMA' '5552K' 'initCOMMA' '0K' 'highmem)
SLUB:' 'Genslabs=11COMMA' 'HWalign=32COMMA' 'Order=0-3COMMA' 'MinObjects=0COMMA' 'CPUs=1COMMA' 'Nodes=1
Preemptible' 'RCU' 'implementation.
NR_IRQS:224
Console:' 'colour' 'dummy' 'device' '80x30
console' '[ttyAM0]' 'enabled
Calibrating' 'delay' 'loop...' '231.83' 'BogoMIPS' '(lpj=1159168)
Security' 'Framework' 'initialized
Mount-cache' 'hash' 'table' 'entries:' '512
CPU:' 'Testing' 'write' 'buffer' 'coherency:' 'ok
regulator:' 'core' 'version' '0.5
NET:' 'Registered' 'protocol' 'family' '16
regulator:' 'vddd:' '800' '<-->' '1575' 'mV' 'fast' 'normal' '
regulator:' 'vddd_bo:' '800' '<-->' '1575' 'mV' 'fast' 'normal' '
regulator:' 'vdda:' '1500' '<-->' '2275' 'mV' 'fast' 'normal' '
regulator:' 'vddio:' '2800' '<-->' '3575' 'mV' 'fast' 'normal' '
regulator:' 'overall_current:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'mxs-duart-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'mxs-bl-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'mxs-i2c-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'mmc_ssp-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'mmc_ssp-2:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'charger-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'power-test-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
regulator:' 'cpufreq-1:' '0' '<-->' '2147483' 'mA' 'fast' 'normal' '
i.MX' 'IRAM' 'pool:' '28' 'KB@0xc4808000
bio:' 'create' 'slab' '<bio-0>' 'at' '0
SCSI' 'subsystem' 'initialized
usbcore:' 'registered' 'new' 'interface' 'driver' 'usbfs
usbcore:' 'registered' 'new' 'interface' 'driver' 'hub
usbcore:' 'registered' 'new' 'device' 'driver' 'usb
NET:' 'Registered' 'protocol' 'family' '2
IP' 'route' 'cache' 'hash' 'table' 'entries:' '1024' '(order:' '0COMMA' '4096' 'bytes)
TCP' 'established' 'hash' 'table' 'entries:' '2048' '(order:' '2COMMA' '16384' 'bytes)
TCP' 'bind' 'hash' 'table' 'entries:' '2048' '(order:' '1COMMA' '8192' 'bytes)
TCP:' 'Hash' 'tables' 'configured' '(established' '2048' 'bind' '2048)
TCP' 'reno' 'registered
NET:' 'Registered' 'protocol' 'family' '1
Bus' 'freq' 'driver' 'module' 'loaded
mxs_cpu_init:' 'cpufreq' 'init' 'finished
msgmni' 'has' 'been' 'set' 'to' '110
io' 'scheduler' 'noop' 'registered
io' 'scheduler' 'cfq' 'registered' '(default)
mxs-duart.0:' 'ttyAM0' 'at' 'MMIO' '0x80070000' '(irq' '=' '0)' 'is' 'a' 'DebugUART
ehci_hcd:' 'USB' '2.0' ''Enhanced'' 'Host' 'Controller' '(EHCI)' 'Driver
fsl-ehci' 'fsl-ehci:' 'Freescale' 'On-Chip' 'EHCI' 'Host' 'Controller
fsl-ehci' 'fsl-ehci:' 'new' 'USB' 'bus' 'registeredCOMMA' 'assigned' 'bus' 'number' '1
fsl-ehci' 'fsl-ehci:' 'irq' '11COMMA' 'io' 'base' '0x80080000
fsl-ehci' 'fsl-ehci:' 'USB' '2.0' 'startedCOMMA' 'EHCI' '1.00
usb' 'usb1:' 'configuration' '#1' 'chosen' 'from' '1' 'choice
hub' '1-0:1.0:' 'USB' 'hub' 'found
hub' '1-0:1.0:' '1' 'port' 'detected
Initializing' 'USB' 'Mass' 'Storage' 'driver...
usbcore:' 'registered' 'new' 'interface' 'driver' 'usb-storage
USB' 'Mass' 'Storage' 'support' 'registered.
Advanced' 'Linux' 'Sound' 'Architecture' 'Driver' 'Version' '1.0.20.
mxs-adc-audio' 'mxs-adc-audio.0:' 'MXS' 'ADC/DAC' 'Audio' 'Codec' '
No' 'device' 'for' 'DAI' 'mxs' 'adc/dac
No' 'device' 'for' 'DAI' 'mxs' 'adc/dac
asoc:' 'mxs' 'adc/dac' '<->' 'mxs' 'adc/dac' 'mapping' 'ok
Failed' 'to' 'add' 'route' 'HP' 'MUX->HPR
ALSA' 'device' 'list:
' '' '#0:' 'MXS' 'EVK' '(mxs' 'adc/dac)
TCP' 'cubic' 'registered
NET:' 'Registered' 'protocol' 'family' '17
Freeing' 'init' 'memory:' '5552K
'0'^@Initializing' 'random' 'number' 'generator...' 'done.
Welcome' ';-)

lambda

Since u-boot is starting, your SD-card seems fine (assuming, that u-boot sits on the sd-card of course). I don't know why u-boot is starting linux ... maybe no boot script is present? I think you will have to investigate this on the u-boot prompt. (Type help for a start.)

HTH,
Harald