From: Gary Thomas <gary@mlbassoc.com>
To: Mark Hatle <mark.hatle@windriver.com>
Cc: poky@yoctoproject.org
Subject: Re: Using RPM with Poky
Date: Mon, 21 Mar 2011 11:04:44 -0600 [thread overview]
Message-ID: <4D87852C.30903@mlbassoc.com> (raw)
In-Reply-To: <4D87843C.8030600@windriver.com>
On 03/21/2011 11:00 AM, Mark Hatle wrote:
> On 3/21/11 11:35 AM, Gary Thomas wrote:
>> On 03/21/2011 09:54 AM, Richard Purdie wrote:
>>> On Mon, 2011-03-21 at 09:25 -0600, Gary Thomas wrote:
>>>> I'm trying to do some testing with Poky on an atom-PC. I thought
>>>> I'd try with a minimal system and then add pieces I need. Sadly,
>>>> I've run aground doing this. I've built a couple of images with
>>>> varying results:
>>>> poky-image-minimal-live - boots on my box
>>>> poky-image-sato-live - boots, but fails to find X display, then hangs (*)
>>>>
>>>> There seem to be no RPM tools on the minimal image. Did I miss something?
>>>> On my old, ipk based system, I'd build up a minimal image then use opkg
>>>> to install additional packages.
>>>
>>> Minimal images were never meant to ship with the package manager and now
>>> don't. You can obviously change the image definitions easily enough as
>>> needed.
>>>
>>>> How do I do that with the RPM based images?
>>>
>>> The same switch turns on/off the package manager data for rpm and opkg.
>>
>> I tried adding this to local.conf, but nothing changed when I build minimal image:
>> IMAGE_FEATURES += " package-management ssh-server-dropbear "
>
> I'm really not sure if this is the right fix for the problem.. (Actually I'm
> guessing you found an issue, both documentation and functional that it's
> difficult to enable this by itself.)
>
> I believe if you add "task-poky-rpm" to the packages to be installed that will
> do it.. the problem I'm seeing is I'm not sure how or where you would add that.
>
> The task-poky-rpm is constructed from the task-poky-basic... (I've been building
> poky-image-basic recently because it's a step up from "minimal", but yet it
> doesn't have the full size of the system like sato.)
>
>> BTW, where is this documented? Not in the Poky handbook from what I can tell.
>
> We really need to start to document these combinations, magic values, etc...
>
>> Also, is there documentation on how to use zypper, how to set up repositories, etc?
>
> There is no documentation yet on how to use Zypper. Below is how I've been
> using it to test things:
>
> On the host:
>
> 1) Build the environment -- full set of rpm packages you want available
>
> 2) Build "createrepo-native"
>
> 3) Copy tmp/deploy/rpm and contents of somewhere it can be accessed via HTTP,
> such as /var/www/html.
>
> 4) Create the repository database:
>
> <poky directory>/scripts/poky-setup-rpmrepo /var/www/html/rpm
>
> On the target:
>
> (assuming qemu)
>
> 1) zypper addrepo http://192.167.7.1/rpm main
>
> 2) zypper refresh
>
> 3) zypper install<package>
>
>
>
> Some other useful commands:
>
> zypper info<package>
>
> This will give you basic info on a package, and tell you if it's already
> installed (@System repository) or which remote repository it's stored in.
>
> zypper remove<package>
>
> This will remove a package, and clean up any other packages that are dependent
> upon it.
>
>
> Note, there are a couple of flaws in the current zypper implementation in
> regards to Poky.
>
> The first is that there is a problem on ARM targets. For some reason it can't
> process packages for ARM targets properly. We're still investigating.
>
> The second is Zypper does not understand RPM dependency hinting at this point.
> There is a concept in RPM5 called weak and strong dependencies. A strong
> dependency says that this thing MUST be installed, or its a failure. A weak
> dependency is this thing can be installed, but if it's not we don't fail.
> Zypper treats all dependencies equally at this point and assumes they are strong.
Thanks, this should get me started (I certainly would have had a hard time guessing
all these details!)
Perhaps I should file a bug (or 2) about the missing/incomplete documentation?
>>>
>>>> I've checked the documentation and there's basically nothing
>>>> about this, unless I looked in the wrong place.
>>>>
>>>> Any ideas or pointers gladly accepted. Thanks
>>>>
>>>> (*) I had success with this in the past when I booted with MACHINE=emenlow
>>>> but that hardware isn't in the primary list.
>>>
>>> I'm not sure why this isn't working or what the problem might be...
>>
>> It complains it can't find /dev/fb0. See the boot log at http://www.mlbassoc.com/poky/boot_2011-03-21.log
>>
>>>
>>> You didn't mention which branch this is with btw.
>>
>> master aeaa356a5ee77b4596c479451a9db289381a4d16
>>
>> Thanks again
>>
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2011-03-21 17:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 15:25 Using RPM with Poky Gary Thomas
2011-03-21 15:54 ` Richard Purdie
2011-03-21 16:35 ` Gary Thomas
2011-03-21 17:00 ` Mark Hatle
2011-03-21 17:04 ` Gary Thomas [this message]
2011-03-21 17:10 ` Paul Eggleton
2011-03-21 17:57 ` Richard Purdie
2011-03-21 18:17 ` Gary Thomas
2011-03-21 20:47 ` Darren Hart
2011-03-21 20:52 ` Gary Thomas
2011-03-21 18:27 ` Darren Hart
2011-03-21 18:33 ` Gary Thomas
2011-03-21 19:45 ` Darren Hart
2011-03-21 20:20 ` Gary Thomas
2011-03-21 20:25 ` Bruce Ashfield
2011-03-21 21:02 ` Tom Zanussi
2011-03-21 22:58 ` Gary Thomas
2011-03-21 23:24 ` Darren Hart
2011-03-22 0:55 ` Gary Thomas
2011-03-22 2:49 ` Darren Hart
2011-03-22 11:20 ` Gary Thomas
2011-03-22 6:22 ` Tom Zanussi
2011-03-22 22:58 ` Tom Rini
2011-03-22 23:30 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D87852C.30903@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=mark.hatle@windriver.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox