当前位置:网站首页>Openwrt source code generation image

Openwrt source code generation image

2022-07-06 16:07:00 mrbone9

The code download :

Update the latest package definition :

Install all packages :

Generate default profile :

Configure the system :

1. Target platform x86

2. install LuCI Tools

3. Compile the generated VM Usable .vmdk Image file

Compile code :

V=s Show the compilation process ,-j2 Compile with two threads , Speed up

Here I have changed it into Ubuntu20, Because of other projects

The final stage of compilation generates image An error occurred when , As before , To generate VM Finally, you need to use tools to convert the image of

The default time used here qemu-img To complete , But Ubuntu 20 It's a little different , Different from an earlier version

sudo apt-get install qemu Can be installed qemu All the relevant software , Cut into several packages for installation (mips For example ):

1. System level virtual machine ,sudo apt-get install qemu-system-mips

2. Process level virtual machine ,sudo apt-get install qemu-user

3. Tools , such as qemu-img,sudo apt-get install qemu-utils

Current error reporting :

therefore , We need to install :

Finally, generate the image file you need :

Subsequent operation in VM See  Openwrt Image mount

原网站

版权声明
本文为[mrbone9]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131317037124.html