[pkg-fso-maint] install.sh - vfat part1 supported, wicd remains difficult

Luca Capello luca at pca.it
Wed Mar 4 00:27:35 UTC 2009


Hi there!

This mail is not meant to change how install.sh works, but only to
document my idea, which I was loosing while performing a `git pull`.

On Sat, 21 Feb 2009 14:02:45 +0100, Steffen Moeller wrote:
> vfat
> ====
>
> I have tested all variants now, I think, this works nicely. Partition1
> can be mounted (to anything but $INST_DIR/boot) or not, the is
> installed and copyied over.

Here the solution I was thinking about at [1], which requires the kernel
I uploaded this evening [2]:

--8<---------------cut here---------------start------------->8---
if [ "$SD_PART1_FS" = "vfat" ]; then
	chroot $INST_DIR /bin/sh -e <<__END_CHROOT__
apt-get --yes --download-only install linux-image-2.6.28-openmoko-gta02
dpkg --extract /var/cache/apt/archives/linux-image-2.6.28-openmoko-gta02*.deb /
mv /boot/uImage.bin-* /boot/uImage.bin
apt-get clean
__END_CHROOT__
else
[...]
fi
--8<---------------cut here---------------end--------------->8---

FWIW, the above solution has been tested to work:
=====
debian-gta02:~# mount | grep vfat
/dev/mmcblk0p1 on /boot type vfat (rw,noatime)
debian-gta02:~# mount | grep boot
/dev/mmcblk0p1 on /boot type vfat (rw,noatime)
debian-gta02:~# ls /boot/
debian-gta02:~# apt-get --yes --download-only install \
 linux-image-2.6.28-openmoko-gta02
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  linux-image-2.6.28-openmoko-gta02
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 4536kB of archives.
After this operation, 10.1MB of additional disk space will be used.
Get:1 http://pkg-fso.alioth.debian.org unstable/main \
 linux-image-2.6.28-openmoko-gta02 20090105.git69b2aa26-3 [4536kB]
Fetched 4536kB in 8s (543kB/s)
Download complete and in download only mode
debian-gta02:~# dpkg --extract \
 /var/cache/apt/archives/linux-image-2.6.28-openmoko-gta02*.deb /
debian-gta02:~# mv /boot/uImage.bin-* /boot/uImage.bin
debian-gta02:~# apt-get clean
debian-gta02:~# ls /boot/
config-2.6.28-20090105.git69b2aa26  uImage.bin
debian-gta02:~# ls /lib/modules/
2.6.28-20090105.git69b2aa26
debian-gta02:~#
=====

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://thread.gmane.org/gmane.comp.hardware.smartphones.pkg-fso-maint/246/focus=281
[2] we do not ship a Linux kernel image, but a U-Boot one, thus it is
    now properly called uImage.bin-$VERSION
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090304/727e8778/attachment.pgp 


More information about the pkg-fso-maint mailing list