Update CROSS-COMPILING.md

This commit is contained in:
mayfrost 2018-09-18 05:39:28 +00:00 committed by GitHub
parent 050f59bd05
commit 59274abef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,19 +47,15 @@ Name of "_CROSS_COMPILE_" variable will change depending on the choosen option.
`3073` `3073`
* Assign end of boot partition * Assign end of boot partition
`+128M` `+128M`
* Change display units to cylinders
`u`
* Create root partition * Create root partition
`n` `n`
* Make primary partition * Make primary partition
`p` `p`
* Choose partition number * Choose partition number
`2` `2`
* Assign start of boot partition at the end of the bootloader space (default cylinder) * Assign start of boot partition at the end of the bootloader space
`131` `134220802`
* Assign end of boot partition (default) by pressing ENTER * Assign end of boot partition (default) by pressing ENTER
* Change display units back to sectors
`u`
* Show the partitions * Show the partitions
`p` `p`
* If you agree save and exit * If you agree save and exit
@ -92,11 +88,11 @@ Can be the rest of the disk.
`wget -c http://resources.crux-arm.nu/files/devel-test/3.3/crux-arm-rootfs-3.3-64b-RC2.tar.xz` `wget -c http://resources.crux-arm.nu/files/devel-test/3.3/crux-arm-rootfs-3.3-64b-RC2.tar.xz`
* Extract CRUX image to root directory * Extract CRUX image to root directory
`aunpack crux-arm-rootfs-3.3-64b-RC2.tar.xz --extract-to=/mnt` `aunpack crux-arm-rootfs-3.3-64b-RC2.tar.xz --extract-to=/mnt`
* Change network interface with the rules you want (IP, gateway, domain, etc). * Change network interface with the rules you want (IP, gateway, domain, etc).
`elvis /etc/rc.d/net` `elvis /etc/rc.d/net`
* On the "/etc/resolv.conf.head" file set your preferred DNS provider (this example is from OpenNIC). * On the "/etc/resolv.conf.head" file set your preferred DNS provider (this example is from OpenNIC).
`nameserver 185.121.177.177` `nameserver 185.121.177.177`
* Change the "/etc/fstab" file with appropriate filesystems. * Change the "/etc/fstab" file with appropriate filesystems.
``` ```
/dev/sda1 /boot <BOOTLOADER_FILESYSTEM> defaults 0 1 /dev/sda1 /boot <BOOTLOADER_FILESYSTEM> defaults 0 1
/dev/sda2 / <ROOT_FILESYSTEM> errors=remount-ro,noatime 0 1 /dev/sda2 / <ROOT_FILESYSTEM> errors=remount-ro,noatime 0 1
@ -137,6 +133,8 @@ make odroidc2_defconfig
`make -j 4 ARCH=arm64 CROSS_COMPILE=<LINARO_TOOLS_DIRECTORY>/bin/aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ modules` `make -j 4 ARCH=arm64 CROSS_COMPILE=<LINARO_TOOLS_DIRECTORY>/bin/aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/ modules`
* Installing the kernel to destination "/mnt/boot/Image" * Installing the kernel to destination "/mnt/boot/Image"
`cp arch/arm64/boot/Image /mnt/boot/` `cp arch/arm64/boot/Image /mnt/boot/`
* Creating the devicetree directory
`mkdir /mnt/boot/dtbs/`
* Installing the devicetree blobs to destination "/mnt/boot/dtbs/meson64_odroidc2.dtb" * Installing the devicetree blobs to destination "/mnt/boot/dtbs/meson64_odroidc2.dtb"
`cp arch/arm64/boot/dts/meson64_odroidc2.dtb /mnt/boot/dtbs/` `cp arch/arm64/boot/dts/meson64_odroidc2.dtb /mnt/boot/dtbs/`
* Installing the modules to destination "INSTALL_MOD_PATH=/mnt/" * Installing the modules to destination "INSTALL_MOD_PATH=/mnt/"