Explore the Kernel make install secret
#1
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.
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>
sudo make modules_install
sudo make firmware_install
from https://github.com/umiddelb/armhf/wiki/H...ARM-device (a copy from ODROID Magazine)
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.
  Reply


Messages In This Thread
Explore the Kernel make install secret - by cooker - 02-27-2018, 04:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 Debian 11 (Bullseye) install problem jbize 15 8,274 10-12-2023, 05:14 PM
Last Post: tpaul
  Managed to install Kubernetes digitaldaz 3 4,273 08-16-2022, 02:44 AM
Last Post: mmarkgilbert
  Linux 5.15 Kernel - openSuse mark1250 0 1,275 12-02-2021, 04:36 PM
Last Post: mark1250
  Security Patches for the Kernel kwinz 9 6,735 10-22-2021, 05:45 AM
Last Post: kwinz
  Debian kernel stuck at 4.4.167 Enig123 5 5,610 12-29-2020, 12:57 PM
Last Post: kwinz
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 12,230 08-31-2020, 01:41 AM
Last Post: as365n4
  mainline kernel sound support Openwrt lucize 2 4,048 05-01-2020, 05:09 PM
Last Post: PakoSt
  5.3 kernel support? csrf 5 7,053 04-18-2020, 11:34 PM
Last Post: CameronNemo
  How Can Install Unify controller in rock64? gedas07 0 1,839 03-23-2020, 08:41 AM
Last Post: gedas07
  Help troubleshooting kernel panic gabrielfin 3 4,630 03-02-2020, 04:18 PM
Last Post: gabrielfin

Forum Jump:


Users browsing this thread: 1 Guest(s)