우분투 18.04 또는 16.04 64bit OS 설치 $ tar xf flexbuild_lsdk1803_k4.9_200922-nand-1.tgz $ cd flexbuild_lsdk1803_k4.9_200922-nand-1/ $ rm -rf build $ sudo tar xf ../flexbuild_lsdk1803_k4.9_200922-nand_build-image-1.tgz $ mv flexbuild_lsdk1803_k4.9_200922-nand_build-image-1 build $ source ./setup.env $ ./crz_build_uboot_sd.sh $ ./crz_build_kernel.sh sudo umount /dev/sdc* $ sudo fdisk /dev/sdc Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): d Partition number (1-3, default 3): Partition 3 has been deleted. Command (m for help): d Partition number (1,2, default 2): Partition 2 has been deleted. Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-31116287, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-31116287, default 31116287): 20480 Created a new partition 1 of type 'Linux' and of size 9 MiB. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): First sector (20481-31116287, default 22528): Last sector, +sectors or +size{K,M,G,T,P} (22528-31116287, default 31116287): 1048576 Created a new partition 2 of type 'Linux' and of size 501 MiB. Command (m for help): n Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): p Partition number (3,4, default 3): First sector (20481-31116287, default 1050624): Last sector, +sectors or +size{K,M,G,T,P} (1050624-31116287, default 31116287): Created a new partition 3 of type 'Linux' and of size 14.3 GiB. Command (m for help): p Disk /dev/sdc: 14.9 GiB, 15931539456 bytes, 31116288 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x5fd0246a Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 20480 18433 9M 83 Linux /dev/sdc2 22528 1048576 1026049 501M 83 Linux /dev/sdc3 1050624 31116287 30065664 14.3G 83 Linux Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. <전체 이미지 Write> tools/flex-installer 수정 sudo chmod 666 /run/media/${devpartname}3/etc/hostname sudo echo "$distroname.$machine" > /run/media/${devpartname}3/etc/hostname flex-installer --bootpart=./build/images/bootpartition_arm64_lts_ --rootfs=./build/rfs/rootfs_ubuntu_xenial_arm64 --firmware=./build/images/firmware_ls1043ardb_uboot_sdboot.img --machine=ls1043ardb --device=/dev/sdc 부팅이 안되면 아래와 같이 수행을 한다. flex-installer --firmware=./build/images/firmware_ls1043ardb_uboot_sdboot.img --machine=ls1043ardb --device=/dev/sdc sudo tar xf build/images/bootpartition_arm64_lts_.tgz -C /run/media/sdc2 sudo cp -r build/rfs/rootfs_ubuntu_xenial_arm64/* /run/media/sdc3/ sync;sudo umount /dev/sdc* flex-installer \ --bootpart=./build/images/bootpartition_arm64_lts_ \ flex-installer --rootfs=./build/rfs/rootfs_ubuntu_xenial_arm64 \ --machine=ls1043ardb --device=/dev/sdc