Jump to content

Recommended Posts

Posted

Greetings. Trying Armbian on this board instead of using the usual Buildroot mechanisms.  Thanks for the project.

 

Armbian repo cloned etc as per https://docs.armbian.com/Developer-Guide_Build-Preparation/. Ran ./compile.sh which updated various things. Selected the 4.x development version of the kernel, and Debian Jessie, then server option, then things fired up but failed attempting to apply the u-boot config file. nanopi_m1_defconfig is definitely missing.

 

That defconfig is definitely not present in the u-boot repo I use with buildroot. What have I missed here?

 

TIA

 

 

Jerry

[ o.k. ] Syncing clock [ host ]
[ o.k. ] Downloading sources 
[ o.k. ] Checking git sources [ u-boot v2017.05 ]
[ .... ] Creating local copy 
[ .... ] Fetching updates 
remote: Counting objects: 13901, done.
remote: Compressing objects: 100% (12637/12637), done.
remote: Total 13901 (delta 2621), reused 4862 (delta 1022)
Receiving objects: 100% (13901/13901), 17.18 MiB | 3.32 MiB/s, done.
Resolving deltas: 100% (2621/2621), done.
From git://git.denx.de/u-boot
 * tag               v2017.05   -> FETCH_HEAD
[ .... ] Checking out 
[ o.k. ] Checking git sources [ linux-sun8i-mainline orange-pi-4.11 ]
[ .... ] Creating local copy 
[ .... ] Fetching updates 
remote: Counting objects: 61563, done.
remote: Compressing objects: 100% (57777/57777), done.
remote: Total 61563 (delta 4766), reused 20624 (delta 2859), pack-reused 0
Receiving objects: 100% (61563/61563), 161.97 MiB | 3.41 MiB/s, done.
Resolving deltas: 100% (4766/4766), done.
From https://github.com/megous/linux
 * branch            orange-pi-4.11 -> FETCH_HEAD
 * [new branch]      orange-pi-4.11 -> origin/orange-pi-4.11
