Results 1 to 7 of 7
Hi!
I am totally a linux newbie, I need to build a linux installer with custom packages. I tried using buildroot to build the OS and was able to compile ...
- 05-22-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 12
Linux newbie, need help building an installer from source..
Hi!
I am totally a linux newbie, I need to build a linux installer with custom packages. I tried using buildroot to build the OS and was able to compile one but my problem is I don't know how to make an installer out of it and how to integrate the packages. Need help..
- 05-22-2011 #2Just Joined!
- Join Date
- Jan 2011
- Location
- Fairfax, Virginia, USA
- Posts
- 94
Hi pizarro84,
Congratulations getting buildroot to compile if your new to Linux. Its usually pretty difficult getting it to work like you want.
The idea behind buildroot is to create a filesystem tree and some packaged formats of that tree for you. From my perspective, its usually used for smaller embedded systems but things might have changed since I used it last. It creates some packaged formats for you including a filesystem image that you can directly use to mount the new filesystem, cpio archives used for an initrd filesystem and some other things more suited for embedded development.
The last I checked, it wasn't really suited for a full blown installer. As far as I know, full installers are based on individual packages (like RPMs for instance) so you can choose and customize packages to install. This doesn't mean that you can't do it, it just means its a bit more difficult.
I'm assuming your doing an x86 or an x86_64 based installation. In that case, at a minimum you need to lay down a filesystem with all its preconfigured components, install the boot loader in the MBR and do some optional post installation configuration (like setting the timezone for instance). The last step is the easiest and can be done with a bash script wired to be invoked once. The first two steps are more difficult and I'd recommend using something already developed for it. I'm pretty sure (but might be wrong), the busybox based buildroot doesn't include this so you'll need to go out and incorperate it into your OS.
- 05-23-2011 #3Just Joined!
- Join Date
- May 2011
- Posts
- 12
Thanks for the tips, actually I'm trying to build an embedded x86 linux custom packages that can be installed in a desktop. Anyway I'll try those methods and hopefully I get it right.
- 05-29-2011 #4
Pizarro,
buena suerte
Tell more about your target .
Have you checked TinyCore ? Perhaps an existing "small system" will fit the bill.
What do you mean when 'you' say "embedded" ?
Do you mean copying programs into a C:/subdir without any real installation ?
How do you plan to activate your little embedded OS ?
Ubuntu will install as a .EXE named WUBI inside of XP C:/
and then activate from the XP shell. No XP bootloader changes.
So, more info please.
Sounds interesting.
************************************************** **********************************************
I have installed TinyCore several times, by simply making the subdir /tc and /tce
then copying the system files from CD into these subdir.
You will have to have a multi-bootloader such as grub4dos.
glene77is
- 06-05-2011 #5Just Joined!
- Join Date
- May 2011
- Posts
- 12
Hi there! Thanks for your interest in my topic. What I actually need to do is create a linux bootdisk to be used as a host OS and install linux (bare linux, no GUI/flavor) to a bare system from that host using internet connection to download packages (I am not actually sure about the embedded stuff although it is how it was explained to me as the task was given, by the way I will be using the Installer for my internship task
). I need to turn it into an ISO tho..
The bootdisk requires internet connection, disk partitioning utility (such as Fdisk) and drivers for IDE,SCSI and SATA (I red that linux kernel have drivers of its own and does not access basic drivers from bios, correct me if i am wrong) and wget. My current plan is to write all the commands from linux from scratch and compile it into one executable program (with a simple interface for the parameters), and include it at the startup of my linux bootdisk.. Will this work?
Thanks in advance
- 06-05-2011 #6
Pizarro,
Here is my opinion.
Pizarro,
I am running TinyCore, 10.3 Megabytes of core in USB flash drive first partition,
with 350 Megabytes of applications downloaded to a second partition on USB flash drive.
Then, Using the TinyCore Application-Loader,
Have downloaded FireFox, Libre-Office, etc which I use.
TinyCore is on a USB flash drive along with Puppy 5.25 and Parted_Magic,
controlled by grub4dos, which also detects my HD installed M$ XP and Ubuntu 10.10.
So, that is five systems boot controlled by grub4dos on the USB flash drive.
The Computer base is HP, 1Gig Ram, 40 Gig HD, booting from grub2 from Ubuntu,
for (1) M$, (2) Ubuntu, (3) Parted-Magic, (4) TinyCore (all these installed on the HD).
Having these two systems working off the same processor, has led to some interaction wherein Tiny(USB) finds Tiny(HD) application files, and that is my current debug/setup project.
Sounds like you should look into the "bare-bones" approach
of the TinyCore and MicroCore systems.
Tiny has a gui, which will make you a believer.
Micro has a CLI which sound like what you want.
Either way,
. . . you just build on the "bare-bones".
I like Puppy 5.25, at 128 Megabytes of OS core. Great fun.
I use Ubuntu desktop as my money maker, but it requires 10 times the RAM, etc.
Google TinyCore, they have a wiki type website, forum, etc.
Remember, my Opinion has a money-back guarantee !!!
buena suerte,
glene77is
- 07-12-2011 #7Just Joined!
- Join Date
- May 2011
- Posts
- 12
Hello again glene77is,
You were right, the functionalities of MicroCore is what i require
what I really (I was quite unsure about what i need last time haha) need to do is
-to remaster microcore by including a copy of the hard drive OS and packages in the ISO
-create a shell script that will mount a specified hard drive partition on MicroCore
-and copy the hard drive-specific OS and the packages to the hard drive
-and run a bootloader (specifically syslinux/extlinux since it is pure command line which makes it suitable to be integrated in the shell script) and make the drive bootable
I am currently stuck at the fourth step, because I want to set the root drive to the target hard drive (/dev/sda1) but the kernel (or bootloader) is telling me that it can't load root device sda1. I had it already set at the syslinux.cfg (root=/dev/sda1) and did everything what I believe is essential (but obviously not since I get that error message haha)
Also, whenever I include the ramdisk image, I still can't mound the hard drive (and I also need to mount the ROM drive since I believe it is not practical to place all the installation files on a remastered ramdisk)
Maybe you can help me again with this


Reply With Quote
