„Home“ ändern

Stefan Tabbert 2021-08-09 09:46:13 +02:00
parent 6e72006406
commit b2704c8965

12
Home.md

@ -38,10 +38,11 @@ mount /dev/loop0p1 /mnt/c/build/rootfs/boot
``` ```
targetdir=/mnt/c/build/rootfs targetdir=/mnt/c/build/rootfs
distro=buster distro=buster
debootstrap --arch=armhf --foreign $distro $targetdir
sudo mount -o bind /proc $targetdir/proc sudo mount -o bind /proc $targetdir/proc
sudo mount -o bind /dev $targetdir/dev sudo mount -o bind /dev $targetdir/dev
sudo mount -o bind /sys $targetdir/sys sudo mount -o bind /sys $targetdir/sys
debootstrap --arch=armhf --foreign $distro $targetdir
cp /usr/bin/qemu-arm-static $targetdir/usr/bin/ cp /usr/bin/qemu-arm-static $targetdir/usr/bin/
cp /etc/resolv.conf $targetdir/etc cp /etc/resolv.conf $targetdir/etc
``` ```
@ -113,14 +114,15 @@ cp arch/arm/boot/dts/sun7i-a20-bananapi-pro.dtb $targetdir/boot/dtbs
cd .. cd ..
nano boot.cmd nano boot.cmd
part uuid ${devtype} ${devnum}:${bootpart} uuid part uuid ${devtype} ${devnum}:${bootpart} uuid
setenv bootargs console=${console} root=PARTUUID=${uuid} rw rootwait setenv bootargs console=${console} root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait
if fatload ${devtype} ${devnum}:${bootpart} 0x48000000 uImage; then if fatload ${devtype} ${devnum}:${bootpart} 0x46000000 uImage; then
if fatload ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then if fatload ${devtype} ${devnum}:${bootpart} 0x49000000 /dtbs/${fdtfile}; then
setenv bootm_boot_mode sec; setenv bootm_boot_mode sec;
bootm 0x48000000; bootm 0x46000000 - 0x49000000;
fi; fi;
fi fi
mkimage -C none -A arm -T script -d boot.cmd boot.scr mkimage -C none -A arm -T script -d boot.cmd boot.scr
cp boot.scr $targetdir/boot cp boot.scr $targetdir/boot
``` ```