kobs-ng with kernel 3.19.x

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

kobs-ng with kernel 3.19.x

跳至解决方案
1,829 次查看
bba
Contributor III

1.) First you have to integrate the device detection according to

https://github.com/benavrhm/kobs-ng-patches/blob/master/kobs-ng-3.0.35-4.0.0_explicit_rom.patch

2.) Unfortunatelly the misc-dcpboot support were dropped with current kernel version. But you can replace drivers/crypto/mxs-dcp.c with an older version from from kernel version 3.14.

Now kobs-ng seams to by running well. The image validation works wih zero and otp written aes keys. (using kobs-ng option -z or -d)

But after reboot the FCB block is corrupted using kernel version 3.19.x. It works well with previous version 3.9.x. The FCB block is the only one written in non-eec raw mode.

Searching the community I found an entry regarding nand-mtd-gpmi driver using non-eec mode

http://lists.infradead.org/pipermail/linux-mtd/2014-September/055269.html

Are there any suggestions how to use kobs-ng with mainline kernel, where raw nand write works together with kobs-ng?

- any patches for kobs-ng

- any patches for the nand-gpmi.c driver

Regards,

Birger

标签 (3)
0 项奖励
回复
1 解答
997 次查看
bba
Contributor III

Now it is working on my side, but I don't like the solution :smileyconfused:

1.) The mxs-dcp driver were replaced with the old version from Tobias Rauter, kernel version 3.13.x

     - linux-3.19.6/drivers/crypto/mxs-dcp.c

     + linux-3.13.x/drivers/crypto/dcp.c

Than the bootstream validation works with default and custom AES-OTP key using misc-dcpboot Interface.

2.) The gpmi-nand driver were replaced with the old sources from kernel Version 3.14.28

     - linux-3.19.6/drivers/mtd/nand/gpmi-nand

     + linux-3.14.28/drivers/mtd/nand/gpmi-nand

Than the raw mtd access works as requested by the freescale kobs-ng utility.

Regards,

Birger

在原帖中查看解决方案

0 项奖励
回复
2 回复数
998 次查看
bba
Contributor III

Now it is working on my side, but I don't like the solution :smileyconfused:

1.) The mxs-dcp driver were replaced with the old version from Tobias Rauter, kernel version 3.13.x

     - linux-3.19.6/drivers/crypto/mxs-dcp.c

     + linux-3.13.x/drivers/crypto/dcp.c

Than the bootstream validation works with default and custom AES-OTP key using misc-dcpboot Interface.

2.) The gpmi-nand driver were replaced with the old sources from kernel Version 3.14.28

     - linux-3.19.6/drivers/mtd/nand/gpmi-nand

     + linux-3.14.28/drivers/mtd/nand/gpmi-nand

Than the raw mtd access works as requested by the freescale kobs-ng utility.

Regards,

Birger

0 项奖励
回复
997 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

My suggestion is that you try our official BSP 3.14.28.

/Alejandro

0 项奖励
回复