Is it possible to update uboot from linux on nitrogen6x?

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

Is it possible to update uboot from linux on nitrogen6x?

3,854 Views
kevin_chaves
Contributor III

Hi,

I'm going through to see what it would take to open the SPI nor driver and update uboot after linux has been started.

I did find https://community.freescale.com/thread/302612

I'm just curious if this is what I'm looking for, I'm still pretty new to dealing with how linux drivers works...

Labels (3)
0 Kudos
Reply
5 Replies

1,614 Views
jimmychan
NXP TechSupport
NXP TechSupport

Are you looking for this one?

https://community.freescale.com/message/302340#302340

Hope this help you.

1,614 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Kevin,

     Yes, It is feasible. After linux starts, recieve new u-boot and copy it to SPI NOR Flash with dd command. It's principle is the same as that of MFG Tools released by Freescale.

    Recommend you could take some time to understand how MFG Tools works.

Regards,

Weidong

1,614 Views
kevin_chaves
Contributor III

I thought the MFG utils worked from a usb boot?

Any way I found I could use mtd-utils to access the mtd0 device. I'm just not sure how the partitions are made

0 Kudos
Reply

1,614 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Kevin,

      Would you like to describe the details that you want to upate u-boot during linux running? Then let us discuss it !

Regards,

Weidong

0 Kudos
Reply

1,614 Views
kevin_chaves
Contributor III

I've got it,

I used 2 header files in mtd-utils 1.4.6 mtd/mtd-user.h mtd/mtd-abi.h to open open up the mtd partitions.

/dev/mtd0 bootloader

/dev/mtd1 u boot params

/dev/mtd2 unused

It's pretty easy to open these up

[CODE]

fd = open (/dev/mtd0, O_SYNC | O_RDWR),

[/CODE]

the only tricky part was erasing it though

[CODE]

struct erase_info_user erase;

/*

fill out erase

*/

ioctl (fd ,MEMERASE,&erase) < 0)

[/CODE]

0 Kudos
Reply