[ .... ] Checking out 
[ o.k. ] Checking git sources [ sunxi-tools master ]
[ .... ] Up to date 
[ o.k. ] Cleaning output/debs for [ nanopim1 dev ]
[ o.k. ] Cleaning [ u-boot/v2017.05 ]
[ o.k. ] Compiling u-boot [ 2017.05 ]
[ o.k. ] Compiler version [ arm-linux-gnueabihf-gcc 6.3.1 ]
[ .... ] Checking out sources 
[ o.k. ] Cleaning [ u-boot/v2017.05 ]
[ o.k. ] Started patching process for [ u-boot sun8i-nanopim1-dev ]
[ o.k. ] Looking for user patches in [ userpatches/u-boot/u-boot-sunxi ]
[ o.k. ] ... [l][b] 01-compile-sy8106a-spl-only.patch [ succeeded ]
[ o.k. ] ... [l][b] 02-refactoring.patch [ succeeded ]
[ o.k. ] ... [l][b] 03-add-sunxi-dm-i2c.patch [ succeeded ]
[ o.k. ] ... [l][b] 04-add-de2-hdmi-driver.patch [ succeeded ]
[ o.k. ] ... [l][b] 05-disable-de2-hdmi-driver-headless.patch [ succeeded ]
[ o.k. ] ... [l][b] 06-fix-edid-timings.patch [ succeeded ]
[ o.k. ] ... [l][b] 07-add-hdmi-flag.patch [ succeeded ]
[ o.k. ] ... [l][b] 08-fix-dvi-compat.patch [ succeeded ]
[ o.k. ] ... [l][b] 09-de2-setup-simplefb.patch [ succeeded ]
[ o.k. ] ... [l][c] 4kfix-limit-screen-to-full-hd.patch [ succeeded ]
[ o.k. ] ... [l][c] a10-a20-lower-dram-clk.patch [ succeeded ]
[ o.k. ] ... [l][c] add-bpi-m2plus-defconfig.patch [ succeeded ]
[ o.k. ] ... [l][c] add-cubieboard2-emmc.patch [ succeeded ]
[ o.k. ] ... [l][c] add-lime2-emmc.patch [ succeeded ]
[ o.k. ] ... [l][c] add-nanopi-air-emmc.patch [ succeeded ]
[ o.k. ] ... [l][c] add-opizeroplus2-h3.patch [ succeeded ]
[ o.k. ] ... [l][c] add-orangepi-plus2-emmc.patch [ succeeded ]
[ o.k. ] ... [l][c] adjust-nanopi-neo-cpufreq.patch [ succeeded ]
[ o.k. ] ... [l][c] adjust-opi-zero-cpufreq.patch [ succeeded ]
[ o.k. ] ... [l][c] disable-usb-keyboards.patch [ succeeded ]
[ o.k. ] ... [l][c] enable-DT-overlays-support.patch [ succeeded ]
[ o.k. ] ... [l][c] fix-cubieboard1-defconfig.patch [ succeeded ]
[ o.k. ] ... [l][c] h3-Fix-PLL1-setup-to-never-use-dividers.patch [ succeeded ]
[ o.k. ] ... [l][c] h3-adjust-dram-frequency.patch [ succeeded ]
[ o.k. ] ... [l][c] h3-enable-power-led.patch [ succeeded ]
[ o.k. ] ... [l][c] h3-set-safe-axi_apb-clock-dividers.patch [ succeeded ]
[ o.k. ] ... [l][c] sun8i-set-machid.patch [ succeeded ]
[ o.k. ] ... [l][c] sunxi-boot-splash.patch [ succeeded ]
  HOSTCC  scripts/basic/fixdep
  SHIPPED scripts/kconfig/zconf.tab.c
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/../configs/nanopi_m1_defconfig"!
***
scripts/kconfig/Makefile:121: recipe for target 'nanopi_m1_defconfig' failed
make[1]: *** [nanopi_m1_defconfig] Error 1
Makefile:478: recipe for target 'nanopi_m1_defconfig' failed
make: *** [nanopi_m1_defconfig] Error 2
 Armbian building script, http://www.armbian.com | Author: Igor Pecovnik
 ──────────────────────────────────────────────────────────────────────────────
  ┌────────────────────────────────────────────────────────────────────────┐
  │ Compiling u-boot...                                                    │  
  │────────────────────────────────────────────────────────────────────────│  
  │   3. AVR32 architecture (AVR32) (NEW)                                  │  
  │   4. M68000 architecture (M68K) (NEW)                                  │  
  │   5. MicroBlaze architecture (MICROBLAZE) (NEW)                        │  
  │   7. NDS32 architecture (NDS32) (NEW)                                  │  
  │   8. Nios II architecture (NIOS2) (NEW)                                │  
  │   9. PowerPC architecture (PPC) (NEW)                                  │  
  │ > 10. Sandbox (SANDBOX) (NEW)                                          │  
  │   12. x86 architecture (X86) (NEW)                                     │  
  │   13. Xtensa architecture (XTENSA) (NEW)                               │  
  │ choice[1-13]: aborted!                                                 │  
  │                                                                        │  
  │                                                                        │  
  │ scripts/kconfig/Makefile:46: recipe for target 'silentoldconfig' faile │  
  │ Makefile:478: recipe for target 'silentoldconfig' failed               │  
*** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.

[ error ] ERROR in function compile_uboot [ common.sh:107 ]
[ error ] U-boot file not found [ u-boot-sunxi-with-spl.bin ]
[ o.k. ] Process terminated 

 

Posted

Hello and thanks to you both. 

 

What is the most work-flow friendly way to get that patch into play? Should it get added somewhere in userpatches/u-boot? 

Posted

I see also a problem with this nanopi-m1.

I'm trying to compile a new kernel for an Orange Pi One. It gives an error when trying to DTC the sun8i-h3-nanopi-m1.dtb.

Is there a way to avoid this? I don't need a dtb for a nanopi-m1, only for the OP1.

 

 

xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
  x   CHK     include/config/kernel.release                                                                                                             x
  x make KBUILD_SRC=                                                                                                                                    x
  x   CHK     include/config/kernel.release                                                                                                             x
  x   CHK     include/generated/uapi/linux/version.h                                                                                                    x
  x   CHK     include/generated/utsrelease.h                                                                                                            x
  x   CHK     include/generated/bounds.h                                                                                                                x
  x   CHK     include/generated/timeconst.h                                                                                                             x
  x   CHK     include/generated/asm-offsets.h                                                                                                           x
  x   CALL    scripts/checksyscalls.sh                                                                                                                  x
  x   CHK     scripts/mod/devicetable-offsets.h                                                                                                         x
  x   CHK     include/generated/compile.h                                                                                                               x
  x   CHK     kernel/config_data.h                                                                                                                      x
  x   Kernel: arch/arm/boot/Image is ready                                                                                                              x
  x   Kernel: arch/arm/boot/zImage is ready                                                                                                             x
  x   DTC     arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb                                                                                                  x
  x Error: arch/arm/boot/dts/sun8i-h3-nanopi.dtsi:107.1-6 Label or path cpu0 not found                                                                  x
  x Error: arch/arm/boot/dts/sun8i-h3-nanopi.dtsi:150.28-29 syntax error                                                                                x
  x FATAL ERROR: Unable to parse input tree                                                                                                             x
  x scripts/Makefile.lib:328: recipe for target 'arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb' failed                                                       x
  x make[3]: *** [arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb] Error 1                                                                                     x
  x arch/arm/Makefile:351: recipe for target 'dtbs' failed                                                                                              x
  x make[2]: *** [dtbs] Error 2                                                                                                                         x
  x scripts/package/Makefile:97: recipe for target 'bindeb-pkg' failed                                                                                  x
  x make[1]: *** [bindeb-pkg] Error 2                                                                                                                   x
  x Makefile:1343: recipe for target 'bindeb-pkg' failed                                                                                                x
  x make: *** [bindeb-pkg] Error 2  

 

Posted
8 minutes ago, op1tjaap said:

Is there a way to avoid this? I don't need a dtb for a nanopi-m1, only for the OP1.

 

Clean your build environment. It's working fine for me.

Posted

Started a new docker instance but still get this error:

 

  MKIMAGE arch/arm/boot/dts/overlay/sun8i-h3-fixup.scr
Image Name:
Created:      Sat Jun  3 09:41:00 2017
Image Type:   ARM Linux Script (uncompressed)
Data Size:    4115 Bytes = 4.02 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 4107 Bytes = 4.01 kB = 0.00 MB
make[1]: *** No rule to make target 'arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb', needed by '__build'.  Stop.
arch/arm/Makefile:351: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2
  CHK     include/config/kernel.release
make KBUILD_SRC=
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
make[3]: *** No rule to make target 'arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb', needed by '__build'.  Stop.
arch/arm/Makefile:351: recipe for target 'dtbs' failed
make[2]: *** [dtbs] Error 2
scripts/package/Makefile:97: recipe for target 'bindeb-pkg' failed
make[1]: *** [bindeb-pkg] Error 2
Makefile:1343: recipe for target 'bindeb-pkg' failed
make: *** [bindeb-pkg] Error 2
mv: missing destination file operand after '/mnt/DEVELOP/output/debs/'
Try 'mv --help' for more information.
[ error ] ERROR in function compile_kernel [ common.sh:261 ]
[ error ] Failed moving kernel DEBs
[ o.k. ] Process terminated

Is there a way I can skipp this part so I won't get this error? Maybe a config setting which prevent building things for nanopi-m1?

 

make[1]: *** No rule to make target 'arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb', needed by '__build'.  Stop.
arch/arm/Makefile:351: recipe for target 'dtbs' failed

 

 

Posted
22 hours ago, op1tjaap said:

make[1]: *** No rule to make target 'arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb', needed by '__build'. Stop. arch/arm/Makefile:351: recipe for target 'dtbs' failed

Still can't reproduce this. Please attach output/debug/output.log here

Posted

OK first run completed:

 

 

 

I adjust 

 

lib/config/sources/sun8i.conf

this part

