Coder Social home page Coder Social logo

mgarcia01752 / openwrt-x86_64-install Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 9.0 76 KB

Create and deploy a LEGACY or EFI OpenWRT bootable image for x86_64 processors

License: Apache License 2.0

Shell 100.00%
openwrt bash linux efi x86 x86-64 iso ext4 ext4-filesystem ext4-images

openwrt-x86_64-install's Introduction

OpenWRT-x86_64-Install

This is a turnkey script to create an OpenWRT x86_64 bootable image for Legacy and EFI bootup. This installation has only been tested on Ubuntu 20.04, but there is no reason why it would not work on earlier releases.

OpenWRT is really created from BuildRoot. I recommend reviewing BuildRoot Training PDF for clear details on adding packages to OpenWRT.

	OpenWRT x86-64 Installation

	Version: 1.0.0

	Usage:
		-b [master]			OpenWRT install branch
		-c [LEGACY|EFI] <DEV_BLOCK>	Create bootable media	Example: -c EFI /dev/sdb
		-f 				Fresh Install, Remove previous installation
		-i  				Ignore Warning and Error Suppresion
		-r				Remove OpenWRT directories, then exit
		-m				Build OpenWRT
		-h				Print usage and exit
		-v				Print version and exit

Usage

Install OpenWRT master branch

	createOpenWrtInstant.sh

Install the OpenWRT master branch and build the image

	createOpenWrtInstant.sh -m

Install OpenWRT master branch, build image, and create bootable ext4-fs image on media

	createOpenWrtInstant.sh -m -c EFI /dev/sdb

Reinstall OpenWRT master branch when there is an existing OpenWRT

	createOpenWrtInstant.sh -f

Manual steps to prepare installation

Step 1:

Copy and Paste the following and ensure that each required package is installed. You may need to run this a couple of times.

sudo apt-get install -y git make gcc binutils bzip2 flex python python3.5+ python2-doc python-tk python2.7-doc binfmt-support libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python-is-python2 python2 python2-minimal python2.7 python2.7-minimal perl 	grep diffutils unzip getopt subversion libz-dev libc g++ gawk zlib1g libncurses5 build-essential libncurses-dev python3-distutils

Step 2:

git clone https://github.com/mgarcia01752/OpenWRT-x86_64-Install.git

Step 3:

This step will:

1. Clone and create the required OpenWRT directories.
2. Create a feeds.conf file that is needed to point the required packages to the local computer
3. Copy a base x86_64 configuration file that is needed to set the gcc toolchain for compiling

Copy/Paste the following:

cd OpenWRT-x86_64-Install
chmod +x createOpenWrtInstant.sh
./createOpenWrtInstant.sh -m

At this point, you will have an image to manually install on whatever media you prefer. Steps 4 and 5 will provide some guidance.

You can use -c option to have the script install the image for you. Make sure you select the correct media device.

Step 4: Copy image onto media

./installOpenWrt2Media.sh -h

OpenWRT - Copy x86_64 image to media

Version: 1.0.0

Usage:
	-m <Device Block>		Media or Device Block	Example: -m /dev/sdb
	-b [LEGACY]|EFI			Create bootable media	Example: -b EFI
	-h				Print usage and exit
	-v				Print version and exit

./installOpenWrt2Media.sh -m /dev/sdb -b LEGACY

openwrt-x86_64-install's People

Contributors

lotoss25 avatar mgarcia01752 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.