$ sudo apt-get install libssl1.0-dev
yum install
with Fedora or apt-get install
with Ubuntu or Debian. These commands may require root privileges or being in a correct sudoers group.
$ git clone https://github.com/linux4sam/openwrt-at91.git Cloning into 'openwrt-at91'... remote: Enumerating objects: 44, done. remote: Counting objects: 100% (44/44), done. remote: Compressing objects: 100% (37/37), done. remote: Total 420102 (delta 17), reused 13 (delta 7), pack-reused 420058 Receiving objects: 100% (420102/420102), 148.16 MiB | 190.00 KiB/s, done. Resolving deltas: 100% (285014/285014), done. $ cd openwrt-at91 $The source code has been taken from the master branch which is pointing on the latest version of OpenWrt. If you want to use a specific release, you can list them and use one of them by doing this:
$ git checkout openwrt-18.06.2-at91 -b openwrt-18.06.2-at91To benefit the latest enhancements for Microchip products, you are advised to use the openwrt-2018.06-at91 branch.
$ ./scripts/feeds update -a $ ./scripts/feeds install -aNOTE: It is possible to create out of tree builds by setting the TOPDIR environment variable and creating the appropriate directory structure (see this
$ cp configs/sama5d2_xplained_defconfig .config $ make defconfigEverything is now ready for building the image(s), which is done with one single command:
$ makeAfter a successful build, the freshly built images can be found in the newly created <openwrt-at91> /bin/target/ directory. The compiled files are additionally classified by the target platform, so e.g. a firmware built for an at91 sama5d2 xplained device will be in <openwrt-at91>/bin/target/at91/sama5d2 directory
$ $ ls bin/targets/at91/sama5d2-glibc/ u-boot-sama5d2_xplained_spiflash u-boot-sama5d2_xplained_mmc at91bootstrap-sama5d2_xplainedsd_uboot at91bootstrap-sama5d2_xplaineddf_qspi_uboot at91bootstrap-sama5d2_xplaineddf_uboot openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-device-at91-sama5d2-xplained.manifest openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-at91-sama5d2_xplained-ext4-sdcard.img.gz openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-at91-sama5d2_xplained-ext4-root.ubi openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-at91-sama5d2_xplained-ubifs-root.ubi openwrt-18.06.2-linux4sam-6.1-sama5d2-at91-sama5d2_xplained-ext4-zImage openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-at91-sama5d2_xplained-ubifs-zImage openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-at91-sama5d2_xplained-uImage openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-device-at91-sama5d2-xplained-rootfs.tar.gz openwrt-18.06.2-linux4sam-6.1-at91-sama5d2-at91-sama5d2_xplained.dtb sama5d2_xplained.itb uboot.envTo write the compressed image on the SD card, follow steps mentioned in Create a SD card with the demo
$ ls staging_dir/toolchain-arm_cortex-a5+neon-vfpv4_gcc-7.4.0_glibc_eabi/bin arm-openwrt-linux-addr2line arm-openwrt-linux-gcov-tool arm-openwrt-linux-gnueabi-gcov arm-openwrt-linux-gprof iconv arm-openwrt-linux-ar arm-openwrt-linux-gdb arm-openwrt-linux-gnueabi-gcov-dump arm-openwrt-linux-ld ldd arm-openwrt-linux-as arm-openwrt-linux-gnueabi-addr2line arm-openwrt-linux-gnueabi-gcov-tool arm-openwrt-linux-ld.bfd locale arm-openwrt-linux-c++ arm-openwrt-linux-gnueabi-ar arm-openwrt-linux-gnueabi-gdb arm-openwrt-linux-nm localedef arm-openwrt-linux-c++filt arm-openwrt-linux-gnueabi-as arm-openwrt-linux-gnueabi-gprof arm-openwrt-linux-objcopy makedb arm-openwrt-linux-cpp arm-openwrt-linux-gnueabi-c++ arm-openwrt-linux-gnueabi-ld arm-openwrt-linux-objdump mtrace arm-openwrt-linux-elfedit arm-openwrt-linux-gnueabi-c++filt arm-openwrt-linux-gnueabi-ld.bfd arm-openwrt-linux-ranlib pcprofiledump arm-openwrt-linux-g++ arm-openwrt-linux-gnueabi-cpp arm-openwrt-linux-gnueabi-nm arm-openwrt-linux-readelf pldd arm-openwrt-linux-gcc arm-openwrt-linux-gnueabi-elfedit arm-openwrt-linux-gnueabi-objcopy arm-openwrt-linux-size readelf arm-openwrt-linux-gcc-7.4.0 arm-openwrt-linux-gnueabi-g++ arm-openwrt-linux-gnueabi-objdump arm-openwrt-linux-strings sotruss arm-openwrt-linux-gcc-ar arm-openwrt-linux-gnueabi-gcc arm-openwrt-linux-gnueabi-ranlib arm-openwrt-linux-strip sprof arm-openwrt-linux-gcc-nm arm-openwrt-linux-gnueabi-gcc-7.4.0 arm-openwrt-linux-gnueabi-readelf catchsegv tzselect arm-openwrt-linux-gcc-ranlib arm-openwrt-linux-gnueabi-gcc-ar arm-openwrt-linux-gnueabi-size gencat xtrace arm-openwrt-linux-gcov arm-openwrt-linux-gnueabi-gcc-nm arm-openwrt-linux-gnueabi-strings getconf arm-openwrt-linux-gcov-dump arm-openwrt-linux-gnueabi-gcc-ranlib arm-openwrt-linux-gnueabi-strip getent
make menuconfig
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
Openwrt-LuCi.png | manage | 77.8 K | 2018-03-29 - 19:16 | SandeepSheriker | Openwrt-Luci |
![]() |
Openwrt-Menuconfig.png | manage | 109.9 K | 2018-03-29 - 19:14 | SandeepSheriker | Openwrt-Menuconfig |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.