forked from ingmar-k/Allwinner_A10_Debian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
general_settings.sh
138 lines (89 loc) · 7.43 KB
/
general_settings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#!/bin/bash
# Author: Ingmar Klein ([email protected])
# Additional part of the main script 'build_debian_system.sh', that contains all the general settings
# Created in scope of the Master project, winter semester 2012/2013 under the direction of Professor Nik Klever, at the University of Applied Sciences Augsburg.
# This program (including documentation) is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 (GPLv3; http://www.gnu.org/licenses/gpl-3.0.html )
# for more details.
###################################
##### GENERAL BUILD SETTINGS: #####
###################################
### These settings MUST be checked ###
host_os="Ubuntu" # Debian or Ubuntu (YOU NEED TO EDIT THIS!)
nameserver_addr="192.168.2.1" # "141.82.48.1" (YOU NEED TO EDIT THIS!)
output_dir_base="/home/celemine1gig/Allwinner_A10_debian_build" # where to put the files in general (YOU NEED TO EDIT THIS!)
root_password="root"
username="tester" # Name of user for the graphical login
user_password="tester"
### These settings are for experienced users ###
base_sys_cache_tarball="debian_sid_minbase.tgz"
libcedarx_git_tarball="libcedarx_git.tgz"
vlc_git_tarball="vlc_git.tgz"
xbmc_git_tarball="xbmc_git.tgz"
std_locale="en_US.UTF-8" # initial language setting for console (alternatively for example 'en_US.UTF-8')'
locale_list="en_US.UTF-8 de_DE.UTF-8" # list of locales to enable during configuration
debian_mirror_url="http://ftp.de.debian.org/debian/" # mirror for debian
debian_repositories="main contrib non-free"
debian_target_version="sid" # The version of debian that you want to build (ATM, 'wheezy' and 'sid' are supported)
bootloader_bin_1="http://www.hs-augsburg.de/~ingmar_k/Allwinner_A10/bootloader/sunxi-spl.bin" # bootloader binary
bootloader_bin_2="http://www.hs-augsburg.de/~ingmar_k/Allwinner_A10/bootloader/u-boot.bin" # bootloader binary
bootloader_script="http://www.hs-augsburg.de/~ingmar_k/Allwinner_A10/bootloader/script.bin" # Name of the bootscript for automatically booting from sd-card
qemu_kernel_pkg="http://www.hs-augsburg.de/~ingmar_k/Allwinner_A10/kernels/3.2.33-cortexa8-qemu-1.0_1370106074.tar.bz2" # qemu kernel file name
std_kernel_pkg="http://www.hs-augsburg.de/~ingmar_k/Allwinner_A10/kernels/3.0.62/3.0.62-hsa-1.0_1364762093.tar.bz2"
tar_format="bz2" # bz2(=bzip2) or gz(=gzip)
if [ "${output_dir_base:(-1):1}" = "/" ]
then
output_dir="${output_dir_base}build_`date +%s`" # Subdirectory for each build-run, ending with the unified Unix-Timestamp (seconds passed since Jan 01 1970)
else
output_dir="${output_dir_base}/build_`date +%s`" # Subdirectory for each build-run, ending with the unified Unix-Timestamp (seconds passed since Jan 01 1970)
fi
qemu_mnt_dir="${output_dir}/mnt_debootstrap"
work_image_size_MB="8192" # size of the temporary image file, in which the installation process is carried out
output_filename="debian_rootfs_Allwinner_A10_`date +%s`" # base name of the output file (compressed rootfs)
apt_prerequisites_debian="git debootstrap binfmt-support qemu-user-static qemu qemu-kvm qemu-system parted" # packages needed for the build process on debian
apt_prerequisites_ubuntu="git debootstrap binfmt-support qemu qemu-system qemu-kvm qemu-kvm-extras-static parted" # packages needed for the build process on ubuntu
deb_add_packages="apt-utils,dialog,locales,udev,dictionaries-common,aspell" # extra packages to install via debotstrap
clean_tmp_files="yes" # delete the temporary files, when the build process is done?
create_disk="yes" # create a bootable SD-card after building the rootfs?
use_cache="yes" # use or don't use caching for the apt and debootstrap processes (caching can speed things up, but it can also lead to problems)
####################################
##### SPECIFIC BUILD SETTINGS: #####
####################################
### Additional Software ###
#additional_packages=""
additional_packages="mingetty rsyslog u-boot-tools file manpages man-db module-init-tools dhcp3-client netbase ifupdown iproute iputils-ping net-tools wget vim nano hdparm rsync bzip2 p7zip unrar unzip zip p7zip-full screen less usbutils psmisc strace info ethtool wireless-tools iw wpasupplicant python whois time ruby procps perl parted ftp gettext firmware-linux-free firmware-linux-nonfree firmware-realtek firmware-ralink firmware-linux firmware-brcm80211 firmware-atheros rcconf lrzsz libpam-modules util-linux mtd-utils wpasupplicant wireless-tools mesa-utils libopenvg1-mesa libegl1-mesa-drivers libegl1-mesa libgles2-mesa ntp ntpdate" # IMPORTANT NOTE: All package names need to be seperated by a single space
additional_desktop_packages="task-lxde-desktop thunar-archive-plugin filezilla geany geany-plugins libreoffice iceweasel icedove atool ark xarchiver e17 eterm wmdiskmon wmcpuload"
additional_dev_packages="git subversion build-essential autoconf automake make libtool xorg-dev xutils-dev libdrm-dev libxcb-dri2-0-dev"
### ARM Mali400 graphics driver settings ###
mali_module_version="r3p0"
mali_graphics_choice="build"
#mali_graphics_choice="build" # copy|build|none (copy=use a precompiled, downloaded driver | build= install dev-packages and sources and try to compile the driver | none= no driver and no graphical desktop)
mali_graphics_opengl="no" # Use or do not use binary/precompiled OpenGL libraries
mali_2d_bin="http://www.hs-augsburg.de/~ingmar_k/Allwinner_A10/xserver_mali/xserver_mali.tar.bz2" # precompiled xserver driver
mali_opengl_bin="http://dl.linux-sunxi.org/mali/lib-r3p0-04rel0.tar.gz" # precompiled opengl libraries for mali
mali_xserver_2d_git="-b r3p0-04rel0 git://github.com/linux-sunxi/xf86-video-mali.git" # the "-b r3p1-01rel1" specifies the branch to get
mali_2d_libdri2_git="git://github.com/robclark/libdri2.git"
mali_2d_mali_git="git://github.com/linux-sunxi/sunxi-mali.git"
mali_2d_proprietary_git="git://github.com/linux-sunxi/sunxi-mali-proprietary.git"
### Video acceleration settings and addresses
compile_accel_vlc="yes"
compile_accel_xbmc="yes"
libcedarx_git="git://github.com/willswang/libcedarx.git"
vlc_git="git://github.com/willswang/vlc.git"
xbmc_git="-b stage/Frodo git://github.com/rellla/xbmca10.git"
xbmc_prereq="swig default-jre cmake libgtk2.0-bin libssh-4 libssh-dev"
xbmc_nogos="libegl1-mesa libegl1-mesa-dev libegl1-mesa-drivers libgles2-mesa libgles2-mesa-dev"
### Settings for compressed SWAP space in RAM ###
use_zram="yes" # Kernel 3.x.x only!!! set if you want to use a compressed SWAP space in RAM and your Kernel version is 3.x.x (can potentionally improve performance)
zram_kernel_module_name="zram" # name of the ramzswap kernel module (could have a different name on newer kernel versions)
zram_size_B="536870912" # size of the ramzswap device in Byte (!!!)
vm_swappiness="100" # Setting for general kernel RAM swappiness: With RAMzswap and low RAM, a high number (like 100) could be good. Default in Linux mostly is 60.
### Partition setting ###
# Comment: size of the rooot partition doesn't get set directly, but is computed through the following formula:
# root partition = size_of_sd_card - (size_boot_partition + size_swap_partition)
size_boot_partition="16" # size of the boot partition, in MB (MegaByte)
size_swap_partition="512" # size of the swap partition, in MB (MegaByte)
####################################
##### "INSTALL ONLY" SETTINGS: #####
####################################
default_rootfs_package="" # filename of the rootfs-archive