„Home“ ändern
parent
6e72006406
commit
b2704c8965
12
Home.md
12
Home.md
@ -38,10 +38,11 @@ mount /dev/loop0p1 /mnt/c/build/rootfs/boot
|
||||
```
|
||||
targetdir=/mnt/c/build/rootfs
|
||||
distro=buster
|
||||
debootstrap --arch=armhf --foreign $distro $targetdir
|
||||
sudo mount -o bind /proc $targetdir/proc
|
||||
sudo mount -o bind /dev $targetdir/dev
|
||||
sudo mount -o bind /sys $targetdir/sys
|
||||
debootstrap --arch=armhf --foreign $distro $targetdir
|
||||
|
||||
cp /usr/bin/qemu-arm-static $targetdir/usr/bin/
|
||||
cp /etc/resolv.conf $targetdir/etc
|
||||
```
|
||||
@ -113,14 +114,15 @@ cp arch/arm/boot/dts/sun7i-a20-bananapi-pro.dtb $targetdir/boot/dtbs
|
||||
cd ..
|
||||
nano boot.cmd
|
||||
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} ${fdt_addr_r} /dtbs/${fdtfile}; then
|
||||
if fatload ${devtype} ${devnum}:${bootpart} 0x46000000 uImage; then
|
||||
if fatload ${devtype} ${devnum}:${bootpart} 0x49000000 /dtbs/${fdtfile}; then
|
||||
setenv bootm_boot_mode sec;
|
||||
bootm 0x48000000;
|
||||
bootm 0x46000000 - 0x49000000;
|
||||
fi;
|
||||
fi
|
||||
|
||||
mkimage -C none -A arm -T script -d boot.cmd boot.scr
|
||||
cp boot.scr $targetdir/boot
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user