Ground-work for Sheeva UBI images

This commit is contained in:
Mike Staszel 2010-06-27 23:01:25 -07:00
parent 64ee609f42
commit a44f0194dc

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# Plugbox Linux Distribution Image Builder # Plugbox Linux Distribution Image Builder
# Version 0.2.0 # Version 0.2.1
# #
# Licensed under the GPLv2. # Licensed under the GPLv2.
# #
@ -14,7 +14,8 @@
INSTALLEDPKGS="base kernel26-withlinux openssh openssl heimdal" INSTALLEDPKGS="base kernel26-withlinux openssh openssl heimdal"
RELEASEVER=1.1 RELEASEVER=1.1
MAKETARGZ=1 MAKETARGZ=1
MAKEUBIIMG=1 MAKEUBIIMGSHEEVA=0
MAKEUBIIMGGURU=1
# ==== The Process ==== # ==== The Process ====
mkdir -p $1 mkdir -p $1
echo -e "\033[1mInstalling packages...\033[0m" echo -e "\033[1mInstalling packages...\033[0m"
@ -45,8 +46,8 @@ else
fi fi
# Here is the UBI image part if you set MAKEUBIIMG to 1 # Here is the UBI image part if you set MAKEUBIIMG to 1
if [ $MAKEUBIIMG = 1 ]; then if [ $MAKEUBIIMGGURU = 1 ]; then
echo -e "\033[1mCreating a rootfs.ubi.img...\033[0m" echo -e "\033[1mCreating a rootfs.ubi.img for GuruPlug...\033[0m"
cat << EOF > ./ubi.cfg cat << EOF > ./ubi.cfg
[ubifs] [ubifs]
mode=ubi mode=ubi
@ -61,7 +62,7 @@ EOF
ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg
rm -f ubi.cfg rootfs.ubifs.img rm -f ubi.cfg rootfs.ubifs.img
else else
echo -e "\033[1mNot creating an UBI image...\033[0m" echo -e "\033[1mNot creating UBI image for GuruPlug...\033[0m"
fi fi
echo -e "\033[1mCleaning up...\033[0m" echo -e "\033[1mCleaning up...\033[0m"