dev)
        KERNELSOURCE='https://github.com/montjoie/linux/'
        KERNELBRANCH='branch:dwmac-sun8i-v6'
        KERNELDIR='linux-sun8i-mainline-v6'

 

and run without any userpatches:

./compile.sh KERNEL_ONLY=yes KERNEL_CONFIGURE=no BOARD=orangepione PROGRESS_DISPLAY=plain BUILD_DESKTOP=no EXTENDED_DEBOOTSTRAP=yes PROGRESS_LOG_TO_FILE=yes BRANCH=dev NO_APT_CACHER=no CREATE_PATCHES=no

I get this error:

drivers/staging/iio/frequency/ad9834.c: In function 'ad9834_probe':
drivers/staging/iio/frequency/ad9834.c:453:29: warning: unused variable 'of_id' [-Wunused-variable]
  const struct of_device_id *of_id = of_match_device(ad9834_of_match,
                             ^~~~~
drivers/staging/iio/frequency/ad9834.c: In function 'ad9834_remove':
drivers/staging/iio/frequency/ad9834.c:581:7: error: 'struct ad9834_state' has no member named 'clk'; did you mean 'mclk'?
 if (st->clk)
       ^~
drivers/staging/iio/frequency/ad9834.c:582:27: error: 'struct ad9834_state' has no member named 'clk'; did you mean 'mclk'?
   clk_disable_unprepare(st->clk);
                           ^~
scripts/Makefile.build:308: recipe for target 'drivers/staging/iio/frequency/ad9834.o' failed
make[4]: *** [drivers/staging/iio/frequency/ad9834.o] Error 1
scripts/Makefile.build:561: recipe for target 'drivers/staging/iio/frequency' failed
make[3]: *** [drivers/staging/iio/frequency] Error 2
scripts/Makefile.build:561: recipe for target 'drivers/staging/iio' failed
make[2]: *** [drivers/staging/iio] Error 2
scripts/Makefile.build:561: recipe for target 'drivers/staging' failed
make[1]: *** [drivers/staging] Error 2
Makefile:1016: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[ error ] ERROR in function compile_kernel [ common.sh:242 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated

 

Until now I copied the 

 

drivers/staging

part from our normaly used orange-pi-4.11 branch by running again with option: CREATE_PATCHES=yes

and do the copy then.

Now I wait....maybe this is not the way to handle this error:

drivers/staging/iio/frequency/ad9834.c:581:7: error: 'struct ad9834_state' has no member named 'clk'; did you mean 'mclk'?                          x
  x  if (st->clk) 

    

Posted

OK! Thanks for the information about 4.13

 

I roleld back one version of the dwmac-sun8i to version 5. This compiles, but it seems to miss one file:

 

dpkg-deb: error: failed to read archive '/mnt/DEVELOP/output/debs/linux-image-dev-sun8i_5.27_armhf.deb': No such file or directory

 

dpkg-deb: building package 'linux-firmware-image-4.11.0-next-20170428-sun8i' in '../linux-firmware-image-4.11.0-next-20170428-sun8i_5.27_armhf.deb'.
dpkg-deb: building package 'linux-headers-4.11.0-next-20170428-sun8i' in '../linux-headers-4.11.0-next-20170428-sun8i_5.27_armhf.deb'.
dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_5.27_armhf.deb'.
dpkg-deb: building package 'linux-image-4.11.0-next-20170428-sun8i' in '../linux-image-4.11.0-next-20170428-sun8i_5.27_armhf.deb'.
dpkg-genchanges: binary-only upload (no source code included)
dpkg-deb: error: failed to read archive '/mnt/DEVELOP/output/debs/linux-image-dev-sun8i_5.27_armhf.deb': No such file or directory
[ o.k. ] Kernel build done [ @host ]
[ o.k. ] Target directory [ /mnt/DEVELOP/output/debs/ ]
[ o.k. ] File name [ linux-image-dev-sun8i_5.27_armhf.deb ]
[ o.k. ] Runtime [ 7 min ]

 

What can I do about that? It also seems to produce a file in guess I don't need:

 

linux-libc-dev_5.27_armhf.deb

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines