IRC log of #cubox of Sat 11 Apr 2015. All times are in CEST < Back to index

15:40 palatin I have been trying to update my kernel on a Cubox v1 from 3.6.9 to 3.14, and I can't manage to boot it, I get a "Error: unrecognized/unsupported machine ID (r1 = 0x00000f41)" message from the bootloader
15:41 palatin Is this a u-boot vs kernel mismatch somehow? I have no clue as to what is happening
15:54 palatin It may be that the dtb appended to to kernel image can't be found.
16:06 vpeter palatin: I'm almost sure it's dtb issue.
16:07 vpeter Maybe dtb is not appended in kernel and you have to load it from u-boot?
16:08 palatin yes dtb is likely to be the issue but the old wiki does not mention this
16:08 palatin https://web.archive.org/web/20130923234349/http://www.solid-run.com/mw/index.php?title=Building_Linux#mw-head
17:01 jnettlet palatin, did you build a zImage or uImage?
17:01 palatin uImage
17:02 palatin but I get that it is better to use zImage + dtb and load both on boot
17:02 palatin s/get/gather
17:03 jnettlet yeah, that is most likely your problem. uImage's are pretty much deprecated at this point. I still have support for them in our u-boot but it is really tuned for zImage and .dtbs
17:03 jnettlet if you just drop them in / or /boot of the first partition the default u-boot scripts will find them and auto-load them
17:05 palatin what are the default filenames, zImage and dove-cubox.dtb ?
17:07 jnettlet oh sorry I missed. the v1 part. that should boot off zImage as well though.
17:08 jnettlet although you may want a newer kernel than 3.14. A bunch of armada patches were merged in 3.15 I believe
17:08 palatin I use it headless as a router though
17:11 jnettlet yes dove-cubox.dtb
17:12 jnettlet actually this should be useful. http://moinejf.free.fr/cubox/
17:20 palatin Ok thanks I will try that way. The only difference is that I used "make uImage" instead of doing it by hand
17:29 auke- jnettlet: Yocto 1.8 contains a 3.14 kernel from Freescale. How much does this kernel differ from the 3.14 kernel for the CuBox-i?
17:30 jnettlet auke-, quite a lot. I am currently working on rectifying the missing bits and patching the bugs in the freescale kernel.
17:30 jnettlet in particular it still carries an ethernet patch that causes some pretty serious memory corruption
17:36 auke- ah, okay. Will your work result in a kernel for the cubox-i based on the fsl kernel? Or are you porting the fsl changes to the cubox kernel?
17:40 jnettlet I am basing on the fsl kernel, merging in the Linaro tree and then adding upstream and my patches on top.
17:40 jnettlet since fsl is on 3.14 now it should be easier to track their changes that way
17:43 auke- nice!
17:45 jnettlet it is nearly ready for release. possibly tomorrow if the weather isn't too nice :)
17:49 auke- all-day European weather over here, time enough to set up my yocto build environment for 1.8 :)
17:50 jnettlet hit 17C here in dk
18:31 palatin jnettlet: I got the cubox v1 to boot on linux 3.14, I had to load the uImage at one address and the dtb at another and bootm addr1 - addr2
18:31 palatin zImage would not work
18:32 jnettlet interesting. well I will put it on my list of things to fix in u-boot
18:34 palatin here is some guessplanation : http://billauer.co.il/blog/2014/02/uboot-linux-dtb-fdt-device-tree/