Skip to contentSkip to conversation

How I can update the Yocto SDK incrementally/partially?

yocto Yoann Congal 4 participants 9 messages Oct 8, 2024 – Oct 9, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · Le mar. 8 oct. 2024 à 11:27, [email protected] via…

Hi All,

I have the need to update the yocto SDK incrementally without the need to rebuild it every time from scratch.
I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running?
updating the rootfs on the target is working fine, but updating the SDK is not working

That sounds like the eSDK :
https://docs.yoctoproject.org/sdk-manual/extensible.html#applying-updates-to-an-installed-extensible-sdk
Have you tried it?

Regards,

Quoted 13 lines

Salahaldeen

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#63963):
https://lists.yoctoproject.org/g/yocto/message/63963
Mute This Topic: https://lists.yoctoproject.org/mt/108885909/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS - Tech expert
#2 lore raw

I think you should rather teach your customer to use yocto properly, rather than exchange SDKs and pre-built ipks with them. Write a proper recipe for the component, and explain to them how to use it.

Alex

Quoted 37 lines · Yoann Congal via lists.yoctoproject.org
Quoted 8 lines · Le mar. 8 oct. 2024 à 11:27, [email protected] via…

Hi All,

I have the need to update the yocto SDK incrementally without the need to rebuild it every time from scratch. I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running? updating the rootfs on the target is working fine, but updating the SDK is not working

That sounds like the eSDK : https://docs.yoctoproject.org/sdk-manual/extensible.html#applying-updates-to-an-installed-extensible-sdk
Have you tried it?

Quoted 5 lines

Regards,
Salahaldeen

--
Yoann Congal
Smile ECS - Tech expert

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63965): https://lists.yoctoproject.org/g/yocto/message/63965
Mute This Topic: https://lists.yoctoproject.org/mt/108885909/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Hi Alex,

I would be happy if everyone can learn yocto. but in the real world is different.
We have application developer who is only looking to work with SDK without knowing how to build with yocto.

One option is to use also eSDK but in my case is not applicable.

Regards,
Salahaldeen

Quoted 51 lines · Alexander Kanavin

I think you should rather teach your customer to use yocto properly, rather than exchange SDKs and pre-built ipks with them. Write a proper recipe for the component, and explain to them how to use it.

Alex

Quoted 39 lines · Yoann Congal via lists.yoctoproject.org
Quoted 11 lines · Le mar. 8 oct. 2024 à 11:27, [email protected] via…

Hi All,

I have the need to update the yocto SDK incrementally without the need to rebuild it every time from scratch.
I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running?
updating the rootfs on the target is working fine, but updating the SDK is not working

That sounds like the eSDK : https://docs.yoctoproject.org/sdk-manual/extensible.html#applying-updates-to-an-installed-extensible-sdk

Have you tried it?

Quoted 5 lines

Regards,
Salahaldeen

--
Yoann Congal
Smile ECS - Tech expert

#4 lore raw
Quoted 4 lines · On Tue, 8 Oct 2024 at 14:04, [email protected] via…

I would be happy if everyone can learn yocto. but in the real world is different.
We have application developer who is only looking to work with SDK without knowing how to build with yocto.

One option is to use also eSDK but in my case is not applicable.

They don't have to 'learn yocto' or use gigantic esdk tarballs or even regular sdk tarballs. They only need to replicate a yocto environment (blindly following your instructions) and then set up a SDK environment directly from there (again blindly following your instructions). Then things will work exactly as they do with SDK tarball, except you don't need to pass tarballs and ipks around, and they can easily add things they need to the SDK environment:

https://docs.yoctoproject.org/sdk-manual/extensible.html#installing-the-extensible-sdk

"Setting up the Extensible SDK environment directly in a Yocto build. This avoids having to produce, test, distribute and maintain separate SDK installer archives, which can get very large. There is only one environment for the regular Yocto build and the SDK and less code paths where things can go not according to plan. It’s easier to update the SDK: it simply means updating the Yocto layers with git fetch or layer management tooling. The SDK extensibility is better than in the second option: just run bitbake again to add more things to the sysroot, or add layers if even more things are required."

... and then there are specifics about what commands you need to issue to make it happen.

I still don't agree with all these 'application developers' who can't be bothered to learn at least a little bit about how their work is integrated into a complete system, but you can help them self-isolate from that if they really insist.

Alex

#5 lore raw
In reply to Yoann Congal
Quoted 20 lines · Yoann Congal

Le mar. 8 oct. 2024 à 11:27, [email protected] via lists.yoctoproject.org ( http://lists.yoctoproject.org ) <salahaldeen.altous= [email protected]

Quoted 4 lines

a écrit :

Hi All,

Quoted 9 lines

I have the need to update the yocto SDK incrementally without the need to rebuild it every time from scratch.
I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running?
updating the rootfs on the target is working fine, but updating the SDK is not working

Quoted 4 lines

That sounds like the eSDK : https://docs.yoctoproject.org/sdk-manual/extensible.html#applying-updates-to-an-installed-extensible-sdk

Have you tried it?

I was planning to used the normal SDK becuase the eSDK is 5 times bigger for my custom board ~13 GB, I was looking for similar function to install only few packages on the top of the normally SDK without rebuilding again. This would be helpful for the application developer who have no possibility to bitbake a new SDK !! and receiveing incremental updates.

Regards,
Salahaldeen Altous

Quoted 19 lines
Quoted 10 lines

Regards,
Salahaldeen

--
Yoann Congal
Smile ECS - Tech expert

#6 lore raw
Quoted 1 line · On Tue, 8 Oct 2024 at 13:18, [email protected] via…

I was planning to used the normal SDK becuase the eSDK is 5 times bigger for my custom board ~13 GB, I was looking for similar function to install only few packages on the top of the normally SDK without rebuilding again. This would be helpful for the application developer who have no possibility to bitbake a new SDK !! and receiveing incremental updates.

They need to start using yocto simply. You can share sstate with them so they don't have to rebuild everything.

Alex

#7 lore raw
In reply to a message not in the archive

If I understand it correctly, you want to update your SDK from some binary package feeds. I'd say it's possible, because it's basically about installing packages into some directory and doing some relocation, but you'll need to write some tool to do the update work and place that tool in your SDK. There's no official tool in Yocto as far as I know. Not sure if someone else has written such a tool.

Regards,
Qi

Quoted 19 lines · On 10/8/24 16:28, [email protected] via lists.yoctoproject.org wrote:

Hi All,

I have the need to update the yocto SDK incrementally without the need to rebuild it every time from scratch. I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running? updating the rootfs on the target is working fine, but updating the SDK is not working

Regards,
Salahaldeen

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63963): https://lists.yoctoproject.org/g/yocto/message/63963
Mute This Topic: https://lists.yoctoproject.org/mt/108885909/7304865
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

Hi Qi,

Quoted 7 lines · Chen Qi

If I understand it correctly, you want to update your SDK from some binary package feeds. I'd say it's possible, because it's basically about installing packages into some directory and doing some relocation, but you'll need to write some tool to do the update work and place that tool in your SDK. There's no official tool in Yocto as far as I know. Not sure if someone else has written such a tool.

this is also my thought, and I was think to use opkg after sourcing the sdk script. But was not working

source path/to/sdk/environment-setup-aarch64-oe-linux
opkg list
* file_mkdir_hier: Cannot create directory `//usr/local/oe-sdk-hardcoded-buildpath': Permission denied.

I am missing something here!!

Regards,
Salahaldeen

Quoted 25 lines

Regards,
Qi

Quoted 15 lines · On 10/8/24 16:28, [email protected] via lists.yoctoproject.org wrote:

Hi All,

I have the need to update the yocto SDK incrementally without the need to rebuild it every time from scratch.
I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running?
updating the rootfs on the target is working fine, but updating the SDK is not working

Regards,
Salahaldeen

#9 lore raw

For things to work, the package manager will need to have some certain abilities. For example, it can accept a parameter which points to the database it uses (e.g., --dbpath). I think RPM/dnf have all the ability to make things work. I'm not familiar with opkg though. Even with RPM/dnf, updating SDK from binary package feeds still needs some tool which invokes rpm/dnf, because you'll need to do some relocation or some mapping or creating some temp root directory, etc, in that tool.

Regards,

Qi

Quoted 48 lines · On 10/9/24 14:48, [email protected] via Lists.Yoctoproject.Org wrote:

Hi Qi,

On Tue, Oct 8, 2024 at 07:50 PM, Chen Qi wrote:

If I understand it correctly, you want to update your SDK from some binary package feeds. I'd say it's possible, because it's basically about installing packages into some directory and doing some relocation,
but you'll need to write some tool to do the update work and place that
tool in your SDK. There's no official tool in Yocto as far as I know. Not sure if someone else has written such a tool.

this is also my thought, and I was think to use opkg after sourcing the sdk script. But was not working

source path/to/sdk/environment-setup-aarch64-oe-linux
opkg list
* file_mkdir_hier: Cannot create directory `//usr/local/oe-sdk-hardcoded-buildpath': Permission denied.

I am missing something here!!

Regards,
Salahaldeen

Regards,
Qi

On 10/8/24 16:28, [email protected] via lists.yoctoproject.org wrote:

Hi All,

I have the need to update the yocto SDK incrementally without the need
to rebuild it every time from scratch.
I have the package management ipk enabled in my configuration.

can I use opkg install after sourcing the SDK script? which requirement I need to get it running?
updating the rootfs on the target is working fine, but updating the
SDK is not working

Regards,
Salahaldeen