Dual boot options for ROCK64?
#11
(01-15-2018, 01:51 PM)Luke Wrote: ayufan just got SPI working last week - this holds the promise of multibooting different OS'. I wouldn't expect this anytime super-soon, but now at least the possibility is real.
Well, that is good news. Even if I have to wait a bit. Thanks.
(01-15-2018, 01:51 PM)maal Wrote: What works for me:


/boot/extlinux/extlinux.conf
Code:
TIMEOUT 30
DEFAULT kernel-4.14

MENU TITLE Rock64 boot options


LABEL kernel-4.14
   kernel /boot/Image-4.14
   fdt /boot/rk3328-rock64.dtb-4.14
   append earlycon=uart8250,mmio32,0xff130000 rw root=/dev/mmcblk0p1 rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#}

LABEL kernel-4.15-rc6
   kernel /boot/Image-4.15-rc6
   fdt /boot/rk3328-rock64.dtb-4.15-rc6
   append earlycon=uart8250,mmio32,0xff130000 rw root=/dev/mmcblk0p1 rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#}

LABEL kernel-4.4
   kernel /boot/Image
   initrd /boot/initrd.img
   fdt /boot/dtb
   append earlycon=uart8250,mmio32,0xff130000 rw root=LABEL=linux-root rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#}


Boot log:
Code:
DDR version 1.06 20170424
In
LPDDR3
786MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT
Boot1 Release Time: 2017-05-18, version: 2.43
ChipType = 0x11, 127
emmc reinit
emmc reinit
SdmmcInit=2 20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15084MB
FwPartOffset=2000 , 0
StorageInit ok = 50220
Raw SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
LoadTrustBL
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0x7bd90
RunBL31 0x10000
NOTICE:  BL31: v1.4(release):v1.4-218-g3b6ceeff
NOTICE:  BL31: Built : 11:11:11, Sep 30 2017
NOTICE:  BL31:Rockchip release version: v1.2


U-Boot 2017.09-00396-g6ca43a58db (Sep 30 2017 - 11:11:57 +0200)

Model: Rockchip RK3328 EVB
DRAM:  4 GiB
MMC:   rksdmmc@ff500000: 1, rksdmmc@ff520000: 0
*** Warning - bad CRC, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Rockchip RK3328 EVB
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
891 bytes read in 73 ms (11.7 KiB/s)
Rock64 boot options
1:      kernel-4.14
2:      kernel-4.15-rc6
3:      kernel-4.4
Enter choice: 2
2:      kernel-4.15-rc6
Retrieving file: /boot/Image-4.15-rc6
13763072 bytes read in 1312 ms (10 MiB/s)
append: earlycon=uart8250,mmio32,0xff130000 rw root=/dev/mmcblk0p1 rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr= eth1addr= serial=
Retrieving file: /boot/rk3328-rock64.dtb-4.15-rc6
30605 bytes read in 101 ms (295.9 KiB/s)
## Flattened Device Tree blob at 01f00000
  Booting using the fdt blob at 0x1f00000
  Loading Device Tree to 00000000fcf27000, end 00000000fcf3178c ... OK

Starting kernel ...
Not really sure what you would like me to do with this, but I think the first bit of code is the OSes/kernels you can chose from on boot? If that's the case, neat! As mentioned earlier, if you could make a how-to, that would be lovely Smile
  Reply
#12
(01-15-2018, 03:45 PM)maal Wrote: No, sorry - setting this up was a process of trial and error.
Useful link: http://www.syslinux.org/wiki/index.php?title=Config

No worries. I will try to replicate it. Just one question, have you tried with rootfs on USB thumb-drives  ?
You can find me on IRC, Discord and Twitter


  Reply
#13
(01-16-2018, 04:11 AM)Luke Wrote:
(01-15-2018, 03:45 PM)maal Wrote: No, sorry - setting this up was a process of trial and error.
Useful link: http://www.syslinux.org/wiki/index.php?title=Config

No worries. I will try to replicate it. Just one question, have you tried with rootfs on USB thumb-drives  ?

No, I tested rootfs on sdcard only. 
U-boot also on sdcard (mainline u-boot compiled by me).
  Reply
#14
(01-16-2018, 08:55 AM)maal Wrote:
(01-16-2018, 04:11 AM)Luke Wrote:
(01-15-2018, 03:45 PM)maal Wrote: No, sorry - setting this up was a process of trial and error.
Useful link: http://www.syslinux.org/wiki/index.php?title=Config

No worries. I will try to replicate it. Just one question, have you tried with rootfs on USB thumb-drives  ?

No, I tested rootfs on sdcard only. 
U-boot also on sdcard (mainline u-boot compiled by me).

Ok, I assume you just installed syslinux-common on xenial/jessie and took it from there ?
edit: cant seems to find syslinux for arm64 and same goes for extlinux.
You can find me on IRC, Discord and Twitter


  Reply
#15
(01-16-2018, 10:06 AM)Luke Wrote:
(01-16-2018, 08:55 AM)maal Wrote:
(01-16-2018, 04:11 AM)Luke Wrote:
(01-15-2018, 03:45 PM)maal Wrote: No, sorry - setting this up was a process of trial and error.
Useful link: http://www.syslinux.org/wiki/index.php?title=Config

