Jump to content

Recommended Posts

Posted
Dear Igor,

 

I'am trying to make an image with 3.19 kernel now for a while, but I couldn't make it work. It won't boot. A few weeks ago there was some problems with the patchings, so I tried to do it manually. But it lead me to the same result. Now I deleted everything, related to the image building, and started everything over again. I noticed that your building script has been updated. Now the patching errors disappeared, but I still get the same result, a non booting image.

 

The error says, that "File not found /boot/.next" then "File not found /boot/zImage", "Unrecognized filesystem type", "Bad Linux ARM zImage magic!", ..... Picture from it here.

 

I tried wheezy and jessie but the result is the same. I tried different versions of 3.19.X and 3.18.X.

 

Could you give me any advice please? Or... I am a bit affraid to ask something like this ... could you take a look to my output folder?

Posted

It looks like your kernel compilation was not successful because the boot script doesn't find zImage.

 

I am slowly adding checks that the compilation breaks and displays errors. I am not covering all types of errors yet so compilations complete even things in the middle fails ... like in your case.

 

Why 3.19.x is not compiling? No idea. Try to complete with default settings and recent kernel. Try compile "kernel only" and see what kind of errors do you get.

 

I will check your output folder briefly and if I found something unusual I'll add it here.

 

I would suggest you to delete folder output, reboot host and do it again. I hope you are using Ubuntu Trusty. On others it might not work without additional script fixing.

Posted

Yes, I used Ubuntu Trusty x86 desktop version on a "real" pc.

 

Now I installed the server version of it (what you suggested in the manual) to a virtual pc, and tried with it. Now the compilation froze near to the end of the process with a lot of "cp: cannot open XXX./sdcard/filenameXXX for reading: Permission denied"  message where XXX are some strange unicode characters. I'am started the script as root user, so I have no idea why the permission has been denied. The sdcard folder exists inside ./output/cache/ and it's not empty. Maybe the script looking for it on a wrong path? But then it should say not exists... I don't get it :D

 

I'll try it again, but I change the privileges of the output folder in advance.

 

Thank you for taking the time to help me!

Posted

This error means something is missing.

 

Step by step is essential to find an error. It's very strange that it doesn't work out of the box. Sometimes sources are not fully downloaded ... it can happen. So you need to remove them. I don't know if they are 100% done - I only check u-boot if compilation succeed.

 

Try kernel compilation first. 

 

Edit call compile script and change to KERNEL_ONLY="yes"

 

For which board are you choosing?

Posted

I try to make it for Banana pi. Now I saw the error before the "permission denied thing". Picture from it here

 

Later, if you have a little sparse time, please take a look to my output folder, what I get yesterday. Maybe you can find the problem in it.

Posted

Like I predicted.

 

Your kernel fails to compile. Why? Don't know without a picture / log. Without a kernel you can't build an image.

Posted

Now I tried to build kernel only (for Banana pi), and it seems there is a syntax error:

 

Error: arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts:146.22-23 syntax error
FATAL ERROR: Unable to parse input tree

 

Here is the end of the process: (complete output here)

  CC      lib/int_sqrt.o
  CC      lib/ioremap.o
  CC      lib/irq_regs.o
  CC      lib/is_single_threaded.o
  CC      lib/klist.o
  CC      lib/kobject.o
  CC      lib/kobject_uevent.o
  CC      lib/md5.o
  CC      lib/plist.o
  CC      lib/proportions.o
  CC      lib/radix-tree.o
  CC      lib/ratelimit.o
  CC      lib/rbtree.o
  CC      lib/seq_buf.o
  CC      lib/sha1.o
  CC      lib/show_mem.o
  CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  CC [M]  lib/ts_kmp.o
  CC [M]  lib/ts_bm.o
  CC [M]  lib/ts_fsm.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  LDS     arch/arm/boot/compressed/vmlinux.lds
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gzip
  AS      arch/arm/boot/compressed/piggy.gzip.o
  CC      arch/arm/boot/compressed/misc.o
  CC      arch/arm/boot/compressed/decompress.o
  AS      arch/arm/boot/compressed/debug.o
  CC      arch/arm/boot/compressed/string.o
  SHIPPED arch/arm/boot/compressed/hyp-stub.S
  AS      arch/arm/boot/compressed/hyp-stub.o
  SHIPPED arch/arm/boot/compressed/fdt_rw.c
  SHIPPED arch/arm/boot/compressed/fdt.h
  SHIPPED arch/arm/boot/compressed/libfdt.h
  SHIPPED arch/arm/boot/compressed/libfdt_internal.h
  CC      arch/arm/boot/compressed/fdt_rw.o
  SHIPPED arch/arm/boot/compressed/fdt_ro.c
  CC      arch/arm/boot/compressed/fdt_ro.o
  SHIPPED arch/arm/boot/compressed/fdt_wip.c
  CC      arch/arm/boot/compressed/fdt_wip.o
  SHIPPED arch/arm/boot/compressed/fdt.c
  CC      arch/arm/boot/compressed/fdt.o
  CC      arch/arm/boot/compressed/atags_to_fdt.o
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  SHIPPED arch/arm/boot/compressed/ashldi3.S
  AS      arch/arm/boot/compressed/ashldi3.o
  SHIPPED arch/arm/boot/compressed/bswapsdi2.S
  AS      arch/arm/boot/compressed/bswapsdi2.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  DTC     arch/arm/boot/dts/sun4i-a10-a1000.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-cubieboard.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-mini-xplus.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-hackberry.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-inet97fv2.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dtb
  DTC     arch/arm/boot/dts/sun4i-a10-pcduino.dtb
  DTC     arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dtb
  DTC     arch/arm/boot/dts/sun5i-a10s-r7-tv-dongle.dtb
  DTC     arch/arm/boot/dts/sun5i-a13-hsg-h702.dtb
  DTC     arch/arm/boot/dts/sun5i-a13-olinuxino.dtb
  DTC     arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-app4-evb1.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-colombus.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-hummingbird.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-m9.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapi.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dtb
