diff mbox

[Xen-devel,RFC,OSSTEST,04/19] mg-debian-installer-update: Add more modules when creating initrd overlay

Message ID 1412942554-752-4-git-send-email-ian.campbell@citrix.com
State New
Headers show

Commit Message

Ian Campbell Oct. 10, 2014, 12:02 p.m. UTC
The arndale platform has a usb network device. In addition both the SATA and
NIC/USB hardware on this platform requires additional regulator (power), clk
and phy modules, which in turn require i2c support.

Add everything which is needed on this platform.

Sort the list of drivers while here.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 mg-debian-installer-update | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Comments

Ian Jackson Oct. 10, 2014, 1:58 p.m. UTC | #1
Ian Campbell writes ("[PATCH RFC OSSTEST 04/19] mg-debian-installer-update: Add more modules when creating initrd overlay"):
> The arndale platform has a usb network device. In addition both the SATA and
> NIC/USB hardware on this platform requires additional regulator (power), clk
> and phy modules, which in turn require i2c support.

This is quite a list.  I assume we need to do this filtering to make
the initrd not too big.  So:

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Ian.
Ian Campbell Oct. 10, 2014, 2:08 p.m. UTC | #2
On Fri, 2014-10-10 at 14:58 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH RFC OSSTEST 04/19] mg-debian-installer-update: Add more modules when creating initrd overlay"):
> > The arndale platform has a usb network device. In addition both the SATA and
> > NIC/USB hardware on this platform requires additional regulator (power), clk
> > and phy modules, which in turn require i2c support.
> 
> This is quite a list.  I assume we need to do this filtering to make
> the initrd not too big.

That was the original idea. Totally unscientifically:
$ du -shc armmp.deb,initrd.gz
23M	armmp.deb
5.2M	initrd.gz

Where the vast majority of the .deb is modules. So it is reducing the
size pretty considerably.

>   So:
> 
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
> 
> Ian.
diff mbox

Patch

diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index 4e1da8a..4af4a42 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -123,10 +123,18 @@  if [ $arch = armhf ]; then
                          -path \*/kernel/fs/mbcache.ko -o \
                          -path \*/kernel/fs/ext\* -o \
                          -path \*/kernel/fs/jbd\* -o \
-                         -path \*/kernel/drivers/net/\* -o \
+                         -path \*/kernel/drivers/clk/\* -o \
+                         -path \*/kernel/drivers/mmc/\* -o \
+                         -path \*/kernel/drivers/phy/\* -o \
+                         -path \*/kernel/drivers/usb/misc/\* -o \
                          -path \*/kernel/drivers/ata/\* -o \
+                         -path \*/kernel/drivers/i2c/busses/\* -o \
+                         -path \*/kernel/drivers/md/\* -o \
+                         -path \*/kernel/drivers/net/\* -o \
+                         -path \*/kernel/drivers/regulator/\* -o \
                          -path \*/kernel/drivers/scsi/\* -o \
-                         -path \*/kernel/drivers/md/\* \) \
+                         -path \*/kernel/drivers/usb/dwc3/\* -o \
+                         -path \*/kernel/drivers/usb/host/\* \) \
           |pax -x sv4cpio -s '%lib%/lib%' -d -w >../cpio; cd ..
     gzip -9f cpio
     mv cpio.gz armmp.cpio.gz