No worries. I will try to replicate it. Just one question, have you tried with rootfs on USB thumb-drives  ?

No, I tested rootfs on sdcard only. 
U-boot also on sdcard (mainline u-boot compiled by me).

Ok, I assume you just installed syslinux-common on xenial/jessie and took it from there ?
edit: cant seems to find syslinux for arm64 and same goes for extlinux.

No, i did not.
All I did was editing /boot/extlinux/extlinux.conf file - u-boot is checking for this file at boot.
  Reply
#16
(01-16-2018, 11:47 AM)maal Wrote:
(01-16-2018, 10:06 AM)Luke Wrote:
(01-16-2018, 08:55 AM)maal Wrote:
(01-16-2018, 04:11 AM)Luke Wrote:
(01-15-2018, 03:45 PM)maal Wrote: No, sorry - setting this up was a process of trial and error.
Useful link: http://www.syslinux.org/wiki/index.php?title=Config

No worries. I will try to replicate it. Just one question, have you tried with rootfs on USB thumb-drives  ?

No, I tested rootfs on sdcard only. 
U-boot also on sdcard (mainline u-boot compiled by me).

Ok, I assume you just installed syslinux-common on xenial/jessie and took it from there ?
edit: cant seems to find syslinux for arm64 and same goes for extlinux.

No, i did not.
All I did was editing /boot/extlinux/extlinux.conf file - u-boot is checking for this file at boot.

Quote:(mainline u-boot compiled by me)

aah. I should read more carefully...
You can find me on IRC, Discord and Twitter


  Reply
#17
To note, this is also supported by any of my u-boots Smile
Homepage: https://ayufan.eu

Releases:
Rock/Pro 64/Pinebook Pro: LinuxChromium OS
So/Pine A64/Pinebook: LinuxAndroid 6.0Android 7.1

Buy me a Beer
  Reply
#18
I try to do a dual boot with Libreelec based on maal example.


My partitions

Code:
lsblk -o NAME,LABEL,PARTFLAGS,FSTYPE,SIZE
NAME         LABEL       PARTFLAGS FSTYPE  SIZE
mmcblk0rpmb                                  4M
mmcblk0boot0                                 4M
mmcblk0boot1                                 4M
mmcblk0                                   58,2G
├─mmcblk0p1                                3,9M
├─mmcblk0p2                                 64K
├─mmcblk0p3                                  4M
├─mmcblk0p4                                  4M
├─mmcblk0p5                                  4M
├─mmcblk0p6  boot        0x4       vfat    112M
├─mmcblk0p7  linux-root            ext4   48,4G
├─mmcblk0p8  LE_SYSTEM   0x4       vfat   1000M
└─mmcblk0p9  LE_STORAGE            ext4    8,8G

And my extlinux.conf

Code:
TIMEOUT 150

DEFAULT kernel-4.4

MENU TITLE Rock64 boot options


label kernel-4.4
   kernel /Image
   initrd /initrd.img
   fdt /dtb
   append earlycon=uart8250,mmio32,0xff130000 rw root=LABEL=linux-root rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#}


LABEL LibreELEC
   LINUX /Image
   FDT /rk3328-rock64.dtb
   APPEND boot=LABEL=LE_SYSTEM disk=LABEL=LE_STORAGE quiet console=uart8250,mmio32,0xff130000 console=tty0

I have copy LibreELEC Image,SYSTEM and rk3328-rock64.dtb on LE_SYSTEM partition.  and take example from LibreELEC extlinux.conf

I boot from SPI (using rock64_write_spi_flash.sh )
But I have kernel panics when booting with DEFAULT LibreELEC. I don't know how to select menu when booting I see nothing on screen.

No problem to boot Ubuntu .

Has Someone some ideas ?
  Reply
#19
Thanks to @maal's instructions, I wrote a dual boot tutorial available here:

https://github.com/aw/linux-build/blob/s...booting.md
  Reply
#20
(01-21-2018, 10:47 PM)a1w.ca Wrote: Thanks to @maal's instructions, I wrote a dual boot tutorial available here:

 https://github.com/aw/linux-build/blob/s...booting.md

Thanks,

If I'm correct for TimeOut it's 1/10 s. 120 give 12 s notre 2 min.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading ancient Rock64 timxjr1300 1 160 11-26-2024, 09:47 AM
Last Post: dmitrymyadzelets
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 7 1,225 11-19-2024, 02:54 PM
Last Post: mara
  How to boot an older, working kernel bits 0 158 11-01-2024, 04:43 PM
Last Post: bits
  problem with debian emmc boot G4zCDzWb 10 2,040 11-01-2024, 04:32 PM
Last Post: bits
  arch rock64 does not boot nemnob 1 1,040 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 45,196 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 82,503 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,974 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 680 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,153 11-21-2023, 08:33 AM
Last Post: as365n4

Forum Jump:


Users browsing this thread: 2 Guest(s)