13:24 | topi` | my MACCHIATObin is finally here!! but it won't boot :( |
13:24 | topi` | Bad Linux ARM64 Image magic! |
13:25 | topi` | U-Boot 2015.01-armada-17.02.0 (Mar 09 2017 - 12:01:25) |
13:28 | topi` | I'll try to boot it via tftp... |
13:37 | topi` | hmm, the 8040 heatsink becomes quite hot while idling in UBOOT... |
13:40 | topi` | it seems my board is slightly different... the macchiatobin wiki talks about booting kernel+buildroot from EMMC, but here I only see SPI NOR flash: |
13:41 | topi` | Booting from SPI NOR flash 1 (0x32) |
13:41 | topi` | Found valid image at boot postion 0x000 |
13:42 | topi` | Marvell>> mmc rescan |
13:42 | topi` | Card did not respond to voltage select! |
13:45 | suihkulokki | topi`: the wiki had a page on boot selection with dip switches |
13:46 | suihkulokki | right, here: https://wiki.solid-run.com/doku.php?id=products:a8040:communityboard:dipswitch |
13:46 | topi` | ah, it's the dip switches... |
13:50 | topi` | Booting from eMMC 0 |
13:50 | topi` | EMMC - |
13:50 | topi` | Error interrupt: 00048000 |
13:50 | topi` | maybe my emmc is empty |
13:50 | topi` | it gave up and is instaed trying from UART :) |
13:54 | topi` | I guess I want to compile my own kernel and boot that via tftpboot. Do I need an arm64-gcc for the kernel compilation or is a armhf gcc fine? |
13:56 | Artox | To build an aarch64 kernel, you need an aarch64 compiler |
13:56 | topi` | OK, I'll build natively on my virtual ThunderX slice :) |
14:11 | suihkulokki | on debian and ubuntu aarch64 crosscompiler is just an "apt install gcc-aarch64-linux-gnu" away |
14:16 | Artox | well, on debian > jessie |
14:17 | Artox | topi`, if you feel adventurous, you can try the prebuilt kernel from an untested package: http://repo.solid-build.xyz/obs/BSP:/IMX6/Debian_Stretch/arm64/linux-image-4.4.y-mcbin-marvell_4.4.8_arm64.deb |
14:18 | Artox | it is Marvells 4.4.8 tree for the mcbin |
14:23 | topi` | ok |
14:25 | suihkulokki | Artox: oh you use OBS too |
14:25 | topi` | there are several 8040-dtbs in that package. Is the armada-8040-mcbin.dtb the correct one? |
14:30 | topi` | tftpboot is using "egiga0" device... Which one of these is the 1Gbit ethernet? |
14:31 | topi` | oh, now it switched to egiga2 device and was able to download the .dtb |
14:40 | topi` | Artox: and it boots! however, I need a rootfs :) |
14:45 | topi` | the heatsink gets really hot, my guess is I won't be able to run that thing at full 2 GHz without a real fan |
14:52 | Artox | suihkulokki, yep |
14:53 | Artox | topi`, well, there should be plenty |
14:54 | Artox | but I don't have any to share yet |
14:58 | Artox | So suihkulokki what are you using OBS for? |
15:02 | topi` | there *is* emmc on my board: |
15:02 | topi` | mmcblk0: mmc0:0001 8GME4R 7.28 GiB |
15:02 | topi` | the ID is the same ID as on the v1.5 SOM hummingboards |
15:03 | suihkulokki | Artox: we've just moved Linaro's jenkins based debian/ubuntu/fedora/centos package builds to OBS |
15:03 | Artox | thats impressive |
15:03 | topi` | what's the difference between jenkins and OBS? |
15:04 | topi` | we use jenkins at our corporate environment |
15:04 | suihkulokki | jenkins runs generic scripts.. OBS builds linux distro packages |
15:04 | Artox | yep, OBS is much more specific |
15:04 | Artox | which also limits what things you can do |
15:04 | topi` | sounds good |
15:05 | topi` | suihkulokki: what kind of compile machines do you have at Linaro? I'm using a ThunderX slice that Scaleway rents for 3eur/month |
15:05 | topi` | the ThunderX is not very fast for compiling... |
15:05 | Artox | suihkulokki, did you deal with debian-style repositories? (blabla/debian main contrib stuff) |
15:07 | suihkulokki | Artox: no, just using deb http://obs.linaro.org/project/repo ./ |
15:07 | Artox | too bad |
15:07 | Artox | it is on my wishlist |
15:07 | suihkulokki | topi`: mustangs at the moment |
15:07 | Artox | but I don't plan to do anything about it |
15:08 | suihkulokki | I haven't found really a need for it |
15:12 | topi` | if Marvell will ship the 8- and 16-core variants of 8040 at some point, then that chip will make a very nice compile machine :) |
15:13 | topi` | although it does have a lot of HW dedicated to network functions, which kind of goes to waste |
15:14 | topi` | but it certainly would beat my Macbook Pro Skylake |
15:22 | topi` | Artox: do you remember was that kernel image built with nfsroot enabled? |
15:25 | Artox | topi`: I don't remember |
15:25 | Artox | you can check teh config file in /boot though |
15:26 | Artox | I believe it is just the mvebu_defconfig |
15:26 | topi` | I can't boot it without rootfs ;) |
15:27 | Artox | well, rootfs on sdcard then?> |
15:27 | Artox | either way, I get the idea |
15:27 | Artox | should enable that on the kernel package |
15:28 | Artox | HAH |
15:28 | Artox | https://github.com/mxOBS/deb-pkg_kernel-xyz/blob/4.4.y-marvell-8040/config/000-marvell-armada-80xx-defconfig.conf |
15:28 | Artox | topi` It has what you want |
15:28 | Artox | I took this snippet from Marvells openembedded tree |
15:35 | topi` | I set kernel param "ip" to use device eth0, let's see if it is the correct one (the 1GBit ethernet) |
15:42 | topi` | I wonder how to set "egiga2" as the default eth device in uboot... tftpboot is taking ages |
15:48 | topi` | the kernel finds eth0, eth1, eth2, eth3 |
15:48 | topi` | I wonder which one is the right one :D |
16:48 | Ke | topi`: what I would like to see is more upstream support for boot and kernel |
16:49 | Ke | topi`: is your idea about 8 or 16 core variants something that is actually being considered? |
16:49 | Ke | I thought there were some limitations with more than 4 cores on a72 |
16:58 | suihkulokki | Ke: mainline support is quite good: https://storage.kernelci.org/mainline/master/v4.12-rc1-104-gdac94e29110c/arm64/defconfig/lab-free-electrons/boot-armada-8040-db.html |
17:01 | Ke | only eth0? |
17:01 | Ke | of course I knew there was a dtc and some drivers, but the commit for dtc said some of the stuff was missing |
17:02 | Ke | there could be a patchset against mainline |
17:02 | Ke | hopefully one that would diminish with time |
17:02 | suihkulokki | Ke: the 10G stuff is still on the way |
17:03 | Ke | yup |
17:06 | Ke | also the raminit code was still missing registered ecc ddr4 support |
22:51 | topi` | re the 8/16 core variants, that's what I saw on Marvell's announcement of the 8K series SOCs |
22:54 | topi` | can't find it... |