Error: arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts:146.22-23 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dtb] Error 1
make: *** [dtbs] Error 2
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
make KBUILD_SRC=
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h` is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  CC      kernel/sys.o
  CC      kernel/module.o
  CHK     kernel/config_data.h
  LD      kernel/built-in.o
  CC      drivers/base/firmware_class.o
  LD      drivers/base/built-in.o
  LD      drivers/built-in.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  DTC     arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dtb
Error: arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts:146.22-23 syntax error
FATAL ERROR: Unable to parse input tree
make[3]: *** [arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dtb] Error 1
make[2]: *** [dtbs] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
mv: cannot stat ‘*.deb’: No such file or directory
[ o.k. ] Kernel building done [ @host ]
[ o.k. ] Target directory [ /root/output/debs/ ]
[ o.k. ] File name: linux-image-next-sunxi_4.3_armhf.deb [ 3.19.4 ]
[ ok ] Runtime 54 min
root@ubuntu:~# 
Posted

Now it's perfectly clear ;) Device tree for PC duino is not compatible with 3.19.x ... remove it or comment from file patching.sh, "add new devices".

Posted

Getting closer :) Now there was some problem with sun7i-a20-orangepi-mini, so I commented out all "add new devices". After that I get the kernel. So I run again compile.sh with SOURCE_COMPILE="no". It took 387 minute for the virtual machine to do the job, but at the end I get

resize2fs 1.42.9 (4-Feb-2014)
resize2fs: On-line shrinking not supported
/root/lib/common.sh: line 279: *4096/1024: syntax error: operand expected (error token is "*4096/1024")
[ ok ] Runtime 387 min

So I copied "/root/output/cache/Armbian_4.3_Bananapi_Debian_jessie_3.19.4.raw" (3.91 GB) file to the SD card. Now the bpi starts, it says: "starting kernel" or something similar, and then I get a blank screen. I waited enough time, tried rebooting, but no change.

 

Now I increase SDSIZE to 8000 and trying to build wheezy. I'll inform you if it's ready.

Posted

This might be a problem due too a bug in script. Perhaps you only need to updated scripts because it should be fixed.

 

Error is in the line before, it should be:

BLOCKSIZE=$(LANGUAGE=english resize2fs $LOOP $NEWSIZE"M" | grep "The filesystem on" | awk '{ print $(7)}')

There are many reasons why it does not boot. First enable more verbose output in boot.cmd

 

loglevel=7

 

recompile scripts and boot again.

Posted

Just to compare to:

- sources downloading (@10Mbit)

- u-boot and kernel compiling (VM on 4Core 4G Xeon)

- system downloading (Debian Wheezy)

 

cca. 40 minutes

 

When everything is in cache: 2 minutes

Posted

- Finally I changed SDSIZE to 6000, and started everything from the beginning.

- The line 278 in common.sh (BLOCKSIZE=-----) was already the same, what you suggested.

 

The error what I get now is:

[ o.k. ] Shrink partition and image to real size [ 15 % free space ]
losetup: /dev/loop0: device is busy
tune2fs: Bad magic number in super-block while trying to open /dev/loop0
Couldn't find valid filesystem superblock.
tune2fs: Bad magic number in super-block while trying to open /dev/loop0
Couldn't find valid filesystem superblock.
tune2fs: Bad magic number in super-block while trying to open /dev/loop0
Couldn't find valid filesystem superblock.
/root/lib/common.sh: line 273: (-)*/1024/1024: syntax error: operand expected (error token is ")*/1024/1024")
[ ok ] Runtime 114 min

Maybe line 275 has a syntax error? I'am not sure, but if i compare

NEWSIZE=${NEWSIZE%.*}

to line 268

UNITSIZE="${UNITSIZE//k/}"

then I think maybe the quotation marks are missing. I don't know the syntax, that's why I can't decide is it right or not. I know, I know that line 275 is after 273, but I thought I mention to you.

 

I was logged in into LXDE desktop, and used LXterminal to run compile.sh. Now I tried to run it in text mode, and now it works!

 

Just for sure I tested two times!!! If I run compile.sh in text mode, then it is fine! If LXDE loaded then i get the error above...

 

So finally, I can test the final, error free image tonight! I'll send feedback asap! Thanks for your help again Igor!

Posted

:huh:  :o  :(

 

OK, I'll try this image and also to build 3.19.x, also tomorrow, today already EOL ;) 

Posted

I tried 3.19.4 and got the same error.

I tried 3.18.x and 3.16.x.: In this case I didn't get kernel, because the compilation of some modules (?) interrupted the process. I tried disabling them, in the kernel configuration, but -I don't no why- it still tried to compile them.

 

BUT!

 

I made a new, 4.2 kernel and it solved my problem, so now I don't want to go for 3.19 anymore. I will update my other post (No firmeware download (MN88472)) later, to help others who tries to make work an Astrometa DVB stick with BananaPi.

 

I am very-very thankful for you Igor! Without your script and help, it is sure, that I couldn't get this thing work!

 

So thank you very much! I'll must use this site too :D

Posted
I made a 4.2 jessie image with the default settings, but it's not ok. It stops booting at:

"A start job is running for LSB: Raise network interfaces. (X min Ys / no limit)"

and it's running for forever.

 

As I searched about this problem, it seems I should disable hotplug in /etc/network/interfaces

But there is no line about hotplug in this file. If you have a little time, could you check it please? I uploaded it here.

 

ps.: or where can I add a time limit?

Posted

If I set up a fix ip in /etc/network/interfaces then it will be possible to log in. "First run" won't start, and the time will be 1970. Picture

 

btw I tried usb plugged/unplugged, ethernet plugged/unplugged -> doesn't matter

Posted

Dear Igor,

 

Now I just writing to inform you about a wrong image on armbian.com.

I noticed yesterday, that you uploaded Armbian_4.4_Bananapi_Debian_jessie_4.2.2 image for BPI, but it has got the same error. ("A start job is running for LSB: Raise network interfaces. (X min Ys / no limit)" running for forever.)

 

Gy

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

Important Information

Terms of Use - Privacy Policy - Guidelines