Skip to content

Commit 41c1e7b

Browse files
authored
Merge pull request #2 from igorpecovnik/master
add igor updates
2 parents 6bf204e + 0a40cb8 commit 41c1e7b

File tree

52 files changed

+357773
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+357773
-262
lines changed

boards.sh

Lines changed: 0 additions & 125 deletions
This file was deleted.

build-all.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ from=0
1818
RELEASE_LIST=("trusty" "xenial" "wheezy" "jessie")
1919
BRANCH_LIST=("default" "next" "dev")
2020

21+
# add dependencies for converting .md to .pdf
22+
if [[ ! -f /etc/apt/sources.list.d/nodesource.list ]]; then
23+
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
24+
apt-get install -y libfontconfig1 nodejs
25+
npm install -g markdown-pdf
26+
fi
27+
2128
create_images_list()
2229
{
2330
for board in $SRC/lib/config/boards/*.conf; do
@@ -93,6 +100,15 @@ for line in "${buildlist[@]}"; do
93100
done
94101
echo -e "\n${#buildlist[@]} total\n"
95102

103+
# create PDF from files inside lib/documentation
104+
mkdir -p $DEST/cache/documentation
105+
markdown-pdf $SRC/lib/documentation/header*.md -o "$DEST/cache/documentation/header.pdf"
106+
markdown-pdf $SRC/lib/documentation/main*.md -o "$DEST/cache/documentation/main.pdf"
107+
markdown-pdf $SRC/lib/documentation/footer*.md -o "$DEST/cache/documentation/footer.pdf"
108+
# merge header - main - footer
109+
temprevision=$(cat $SRC/lib/configuration.sh | grep REVISION | grep -o '".*"' | sed 's/"//g' | cut -f1 -d"$")
110+
pdftk "$DEST/cache/documentation/header.pdf" "$DEST/cache/documentation/main.pdf" "$DEST/cache/documentation/footer.pdf" cat output "$DEST/images/Armbian_"$temprevision"_documentations.pdf"
111+
96112
[[ $BUILD_ALL == demo ]] && exit 0
97113

98114
buildall_start=`date +%s`

chroot-buildpackages.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ chroot_build_packages()
7070
#!/bin/bash
7171
export PATH="/usr/lib/ccache:$PATH"
7272
export HOME="/root"
73+
export DEBIAN_FRONTEND="noninteractive"
7374
# for display_alert logging
7475
export DEST="/tmp"
7576
mkdir -p /tmp/debug

config/bootscripts/boot-sunxi.cmd

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ if ext4load mmc 0 0x00000000 /boot/.next || fatload mmc 0 0x00000000 .next || ex
1212
then
1313
# sunxi mainline kernel
1414
#--------------------------------------------------------------------------------------------------------------------------------
15-
ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile} || fatload mmc 0 0x49000000 /dtb/${fdtfile} || ext4load mmc 0 0x49000000 /dtb/${fdtfile}
16-
ext4load mmc 0 0x42000000 /boot/uInitrd || fatload mmc 0 0x42000000 uInitrd || ext4load mmc 0 0x42000000 uInitrd
17-
ext4load mmc 0 0x46000000 /boot/zImage || fatload mmc 0 0x46000000 zImage || ext4load mmc 0 0x46000000 zImage
18-
bootz 0x46000000 0x42000000 0x49000000
19-
#bootz 0x46000000 - 0x49000000
15+
ext4load mmc 0 ${fdt_addr_r} /boot/dtb/${fdtfile} || fatload mmc 0 ${fdt_addr_r} /dtb/${fdtfile} || ext4load mmc 0 ${fdt_addr_r} /dtb/${fdtfile}
16+
ext4load mmc 0 ${ramdisk_addr_r} /boot/uInitrd || fatload mmc 0 ${ramdisk_addr_r} uInitrd || ext4load mmc 0 ${ramdisk_addr_r} uInitrd || setenv ramdisk_addr_r "-"
17+
ext4load mmc 0 ${kernel_addr_r} /boot/zImage || fatload mmc 0 ${kernel_addr_r} zImage || ext4load mmc 0 ${kernel_addr_r} zImage
18+
bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
2019
#--------------------------------------------------------------------------------------------------------------------------------
2120
else
2221
# sunxi android kernel
2322
#--------------------------------------------------------------------------------------------------------------------------------
24-
ext4load mmc 0 0x43000000 /boot/script.bin || fatload mmc 0 0x43000000 script.bin || ext4load mmc 0 0x43000000 script.bin
25-
ext4load mmc 0 0x42000000 /boot/uInitrd || fatload mmc 0 0x42000000 uInitrd || ext4load mmc 0 0x42000000 uInitrd
26-
ext4load mmc 0 0x48000000 /boot/zImage || fatload mmc 0 0x48000000 zImage || ext4load mmc 0 0x48000000 zImage
27-
bootz 0x48000000 0x42000000
28-
#bootz 0x48000000
23+
ext4load mmc 0 ${fdt_addr_r} /boot/script.bin || fatload mmc 0 ${fdt_addr_r} script.bin || ext4load mmc 0 ${fdt_addr_r} script.bin
24+
ext4load mmc 0 ${ramdisk_addr_r} /boot/uInitrd || fatload mmc 0 ${ramdisk_addr_r} uInitrd || ext4load mmc 0 ${ramdisk_addr_r} uInitrd || setenv ramdisk_addr_r "-"
25+
ext4load mmc 0 ${kernel_addr_r} /boot/zImage || fatload mmc 0 ${kernel_addr_r} zImage || ext4load mmc 0 ${kernel_addr_r} zImage
26+
bootz ${kernel_addr_r} ${ramdisk_addr_r}
2927
#--------------------------------------------------------------------------------------------------------------------------------
3028
fi
3129
# Recompile with:

config/kernel/linux-sun8i-dev.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2150,6 +2150,7 @@ CONFIG_RT2X00_LIB_LEDS=y
21502150
CONFIG_WLAN_VENDOR_REALTEK=y
21512151
CONFIG_RTL8187=m
21522152
CONFIG_RTL8187_LEDS=y
2153+
CONFIG_RTL8189FS=m
21532154
CONFIG_RTL_CARDS=m
21542155
CONFIG_RTL8192CU=m
21552156
CONFIG_RTLWIFI=m

debootstrap-ng.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ debootstrap_ng()
7070
mount --bind $DEST/debs/ $CACHEDIR/sdcard/tmp
7171

7272
install_distribution_specific
73-
install_kernel
74-
install_board_specific
73+
install_common
7574

7675
# install additional applications
7776
[[ $EXTERNAL == yes ]] && install_external_applications

debootstrap.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ mount -t proc chproc $CACHEDIR/sdcard/proc
178178
mount -t sysfs chsys $CACHEDIR/sdcard/sys
179179
mount -t devtmpfs chdev $CACHEDIR/sdcard/dev || mount --bind /dev $CACHEDIR/sdcard/dev
180180
mount -t devpts chpts $CACHEDIR/sdcard/dev/pts
181+
182+
# create proper fstab
183+
if [[ $BOOTSIZE -eq 0 ]]; then
184+
local device="/dev/mmcblk0p1 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro"
185+
else
186+
local device="/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro"
187+
echo "/dev/mmcblk0p1 /boot vfat defaults 0 0" >> $CACHEDIR/sdcard/etc/fstab
188+
fi
189+
echo "$device 0 0" >> $CACHEDIR/sdcard/etc/fstab
190+
181191
}
182192

183193
shrinking_raw_image (){ # Parameter: RAW image with full path
@@ -237,6 +247,15 @@ closing_image (){
237247
#--------------------------------------------------------------------------------------------------------------------------------
238248
# Closing image and clean-up
239249
#--------------------------------------------------------------------------------------------------------------------------------
250+
# if we have a special fat boot partition, alter rootfs=
251+
if [[ $BOOTSIZE -gt 0 ]]; then
252+
display_alert "Adjusting boot scripts" "$BOARD" "info"
253+
[[ -f $CACHEDIR/sdcard/boot/boot.cmd ]] && sed -e 's/p1 /p2 /g' -i $CACHEDIR/sdcard/boot/boot.cmd
254+
fi
255+
# convert to uboot compatible script
256+
[[ -f $CACHEDIR/sdcard/boot/boot.cmd ]] && \
257+
mkimage -C none -A arm -T script -d $CACHEDIR/sdcard/boot/boot.cmd $CACHEDIR/sdcard/boot/boot.scr >> /dev/null
258+
240259
customize_image
241260
chroot $CACHEDIR/sdcard /bin/bash -c "sync"
242261
sync

0 commit comments

Comments
 (0)