Is it possible to update uboot from linux on nitrogen6x?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is it possible to update uboot from linux on nitrogen6x?

4,500件の閲覧回数
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...

ラベル(3)
0 件の賞賛
返信
5 返答(返信)

2,260件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Are you looking for this one?

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

Hope this help you.

2,260件の閲覧回数
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

2,260件の閲覧回数
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 件の賞賛
返信

2,260件の閲覧回数
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 件の賞賛
返信

2,260件の閲覧回数
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 件の賞賛
返信