17 17
Igor

read first How to build my own image or kernel?

Recommended Posts

Didn't know about that. Thanks!

 

@dony71

 

Try now.

compile finished, however cannot boot with image burnt into sdcard

mount image "sudo mount -o offset=1048576 -t ext4 /media/sdcard" shows failure image wrong format

what is the format of image?

 

Share this post


Link to post
Share on other sites

I try to compile again, try this time using x64 machine

Got repository error this time

Repo down?

 

-----------------------------------------------------------------------------------------------------

fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
[ o.k. ] Starting Armbian build script [ @host ]
[ o.k. ] Building [ Armbian 5.12 Bananapim2plus Debian jessie default ]
[ o.k. ] Syncing clock [ host ]
[ o.k. ] source downloading [ @host ]
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
[ o.k. ] ... creating a shallow clone [ u-boot ]
Cloning into '/home/user/Armbian/sources/u-boot/v'...
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
/home/user/Armbian/lib/general.sh: line 162: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
[ o.k. ] ... creating a shallow clone [ linux-sun8i sun8i ]
Cloning into '/home/user/Armbian/sources/linux-sun8i/sun8i'...
remote: Counting objects: 45250, done.
remote: Compressing objects: 100% (40065/40065), done.
remote: Total 45250 (delta 4576), reused 45249 (delta 4576), pack-reused 0
Receiving objects: 100% (45250/45250), 126.32 MiB | 1.40 MiB/s, done.
Resolving deltas: 100% (4576/4576), done.
Checking connectivity... done.
[ o.k. ] ... creating a shallow clone [ sunxi-tools ]
Cloning into '/home/user/Armbian/sources/sunxi-tools'...
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 55 (delta 18), reused 27 (delta 5), pack-reused 0
Unpacking objects: 100% (55/55), done.
Checking connectivity... done.
[ o.k. ] ... creating a shallow clone [ sunxi-display-changer ]
Cloning into '/home/user/Armbian/sources/sunxi-display-changer'...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 9 (delta 0), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (9/9), done.
Checking connectivity... done.
[ o.k. ] Compiling sunxi tools [ @host & target ]
[ o.k. ] Cleaning [ linux-sun8i/sun8i ]
/home/user/Armbian/lib/main.sh: line 212: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
[ o.k. ] Started patching process for [ u-boot u-boot-default  ]
[ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-default ]
[ o.k. ] ... add-awsom-uboot.patch [ succeeded ]
[ o.k. ] ... add-cubieboard4.patch [ succeeded ]
[ warn ] ... bananapi-enable-ldo4.patch [ failed ]
[ warn ] ... u-boot-02-support-cheap-mmc.patch [ failed ]
[ o.k. ] ... u-boot-99-add-missing-boards.patch [ succeeded ]
[ error ] ERROR in function compile_uboot [ common.sh:29 ]
[ error ] Error building u-boot: source directory does not exist [ u-boot/v ]

Share this post


Link to post
Share on other sites

 

 

 

I try to compile again, try this time using x64 machine

Got repository error this time

Repo down?

 

-----------------------------------------------------------------------------------------------------

fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
[ o.k. ] Starting Armbian build script [ @host ]
[ o.k. ] Building [ Armbian 5.12 Bananapim2plus Debian jessie default ]
[ o.k. ] Syncing clock [ host ]
[ o.k. ] source downloading [ @host ]
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
[ o.k. ] ... creating a shallow clone [ u-boot ]
Cloning into '/home/user/Armbian/sources/u-boot/v'...
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
/home/user/Armbian/lib/general.sh: line 162: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
[ o.k. ] ... creating a shallow clone [ linux-sun8i sun8i ]
Cloning into '/home/user/Armbian/sources/linux-sun8i/sun8i'...
remote: Counting objects: 45250, done.
remote: Compressing objects: 100% (40065/40065), done.
remote: Total 45250 (delta 4576), reused 45249 (delta 4576), pack-reused 0
Receiving objects: 100% (45250/45250), 126.32 MiB | 1.40 MiB/s, done.
Resolving deltas: 100% (4576/4576), done.
Checking connectivity... done.
[ o.k. ] ... creating a shallow clone [ sunxi-tools ]
Cloning into '/home/user/Armbian/sources/sunxi-tools'...
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 55 (delta 18), reused 27 (delta 5), pack-reused 0
Unpacking objects: 100% (55/55), done.
Checking connectivity... done.
[ o.k. ] ... creating a shallow clone [ sunxi-display-changer ]
Cloning into '/home/user/Armbian/sources/sunxi-display-changer'...
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 9 (delta 0), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (9/9), done.
Checking connectivity... done.
[ o.k. ] Compiling sunxi tools [ @host & target ]
[ o.k. ] Cleaning [ linux-sun8i/sun8i ]
/home/user/Armbian/lib/main.sh: line 212: cd: /home/user/Armbian/sources/u-boot/v: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
cat: /home/user/Armbian/sources/u-boot/v/Makefile: No such file or directory
[ o.k. ] Started patching process for [ u-boot u-boot-default  ]
[ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-default ]
[ o.k. ] ... add-awsom-uboot.patch [ succeeded ]
[ o.k. ] ... add-cubieboard4.patch [ succeeded ]
[ warn ] ... bananapi-enable-ldo4.patch [ failed ]
[ warn ] ... u-boot-02-support-cheap-mmc.patch [ failed ]
[ o.k. ] ... u-boot-99-add-missing-boards.patch [ succeeded ]
[ error ] ERROR in function compile_uboot [ common.sh:29 ]
[ error ] Error building u-boot: source directory does not exist [ u-boot/v ]

 

 

