Configure U-boot and running 2 boot loaders.

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

Configure U-boot and running 2 boot loaders.

2,598 Views
LeeHong
Contributor I

Hi,

 

I am using iMX53 QSB and I am fairly new in this.

I read from here http://forums.freescale.com/t5/i-MX-Microprocessors/i-MX25-HAB-secure-boot-question/td-p/57853 that we can run 2 boot loaders and also configure the boot loader.

 

May I know how are we doing that? Is it by editing the code in ltib?

Also, how to let the boot loader run scripts?

Help is appreciated.

Thanks in advance.

 

Regards.

Lee Hong

Tags (1)
0 Kudos
Reply
13 Replies

2,387 Views
LeeHong
Contributor I

That is not suffice for my case.

I wanted a maximum security.

The eFuse can prevent hacking and tempering of the system.


Krishna Pavan said:

Why do you want to use eFuse settings?

 

Doesn't your QSB have DIP Switches?

You can use DIP Switch settings...Its more easy and APT Procedure.

 

Regards :: Krishna Pavan

0 Kudos
Reply

2,387 Views
KrishnaPavan
Contributor II

Why do you want to use eFuse settings?

 

Doesn't your QSB have DIP Switches?

You can use DIP Switch settings...Its more easy and APT Procedure.

 

Regards :: Krishna Pavan

0 Kudos
Reply

2,387 Views
LeeHong
Contributor I

Ya I wanted to burn the eFuse.


I wanted to finally be able to use the HAB.

I also like to use some of thesecurity feature.


Krishna Pavan said:

Burn some fuse?

 

Are you talking about e-Fuse? Settings? Please be sure about it!

 

Regards :: Krishna Pavan

0 Kudos
Reply

2,386 Views
KrishnaPavan
Contributor II

Burn some fuse?

 

Are you talking about e-Fuse? Settings? Please be sure about it!

 

Regards :: Krishna Pavan

0 Kudos
Reply

2,387 Views
LeeHong
Contributor I

I am using u-boot to boot it now. But the IPL is also u-boot?

And how can I include a script to allow it to run?

I need to burn some fuse and I got some .c file but I do not know how to include them and nake them work.

 

Thanks.

 

Qiang Li said:

For Ubuntu, it is UBoot.

Lee Hong said:

Hi Qiang Li,

 

Thanks. Now I have an idea of how this works.

 

I am using Ubuntu. What is the bootloader for Ubuntu?

This is high level programming and I am still new.

Thanks for your effort and time.

0 Kudos
Reply

2,386 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

For Ubuntu, it is UBoot.

Lee Hong said:

Hi Qiang Li,

 

Thanks. Now I have an idea of how this works.

 

I am using Ubuntu. What is the bootloader for Ubuntu?

This is high level programming and I am still new.

Thanks for your effort and time.

0 Kudos
Reply

2,387 Views
LeeHong
Contributor I

Hi Qiang Li,

 

Thanks. Now I have an idea of how this works.

 

I am using Ubuntu. What is the bootloader for Ubuntu?

This is high level programming and I am still new.

Thanks for your effort and time.

0 Kudos
Reply

2,387 Views
KrishnaPavan
Contributor II

Hello Qiang Li,

Thanks for the reply...

But, Is it that you are talking about the TWO Stage Bootloading of an OS in U-boot?

                                                     or

The two bootloaders concept.....

0 Kudos
Reply

2,387 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

Maybe you can reference to the WinCE XLDR, this is the first bootloader for iMX WinCE design, the size is about 8KB only, as default this loader will load the real bootloader EBOOT from storage device to RAM, of cource, if we removed the flash header (this is only used by boot ROM code, and it should be included in the first bootloader) from the UBoot, I think this XLDR can also load the UBoot to memory.

I think if there are two different bootloader on storage device, the difference for the first loader to load them are the base address, data length and the target RAM address.

0 Kudos
Reply

2,387 Views
KrishnaPavan
Contributor II

Can you give in detail, the process to use two bootloaders with i.MX5X and u-boot

Qiang Li said:

If you need two bootloader, you can use a small first bootloader (Like the IPL for NAND boot), this small bootloader can decide to load which real bootloader by checking some gpio

The iMX53 boot ROM will always boot the first bootloader, and this first bootloader can judge which runtime bootloader was needed to boot.

0 Kudos
Reply

2,387 Views
LeeHong
Contributor I

Thanks Qiang Li.

The information is very helpful.

 

Is there any source where I can download the demo for the NAND boot?
Or anyway I can configure it?

Thanks.

0 Kudos
Reply

2,387 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

That link is for secure boot, not for 2 boot loaders. If you need two bootloader, you can use a small first bootloader (Like the IPL for NAND boot), this small bootloader can decide to load which real bootloader by checking some gpio.

So the final case is that, the iMX53 boot ROM will always boot the first bootloader, and this first bootloader can judge which runtime bootloader was needed to boot.

0 Kudos
Reply

2,387 Views
KrishnaPavan
Contributor II

May be by virtualization.

 

O.K......I am also expecting some help from the imxcommunity.

 

Regards  ::    Krishna Pavan

0 Kudos
Reply