Tests based on the DebianOn page and various information from the web
This commit is contained in:
parent
ca5b6babf5
commit
2e6e5198ff
2 changed files with 5 additions and 4 deletions
6
build.sh
6
build.sh
|
@ -2,7 +2,7 @@
|
|||
|
||||
# needed packages: debootstrap qemu-user-static cgpt u-boot-tools vboot-kernel-utils
|
||||
|
||||
IMAGELENGTH=$(echo '2 * 1024 * 1024 * 1024' | bc)
|
||||
IMAGELENGTH=$(echo '1 * 1024 * 1024 * 1024' | bc)
|
||||
SDCARDDEVICE=/dev/mmcblk1
|
||||
|
||||
TGT_HOSTNAME="preila"
|
||||
|
@ -99,12 +99,12 @@ cp ${MOUNTDIR}/boot/vmlinuz-${KERNELVERSION} ${MOUNTDIR}/boot/initrd.img-${KERNE
|
|||
cp ${MOUNTDIR}/usr/lib/linux-image-${KERNELVERSION}/rk3288-veyron-speedy.dtb ${KERNELDIR}
|
||||
|
||||
cat > ${KERNELDIR}/kernel.flags <<EOF
|
||||
console=tty1 printk.time=1 nosplash rootwait root=/dev/mmcblk1p2 rw rootfstype=ext4 lsm.module_locking=0
|
||||
console=tty1 init=/sbin/init root=PARTUUID=%U/PARTNROFF=1 rootfstype=ext4 rootwait rw quiet
|
||||
EOF
|
||||
|
||||
cp kernel_c201.its ${KERNELDIR}
|
||||
cd ${KERNELDIR}
|
||||
mkimage -D "-I dts -O dtb -p 2048" -f kernel_c201.its kernel_c201.itb
|
||||
mkimage -f kernel_c201.its kernel_c201.itb
|
||||
dd if=/dev/zero of=bootloader.bin bs=512 count=1
|
||||
cd ${CURRENTDIR}
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
/ {
|
||||
description = "Linux kernel image with one or more FDT blobs";
|
||||
#address-cells = <1>;
|
||||
images {
|
||||
kernel@1{
|
||||
description = "vmlinuz";
|
||||
|
@ -11,6 +10,8 @@
|
|||
arch = "arm";
|
||||
os = "linux";
|
||||
compression = "none";
|
||||
load = <0>;
|
||||
entry = <0>;
|
||||
hash@1{
|
||||
algo = "sha1";
|
||||
};
|
||||
|
|
Reference in a new issue