yeah, repo down

now is ok

Share this post


Link to post
Share on other sites

I make image of Armbian for OrangePI PC. The script  compile.sh ended with error.  

====================================================================

Displaying message: Preparing host info
Displaying message: Build host OS release xenial info
Displaying message: Using custom apt-cacher-ng address nas-1.local info
## BUILD CONFIGURATION
Kernel configuration:
Branch: branch:sun8i
Config file: linux-sun8i-default
 
U-boot configuration:
Branch: tag:v2016.07
Offset: 1
Size: 0
 
CPU configuration:
480000 - 1296000 with interactive
29.08.2016 12:23:45 Armbian 5.17 Orangepipc Debian jessie default
Build script version: 74a16c6aa1cc027d68446d7bdb7c49b939b2a363
Displaying message: Starting Armbian build script @host info
Displaying message: Building Armbian 5.17 Orangepipc Debian jessie default info
Displaying message: Syncing clock host info
Displaying message: Downloading sources  info
Displaying message: Checking git sources u-boot v2016.07 info
Displaying message: Fetching updates
Displaying message: Checking out
Displaying message: Checking git sources linux-sun8i sun8i info
Displaying message: Skipping checkout
Displaying message: ... you have latest sources sunxi-display-changer  info
Displaying message: Checking git sources sunxi-tools master info
Displaying message: Up to date
Displaying message: Cleaning u-boot/v2016.07 info
Displaying message: Cleaning linux-sun8i/sun8i info
Displaying message: Cleaning output/debs for orangepipc default info
Displaying message: Compiling uboot 2016.09-rc2 info
Displaying message: Compiler version arm-linux-gnueabihf-gcc 4.8 info
Displaying message: Building deb linux-u-boot-orangepipc_5.17_armhf.deb info
Displaying message: Compiling default kernel 3.4.112 info
Displaying message: Compiler version arm-linux-gnueabihf-gcc 4.8 info
Displaying message: Using kernel config file lib/config/kernel/linux-sun8i-default.config info
Displaying message: Creating board support package orangepipc default info
Displaying message: Fingerprinting Armbian 5.17 Orangepipc Debian jessie default info
Displaying message: Building package linux-jessie-root-orangepipc info
Displaying message: Starting build process for orangepipc jessie info
Displaying message: Creating new rootfs for jessie info
Displaying message: Installing base system Stage 1/2 info
Displaying message: Installing base system Stage 2/2 info
Displaying message: ERROR in function create_rootfs_cache debootstrap-ng.sh:173 err
Displaying message: Debootstrap base system second stage failed  err
Displaying message: Process terminated  info
Displaying message: ERROR in function unmount_on_exit debootstrap-ng.sh:560 err
Displaying message: debootstrap-ng was interrupted  err
Displaying message: Process terminated  info
====================================================================
I make image under Ubuntu 16.05.1 LTC
lsb_release -a:
====================================================================
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
====================================================================
What do I do incorrectly?

Share this post


Link to post
Share on other sites

If you are building on Ubuntu 16.05 you are not following the guide (you are running an unsupported host) and the only proper answer is - you are on your own to find a problem.

 

"compilation environment is highly recommended to be Ubuntu Trusty 14.04 x64 or Ubuntu Xenial 16.04 x64 (other releases are not officially supported)"

 

Stick to Ubuntu 16.04 x64 LTS, Xenial and we will help and fix problems in no time if they occur.

