Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation freezes on Debian 9.4.0 #31

Open
timkoers opened this issue Aug 1, 2018 · 20 comments
Open

Compilation freezes on Debian 9.4.0 #31

timkoers opened this issue Aug 1, 2018 · 20 comments

Comments

@timkoers
Copy link

timkoers commented Aug 1, 2018

I am trying to compile for the Orange Pi Zero and on both my VM and my secondary laptop (which hasn't got the best specs) the operating system freezes without any errors. It keeps on reading from the disk though, as if it was reading files to compile. How do I fix this?

@sabur2342
Copy link

Attach screenshots or describe the problem in more detail.

@timkoers
Copy link
Author

timkoers commented Aug 1, 2018 via email

@sabur2342
Copy link

I recommend checking:

  1. How many cores and RAM are allocated to the virtual machine;
  2. Install ubuntu 18.04 on the VM and try on it;
  3. I used this guide - How to build the images

But the image created by the script recorded on microsd was not loaded. More precisely, the eth-adapter was not started. I had to take the already created .img-image of the OS from the website OS for OrangePi and replace the partition of the /boot and /roofs replaced with the data created by the script, then everything worked.

Programs that must be installed before the assembly of OS^
apt-get install curl libcurl4 libcurl4-openssl-dev
apt-get install lib32stdc++6
apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc
apt-get install linux-source
apt-get install debootstrap
apt-get install schroot
apt-get install binfmt-support qemu qemu-user-static
apt-get install lib32ncurses5 lib32ncurses5-dev libusb-1.0-0-dev

@sabur2342
Copy link

Something else. On Debian 9.4 to assemble the system did not work out. It turned out on Debian 9.5 and ubuntu 18.04. Make sure to: apt update and apt upgrade.

@timkoers
Copy link
Author

timkoers commented Aug 1, 2018 via email

@timkoers
Copy link
Author

timkoers commented Aug 1, 2018 via email

@sabur2342
Copy link

The guidance How to build the images is correct.
If there is an error: Script_to_dts: Can not find [sun50iw2p1-cheetah-p1.dts]
Locate the file: ".sun50iw2p1-soc.dtb.dts" and copy it to the directory specified by the script when displaying the error message.

@timkoers
Copy link
Author

timkoers commented Aug 1, 2018

afbeelding
It froze once again on my VM running Debian 9.5. The disk indicator at the bottom shows it is still reading or writing to the disk as it keeps blinking red and green.
I'll try Ubuntu now

@timkoers
Copy link
Author

timkoers commented Aug 1, 2018

I've got another error now:

afbeelding

@sabur2342
Copy link

I used only stable assemblies of Debian and Ubuntu. Update the operating system Ubuntu. You on the screenshot indicate that the system has available updates. Does the display of the script work stop or something else happen on the Debian?

@timkoers
Copy link
Author

timkoers commented Aug 1, 2018

On Debian it start to compile, then freezes.
I updated Ubuntu before I started the script, so no updates are needed.

@timkoers
Copy link
Author

timkoers commented Aug 2, 2018

Please see #32

@sabur2342
Copy link

PrepareTool.sh script in walks in OrangePi_Build. These files are needed to run the scripts to load the source code for your OrangePi. I did the assembly for OrangePi Prime and everything turned out. I'll try to assemble for OrangePi Zero. Let's see what happens.

@sabur2342
Copy link

Unfortunately it was not possible to collect from source codes Orange Pi Zero.
In Ubunt immediately gives an error after the start ./build.sh
image

After the launch build uboot. Did not automatically download the toolchain.
OrangePi Zero plus build on Allwinner H2+ Soc, the offfically maintained repository as follows:
I had to download manually: git clone https://github.com/orangepi-xunlong/OrangePiH3_toolchain.git
image

@timkoers
Copy link
Author

timkoers commented Aug 4, 2018 via email

@sabur2342
Copy link

sabur2342 commented Aug 4, 2018

If you do not create an image, but there are files for the kernel and root. That can be manually copied to the OS image for OrangePi Zero.
Where X is the initial sector of the section. You can learn it like this:
file sdb.img
Directories for mounting should already be created.
sudo mount sdb.img /mnt/sdb2 -o offset=$((X*512))

@alex-eri
Copy link

My build also freezes

@alex-eri
Copy link

alex-eri commented Aug 11, 2018

Looks like fork-bomb

Build script kernel_compile.sh has make -j ARCH=.... that means build jobs are not limites.

make -j 1 .. fixex it

@timkoers
Copy link
Author

@alex-eri I've changed that in a pull request of the script repo. That request hasn't been accepted yet, it would help if you drew some attention too to that pull request

@afilis
Copy link

afilis commented Aug 23, 2018

@sabur2342 I had the same problem. I fixed it by replacing lib32stdc++ to lib32stdc++6 in scripts/Prepare_toolchain.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants