Port Buildroot on Khadas VIM

@numbqq @Gouwa
Can you publish (even alpha) an buildroot image für Khadas VIM based on 3.14.29 Kernel?

Hi vrabac,

OK.I will do this tomorrow.

Thanks.

1 Like

@numbqq

I need it because of that Network problem and mainline Kernel. And question to which I cannot answer.

Hi @vrabac,

Here is the 3.14.29 buildroot image.

Here is the latest ‘Buildroot-openlinux-20170630’ kernel 3.14.29 image.

Thanks.

1 Like

@numbqq
can this be d to microSD or it is ti use with USB_Burning_Tool and will be written to eMMC?

Hi @vrabac,

You should use ‘USB_Burning_Tool’ to upgrade it. Please refer to Upgrade Via a USB-C Cable.

1 Like

@numbqq i know that tool, so this is eMMC install and not an microSD card install? Do you maybe have image for microSD installation?

Hi @vrabac,

I don’t have a microSD installation now.Sorry for that.

Installed and booted just fine.
However there is no such kind of tool with buildroot and I am not sure how to add them? Can you include them into image as they are need to get information because of that network problem with mainline kernel?

# mii-tool -vvv eth0
-/bin/sh: mii-tool: not found
# ethtool -S eth0
-/bin/sh: ethtool: not found
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
-/bin/sh: git: not found

Hi vrabac,

Maybe ubuntu could help? It’s easier install such tools than buildroot.

Thanks.

@numbqq no not ubuntu. I would like to test with image directly from amlogic because of this network problem with mainline kernel

Would it be possible to create new image with these tools?

Hi @vrabac,

Please refer to this image with git and net-tools installed.

1 Like

@numbqq how do you enable network?

this works and i see ip and also i get message about activating link

ip addr add 10.8.8.6 dev eth0
ip link set eth0 up
[ 231.757621@0] libphy: set driving length c
[ 231.757887@0] libphy: set PLL minimum jitter
[ 231.837639@0] libphy: set driving length c
[ 231.837908@0] libphy: set PLL minimum jitter
[ 233.229937@0] libphy: stmmac-0:08 - Link is Up - 100/Full

but this it does not.

ip route add default via 10.8.8.1
ip route add 10.8.8.0/24 via 10.8.8.1 dev eth0
ip: RTNETLINK answers: Network is unreachable 

more info

ping 10.8.8.6
PING 10.8.8.6 (10.8.8.6): 56 data bytes
64 bytes from 10.8.8.6: seq=0 ttl=64 time=1.873 ms
ping 10.8.8.1
PING 10.8.8.1 (10.8.8.1): 56 data bytes
ping: sendto: Network is unreachable

Cable is of course plugged in, everything works with android and libreelec images…

@vrabac, just like ubuntu server:

# echo "auto eth0" >> /etc/network/interfaces
# echo "iface eth0 inet dhcp" >> /etc/network/interfaces
# reboot

Following also works:

root@Khadas:~# /etc/init.d/networking restart

with buildroot it is actually:

/etc/init.d/S40network start

Ethernet now works even there is an FAIL when starting Network:

Starting network: ip: RTNETLINK answers: File exists
[ 2729.827557@0] libphy: set driving length c
[ 2729.827667@0] libphy: set PLL minimum jitter
[ 2729.907553@0] libphy: set driving length c
[ 2729.907669@0] libphy: set PLL minimum jitter
[ 2731.334314@0] libphy: stmmac-0:08 - Link is Up - 100/Full
udhcpc: started, v1.26.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 10.8.8.205
udhcpc: lease of 10.8.8.205 obtained, lease time 43200
deleting routers
adding dns 10.8.8.1
FAIL

ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=44 time=40.016 ms
64 bytes from 8.8.8.8: seq=1 ttl=44 time=33.865 ms

@numbqq seems as you don’t use correct partition loyout from eMMC or not the whole eMMC. Can you fix this to? As to download linux kernel source more free space is needed

df -h
Filesystem Size Used Available Use% Mounted on
/dev/system 2.0G 450.5M 1.5G 23% /
devtmpfs 717.3M 0 717.3M 0% /dev
tmpfs 899.4M 232.0K 899.1M 0% /dev/shm
tmpfs 899.4M 1.2M 898.2M 0% /tmp
tmpfs 899.4M 276.0K 899.1M 0% /run

# git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Cloning into 'linux-stable'...
remote: Counting objects: 6078550, done.
remote: Compressing objects: 100% (964069/964069), done.
remote: Total 6078550 (delta 5096943), reused 6052739 (delta 5071364)
Receiving objects: 100% (6078550/6078550), 1.16 GiB | 125.00 KiB/s, done.
Resolving deltas: 100% (5096943/5096943), done.
error: unable to create file Documentation/devicetree/bindings/mmc/sdhci-msm.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/sdhci-pxa.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/sdhci-sirf.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/sdhci-spear.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/sdhci-st.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/sdhci.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/socfpga-dw-mshc.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/sunxi-mmc.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/ti-omap.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/tmio_mmc.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/usdhi6rol0.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/vt8500-sdmmc.txt: No space left on device
error: unable to create file Documentation/devicetree/bindings/mmc/zx-dw-mshc.txt: No space left on device
fatal: cannot create directory at 'Documentation/devicetree/bindings/mtd': No space left on device
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

#

Hi @vrabac

I just use the buildroot default partitions. Maybe a microSD could help?

It is not that fast as eMMC. Could you not use any patch which Khadas use for ubuntu and build new image + tools?

Hi vrabac,

Please try this ubuntu image which without any Khadas patches.