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
Solved! Go to Solution.
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
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
Hi,
My suggestion is that you try our official BSP 3.14.28.
/Alejandro