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
已解决! 转到解答。
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.
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
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?
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
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
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
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