Share this post


Link to post
Share on other sites

"compilation environment is highly recommended to be Ubuntu Trusty 14.04 x64 or Ubuntu Xenial 16.04 x64 (other releases are not officially supported)"

 

Stick to Ubuntu 16.04 x64 LTS, Xenial and we will help and fix problems in no time if they occur.

I know about it. My system initially was "Ubuntu Trusty 14.04 x64". I tried to collect under her, the same mistake that it is given by me above. Then it has decided to be updated till Ubuntu 16.04 x64 LTS  (Excuse I I have peed the pants in the message above. At me 16.04), the result hasn't changed.

The message of "I make image under Ubuntu 16.05.1 LTC" should be read how "I make image under Ubuntu 16.04.1 LTS".

Share this post


Link to post
Share on other sites

It looks like deboostrap process did not finish properly. Remove cache and try again would be my first idea. If you are running upgraded Xenial from Trusty you are facing with another risk. It should work but ... :)

 

I just tested to build and it works fine.

Share this post


Link to post
Share on other sites

It looks like deboostrap process did not finish properly. Remove cache and try again would be my first idea. If you are running upgraded Xenial from Trusty you are facing with another risk. It should work but ... :)

 

I just tested to build and it works fine.

I tried. I deleted output/cache/rootfs then restarted compile.sh, a mistake similar. I deleted output/cache then restarted compile.sh, a mistake similar. I won't understand in what a problem. Can be that Ubuntu under VMPlayer?

Share this post


Link to post
Share on other sites

If you can, start from clean image within virtual machine. Get Ubuntu Xenial base image and our script makes the rest. This way it works 100% ... unless you got some network issues. In this case deboostrap process also fails ... but you won't get that far without a net anyway.

Share this post


Link to post
Share on other sites

If you can, start from clean image within virtual machine. Get Ubuntu Xenial base image and our script makes the rest. This way it works 100% ... unless you got some network issues. In this case deboostrap process also fails ... but you won't get that far without a net anyway.

Ok. Thanks for answers. And I will make. I don't see other way

Share this post


Link to post
Share on other sites

Displaying message: Using custom apt-cacher-ng address nas-1.local info

Please check if your custom apt-cacher server works, also look at console output (or use PROGRESS_LOG_TO_FILE=yes) to get exact error message when debootstrap fails.

Share this post


Link to post
Share on other sites

Please check if your custom apt-cacher server works, also look at console output (or use PROGRESS_LOG_TO_FILE=yes) to get exact error message when debootstrap fails.

I understand that "debootstrap" doesn't fulfill up to the end as the "$CACHEDIR/sdcard/" catalog isn't created therefore the script of "debootstrap-ng.sh" comes to the end on a condition:

 

[[ ${PIPESTATUS[0]} -ne 0 || ! -f $CACHEDIR/sdcard/bin/bash ]] && exit_with_error "Debootstrap base system second stage failed"

 

I don't understand why it occurs?

Share this post


Link to post
Share on other sites

Hi , kernel headers from /usr/src I can only use to build additional  modules or drivers. But how use it to build kernel ?? I have problem on s500 board , kernel sources is ver . 3.10.100 but on armbian i have config for 3.10.103. Can I use kernel headers to build 3.10.103 version ???

Share this post


Link to post
Share on other sites

hi

I bought a Orange Pi Plus 2E and install ARMBIAN 5.25 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun8i.

I want use it as a TV-Server with Astrometa DVB-Stick (MN88473) link . So i need a Kernel 4x.

I try this

root@orangepiplus2e:~# wget -q -O - http://upgrade.armbian.com | bash

But get this error: [ error ] Unsupported hw

I read this:
 

HARDWARE=$(cat /proc/cpuinfo | grep Hardware | awk '{print $3}')
if [[ !( "$HARDWARE" == "sun7i" || "$HARDWARE" == "Allwinner" || "$HARDWARE" == "sun4i" ) ]]; then
    echo -e "[\e[0;31m error \x1B[0m] Unsupported hw"; exit;

But

root@orangepiplus2e:~# cat /proc/cpuinfo | grep Hardware
Hardware    : sun8i

 

Can anybody help me

 

ciao nepo

 

P.S. sorry for my english

 

Share this post


Link to post
Share on other sites

This tool was made for older boards, is deprecated in any case and is about to be removed.

 

Upgrade for H3 boards from legacy to mainline is not yet ready for end users ... kernel is still in development stage and you can run into various troubles, for which its impossible to provide end user help since things are changing on daily basis. If you still want to try, check this page: https://www.armbian.com/kernel to see which packages you need to change and do some forum search. It has been brought up few times. 

