Skip to content

Commit f2e1ed8

Browse files
committed
Update images to buildroot 2017.05.1
- Change PBA?? to ??bit for easier tab completion - Remove TinyCore - Rescue now same Kernel/libs as PBA - Add Rescue64 image - UEFI 64 bit image - No debug PBAs as debugging is now built into PBA - create/use buildroot package for sedutil-cli and linuxpba to remove lib version issues - increase size of PBA images to handle larger kernel - increase size of Rescue to include PBA images
1 parent d128b18 commit f2e1ed8

File tree

23 files changed

+13065
-6031
lines changed

23 files changed

+13065
-6031
lines changed

images/buildUEFI64

+10-17
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -x
44
## define releases for tools
55
. conf
66
VERSIONINFO=`git describe --dirty` || VERSIONINFO=downloaded
7-
BUILDTYPE=$1
8-
BUILDIMG=UEFI64_${1}-${VERSIONINFO}.img
7+
BUILDTYPE=Release
8+
BUILDIMG=UEFI64_${BUILDTYPE}-${VERSIONINFO}.img
99
if [ "$BUILDTYPE" == "Debug" ] || [ "$BUILDTYPE" == "Release" ] ; then
1010
echo "Building " $BUILDTYPE "image"
1111
else
@@ -17,24 +17,17 @@ fi
1717
## check that everything is available
1818
[ -f scratch/${SYSLINUX}/efi64/efi/syslinux.efi -a \
1919
-f scratch/${SYSLINUX}/efi64/com32/elflink/ldlinux/ldlinux.e64 -a \
20-
-f ../LinuxPBA/dist/${BUILDTYPE}_x86_64/GNU-Linux/linuxpba -a \
21-
-f ../linux/CLI/dist/${BUILDTYPE}_x86_64/GNU-Linux/sedutil-cli -a \
22-
-f scratch/buildroot/PBA64/images/bzImage -a \
23-
-f buildroot/syslinux.cfg \
20+
-f scratch/buildroot/64bit/images/bzImage -a \
21+
-f scratch/buildroot/64bit/images/rootfs.cpio.xz -a \
22+
-f scratch/buildroot/64bit/target/sbin/linuxpba -a \
23+
-f scratch/buildroot/64bit/target/sbin/sedutil-cli -a \
24+
-f buildroot/syslinux.cfg \
2425
] || { echo " prereqs are not available "; exit 1; }
25-
# recreate the initrd file with the latest PBA
26-
mkdir scratch/buildroot/PBA64/overlay/sbin/
27-
cp ../LinuxPBA/dist/${BUILDTYPE}_x86_64/GNU-Linux/linuxpba scratch/buildroot/PBA64/overlay/sbin/linuxpba
28-
cp ../linux/CLI/dist/${BUILDTYPE}_x86_64/GNU-Linux/sedutil-cli scratch/buildroot/PBA64/overlay/sbin/sedutil-cli
29-
cd scratch/buildroot
30-
make all O=PBA64 2>&1 >PBA64.log
31-
cd ../..
3226
# Start fresh
3327
sudo rm -rf UEFI64_${BUILDTYPE} ; mkdir UEFI64_${BUILDTYPE} ; cd UEFI64_${BUILDTYPE}
3428
# make an image file
35-
dd if=/dev/zero of=${BUILDIMG} bs=1M count=7
29+
dd if=/dev/zero of=${BUILDIMG} bs=1M count=32
3630
(echo "n";echo "";echo "";echo "";echo "ef00";echo w;echo Y) | gdisk ${BUILDIMG}
37-
3831
LOOPDEV=`sudo losetup --show -f -o 1048576 ${BUILDIMG}`
3932
sudo mkfs.vfat $LOOPDEV -n UEFI64_${BUILDTYPE}
4033
sudo mkdir image
@@ -43,8 +36,8 @@ sudo chmod 777 image
4336
sudo mkdir -p image/EFI/boot
4437
sudo cp ../scratch/${SYSLINUX}/efi64/efi/syslinux.efi image/EFI/boot/bootx64.efi
4538
sudo cp ../scratch/${SYSLINUX}/efi64/com32/elflink/ldlinux/ldlinux.e64 image/EFI/boot/
46-
sudo cp ../scratch/buildroot/PBA64/images/bzImage image/EFI/boot/
47-
sudo cp ../scratch/buildroot/PBA64/images/rootfs.cpio.xz image/EFI/boot/
39+
sudo cp ../scratch/buildroot/64bit/images/bzImage image/EFI/boot/
40+
sudo cp ../scratch/buildroot/64bit/images/rootfs.cpio.xz image/EFI/boot/
4841
sudo cp ../buildroot/syslinux.cfg image/EFI/boot/
4942
sudo umount image
5043
sudo losetup -d $LOOPDEV

