Jump to content

Recommended Posts

Posted

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 info
Displaying message: Host system support was not tested rosa wrn
Config: linux-sun8i-dev
Kernel source: https://github.com/wens/linux
Branch: h3-emac
linuxsource: linux-sun8i-mainline
Offset: 1
bootsize: 0
bootloader: git://git.denx.de/u-boot.git
bootsource: u-boot
bootbranch:
CPU 480000 / 1296000 with ondemand
02.05.2016 08:15:40 Armbian 5.11 Orangepih3 Debian dev
Displaying message: Starting Armbian build script @host info
Displaying message: Compiling kernel orangepih3 info
Displaying message: Syncing clock host info
Displaying message: source downloading @host info
Displaying message: ... updating u-boot info
Displaying message: ... updating linux-sun8i-mainline info
Displaying message: ... updating sunxi-tools info
Displaying message: ... updating sunxi-display-changer info
Displaying message: Compiling sunxi tools @host & target info
Displaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/u-boot/branchless info
Displaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/linux-sun8i-mainline/h3-emac info
Displaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/output/debs for orangepih3 dev info
Displaying message: Started patching process for u-boot u-boot-dev 2016.05-rc3 info
Displaying 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-rc3
Displaying 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-rc3
Displaying 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-rc3
patch unexpectedly ends in middle of line
Displaying 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-rc3
1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_pc_defconfig.rej
1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_plus_defconfig.rej
1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_2_defconfig.rej
Displaying 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-rc3
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/host/ehci-hcd.c.rej
Displaying 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-rc3
Displaying message: ... u-boot-set-safe-axi_apb-clock-dividers.patch succeeded info
Displaying message: Compiling uboot. Please wait.  info
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 4.8.4
Displaying message: Target directory /media/kenm/usr5/OrangePiOne/Armbian/output/debs/ info
Displaying message: Building deb linux-u-boot-dev-orangepih3_5.11_armhf.deb info
Displaying message: ERROR in function compile_uboot common.sh:162 err
Displaying message: Building u-boot failed, check configuration  err
Displaying 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...

Posted

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.03
patch 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 info
Displaying message: Host system support was not tested rosa wrn
Config: linux-sun8i-dev
Kernel source: https://github.com/wens/linux
Branch: h3-emac
linuxsource: linux-sun8i-mainline
Offset: 1
bootsize: 0
bootloader: git://git.denx.de/u-boot.git
bootsource: u-boot
bootbranch: v2016.03
CPU 480000 / 1296000 with ondemand
02.05.2016 10:06:52 Armbian 5.11 Orangepih3 Debian dev
Displaying message: Starting Armbian build script @host info
Displaying message: Compiling kernel orangepih3 info
Displaying message: Syncing clock host info
Displaying message: source downloading @host info
Displaying message: ... creating a shallow clone u-boot v2016.03 info
Displaying message: ... updating linux-sun8i-mainline info
Displaying message: ... updating sunxi-tools info
Displaying message: ... updating sunxi-display-changer info
Displaying message: Compiling sunxi tools @host & target info
Displaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/u-boot/v2016.03 info
Displaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/sources/linux-sun8i-mainline/h3-emac info
Displaying message: Cleaning /media/kenm/usr5/OrangePiOne/Armbian/output/debs for orangepih3 dev info
Displaying message: Started patching process for u-boot u-boot-dev 2016.03 info
Displaying 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.03
Displaying 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.03
Displaying 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.03
patch unexpectedly ends in middle of line
Displaying 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.03
1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_pc_defconfig.rej
1 out of 1 hunk FAILED -- saving rejects to file configs/orangepi_plus_defconfig.rej
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/dts/Makefile.rej
The 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 ignored
Displaying 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.03
1 out of 1 hunk FAILED -- saving rejects to file drivers/usb/host/ehci-hcd.c.rej
Displaying 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.03
The 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 ignored
The 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 ignored
Displaying message: ... u-boot-set-safe-axi_apb-clock-dividers.patch failed wrn
Displaying message: Compiling uboot. Please wait.  info
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) 4.8.4
Displaying message: Target directory /media/kenm/usr5/OrangePiOne/Armbian/output/debs/ info
Displaying message: Building deb linux-u-boot-dev-orangepih3_5.11_armhf.deb info
Displaying message: ERROR in function compile_uboot common.sh:162 err
Displaying message: Building u-boot failed, check configuration  err
Displaying message: Process terminated  info
 

Posted

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...

Posted

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.

Posted

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.

Posted

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.

Posted

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.

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

Important Information

Terms of Use - Privacy Policy - Guidelines