Share this post


Link to post
Share on other sites

thanks for reply!

 

This won't help too: 

https://docs.armbian.com/Developer-Guide_Build-Preparation/

 

Share this post


Link to post
Share on other sites

It's possible that all those H3 boards are not fully supported yet in new (development) kernel since each board needs it's own hardware configuration config.

 

We haven't done that yet for all boards.

 

Share this post


Link to post
Share on other sites

hi

I will try it (and have no fear :blink:)

Quote

those H3 boards are not fully supported yet

And the question is: what will be support?

I don't need everything, "only" emmc, network(cable), usb and everything for dvb.

I will see ...

Share this post


Link to post
Share on other sites
1 hour ago, nepo said:

I don't need everything, "only" emmc, network(cable), usb and everything for dvb.


For server usage its O.K. for some time (with minor problems) and you could use it. Kernel is more or less o.k., but I would not recommend to use it in production environment. Not yet, we need more testing, so welcome to join ... I use one H3 board with this kernel for my IPTV server for example.

 

The actual problem here is, that exactly this board is not yet properly configured and tested.

Share this post


Link to post
Share on other sites

Hi

 

I want to say Thanks !!!

Quote

For server usage its O.K

At the moment, everything is OK (vdr-server, nfs-server ...) -> pretty good :) Great job!

 

One questions:

Can I use dist-upgrade, if a new armbian-version exist or  I must compile the new version with your script again ?

 

Bye nepo

 

Share this post


Link to post
Share on other sites
9 minutes ago, nepo said:

Can I use dist-upgrade, if a new armbian-version exist or  I must compile the new version with your script again ?


In general yes, but since you are using an unsupported development version which will once become stable, update will stop one day ... we don't provide auto update from development to stable. Package naming is changed from DEV to NEXT or DEFAULT -> you will need to change packages when you notice, that we pushed out stable versions.

Share this post


Link to post
Share on other sites

hello again :D

 

I tested this image Armbian_5.27_Orangepiplus2e_Debian_jessie_dev_4.10.3, everything ok only the Tv-Output.

 

I have the same problem to fit this description :

That build was the first one that used the new 4.9.0 kernel. I noticed a somewhat rare, intermittent video corruption when watching 1080i h.264 TV channels - usually a flash of green artifacts. Those video artifacts appear once in 5-10 minutes (sometimes more frequent). (I use it as tvserver with RPI3 (Raspian Jessie and Kodi) as client.

So I want to try another kernel.

I read this post and I insert in my compile.sh

KERNELTAG="v4.4.58"

Of course, nothing happen, still the same kernel 4.10.3. so I read your documentation about patches , kernel configs and ..., but I understand nothing (not at all)  :(. I'm "only" a user - copy and paste try and error.

Can I build a kernel e.g. v4.4.50 (like my raspi) and if how I can do that ?

 

Tschau nepo

Share this post


Link to post
Share on other sites
3 minutes ago, zador.blood.stained said:

H3 support in 4.4.x kernel is close to zero, so the only way to go is forward and wait for the stable mainline releases.

 Thanks for fast answer :D

4.4.50 is only an example, higher untill 4.8

Share this post


Link to post
Share on other sites
14 minutes ago, nepo said:

4.4.50 is only an example, higher untill 4.8

The problem is that until most things hit mainline we'll be using 3rd party branches (i.e these) with a lot of patches on top, so switching kernel versions could not be done without changing/rebasing the patches, in other words it won't be as easy as setting KERNELBRANCH='branch:orange-pi-4.8' in the build system

Share this post


Link to post
Share on other sites

I will try it.

Change configuration.sh

Quote

ARMBIAN_MAINLINE_KERNEL_VERSION='4.10'
MAINLINE_KERNEL_BRANCH=tag:v$(wget -qO- https://www.kernel.org/finger_banner | awk '{print $NF}' | grep -oE "^${ARMBIAN_MAINLINE_KERNEL_VERSION//./\\.}\.?[[:digit:]]*" | tail -1)

in

Quote

ARMBIAN_MAINLINE_KERNEL_VERSION='4.8'

'KERNELBRANCH='branch:orange-pi-4.8'

Right ?

And like this post

Quote

When you go back with version, patches might break. You will need to deal with that ... check output/debug/patching.log for details and fix patches. In case patches are not important for you, disable them.

No other way.

  How I can disable patches - in configuration files or during the process of compile (configure kernel)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
17 17