Arch Linux on RockPro64
#23
Hello,

It would be helpful if you could post the entire boot log and not just the parts that you think might be interesting. The devil is in the details Wink

I am currently on holiday and thus did not play with linux 4.20 yet, I'll give it a try when I get back home.

Here is my wild guess just by reading your post: Am I right that you are running arch linux from an MMC instead of an SD card? Maybe your boot loader is looking at the wrong place for you files. Also, did you really rename /boot/extlinux/extlinux.conf to /boot/extlinux/extlinux.conf.new ? Your bootloader then might still be looking at the wrong extlinux file to get boot parameters from.

Greetings,
Matyas

(01-13-2019, 12:41 PM)p1x3l3d Wrote:
(11-24-2018, 04:09 AM)mmatyas Wrote: When you look into his PKGBUILD in his sources, you can find the link to the linux kernel resources he used to get the kernel sources from.

...

Finally got around to trying my hand at compiling a kernel and installing it. This worked, but (after an afternoon of trying) I never got the kernel to work.

What I did was the following:
- clone your repo (https://github.com/matyas1995/linux-aarch64-rockpro64),
- update the 'PKGBUILD' and 'linux-rockpro64.install' files to fetch and build the latest release (4.20.0-1083, commit),
- run 'makepkg', answer 'y' and 'n' to the inclusion of some modules (following the suggested answers mostly) and wait for approx 1h for the compiling to finish (also applied your tip of setting MAKEFLAGS to "-j7"),
- install the newly made package ('pacman -U linux-rockpro64-4.20.0-1083-aarch64.pkg.tar.xz'),
- and finally, change '/boot/extlinux/extlinux.conf' to:
Code:
cat /boot/extlinux/extlinux.conf.new
timeout 10
default arch
menu title select kernel

label arch
  kernel /boot/Image
  initrd /boot/initramfs-linux.img
  devicetreedir /boot/dtbs
  append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4

After that I rebooted the system. Sadly it did not come up anymore. To see what was happening I attached the rockpro directly to my laptop through GPIO>USB with a serial console and watched the startup messages scroll by. I think the following bit is interesting:
Code:
...
...
[    2.973624] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[    2.974239] Waiting for root device LABEL=linux-root...
... end then it basically stops.

It complains that it can't find the RAMDISK. This is odd, because in the beginning of the startup progress, before attempting to start the kernel, it states this:
Code:
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:7...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
379 bytes read in 112 ms (2.9 KiB/s)
select kernel
1:      arch
Enter choice: 1:        arch
Retrieving file: /boot/initramfs-linux.img
5685385 bytes read in 303 ms (17.9 MiB/s)
Retrieving file: /boot/Image
32614912 bytes read in 1484 ms (21 MiB/s)
append: rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=xxx eth1addr= serial=xxx cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=linux-root rootwait rootfstype=ext4
Retrieving file: /boot/dtbs/rockchip/rk3399-rockpro64.dtb
55324 bytes read in 269 ms (200.2 KiB/s)
## Flattened Device Tree blob at 01f00000
  Booting using the fdt blob at 0x1f00000
  Loading Ramdisk to f5997000, end f5f03089 ... OK
  Loading Device Tree to 00000000f5986000, end 00000000f599681b ... OK

Also, the message right after, Waiting for root device LABEL=linux-root..., is odd because this is still partition 6, which still has the right label (I double checked by running 'blkid').

So it seems as if it correctly finds and reads the extlinux config, finds the images, and loads them into memory; and then seems to forget about it later during the actual booting of the kernel.

Does anyone have any idea what I'm doing wrong?


Messages In This Thread
Arch Linux on RockPro64 - by mmatyas - 07-29-2018, 03:31 PM
RE: Arch Linux on RockPro64 - by Tigger - 08-06-2018, 01:29 PM
RE: Arch Linux on RockPro64 - by hiccupstix - 08-06-2018, 03:40 PM
RE: Arch Linux on RockPro64 - by Tigger - 08-07-2018, 03:02 AM
RE: Arch Linux on RockPro64 - by mmatyas - 08-08-2018, 01:49 AM
Arch Linux on RockPro64 - by hiccupstix - 08-07-2018, 03:17 AM
RE: Arch Linux on RockPro64 - by Tigger - 08-08-2018, 04:48 AM
RE: Arch Linux on RockPro64 - by ah- - 08-28-2018, 03:14 PM
RE: Arch Linux on RockPro64 - by dukla2000 - 08-29-2018, 03:37 AM
RE: Arch Linux on RockPro64 - by ah- - 08-29-2018, 11:25 AM
RE: Arch Linux on RockPro64 - by ali - 11-09-2018, 08:54 AM
RE: Arch Linux on RockPro64 - by mmatyas - 11-06-2018, 03:47 PM
RE: Arch Linux on RockPro64 - by mmatyas - 11-20-2018, 06:29 PM
RE: Arch Linux on RockPro64 - by ali - 11-27-2018, 12:28 AM
RE: Arch Linux on RockPro64 - by p1x3l3d - 11-22-2018, 05:28 PM
RE: Arch Linux on RockPro64 - by mmatyas - 11-24-2018, 04:09 AM
RE: Arch Linux on RockPro64 - by p1x3l3d - 11-26-2018, 02:11 PM
RE: Arch Linux on RockPro64 - by p1x3l3d - 01-13-2019, 12:41 PM
RE: Arch Linux on RockPro64 - by mmatyas - 01-19-2019, 11:30 AM
RE: Arch Linux on RockPro64 - by mmatyas - 11-27-2018, 01:21 AM
RE: Arch Linux on RockPro64 - by ali - 12-01-2018, 07:16 AM
RE: Arch Linux on RockPro64 - by fosf0r - 12-03-2018, 09:59 AM
RE: Arch Linux on RockPro64 - by ali - 01-11-2019, 02:21 AM
RE: Arch Linux on RockPro64 - by mmatyas - 02-26-2019, 11:31 AM
RE: Arch Linux on RockPro64 - by mmatyas - 02-27-2019, 06:07 PM
RE: Arch Linux on RockPro64 - by mmatyas - 09-10-2019, 01:58 PM
RE: Arch Linux on RockPro64 - by oreggin - 09-26-2019, 03:09 PM
RE: Arch Linux on RockPro64 - by TaborFife - 09-28-2019, 04:30 AM
RE: Arch Linux on RockPro64 - by hev - 03-20-2020, 12:27 AM
RE: Arch Linux on RockPro64 - by rhysperry111 - 05-23-2020, 02:29 PM
RE: Arch Linux on RockPro64 - by mmatyas - 05-30-2020, 12:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) RockPro64 riscv64, aarch64 mara 7 1,875 11-20-2024, 03:53 PM
Last Post: mara
  New OS for RockPro64 is here, TwisterOS Armbian jtremblant 92 105,973 08-17-2024, 02:32 PM
Last Post: taltamir
  OpenEuler OS on RockPro64 Yuriy Gavrilov 0 289 06-15-2024, 09:38 AM
Last Post: Yuriy Gavrilov
  yocto for RockPro64 Fide 1 1,114 01-16-2024, 10:01 AM
Last Post: Fide
  Installing Ubuntu Server on RockPro64 deutschlmao 2 3,473 10-29-2023, 04:43 PM
Last Post: brotherj4mes
Exclamation Ethernet regression on Linux Kernel 6.5.4? Deathcrow 3 1,497 09-22-2023, 04:27 AM
Last Post: diederik
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 21,323 08-16-2023, 01:34 AM
Last Post: varac
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 54 92,887 08-11-2023, 11:13 AM
Last Post: mara
  Installing CH431SER on Ayufan 0.9.14: gitlab-ci-linux-build-159 Thisone 4 2,287 07-14-2023, 04:22 AM
Last Post: hunderteins
  How to enable CoreSight ETM trace on RockPro64 shpark 0 864 05-21-2023, 11:34 PM
Last Post: shpark

Forum Jump:


Users browsing this thread: 15 Guest(s)