Skip to main content
This topic has been closed for replies.
Best answer by Olivier GALLIEN

I looks you are not in the correct directory to apply the patch.

you should be in (..)sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.9

and use this command : $for p in `ls -1 ../*.patch`; do patch -p1 < $p; done 

Also, are you in shell compatible with SDK cross-compilation ?

If not please do this before any other command :

$source [Developer_Package_Path]/SDK/environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi

Hope it help

Olivier

2 replies

Olivier GALLIEN
Technical Moderator
April 29, 2019

Hi @Vthul​ 

In order I can help can you please confirm you are at step "5.2.2 Building and deploying the Linux kernel for the first time" of the wiki.

You refer to the README.HOW_TO.txt ?

Can you please share exactly the steps you have followed ? Are you doing installation in build directory or in source path ?

Can you share a screen copy of the command freezing the terminal ?

Thx

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Vthul
VthulAuthor
Associate II
April 29, 2019

0690X000008B1nOQAS.jpgHi @Community member​ ,

Thanks for your reply.

In order I can help can you please confirm you are at step "5.2.2 Building and deploying the Linux kernel for the first time" of the wiki.

You refer to the README.HOW_TO.txt ? ---Yes

I am following the README.HOW_TO.txt.

I have extracted the Linux files and obtained the patches.

So the step is to apply the patches before compiling if i am not wrong.

To apply patches, i am doing this

So in 3rd point ---> $> for p in `ls -1 <path to patch>/*.patch`; do patch -p1 < $p; done

 and i get as in above screen shot

<path to patch> i am already in current working directory as that of the linux Kernel

Regards,

Viveknath

Olivier GALLIEN
Technical Moderator
April 29, 2019

I looks you are not in the correct directory to apply the patch.

you should be in (..)sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.9

and use this command : $for p in `ls -1 ../*.patch`; do patch -p1 < $p; done 

Also, are you in shell compatible with SDK cross-compilation ?

If not please do this before any other command :

$source [Developer_Package_Path]/SDK/environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi

Hope it help

Olivier

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Vthul
VthulAuthor
Associate II
April 29, 2019

Hello ,

Also, are you in shell compatible with SDK cross-compilation ? -> yes

and use this command : $for p in `ls -1 ../*.patch`; do patch -p1 < $p; done - this worked .

thanks a lot