How to use older version of uboot with newer kernels

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

How to use older version of uboot with newer kernels

2,137 Views
salvachandanapr
Contributor I

Dear Team,

I am using i.mx6sololite processor for our epos terminal. My question is can i use older version of uboot (NO device tree support  i..e. 2009.08 uboot) wth newer  version of kernel (i..e 3.10 kernel).what are the changes i need to todo .

and one more thing is i want  to load kernel  and dtb file combined .kindly let me know the memory locations changes for uImage loading (3.10 kernel ) with out dtb file loading separately.

Regards,

chandana.

Labels (1)
0 Kudos
Reply
4 Replies

1,929 Views
igorpadykov
NXP Employee
NXP Employee

Hi chandana

one can try to debug it using AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors
http://www.nxp.com/assets/documents/data/en/application-notes/AN4553.pdf

Best regards
igor

0 Kudos
Reply

1,928 Views
aravinthkumarja
Senior Contributor II

Hi chandana,

You need to change only the u-boot environment. 

Please refer the document.

Regards,

Aravinth 

0 Kudos
Reply

1,928 Views
salvachandanapr
Contributor I

hi Aravind,

I have gone through the document already.But i need to combine my DTB file along with kernel Image .that too i want to boot uboot 2009.08 with 3.10 kernel.

i have prepared uImage along with dtb but my kernel stucks at starting kernel....and not proceeding further.

so i doubt my uboot environment he am attaching my uboot related stuff.

bootdelay=1
baudrate=115200
loadaddr=0x80800000
rd_loadaddr=0x81000000
netdev=eth0
ethprime=FEC0
uboot=u-boot.bin
kernel=uImage
nfsroot=/opt/eldk/arm
bootargs_base=setenv bootargs console=ttymxc0,115200
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
bootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm;
bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait quiet
bootcmd_mmc=run bootargs_base bootargs_mmc; mmc dev 1; mmc read ${loadaddr} 0x800 0x4000; mmc read 0x98000000 0x4A00 0x12C; bootm
bootcmd=run bootcmd_mmc
bootdelay=1
ethact=FEC0
ver=GL11-UB-2009.08-1173-1.0.bin (Jun 14 2016 - 15:34:52)
first_boot=1
boot_fdt=no
filesize=5164C9
fileaddr=80800000
ipaddr=192.168.2.39

and am stucking at

 bootm
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   Linux Kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5334153 Bytes =  5.1 MB
   Load Address: 80800000
   Entry Point:  80800000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...

After this message is not booting.

kindly guide me.

Regards,

chandana

0 Kudos
Reply

1,928 Views
aravinthkumarja
Senior Contributor II

Hi Chandana,

Take below environment as reference:

=> 
baudrate=115200
bootaddr_dl=0x10008000
bootaddr_sys=0x10008000
bootargs=console=ttymxc0,115200 root=/dev/mmcblk2p2 rootfstype=ext4 rootwait rw fixrtc
bootargs_all=console=ttymxc0,115200
bootargs_app=quiet
bootargs_sys=rw root=/dev/mmcblk1p2 rootfstype=ext4 rootwait
bootcmd=mmc start;fatload mmc 1:1 0x11200000 imx6q-sabresd.dtb;fatload mmc 1:1 0x12800000 uImage; bootm 0x12800000 - 0x11200000
bootdelay=1
console=ttymxc0,115200
dbootcmd_app=run loadfdt; bootm $bootaddr - $fdt_addr
dbootcmd_dl=run loadfdt; run loadrd; bootm $bootaddr $rd_addr $fdt_addr
dbootcmd_srv=run loadfdt; bootm $bootaddr - $fdt_addr
ethact=FEC
ethaddr=00:04:9f:02:6a:b2
ethprime=FEC
fdt_addr=0x11000000
fdt_high=0xffffffff
fdtfile=dtb
fdtfile_dl=dtb-dl
fdtfile_sys=dtb
filesize=5b4750
initrd_file=uInitrd
initrd_high=0xffffffff
kernel_file=uImage
kernel_file_dl=uImage-dl
loadaddr=0x10008000
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdtfile}
loadrd=fatload mmc ${mmcdev}:${mmcpart} ${rd_addr} ${rdfile}
mmcdev=0
mmcpart=1
panel=HDMI
rd_addr=0x11200000
rdfile=uInitrd
verify=n

Regards,

Aravinth

0 Kudos
Reply