I am working on a imx53 and I use ltib for building a rootfs. I have tried min profile as well as fsl gnome profile and both work well.
The problem here is that I would like to install the "apt" package so I could use apt-get or apt-cache, etc.
I tried to add this package manually with ./ltib -m prep -p apt-x.y , I created my spec file, but when I run ./configure -m scbuild -p apt-x.y got some error related to some configuration of curl.
Is there any other way to do so? By selecting from "Package selection" inside ltib configuration? Which option would it be? Didn't find anything there.
I tried to use dpkg included with the busybox configuration but I got to know that is a stripped version of dpkg and doesn't work really well.
Regards.
Original Attachment has been moved to: apt-0.8.10.3+squeeze1.spec.zip
Original Attachment has been moved to: logLtib.txt.zip
Solved! Go to Solution.
Run ./ltib -m shell, then move to the rpm/BUILD/apt folder. you can then run configure & make &make install, as if you were compiling inside the target.
Is better install rpm packet manager that apt-get, because the I.MX linux distribution use it for installing the packets,
Hi Eduardo,
1. could you attach the .spec and the log you are seeing when running the ltib -m command?
2. we have an Ubuntu filesystem which by default it has the tools you need. This rootfs is not optimized as the ones produced by LTIB but it may fit your needs.
Leo
Thanks for your reply Leo.
I attached the files you requested. Hope they are helpful.
Seconf, What tool did you use for creating the ubuntu filesystem that you mentioned before?
Eduardo
Hi Eduardo,
For the ubuntu image, go to freescale.com, iMX53 Page, Software & Tools, Run-Time Software, Operating System Software-Board Support Package, there look at the: UBUNTU_RFS_DEMOIMG. Untar it and flash an SD card with that rootfs. Use the same u-boot and uImage you are currently using.
Leo
I already tried that filesystem but I need something not so heavy. That's why I want to build my own filesystem. Did you check the attached files? If anyone can check the attached files and give me some orientation I will be glad.
Regards
Eduardo
You can take a look at Linaro. They have a different rootfs and it looks like it includes apt-get.
You can take a look in buildroot and yocto as well. I know yocto can add apt-get /dpkg. Maybe buildroot could as well.
Are you sure you will create your rootfs by hand? Everytime?
Daiane I will take a look of those.
I don't mean to build my rootfs everytime. I will use ltib for that. I only want to add some other packages, 2 or 3, that ltib doesn't include.
BTW, what is the reason you are install apt? In theory, all pkgs should be installed using Ltib/Yocto/etc and there is no need to have a package installer inside the target.
Leo
Hi Leo,
I need to install the postfix package to ltib for implementing a mail server, but I don't have an idea how to install the postfix package. Since the BSP doesn't apt to do it, Could you please provide some help information either how to install package or where I can add the postfix in ltib configure?
thanks,
Bill Yang
Bill, search the package you want on the LTIB's menuconfig and select it. If it is not there, you may need to create the .spec file. BTW, have you tried yocto?
Hi Leo,
Thanks for your replying. Currently our project is in final stage that we could not change the platform to yocto. I know yocto is better than ltib, but we cannot do it now.
I have downloaded postfix-2.11.0.tar.gz file in my laptop station. As I know the procedures to create a package in ltib as below;
1) copy the postfix-2.11.0.tar.gz to /opt/freescale/pkgs/
2) generate a md5 file in /opt/freescale/pkgs/
3) create postfix.spec file in dist/lfs-5.1/postfix/postfix.spec
4) execute ./ltib -mprep -p postfix.spec
5) ./ltib -scbuild -p postfix.spec
Do I miss any thing step, if you can confirm those steps?
Regards,
-Bill Yang
One more step:
6) ./ltib -m scdeploy -p ....
?
what is step 6 doing? Can you provide this step's purpose? Where does it deploy?
-Bill
According to ltib's help:
scdeploy does an scinstall followed by an install to the rootfs?
Hi Leo,
I have another LTIB BSP build issue. I don't know if you are the right guy or you may point to some one to help.
I have my LTIB L3.0.35_4.0.0 on my bunto 12.10 linux machine 32-bit. The LTIB BSP was built and was used it my Sabre board. Yesterday, I changed a couple of configurations and re-build it, but it failed. I cancelled these changes back to original config, but it still failed. I have no idea what causes and why is failure. below is the failure message.
rm -fr .libs/libhttp.lax
creating libhttp.la
(cd .libs && rm -f libhttp.la && ln -s ../libhttp.la libhttp.la)
make[2]: Leaving directory `/home/byang/ltib/rpm/BUILD/gnome-vfs-2.24.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/byang/ltib/rpm/BUILD/gnome-vfs-2.24.1'
make: *** [all] Error 2
error: Bad exit status from /home/byang/ltib/tmp/rpm-tmp.18843 (%build)
RPM build errors:
Bad exit status from /home/byang/ltib/tmp/rpm-tmp.18843 (%build)
Build time for gnome-vfs: 38 seconds
Failed building gnome-vfs
Can you figure out what is wrong?
Thanks,
-Bill
Yeah, you are totally right since I'm working on an embedded system, but I need to test some more packages running on ltib, with more dependencies to solve. It would be a little hard I guess if I stuck in trying to add every package that I want to test. I find it easier having a package manager.
What did you mean by doing the same steps within Ltib shell? I have just tried that, but there is some lock file that won't let me do anything. Thank you again Leo.
Eduardo
Run ./ltib -m shell, then move to the rpm/BUILD/apt folder. you can then run configure & make &make install, as if you were compiling inside the target.
Good to know that.
Sometime ago, in other life, I was responsible to create the rootfs by hand. it was a nightmare!
The main problem in adding 2 or 3 packages LTIB does not have is that you will need to deal with their dependencies.
I hope you can add apt. I never worked with spec files before, so I cannot help you :smileysad:
I have seen your spec but I do not see something wrong from it. Do the same steps but under the LTIB shell? (./ltib -m shell), it is easier at this stage. Once you have succeed building your app, move all steps into the spec. Check any dependency that apt needs and install these first. Apparently curl is one of them.
Leo