Author Topic: Help for installing package manager (APT) Linux  (Read 409 times)

0 Members and 1 Guest are viewing this topic.

Offline Swaroop 21Topic starter

  • Contributor
  • Posts: 46
  • Country: in
Help for installing package manager (APT) Linux
« on: July 22, 2024, 04:23:38 pm »
I have the phyBOARD Segin with i.MX 6UL SBC, which has Linux image on it provided by Phytec (BSP-Yocto-phyBOARD-Segin-PD17.2.0). The problem I am facing is Phytec Linux images aren't equipped with apt, or any package manager. And I want to download python newest version on it. But as apt isn't present I can't do anything. I have access through WinSCP to its file system. So is there anyway to get the package manager itself ? so I can get the other tools like MAKE to compile the python. I can't find any solution for this. If any Linux aficionados would help please.
« Last Edit: July 22, 2024, 04:27:25 pm by Swaroop 21 »
 

Online ledtester

  • Super Contributor
  • ***
  • Posts: 3183
  • Country: us
Re: Help for installing package manager (APT) Linux
« Reply #1 on: July 22, 2024, 05:14:30 pm »
I would have a look at this page:

https://docs.phytec.com/latest/

Selecting your board gets you links to various help pages. You can also get help through their support portal:

https://jira.phytec.com/servicedesk/customer/portal/3/user/login?destination=portal%2F3

 
The following users thanked this post: Swaroop 21

Offline Swaroop 21Topic starter

  • Contributor
  • Posts: 46
  • Country: in
Re: Help for installing package manager (APT) Linux
« Reply #2 on: July 23, 2024, 03:20:42 pm »
I looked into the Yocto Project and found out that I need to add the apt or any package manager when making the custom Linux kernel image for the phyBOARD. And the prebuilt images which phytec provides doesn't include any package managers not even low level ones such as dkpg. So its the only hard way to do it. As a beginner it would take quite some time to figure out how to build a custom image and include the package. Also I how to migrate that image to the onboard nand flash so I won't require SD card to boot from.
 

Offline Shonky

  • Frequent Contributor
  • **
  • Posts: 298
  • Country: au
Re: Help for installing package manager (APT) Linux
« Reply #3 on: July 24, 2024, 07:23:56 am »
They supply a ready to go VM with all toolchains etc. Pages and pages of documentation. How much easier do you want it?

https://www.phytec.de/fileadmin/legacy/downloads/Manuals/L-840e_3_web.pdf
https://phytec.github.io/doc-bsp-yocto/yocto/manual-index.html
https://www.phytec.de/cdocuments/?doc=K4DEHw

These are boards for an embedded setup where the expectation is custom images will be created. Yocto et al is for the most part meant to be a prebuilt system with the packages you want baked in. So it's rarely as simple as "apt install ..." . Yocto does have its own packaging type but you'll need the dev env going first and you'll need to get an updated recipe for whatever package you want.

As a beginner what are you expecting? You might be better off with a product that has wider customer base like a Raspberry Pi where custom packages are already available etc.

You might find buildroot a bit easier than Yocto but without a specific config from Phytec (they might have) you'll have to start from scratch a bit
https://buildroot.org/
 

Offline selcuk

  • Regular Contributor
  • *
  • Posts: 219
  • Country: tr
Re: Help for installing package manager (APT) Linux
« Reply #4 on: July 24, 2024, 07:39:43 am »
I was in a similar position. The prebuilt images had python 2 but I needed python 3. The issue is that python and operating system are tightly coupled. I mean there are lots of dependencies related to python. So I found it easier to compile a new version of yocto which has already python 3 instead of updating python 2 on an older yocto version.
 

Offline Swaroop 21Topic starter

  • Contributor
  • Posts: 46
  • Country: in
Re: Help for installing package manager (APT) Linux
« Reply #5 on: July 24, 2024, 09:30:08 am »
I am learning Linux too. I hope it won't take long, until then I managed to work with the inbuilt python 2.7 and going to PyPi website for any modules I want to download and then extracting the versions compatible with V-2.7.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf