02-27-2018, 04:25 AM
I have used Linux for quite some years but SBC is new to me.
I have an Atheros AR9271 network card which is plug-n-play on RPi. On rock64, lsusb recognize it out of the box. Google says I need the following in my kernel to make it works.
I use ayufan's stretch-minimal-rock64-0.5.15-136-arm64.img
I use sdcard (instead of emmc)
I use serial console
To take advantage of the 4G ram, I compile the kernel on board instead of using CC.
A brief summary of steps I take, after apt update upgrade
then ...
I had tried a couple of combinations of
No luck. But it took almost 3 hours every time I dd back the pre-make-install image onto my 32G sdcard.
I read
http://opensource.rock-chips.com/images/...170711.pdf
referred by Port Arch Linux to Rock64
https://me.m01.eu/blog/2017/12/rock64-arch-linux/
On which, after kernel compilation, it is rootfs compilation. Not apply on my case, but directs me to think that my problem is very rock64 specific.
I enter the freshly learned u-boot shell, run printenv
I trace bootcmd -> distro_bootcmd -> list of boot_targets (mmc0 mmc1 usb0 pxe dhcp) and some how I noted from somewhere that sdcard is mmc1 -> setenv devnum (what is it relevant to?) 1 -> mmc_boot ... ... where should I refer to in order to understand what they are? Should it be from u-boot or rock64? Must I learn it all in order to do a "make install"?
Luke had responsed to a similar question on https://forum.pine64.org/showthread.php?...9#pid35059
For the IRC Log
I searched "make install" in #Rock64 channel, it appears 10 times only.
The only one that is about kernel installation is in a conversation between ayufan and xalius.
ayufan asked xalius how he install the kernel, xalius answered "copy". Of course, why should they detail the details in their conservation. Good to know "copy" works.
For the link to "all you need to know"
which is in fact https://github.com/ayufan-rock64/linux-build
docker? okay, why not give it a try if it works, I can learn something new too. I set up a Ubuntu 17.10 vm, installed docker-ce and binfmt support, tested work.
the _Next_ step is "make shell". What I get is >> make: *** No rule to make target 'shell'. Stop.
I should expect this because rock64 is for developer. What is broken is my knowledge, not the document.
By the end of the day, I only need to know how to put/link correctly Image, initrd, dtb in rock64 way, am I? Must I get familiar with those developer's stuffs before I can work back those basic/simples?
Rock64 mounts mmcblk1p6 to /boot/efi instead of /boot; with similar set of files named differently at both locations. This is not a secret. But rock64 uses which set to boot; and which is the correct original file to copy?
Any advice on how should I proceed?
Thanks in advance for your help after 10 days of reading in vain.
Hope my experience won't scare away much potential rock64 customers who search and read.
I have an Atheros AR9271 network card which is plug-n-play on RPi. On rock64, lsusb recognize it out of the box. Google says I need the following in my kernel to make it works.
Quote:CONFIG_ATH_COMMON=m
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_HTC=m
I use ayufan's stretch-minimal-rock64-0.5.15-136-arm64.img
I use sdcard (instead of emmc)
I use serial console
To take advantage of the 4G ram, I compile the kernel on board instead of using CC.
A brief summary of steps I take, after apt update upgrade
Quote:$ sudo apt-get install python2.7-minimal
$ sudo ln -s python2.7 python ... at /usr/bin
$ sudo apt-get install libncurses5-dev bc
$ git clone --depth 1 --single-branch -b release-4.4 https://github.com/ayufan-rock64/linux-kernel
$ cd linux-kernel
$ make rockchip_linux_defconfig
$ make menuconfig ... to config ATH9K
$ make -j 5
then ...
I had tried a couple of combinations of
Quote:sudo cp ./arch/arm/boot/*(u)*(z)Image ./arch/arm/boot/dts/*.dtb <boot-partition>from https://github.com/umiddelb/armhf/wiki/H...ARM-device (a copy from ODROID Magazine)
sudo make modules_install
sudo make firmware_install
No luck. But it took almost 3 hours every time I dd back the pre-make-install image onto my 32G sdcard.
I read
http://opensource.rock-chips.com/images/...170711.pdf
referred by Port Arch Linux to Rock64
https://me.m01.eu/blog/2017/12/rock64-arch-linux/
On which, after kernel compilation, it is rootfs compilation. Not apply on my case, but directs me to think that my problem is very rock64 specific.
I enter the freshly learned u-boot shell, run printenv
I trace bootcmd -> distro_bootcmd -> list of boot_targets (mmc0 mmc1 usb0 pxe dhcp) and some how I noted from somewhere that sdcard is mmc1 -> setenv devnum (what is it relevant to?) 1 -> mmc_boot ... ... where should I refer to in order to understand what they are? Should it be from u-boot or rock64? Must I learn it all in order to do a "make install"?
Luke had responsed to a similar question on https://forum.pine64.org/showthread.php?...9#pid35059
For the IRC Log
I searched "make install" in #Rock64 channel, it appears 10 times only.
The only one that is about kernel installation is in a conversation between ayufan and xalius.
ayufan asked xalius how he install the kernel, xalius answered "copy". Of course, why should they detail the details in their conservation. Good to know "copy" works.
For the link to "all you need to know"
which is in fact https://github.com/ayufan-rock64/linux-build
docker? okay, why not give it a try if it works, I can learn something new too. I set up a Ubuntu 17.10 vm, installed docker-ce and binfmt support, tested work.
the _Next_ step is "make shell". What I get is >> make: *** No rule to make target 'shell'. Stop.
I should expect this because rock64 is for developer. What is broken is my knowledge, not the document.
By the end of the day, I only need to know how to put/link correctly Image, initrd, dtb in rock64 way, am I? Must I get familiar with those developer's stuffs before I can work back those basic/simples?
Rock64 mounts mmcblk1p6 to /boot/efi instead of /boot; with similar set of files named differently at both locations. This is not a secret. But rock64 uses which set to boot; and which is the correct original file to copy?
Any advice on how should I proceed?
Thanks in advance for your help after 10 days of reading in vain.
Hope my experience won't scare away much potential rock64 customers who search and read.