images/buildbiosLinux

+13-18
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -x
44
## define releases for tools
55
. conf
66
VERSIONINFO=`git describe --dirty`
7-
BUILDTYPE=$1
8-
BUILDIMG=LINUXPBA${1}-${VERSIONINFO}.img
7+
BUILDTYPE=Release
8+
BUILDIMG=LINUXPBA${BUILDTYPE}-${VERSIONINFO}.img
99
if [ "$BUILDTYPE" == "Debug" ] || [ "$BUILDTYPE" == "Release" ] ; then
1010
echo "Building " $BUILDTYPE "image"
1111
else
@@ -14,23 +14,18 @@ if [ "$BUILDTYPE" == "Debug" ] || [ "$BUILDTYPE" == "Release" ] ; then
1414
fi
1515

1616
# Start fresh
17-
sudo rm -rf LINUXPBA${BUILDTYPE} ; mkdir LINUXPBA${BUILDTYPE} ; cd LINUXPBA${BUILDTYPE}
1817
## check that everything is available
19-
[ -f ../scratch/${SYSLINUX}/bios/mbr/mbr.bin -a \
20-
-x ../scratch/${SYSLINUX}/bios/extlinux/extlinux -a \
21-
-f ../../LinuxPBA/dist/${BUILDTYPE}/GNU-Linux/linuxpba -a \
22-
-f ../../linux/CLI/dist/${BUILDTYPE}_i686/GNU-Linux/sedutil-cli -a \
23-
-f ../scratch/buildroot/PBA32/images/bzImage \
18+
[ -f scratch/${SYSLINUX}/bios/mbr/mbr.bin -a \
19+
-x scratch/${SYSLINUX}/bios/extlinux/extlinux -a \
20+
-f scratch/buildroot/32bit/images/bzImage -a \
21+
-f scratch/buildroot/32bit/images/rootfs.cpio.xz -a \
22+
-x scratch/buildroot/32bit/target/sbin/linuxpba -a \
23+
-x scratch/buildroot/32bit/target/sbin/sedutil-cli -a \
24+
-f buildroot/syslinux.cfg \
2425
] || { echo " prereqs are not available "; exit 1; }
2526
#
26-
# recreate the initrd file with the latest PBA
27-
mkdir ../scratch/buildroot/PBA32/overlay/sbin
28-
cp ../../LinuxPBA/dist/${BUILDTYPE}/GNU-Linux/linuxpba ../scratch/buildroot/PBA32/overlay/sbin/linuxpba
29-
cp ../../linux/CLI/dist/${BUILDTYPE}_i686/GNU-Linux/sedutil-cli ../scratch/buildroot/PBA32/overlay/sbin/sedutil-cli
30-
cd ../scratch/buildroot
31-
make all O=PBA32 2>&1 >PBA32.log
32-
cd ../../LINUXPBA${BUILDTYPE}
33-
dd if=/dev/zero of=${BUILDIMG} bs=1M count=8
27+
sudo rm -rf LINUXPBA${BUILDTYPE} ; mkdir LINUXPBA${BUILDTYPE} ; cd LINUXPBA${BUILDTYPE}
28+
dd if=/dev/zero of=${BUILDIMG} bs=1M count=32
3429
(echo o;echo n;echo p;echo 1;echo"";echo "";echo "";echo a;echo 1;echo w) | fdisk ${BUILDIMG}
3530
dd if=../scratch/${SYSLINUX}/bios/mbr/mbr.bin of=${BUILDIMG} count=1 conv=notrunc bs=512
3631
LOOPDEV=`sudo losetup --show -f -o 1048576 ${BUILDIMG}`
@@ -40,8 +35,8 @@ sudo mount $LOOPDEV image
4035
sudo chmod 777 image
4136
sudo mkdir -p image/boot/extlinux
4237
sudo ../scratch/${SYSLINUX}/bios/extlinux/extlinux --install image/boot/extlinux
43-
sudo cp ../scratch/buildroot/PBA32/images/bzImage image/boot/extlinux/
44-
sudo cp ../scratch/buildroot/PBA32/images/rootfs.cpio.xz image/boot/extlinux/
38+
sudo cp ../scratch/buildroot/32bit/images/bzImage image/boot/extlinux/
39+
sudo cp ../scratch/buildroot/32bit/images/rootfs.cpio.xz image/boot/extlinux/
4540
sudo cp ../buildroot/syslinux.cfg image/boot/extlinux/extlinux.conf
4641
sudo umount image
4742
sudo losetup -d $LOOPDEV

images/buildpbaroot

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set +x
2+
set -x
33
function die {
44
echo An error has occured please fix this and start over
55
exit 99
@@ -13,32 +13,37 @@ cd buildroot
1313
git checkout -b PBABUILD ${BUILDROOT_TAG} || die
1414
git reset --hard
1515
git clean -df
16-
#fix ncurses build to include libtinfo for compat
17-
cp ../../buildroot/ncurses.mk package/ncurses/
1816
# add out of tree build directoried and files
19-
2017
# 64 bit system
21-
mkdir PBA64
22-
cp ../../buildroot/PBA64/.config PBA64/
23-
cp ../../buildroot/PBA64/* PBA64/
24-
cp -r ../../buildroot/PBA64/overlay PBA64/
25-
18+
mkdir 64bit
19+
cp ../../buildroot/64bit/.config 64bit/
20+
cp ../../buildroot/64bit/* 64bit/
21+
cp -r ../../buildroot/64bit/overlay 64bit/
2622
# 32 bit system
27-
mkdir PBA32
28-
cp ../../buildroot/PBA32/.config PBA32/
29-
cp ../../buildroot/PBA32/* PBA32/
30-
cp -r ../../buildroot/PBA32/overlay PBA32/
31-
32-
echo This is going to take a while ..... Press enter to continue
23+
mkdir 32bit
24+
cp ../../buildroot/32bit/.config 32bit/
25+
cp ../../buildroot/32bit/* 32bit/
26+
cp -r ../../buildroot/32bit/overlay 32bit/
27+
# add the current buildroot packages
28+
sed -i '/sedutil/d' package/Config.in
29+
sed -i '/menu "System tools"/a \\tsource "package/sedutil/Config.in"' package/Config.in
30+
cp -r ../../buildroot/packages/sedutil/ package/
31+
# Make a distribution from the current source
32+
cd ../../..
33+
autoreconf
34+
./configure
35+
make dist
36+
mkdir images/scratch/buildroot/dl/
37+
cp sedutil-*.tar.gz images/scratch/buildroot/dl/
38+
make distclean
39+
cd images/scratch/buildroot
40+
# build the rootfs for 64 and 32 bit systems
41+
echo Building bootable systems for the PBA, this is going to take a while ..... Press enter to continue
3342
read INOUT
3443
echo Making the 64bit PBA Linux system
35-
make O=PBA64 2>&1 | tee PBA64/build_output.txt
44+
make O=64bit 2>&1 | tee 64bit/build_output.txt
3645
echo Making the 32bit PBA Linux system
37-
make O=PBA32 2>&1 | tee PBA32/build_output.txt
38-
# List the stuff we need to check
39-
echo Checking for customizations......
40-
grep -i pba PBA*/target/etc/inittab
41-
grep -i libtinfo PBA*/target/etc/ld.so.cache
46+
make O=32bit 2>&1 | tee 32bit/build_output.txt
4247
# back to where we started
4348
cd ../..
44-
exit 0
49+
exit 0

0 commit comments

Comments
 (0)