Gentoo Archives: gentoo-embedded

From: Christopher Harvey <chris@××××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] generating root file systems
Date: Thu, 07 Jul 2011 16:05:56
1 I was wondering if there was any interest in adding a script that could
2 generate a bootable linux filesystem from a cross compiled target
3 directory.
4 For example:
6 arm-unknown-linux-gnueabi-make-root (or any arch)
8 which would do something like:
10 cp -ar /usr/arm-unknown-linux-gnueabi /tmp/target
11 mkdir /tmp/target/proc
12 mkdir -p /tmp/target/var/run
13 #generate an inittab
14 then perform a mix of the following:
15 checks to make sure that all required packages are present to make a
16 system bootable
17 package specific setup like starting services if ssh servers are
18 installed.
19 create device nodes
20 set root password
21 call hooks in ~/.crossdev-makeroot/
22 install kernel modules
23 warn about missing packages that could be useful.
24 package a cpio (or something else depending on passed options)
26 I've got a script that is a mix of my own stuff plus some stuff I
27 ripped off buildroot. I find it really handy, but isn't a general enough
28 to work on anything except my own boards.
30 It's kinda tricky to write a script that will work for most users out
31 of the box since I only have a couple of embedded machines, so I was
32 wondering how many people would be interested and how many people could
33 test on their own boards. I was thinking I could create an ebuild and a
34 git repo then let people hack at it and see where it goes, and how many
35 boards it can support at once.


Subject Author
Re: [gentoo-embedded] generating root file systems Ed W <lists@××××××××××.com>