U boot bin is not working on custom boa

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U boot bin is not working on custom boa

Jump to solution
3,299 Views
venkatachilakal
Contributor III

I am working on imx6q based processor board(Custom). We compiled u-boot and tried to install it on our custom board.  But it's failed. But we tried a u-boot of E9 board and its loaded in our custom board's RAM. Again in that boot prompt also we are unable to give inputs to that u-boot.

I would like to know the reason why my compiled u-boot is not working on my custom board. 

Note:

I am trying to install u-boot of bin file through MFG tool

Board configuration :

Imx6q

1G RAM

UART 1 debug

0 Kudos
Reply
1 Solution
2,726 Views
venkatachilakal
Contributor III

This is because the correct usdhc settings is not done in  the device tree file

Once I updated that in the device it works for me. 

View solution in original post

0 Kudos
Reply
10 Replies
2,726 Views
igorpadykov
NXP Employee
NXP Employee

Hi Venkata

for new board recommended first run ddr test

https://community.freescale.com/docs/DOC-105652 

then rebuild uboot with new calibration settings put in U-Boot 2009../freescale/board_name/flash_header.S file

Also as board may use different pads for peripherals, these should be also configured

properly, please check attached Porting Guide. May be recommended to check documentation on

http://www.nxp.com/webapp/Download?colCode=L3.0.35_4.1.0_LINUX_DOCS&Parent_nodeId=133769948107170617... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
2,726 Views
venkatachilakal
Contributor III

Thank you very much for your answer.

can you suggest any u boot version, so that I can work on the same version to make my board working.

0 Kudos
Reply
2,726 Views
igorpadykov
NXP Employee
NXP Employee

please check nxp software resources link

i.MX 6 Series Software and Development Tool|NXP 

~igor

0 Kudos
Reply
2,725 Views
venkatachilakal
Contributor III

Hello igarpadykov,

I did the DDR Test and updated the DCD values to the flash header.

And compiled the U-boot. when I load the u-boot using imx_usb ( usb loader ) to my target board. 

load_size 0 bytes
load_addr 0x00000000
dcd 1
clear_dcd 0
plug 1
jump_mode 2
jump_addr 0x00000000
== end work item
loading DCD table @0x910000

<<<-232, 1024 bytes>>>
succeeded (status 0x128a8a12)

loading binary file(u-boot.imx) to 177ff400, skip=0, fsize=70c00 type=aa

<<<461824, 461824 bytes>>>
succeeded (status 0x88888888)
jumping to 0x177ff400

But, I load another u-boot of my ready made ( waveshares' E9 Board ) board, then it is showing the u-boot prompt

imx_usb loader log

Interface 0 claimed
HAB security state: development mode (0x56787856)
== work item
filename u-boot-mx6q-sabresd.bin
load_size 0 bytes
load_addr 0x00000000
dcd 1
clear_dcd 0
plug 1
jump_mode 2
jump_addr 0x00000000
== end work item
loading DCD table @0x910000

<<<-352, 1024 bytes>>>
succeeded (status 0x128a8a12)

loading binary file(u-boot-mx6q-sabresd.bin) to 27800000, skip=0, fsize=27864 type=aa

<<<161892, 162816 bytes>>>
succeeded (status 0x88888888)
jumping to 0x27800400

U-BOOT Log

Board: i.MX6Q-SABRESD: unknown-board Board: 0x63015 [POR ]
Boot Device: NOR
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3
Using default environment

In: serial
Out: serial
Err: serial
i2c: I2C3 SDA is low, start i2c recovery...
I2C3 Recovery failed, I2C1 SDA still low!!!
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0 [PRIME]
Hit any key to stop autoboot: 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
MX6Q SABRESD-MFG U-Boot >

0 Kudos
Reply
2,726 Views
venkatachilakal
Contributor III

I am using 1 GB RAM.. And I am using the sabresd board as reference.

I have not change these variables 

  1. CONFIG_LOADADDR
  2. CONFIG_SYS_MALLOC_LEN
  3. CONFIG_STACKSIZE
  4. CONFIG_NR_DRAM_BANKS
  5. PHYS_SDRAM_SIZE
  6. PHYS_SDRAM

But, when my compiled u-boot is jumping to 0x177ff400 and there is not console log. 

 

I am doing anything wrong ?

0 Kudos
Reply
2,726 Views
igorpadykov
NXP Employee
NXP Employee

if your board works well with waveshares' E9 Board, then it is based on

that design. Uboot for i.MX6Q-SABRESD may not work for it,it should be customized

based on E9 Board shematic. U-Boot 2009 works with old L3.0.35 BSPs which

now not supported by nxp. Sources can be found on

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/?h=imx_3.0.35_4.1.0 

LTIB Archives - Boundary Devices 

~igor

0 Kudos
Reply
2,726 Views
venkatachilakal
Contributor III

when I load kernel on my custom board the kernel hangs at some poing

[ 5.419331 ]  waiting for root device  /dev/mmcblkop2..

Anything wrong in build the kernel ?

0 Kudos
Reply
2,727 Views
venkatachilakal
Contributor III

This is because the correct usdhc settings is not done in  the device tree file

Once I updated that in the device it works for me. 

0 Kudos
Reply
2,726 Views
venkatachilakal
Contributor III

This is my imx_usb loader log when I try to load E9 Board's bin file 

succeeded (status 0x128a8a12)

loading binary file(u-boot-mx6q-sabresd.bin) to 27800000, skip=0, fsize=27864 type=aa

<<<161892, 162816 bytes>>>
succeeded (status 0x88888888)
jumping to 0x27800400

On Console I am getting this log

U-Boot 2009.08-dirty (Nov 27 2013 - 10:51:14)

CPU: Freescale i.MX6 family TO1.5 at 792 MHz
Thermal sensor with ratio = 184
Temperature: 38 C, calibration data 0x58e50369
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 264000000Hz
emi_slow clock: 132000000Hz
ddr clock : 528000000Hz
usdhc1 clock : 198000000Hz
usdhc2 clock : 198000000Hz
usdhc3 clock : 198000000Hz
usdhc4 clock : 198000000Hz
nfc clock : 24000000Hz
Board: i.MX6Q-SABRESD: unknown-board Board: 0x63015 [POR ]
Boot Device: NOR
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3
Using default environment

In: serial
Out: serial
Err: serial
i2c: I2C3 SDA is low, start i2c recovery...
I2C3 Recovery failed, I2C1 SDA still low!!!
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0 [PRIME]
Hit any key to stop autoboot: 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
MX6Q SABRESD-MFG U-Boot >

After this I am unable to give any boot commands from console. 

Is this any u-boot version issue or am I doing any wrong in u-boot compilation ?

0 Kudos
Reply
2,726 Views
venkatachilakal
Contributor III

When I try to load a u-boot.bin file which was compiled as mx6qsarbesd_config is giviing the following error

== work item
filename ../N-board/u-boot/u-boot.bin
load_size 0 bytes
load_addr 0x00000000
dcd 1
clear_dcd 0
plug 1
jump_mode 2
jump_addr 0x00000000
== end work item

unknown load address
DoIRomDownload failed, err=-3

HAB security state: development mode

any issue in the boot compilation ?

0 Kudos
Reply