Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile LEDE using raspberry pie 3B+ firmware

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to use raspberry pie 3B+ firmware to compile LEDE. I think it is very practical, so I share it with you. I hope you can get something after reading this article.

There is always a problem with the firmware on the Internet. Compile one by yourself here to record the process and the problems encountered.

Internal compiler error: Killed (program cc1plus)

Checking whether mknod can create fifo without root privileges

Prompt the problem of compilation time difference

[1] prepare the environment and dependencies first

Sudo apt update & & sudo apt upgradesudo apt-y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex node-uglify gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx-ucl libelf-dev autoconf automake libtool autopoint gcc gathers + cmake vim wget ntp ntpdate

[2] compilation

From here to back, there is no need for root users or sudo.

# download the source code git clone https://github.com/coolsnowwolf/ledecd ~ / lede# update dependent source. / scripts/feeds update-a & &. / scripts/feeds install-a # enter the configuration interface make menuconfig

Here git, update dependent source and later compilation and download process all need a good and fast network environment, ha, think of your own way.

[3] configuration

Reference https://openwrt.club/1.html

[4] compilation

# download the things used for compilation, it will be very slow make download VSAs

This process may encounter the above problems 0.2 and 0.3, and the solutions are

Solution: checking whether mknod can create fifo without root privileges do not use root users or sudo to use make-related commands, add environment variable export FORCE_UNSAFE_CONFIGURE=1 reference https://github.com/coolsnowwolf/lede/issues/200

0.3 solution: install ntpdate to synchronize time, sudo apt-get install ntp ntpdate, sudo ntpdate ntp1.aliyun.com

# start the official compilation of the system, single-threaded mode make venders-J1

Many problems may be encountered here, such as problem 0.1 mentioned above. The solution is:

Solution: internal compiler error: internal compiler error: Killed (program cc1plus) this is due to lack of memory, the compilation process requires a lot of memory, my machine only has 512m of memory, so I can add swap space to solve it. Reference https://www.cnblogs.com/liqinggai/articles/9023333.html

Add swap:

1. Create a partition file with a size of 2G

Sudo dd if=/dev/zero of=/swapfile bs=1M count=2048

two。 Generate swap file system

Sudo mkswap / swapfile

3. Activate the swap file

Sudo swapon / swapfile

4. Can be deleted later

Sudo rm / swapfile

It is done, and the compiled firmware is in ~ / lede/bin/targets/brcm2708/bcm2710

The above is how to use raspberry pie 3B+ firmware to compile LEDE. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report