美文网首页
2022-09-06

2022-09-06

作者: wjundong | 来源:发表于2022-09-05 13:03 被阅读0次

    cp arch/arm/boot/uImage arch/arm/boot/dts/infinity2m-spinand-ssc011a-s01a-display.dtb arch/arm/boot/zImage ../rootfs

    dd if=/dev/zero of=base.img bs=1M count=1024

    fdisk base.img

    sudo kpartx -av base.img

    sudo mkfs.fat /dev/mapper/loop0p1
    sudo mkfs.ext4 /dev/mapper/loop0p2

    sudo mount /dev/mapper/loop0p1 /mnt
    sudo cp zImage infinity2m-spinand-ssc011a-s01a-display.dtb uImage /mnt
    sudo umount /mnt

    sudo mount /dev/mapper/loop0p2 /mnt
    sudo cp ubuntu-base/* /mnt -r
    sudo umount /mnt

    sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/loop0 bs=1024 seek=8

    sudo kpartx -d /dev/loop0
    sudo losetup -d /dev/loop0

    bootcmd=gpio output 18 1; bootlogo 0 0 0 0 0; mw 1f001cc0 11; gpio out 8 0; nand read.e 0x22000000 KERNEL 0x500000; gpio out 8 1; bootm 0x22000000;nand read.e 0x22000000 RECOVERY 0x500000; bootm 0x22000000
    bootargs=console=ttyS0,115200 ubi.mtd=UBI,2048 root=ubi:rootfs rw rootfstype=ubifs init=/linuxrc rootwait=1 LX_MEM=0x7f00000 mma_heap=mma_heap_name0,miu=0,sz=0x3800000 mma_memblock_remove=1 highres=off mmap_reserved=fb,miu=0,sz=0x300000,max_start_off=0x7C00000,max_end_off=0x7F00000 mtdparts=nand0:384k@1280k(IPL0),384k(IPL1),384k(IPL_CUST0),384k(IPL_CUST1),768k(UBOOT0),768k(UBOOT1),256k(ENV),256k(ENV1),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI),0x20000(KEY_CUST),0x60000(LOGO),0x500000(KERNEL),0x500000(RECOVERY),-(UBI)

    sudo apt-get install qemu-user-static
    sudo apt-get install qemu-user-binfmt
    sudo tar -pxf $LFS/src/ubuntu-base-18.04.5-base-armhf.tar.gz -C ubuntu-base

    ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM
    IgnoreSIGPIPE=nostem/serial-getty@.service" 46L, 1468C

    cp -R /etc/skel /mnt/etc/
    adduser shino
    apt-get install systemd vim gcc sudo

    fatload mmc 0:1 0x22000000 uImage
    fatload mmc 0:1 0x21000000 infinity2m-spinand-ssc011a-s01a-display.dtb
    setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw
    bootm 0x22000000 - 0x21000000

    mkimage -C none -A arm -T script -d boot.cmd boot.scr
    echo "asdasd" | passwd --stdin root

    wsl 重启
    sc stop LxssManager
    sc start LxssManager

    相关文章

      网友评论

          本文标题:2022-09-06

          本文链接:https://www.haomeiwen.com/subject/wupinrtx.html