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

odroidxu4: enable possib. to compile "next" branch #1

Merged
merged 1 commit into from Jun 17, 2016

Conversation

Projects
None yet
1 participant
@jobenvil
Copy link
Owner

commented Jun 16, 2016

Preface:

  • Trying to compile nextbranch on odroidxu4 fails with following error:
[ o.k. ] Preparing [ host ]
[ error ] ERROR in function source [ main.sh:132 ]
[ error ] Kernel branch not defined for this board [ next ]
[ o.k. ] Process terminated 

since next branch for odroidxu4 is already defined in /lib/config/sources/odroidxu4.conf:

BOOTLOADER='https://github.com/hardkernel/u-boot.git'
BOOTBRANCH='odroidxu3-v2012.07'
BOOTSOURCE='u-boot-odroidxu'
BOOTSIZE=32
OFFSET=2
UBOOT_NEEDS_GCC='< 4.9'

case $BRANCH in
    default)
    LINUXKERNEL='https://github.com/hardkernel/linux'
    KERNELBRANCH='odroidxu3-3.10.y'
    LINUXSOURCE='linux-odroidxu4'
    ;;

    next)
    LINUXKERNEL='https://github.com/tobetter/linux'
    KERNELBRANCH='odroidxu4-v4.2'
    LINUXSOURCE='linux-odroidxu-next'
    ;;
esac

It is only necessary to add the tag next to CLI_TARGET, DESKTOP_TARGET and KERNEL_TARGET variables to be able to compile next branch (4.2.X)

  • Finally odroidxu4 next branch (i.e: Kernel 4.2.8) compile successfully:
