View unanswered posts | View active topics It is currently Mon Jun 17, 2019 4:52 am



Reply to topic  [ 5 posts ] 
 Booting linux on Utilite Pro with dtb 
Author Message

Joined: Mon Dec 09, 2013 4:40 pm
Posts: 18
Post Booting linux on Utilite Pro with dtb
Hello folks,

I try to use/compile linux kernel 3.14.5 (via boot.scr) with dtb usage.
The default load address for the kernel (uImage) is 0x10800000, but what is the right address for loading the dtb file?

Thanks in advance,
Michael Wachs


Sat Jun 07, 2014 2:42 pm
Profile

Joined: Tue Mar 25, 2014 5:56 pm
Posts: 109
Post Re: Booting linux on Utilite Pro with dtb
This is well above my knowledge but found this:
https://lists.fedoraproject.org/piperma ... 33685.html

Not sure, if it is about the right subject, but there is line:

memory {
++ reg = <0x10000000 0x80000000>;

(I suppose help from a real pro is needed here.)


Sun Jun 08, 2014 7:15 am
Profile

Joined: Mon Dec 09, 2013 4:40 pm
Posts: 18
Post Re: Booting linux on Utilite Pro with dtb
Hello 2kaan,

no, that is not my knowledge gap.

Firmware/boot.scr loads the kernel at the memory address 0x10800000. They also can load the device tree (file imx6q-cm-fx6.dtb) at a special address. Then the command 'bootm' starts kernel code execution with up to three parameters: <kernel load address> [<ramdisk load address>] [<device tree table>]. '[]' means optional parameters.

I need to know where to load the device tree!

Kind Regards,
Michael


Sun Jun 08, 2014 10:46 am
Profile

Joined: Mon Jul 25, 2011 2:35 pm
Posts: 445
Post Re: Booting linux on Utilite Pro with dtb
Hi All,

This is the sample boot environment that we make use of for booting with dtb.

Quote:
setenv loadaddr 10800000
setenv dtbaddr 15000000
setenv bootm_low 15000000

setenv dtb imx6q-cm-fx6.dtb
setenv zimage zImage-cm-fx6

setenv satadev 0

setenv bootargs console=ttymxc3,115200 root=/dev/sda2 rootfstype=ext4 rw rootwait ip=dhcp

sata init
fatload sata ${satadev} ${loadaddr} ${zimage}
fatload sata ${satadev} ${dtbaddr} ${dtb}
bootz ${loadaddr} - ${dtbaddr}


Can it help?

Regards,
Valentin.


Sun Jun 08, 2014 10:51 am
Profile

Joined: Mon Jan 27, 2014 7:21 am
Posts: 44
Post Re: Booting linux on Utilite Pro with dtb
I can confirm your instructions worked perfectly...

These are the changes that I made to the uboot environment for booting into a 3.16 kernel:
Code:
setenv dtbaddr 15000000
setenv bootm_low 15000000

setenv dtb imx6q-cm-fx6.dtb
setenv kernel zImage-3.16

setenv sataroot "/dev/sda2 rootfstype=ext4 rw rootwait"
setenv sataloadkernel "fatload sata ${satadev} ${loadaddr} ${kernel}; fatload sata ${satadev} ${dtbaddr} ${dtb}"
setenv sataboot "echo Booting from sata ...; run sataargs; bootz ${loadaddr} - ${dtbaddr}"


before making the changes perminate I always do a test run with
Code:
run bootcmd


Sat Aug 09, 2014 11:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.