cynfab Posted May 2, 2016 Share Posted May 2, 2016 Tried to build kernel only for OrangePih3 ( I have an Orange Pi One) and the build failed while trying to patch u-boot. Below is the install.log file since the forum software won't let me upload a file of type .log and once I tried, it won't let me attach anything, but that's another problem... Which turned out to be a cockpit problem ;>P +++++++++++++++++++++++++++++++++++ Displaying message: Preparing host infoDisplaying message: Host system support was not tested rosa wrnConfig: linux-sun8i-devKernel source: https://github.com/wens/linuxBranch: h3-emaclinuxsource: linux-sun8i-mainlineOffset: 1bootsize: 0bootloader: git://git.denx.de/u-boot.gitbootsource: u-bootbootbranch:CPU 480000 / 1296000 with ondemand02.05.2016 08:15:40 Armbian 5.11 Orangepih3 Debian devDisplaying message: Starting Armbian build script @host infoDisplaying message: Compiling kernel orangepih3 infoDisplaying message: Syncing clock host infoDisplaying message: source downloading @host infoDisplaying message: ... updating u-boot infoDisplaying message: ... updating linux-sun8i-mainline infoDisplaying message: ... updating sunxi-tools infoDisplaying message: ... updating sunxi-display-changer infoDisplaying message: Compiling sunxi tools @host & target infoDisplaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/u-boot/branchless infoDisplaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/linux-sun8i-mainline/h3-emac infoDisplaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/output/debs for orangepih3 dev infoDisplaying message: Started patching process for u-boot u-boot-dev 2016.05-rc3 infoDisplaying message: Looking for user patches in userpatches/u-boot/u-boot-dev info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/add-awsom-uboot.patch u-boot-dev 2016.05-rc3Displaying message: ... add-awsom-uboot.patch succeeded info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/add-cubieboard4.patch u-boot-dev 2016.05-rc3Displaying message: ... add-cubieboard4.patch succeeded info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-02-support-cheap-mmc.patch u-boot-dev 2016.05-rc3patch unexpectedly ends in middle of lineDisplaying message: ... u-boot-02-support-cheap-mmc.patch succeeded info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-99-opi-change-build-settings.patch u-boot-dev 2016.05-rc31 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_pc_defconfig.rej1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_plus_defconfig.rej1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_2_defconfig.rejDisplaying message: ... u-boot-99-opi-change-build-settings.patch failed wrn/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-fix-3f9f8a5b83f8aec40c9f4ee496046a695e333c45-null-pointer-dereference.patch u-boot-dev 2016.05-rc3Reversed (or previously applied) patch detected! Skipping patch.1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ehci-hcd.c.rejDisplaying message: ... u-boot-fix-3f9f8a5b83f8aec40c9f4ee496046a695e333c45-null-pointer-dereference.patch failed wrn/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-set-safe-axi_apb-clock-dividers.patch u-boot-dev 2016.05-rc3Displaying message: ... u-boot-set-safe-axi_apb-clock-dividers.patch succeeded infoDisplaying message: Compiling uboot. Please wait. infoarm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 4.8.4Displaying message: Target directory /media/kenm/usr5/OrangePiOne/Armbian/output/debs/ infoDisplaying message: Building deb linux-u-boot-dev-orangepih3_5.11_armhf.deb infoDisplaying message: ERROR in function compile_uboot common.sh:162 errDisplaying message: Building u-boot failed, check configuration errDisplaying message: Process terminated info +++++++++++++++++++++++++++++++++ I edited my compile.sh file to select Kernel only. Using the menu after running ./compile.sh I selected orangepih3 and the latest dev version of the kernel. ...ken... Link to comment Share on other sites More sharing options...
zador.blood.stained Posted May 2, 2016 Share Posted May 2, 2016 Looks like dev u-boot with h3 patches is currently broken, you may want to set BOOTBRANCH='v2016.03' (or to 'v2016.05-rc1') in compile.sh Link to comment Share on other sites More sharing options...
cynfab Posted May 2, 2016 Author Share Posted May 2, 2016 Thanks for the tip. I added BOOTBRANCH='v2016.03' to compile.sh but this patch still seems broken: /media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-02-support-cheap-mmc.patch u-boot-dev 2016.03patch unexpectedly ends in middle of line I then tried v2016.05-rc1 and the compile of u-boot and the kernel succeded. install.log for 2016.03: Displaying message: Preparing host infoDisplaying message: Host system support was not tested rosa wrnConfig: linux-sun8i-devKernel source: https://github.com/wens/linuxBranch: h3-emaclinuxsource: linux-sun8i-mainlineOffset: 1bootsize: 0bootloader: git://git.denx.de/u-boot.gitbootsource: u-bootbootbranch: v2016.03CPU 480000 / 1296000 with ondemand02.05.2016 10:06:52 Armbian 5.11 Orangepih3 Debian devDisplaying message: Starting Armbian build script @host infoDisplaying message: Compiling kernel orangepih3 infoDisplaying message: Syncing clock host infoDisplaying message: source downloading @host infoDisplaying message: ... creating a shallow clone u-boot v2016.03 infoDisplaying message: ... updating linux-sun8i-mainline infoDisplaying message: ... updating sunxi-tools infoDisplaying message: ... updating sunxi-display-changer infoDisplaying message: Compiling sunxi tools @host & target infoDisplaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/u-boot/v2016.03 infoDisplaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/linux-sun8i-mainline/h3-emac infoDisplaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/output/debs for orangepih3 dev infoDisplaying message: Started patching process for u-boot u-boot-dev 2016.03 infoDisplaying message: Looking for user patches in userpatches/u-boot/u-boot-dev info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/add-awsom-uboot.patch u-boot-dev 2016.03Displaying message: ... add-awsom-uboot.patch succeeded info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/add-cubieboard4.patch u-boot-dev 2016.03Displaying message: ... add-cubieboard4.patch succeeded info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-02-support-cheap-mmc.patch u-boot-dev 2016.03patch unexpectedly ends in middle of lineDisplaying message: ... u-boot-02-support-cheap-mmc.patch succeeded info/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-99-opi-change-build-settings.patch u-boot-dev 2016.031 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_pc_defconfig.rej1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_plus_defconfig.rej1 out of 1 hunk FAILED -- saving rejects to file arch/arm/dts/Makefile.rejThe text leading up to this was:--------------------------|diff --git a/configs/orangepi_2_defconfig b/configs/orangepi_2_defconfig|index ff9ac09..992cfa1 100644|--- a/configs/orangepi_2_defconfig|+++ b/configs/orangepi_2_defconfig--------------------------No file to patch. Skipping patch.1 out of 1 hunk ignoredDisplaying message: ... u-boot-99-opi-change-build-settings.patch failed wrn/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-fix-3f9f8a5b83f8aec40c9f4ee496046a695e333c45-null-pointer-dereference.patch u-boot-dev 2016.031 out of 1 hunk FAILED -- saving rejects to file drivers/usb/host/ehci-hcd.c.rejDisplaying message: ... u-boot-fix-3f9f8a5b83f8aec40c9f4ee496046a695e333c45-null-pointer-dereference.patch failed wrn/media/kenm/usr5/OrangePiOne/Armbian/lib/patch/u-boot/u-boot-dev/u-boot-set-safe-axi_apb-clock-dividers.patch u-boot-dev 2016.03The text leading up to this was:--------------------------|diff --git a/arch/arm/mach-sunxi/clock_sun6i.c b/arch/arm/mach-sunxi/clock_sun6i.c|index 15272c9..cedddc2 100644|--- a/arch/arm/mach-sunxi/clock_sun6i.c|+++ b/arch/arm/mach-sunxi/clock_sun6i.c--------------------------No file to patch. Skipping patch.1 out of 1 hunk ignoredThe text leading up to this was:--------------------------|diff --git a/arch/arm/mach-sunxi/clock_sun6i.c b/arch/arm/mach-sunxi/clock_sun6i.c|index cedddc2..3fe9305 100644|--- a/arch/arm/mach-sunxi/clock_sun6i.c|+++ b/arch/arm/mach-sunxi/clock_sun6i.c--------------------------No file to patch. Skipping patch.1 out of 1 hunk ignoredDisplaying message: ... u-boot-set-safe-axi_apb-clock-dividers.patch failed wrnDisplaying message: Compiling uboot. Please wait. infoarm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 4.8.4Displaying message: Target directory /media/kenm/usr5/OrangePiOne/Armbian/output/debs/ infoDisplaying message: Building deb linux-u-boot-dev-orangepih3_5.11_armhf.deb infoDisplaying message: ERROR in function compile_uboot common.sh:162 errDisplaying message: Building u-boot failed, check configuration errDisplaying message: Process terminated info Link to comment Share on other sites More sharing options...
zador.blood.stained Posted May 2, 2016 Share Posted May 2, 2016 Meanwhile I did some tests and after next build script update this issue should be fixed (sun8i-dev u-boot branch will be set to v2016.05-rc1 by default). Link to comment Share on other sites More sharing options...
tkaiser Posted May 2, 2016 Share Posted May 2, 2016 Meanwhile I did some tests and after next build script update this issue should be fixed (sun8i-dev u-boot branch will be set to v2016.05-rc1 by default). When was v2016.05-rc3 released? Yesterday? Did you see this thread: http://forum.armbian.com/index.php/topic/1109-pcduino3-nano-image-not-booting/ ? 'U-Boot SPL 2016.01-armbian-sun8i (May 01 2016 - 01:05:19)' looks absolutely wrong for sun7i but 'U-Boot SPL 2016.05-rc3-armbian' used later also... Link to comment Share on other sites More sharing options...
zador.blood.stained Posted May 2, 2016 Share Posted May 2, 2016 When was v2016.05-rc3 released? Yesterday? $ git show v2016.05-rc3 tag v2016.05-rc3 Tagger: Tom Rini <trini@....com> Date: Mon Apr 25 19:28:17 2016 -0400 ... sun8i-dev uses "bleeding edge" (latest commit in "master" branch) by default. Did you see this thread: http://forum.armbian.com/index.php/topic/1109-pcduino3-nano-image-not-booting/ ? 'U-Boot SPL 2016.01-armbian-sun8i (May 01 2016 - 01:05:19)' looks absolutely wrong for sun7i but 'U-Boot SPL 2016.05-rc3-armbian' used later also... Yes. 2016.01 base version for sun7i is right, while origin of "sun8i" in version string is unknown for me, I'll look at the image and build options later. Link to comment Share on other sites More sharing options...
zador.blood.stained Posted May 2, 2016 Share Posted May 2, 2016 Did you see this thread: http://forum.armbian.com/index.php/topic/1109-pcduino3-nano-image-not-booting/ ? 'U-Boot SPL 2016.01-armbian-sun8i (May 01 2016 - 01:05:19)' looks absolutely wrong for sun7i but 'U-Boot SPL 2016.05-rc3-armbian' used later also... I opened referenced image in hex editor, and I see this 0004ccb0: 30 78 34 30 30 30 30 30 30 00 66 64 74 66 69 6c 0x4000000.fdtfil 0004ccc0: 65 3d 73 75 6e 37 69 2d 61 32 30 2d 70 63 64 75 e=sun7i-a20-pcdu 0004ccd0: 69 6e 6f 33 2d 6e 61 6e 6f 2e 64 74 62 00 63 6f ino3-nano.dtb.co so u-boot configuration looks right, "sun8i" probably appeared due to some environment variable not unset in BUILD_ALL scenario. Link to comment Share on other sites More sharing options...
cynfab Posted May 2, 2016 Author Share Posted May 2, 2016 I posted both issues because I have 2 separate projects, one with a PcDuino3 Nano Lite and one with an Orange Pi One. These issues may be related but then maybe not. Project #1 wanted to use a pre-built image for the PcDuino, It wouldn't boot even to getting past u-boot-spl to u-boot. Clearly something wrong with how the pre-built image was put together. Project #2 wanted to see how progress on getting the H3 supported was going and compiling my own kernel usually gives me a good indication of how bleeding the edge is. I wanted to provide some feedback as Igor requested on the opening Armbian page. So 2 posts for 2 issues, hoped my install.log would help. Link to comment Share on other sites More sharing options...
zador.blood.stained Posted May 2, 2016 Share Posted May 2, 2016 Well, H3 issue is fixed, thanks for reporting. As for pcDuino issue - needs more testing. If writing older u-boot to new image works (or installing new u-boot on older image results in boot failure) then it means that u-boot is currently broken for this board. Link to comment Share on other sites More sharing options...
Recommended Posts