[ o.k. ] Creating board support package [ odroidxu4 ]
[ o.k. ] Fingerprinting [ Armbian 5.14 Odroidxu4 Ubuntu xenial next ]
[ o.k. ] Building package [ linux-xenial-root-next-odroidxu4 ]
[ o.k. ] Starting build process for [ odroidxu4 xenial ]
[ o.k. ] Extracting xenial-ng-armhf.48c...376.tgz [ 7 days old ]
xenial-ng-armhf.48c...376.tgz:  231MB [16,6MB/s] [=========================================================================================================>] 100%
[ o.k. ] Applying distribution specific tweaks for [ xenial ]
[ o.k. ] Installing packages [ linux-image-next-odroidxu4 ]
[ o.k. ] Installing board support package [ odroidxu4 ]
[ o.k. ] Installing u-boot [ linux-u-boot-next-odroidxu4 ]
[ o.k. ] Installing headers [ linux-headers-next-odroidxu4 ]
[ o.k. ] Installing DTB [ linux-dtb-next-odroidxu4 ]
[ o.k. ] Creating boot scripts [ odroidxu4 ]
[ o.k. ] Adjusting boot scripts [ odroidxu4 ]
[ o.k. ] Calling image customization script [ customize-image.sh ]
[ o.k. ] Preparing image file for rootfs [ odroidxu4 xenial ]
[ o.k. ] Current rootfs size [ 850 MiB ]
[ o.k. ] Creating blank image for rootfs [ 1365 MiB ]
1,33GB [ 104MB/s] [========================================================================================================================================>] 100%
[ o.k. ] Creating partitions [ /boot: fat root: ext4 ]
mkfs.fat 3.0.26 (2014-03-07)
unable to get drive geometry, using default 255/63
[ o.k. ] Copying files to image [ tmprootfs.raw ]
        728.44M  99%   21.82MB/s    0:00:31 (xfr#41971, to-chk=0/52508)   

sent 731.68M bytes  received 842.08K bytes  22.54M bytes/sec
total size is 733.29M  speedup is 1.00
[ o.k. ] Copying files to /boot partition [ tmprootfs.raw ]
         32.38M 100%   70.60MB/s    0:00:00 (xfr#66, to-chk=0/69) 

sent 32.40M bytes  received 1.29K bytes  21.60M bytes/sec
total size is 32.38M  speedup is 1.00
[ o.k. ] Free space: [ SD card ]
/dev/loop0p2    1,3G    825M  411M   67% /home/achilles/Desktop/output/cache/mount
/dev/loop0p1     32M     31M  982K   97% /home/achilles/Desktop/output/cache/mount/boot
[ o.k. ] Writing bootloader [ /dev/loop0 ]
[ o.k. ] Signing and compressing [ Please wait! ]
[ o.k. ] Done building [ /home/achilles/Desktop/output/images/Armbian_5.14_Odroidxu4_Ubuntu_xenial_4.2.8.zip [298M] ]
[ o.k. ] Runtime [ 39 min ]
odroidxu4: enable possib. to compile "next" branch
Preface: 

- Trying to compile `next`branch on odroidxu4 fails with following error:

```
[ o.k. ] Preparing [ host ]
[ error ] ERROR in function source [ main.sh:132 ]
[ error ] Kernel branch not defined for this board [ next ]
[ o.k. ] Process terminated 
```

since `next` branch for odroidxu4 is already defined in `/lib/config/sources/odroidxu4.conf`:

```
BOOTLOADER='https://github.com/hardkernel/u-boot.git'
BOOTBRANCH='odroidxu3-v2012.07'
BOOTSOURCE='u-boot-odroidxu'
BOOTSIZE=32
OFFSET=2
UBOOT_NEEDS_GCC='< 4.9'

case $BRANCH in
	default)
	LINUXKERNEL='https://github.com/hardkernel/linux'
	KERNELBRANCH='odroidxu3-3.10.y'
	LINUXSOURCE='linux-odroidxu4'
	;;

	next)
	LINUXKERNEL='https://github.com/tobetter/linux'
	KERNELBRANCH='odroidxu4-v4.2'
	LINUXSOURCE='linux-odroidxu-next'
	;;
esac

It is only necessary to add the tag `next` to the `CLI_TARGET`, `DESKTOP_TARGET` and `KERNEL_TARGET` to be able to compile next branch (4.2.X) 

- Finally odroidxu4 next branch compile succesfully:

```
[ o.k. ] Creating board support package [ odroidxu4 ]
[ o.k. ] Fingerprinting [ Armbian 5.14 Odroidxu4 Ubuntu xenial next ]
[ o.k. ] Building package [ linux-xenial-root-next-odroidxu4 ]
[ o.k. ] Starting build process for [ odroidxu4 xenial ]
[ o.k. ] Extracting xenial-ng-armhf.48c...376.tgz [ 7 days old ]
xenial-ng-armhf.48c...376.tgz:  231MB [16,6MB/s] [=========================================================================================================>] 100%
[ o.k. ] Applying distribution specific tweaks for [ xenial ]
[ o.k. ] Installing packages [ linux-image-next-odroidxu4 ]
[ o.k. ] Installing board support package [ odroidxu4 ]
[ o.k. ] Installing u-boot [ linux-u-boot-next-odroidxu4 ]
[ o.k. ] Installing headers [ linux-headers-next-odroidxu4 ]
[ o.k. ] Installing DTB [ linux-dtb-next-odroidxu4 ]
[ o.k. ] Creating boot scripts [ odroidxu4 ]
[ o.k. ] Adjusting boot scripts [ odroidxu4 ]
[ o.k. ] Calling image customization script [ customize-image.sh ]
[ o.k. ] Preparing image file for rootfs [ odroidxu4 xenial ]
[ o.k. ] Current rootfs size [ 850 MiB ]
[ o.k. ] Creating blank image for rootfs [ 1365 MiB ]
1,33GB [ 104MB/s] [========================================================================================================================================>] 100%
[ o.k. ] Creating partitions [ /boot: fat root: ext4 ]
mkfs.fat 3.0.26 (2014-03-07)
unable to get drive geometry, using default 255/63
[ o.k. ] Copying files to image [ tmprootfs.raw ]
        728.44M  99%   21.82MB/s    0:00:31 (xfr#41971, to-chk=0/52508)   

sent 731.68M bytes  received 842.08K bytes  22.54M bytes/sec
total size is 733.29M  speedup is 1.00
[ o.k. ] Copying files to /boot partition [ tmprootfs.raw ]
         32.38M 100%   70.60MB/s    0:00:00 (xfr#66, to-chk=0/69) 

sent 32.40M bytes  received 1.29K bytes  21.60M bytes/sec
total size is 32.38M  speedup is 1.00
[ o.k. ] Free space: [ SD card ]
/dev/loop0p2    1,3G    825M  411M   67% /home/achilles/Desktop/output/cache/mount
/dev/loop0p1     32M     31M  982K   97% /home/achilles/Desktop/output/cache/mount/boot
[ o.k. ] Writing bootloader [ /dev/loop0 ]
[ o.k. ] Signing and compressing [ Please wait! ]
[ o.k. ] Done building [ /home/achilles/Desktop/output/images/Armbian_5.14_Odroidxu4_Ubuntu_xenial_4.2.8.zip [298M] ]
[ o.k. ] Runtime [ 39 min ]
```

@jobenvil jobenvil merged commit e8e51cc into master Jun 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.