[SOLVED] Alpine Linux won't boot
#1
Question 
It should work, according to this thread:
https://forum.pine64.org/showthread.php?tid=5881

I have done the following instructions:
https://wiki.alpinelinux.org/wiki/DIY_Fu...r_ARM_SOCs
https://github.com/ayufan-rock64/linux-b...ash-spi.md

With the help of the following websites:
https://forum.pine64.org/showthread.php?tid=4928
https://a-delacruz.github.io/alpine/alpine-linux.html

U-Boot is now on the SPI memory of the Rock64

Then I tried to boot Alpine Linux from a USB stick:
Quote:Result 1:
Quote:With USB stick and this extlinux.conf:
LABEL Linux 5.3.0
LINUX /boot/vmlinuz-5.3.0
INITRD /boot/initramfs-neu
FDT /boot/dtbs/rk3328-rock64.dtb
APPEND BOOT_IMAGE=/boot/vmlinuz-5.3.0 modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/modloop-neu console=${console}

Serial Console output:
U-Boot SPL 2017.09-rockchip-ayufan-1063-g29843fbd42 (Jul 08 2019 - 11:55:08)
board_init_sdmmc_pwr_en
setup_ddr_param 1
booted from SPI flash
Trying to boot from SPI
NOTICE: BL31: v1.3(debug):9d3f591
NOTICE: BL31: Built : 14:39:02, Jan 17 2018
NOTICE: BL31:Rockchip release version: v1.3
INFO: ARM GICv2 driver initialized
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: plat_rockchip_pmu_init: pd status 0xe
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE iniK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9

U-Boot 2017.09-rockchip-ayufan-1063-g29843fbd42 (Jul 08 2019 - 11:55:26 +0000)
Model: Pine64 Rock64
DRAM: 4 GiB
MMC: rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In: serial@ff130000
Out: serial@ff130000
Err: serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930313500000000023119
serial=7223c9dfddbf101
Net: eth0: ethernet@ff540000
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc_init: -95, time 10
Card did not respond to voltage select!
mmc_init: -95, time 9
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
USB2: Core Release: 3.10a
USB3: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 2 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: General Rev: 5.00 Prod: UDisk
Type: Removable Hard Disk
Capacity: 3840.0 MB = 3.7 GB (7864320 x 512)
... is now current device
Scanning usb 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
reading /boot/extlinux/extlinux.conf
233 bytes read in 26 ms (7.8 KiB/s)
1: Linux 5.3.0
Retrieving file: /boot/initramfs-neu
reading /boot/initramfs-neu
7170333 bytes read in 457 ms (15 MiB/s)
Retrieving file: /boot/vmlinuz-5.3.0
reading /boot/vmlinuz-5.3.0
31175168 bytes read in 1876 ms (15.8 MiB/s)
append: BOOT_IMAGE=/boot/vmlinuz-5.3.0 modules=loop,squashfs,sd-mod,usb-storage=
Retrieving file: /boot/dtbs/rk3328-rock64.dtb
reading /boot/dtbs/rk3328-rock64.dtb
36633 bytes read in 38 ms (941.4 KiB/s)
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name: initramfs-sunxi
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 7170269 Bytes = 6.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Loading Ramdisk to fc82b000, end fcf018dd ... OK
Loading Device Tree to 00000000fc81f000, end 00000000fc82af18 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.3.0-rc4-1117-ayufan-g01ec52ee6e2e (root@runner-f9
[ 0.000000] Machine model: Pine64 Rock64
[ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff130000 (options '')
[ 0.000000] printk: bootconsole [uart8250] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x00000000fe000000
[ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff130000 (options '150000)

MORE IS NOT DISPLAYED, MORE DOES NOT WORK

Quote:Result 2:
Quote:With USB stick and this boot.scr:
setenv bootargs earlyprintk /boot/vmlinuz-5.3.0 modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/modloop-neu console=${console}
load mmc 0:1 0x43000000 boot/dtbs/rk3328-rock64.dtb
load mmc 0:1 0x41000000 boot/vmlinuz-5.3.0
load mmc 0:1 0x45000000 boot/initramfs-neu
booti 0x41000000 0x45000000 0x43000000

Serial Console output:
U-Boot SPL 2017.09-rockchip-ayufan-1063-g29843fbd42 (Jul 08 2019 - 11:55:08)
board_init_sdmmc_pwr_en                               
setup_ddr_param  1                                    
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(debug):9d3f591
NOTICE:  BL31: Built : 14:39:02, Jan 17 2018                                    
NOTICE:  BL31:Rockchip release version: v1.3                                    
INFO:    ARM GICv2 driver initialized                                           
INFO:    Using opteed sec cpu_context!                                          
INFO:    boot cpu mask: 1                                                       
INFO:    plat_rockchip_pmu_init: pd status 0xe                                  
INFO:    BL31: Initializing runtime services                                    
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE iniK
ERROR:   Error initializing runtime service opteed_fast                         
INFO:    BL31: Preparing for EL3 exit to normal world                           
INFO:    Entry point address = 0x200000                                         
INFO:    SPSR = 0x3c9                                                           
                                                                                
                                                                                
U-Boot 2017.09-rockchip-ayufan-1063-g29843fbd42 (Jul 08 2019 - 11:55:26 +0000)  
                                                                                
Model: Pine64 Rock64                                                            
DRAM:  4 GiB                                                                    
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1                                 
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB  
*** Warning - bad CRC, using default environment                                
                                                                                
In:    serial@ff130000                                                          
Out:   serial@ff130000                                                          
Err:   serial@ff130000                                                          
Model: Pine64 Rock64                                                            
misc_init_r                                                                     
cpuid=55524b50303930313500000000023119                                          
serial=7223c9dfddbf101                                                          
Net:   eth0: ethernet@ff540000                                                  
Hit any key to stop autoboot:  0                                                
Card did not respond to voltage select!                                         
mmc_init: -95, time 10                                                          
Card did not respond to voltage select!                                         
mmc_init: -95, time 9                                                           
starting USB...                                                                 
USB0:   USB EHCI 1.00                                                           
USB1:   USB OHCI 1.0                                                            
USB2:   Core Release: 3.10a                                                     
USB3:   Register 2000140 NbrPorts 2                                             
Starting the controller                                                         
USB XHCI 1.10                                                                   
scanning bus 0 for devices... 1 USB Device(s) found                             
scanning bus 1 for devices... 1 USB Device(s) found                             
scanning bus 2 for devices... 2 USB Device(s) found                             
scanning bus 3 for devices... 1 USB Device(s) found                             
       scanning usb for storage devices... 1 Storage Device(s) found            
                                                                                
Device 0: Vendor: General  Rev: 5.00 Prod: UDisk                                
            Type: Removable Hard Disk                                           
            Capacity: 3840.0 MB = 3.7 GB (7864320 x 512)                        
... is now current device                                                       
Scanning usb 0:1...                                                             
Found U-Boot script /boot/boot.scr                                              
reading /boot/boot.scr                                                          
383 bytes read in 21 ms (17.6 KiB/s)                                            
## Executing script at 00500000                                                 
Card did not respond to voltage select!                                         
mmc_init: -95, time 9                                                           
"Synchronous Abort" handler, esr 0x96000210                                     
ELR:     fef6af14                                                               
LR:      fef18fb8                                                               
x0 : 0000000000000000 x1 : 0000000000000001                                     
x2 : 0000000000000010 x3 : 0000000000000000                                     
x4 : 000000000000000a x5 : 00000000fef8585b                                     
x6 : 0000000000000001 x7 : 0000000000000008                                     
x8 : 0000000000000044 x9 : 0000000000000008                                     
x10: 00000000fcf02d3e x11: 0000000000000006                                     
x12: 000000000001869f x13: 0000000000000004                                     
x14: 0000000000000004 x15: 00000000ffffffff                                     
x16: 00000000cb5bab3b x17: 00000000800580a1                                     
x18: 00000000fcf0ce08 x19: 0000000000000000                                     
x20: 00000000fcf4f070 x21: 00000000fcf4f000                                     
x22: 00000000fefb2000 x23: 00000000fcf4f020                                     
x24: 0000000000000000 x25: 0000000000000000                                     
x26: 0000000000000000 x27: 0000000000000000                                     
x28: 00000000fcf4eaf0 x29: 00000000fcf032a0                                     
                                                                                
Resetting CPU …

MORE IS NOT DISPLAYED, MORE DOES NOT WORK

Quote:Result 3:
Quote:With bootable card reader (with Micro-SD) and this boot.scr:
setenv bootargs earlyprintk /boot/vmlinuz-5.3.0 modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/modloop-neu console=${console}
load mmc 0:1 0x43000000 boot/dtbs/rk3328-rock64.dtb
load mmc 0:1 0x41000000 boot/vmlinuz-5.3.0
load mmc 0:1 0x45000000 boot/initramfs-neu
booti 0x41000000 0x45000000 0x43000000

Serial Console output:
U-Boot SPL 2017.09-rockchip-ayufan-1063-g29843fbd42 (Jul 08 2019 - 11:55:08)
board_init_sdmmc_pwr_en                               
setup_ddr_param  1                                    
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(debug):9d3f591
NOTICE:  BL31: Built : 14:39:02, Jan 17 2018                                    
NOTICE:  BL31:Rockchip release version: v1.3                                    
INFO:    ARM GICv2 driver initialized                                           
INFO:    Using opteed sec cpu_context!                                          
INFO:    boot cpu mask: 1                                                       
INFO:    plat_rockchip_pmu_init: pd status 0xe                                  
INFO:    BL31: Initializing runtime services                                    
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE iniK
ERROR:   Error initializing runtime service opteed_fast                         
INFO:    BL31: Preparing for EL3 exit to normal world                           
INFO:    Entry point address = 0x200000                                         
INFO:    SPSR = 0x3c9                                                           
                                                                                
                                                                                
U-Boot 2017.09-rockchip-ayufan-1063-g29843fbd42 (Jul 08 2019 - 11:55:26 +0000)  
                                                                                
Model: Pine64 Rock64                                                            
DRAM:  4 GiB                                                                    
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1                                 
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB  
*** Warning - bad CRC, using default environment                                
                                                                                
In:    serial@ff130000                                                          
Out:   serial@ff130000                                                          
Err:   serial@ff130000                                                          
Model: Pine64 Rock64                                                            
misc_init_r                                                                     
cpuid=55524b50303930313500000000023119                                          
serial=7223c9dfddbf101                                                          
Net:   eth0: ethernet@ff540000                                                  
Hit any key to stop autoboot:  0                                                
Card did not respond to voltage select!                                         
mmc_init: -95, time 9                                                           
Card did not respond to voltage select!                                         
mmc_init: -95, time 10                                                          
starting USB...                                                                 
USB0:   USB EHCI 1.00                                                           
USB1:   USB OHCI 1.0                                                            
USB2:   Core Release: 3.10a                                                     
USB3:   Register 2000140 NbrPorts 2                                             
Starting the controller                                                         
USB XHCI 1.10                                                                   
scanning bus 0 for devices... 1 USB Device(s) found                             
scanning bus 1 for devices... 1 USB Device(s) found                             
scanning bus 2 for devices... Device NOT ready                                  
   Request Sense returned 02 3A 00                                              
Device NOT ready                                                                
   Request Sense returned 02 3A 00                                              
2 USB Device(s) found                                                           
scanning bus 3 for devices... 1 USB Device(s) found                             
       scanning usb for storage devices... 2 Storage Device(s) found            
                                                                                
Device 0: Vendor: Generic- Rev: 1.00 Prod: USB3.0 CRW   -SD                     
            Type: Removable Hard Disk                                           
            Capacity: not available                                             
... is now current device  

MORE IS NOT DISPLAYED, MORE DOES NOT WORK

My usb stick (newos) looks like this:
/media/ubuntu/newos
/media/ubuntu/newos/apks
/media/ubuntu/newos/apks/.boot_repository
/media/ubuntu/newos/apks/aarch64
/media/ubuntu/newos/apks/aarch64/kbd-bkeymaps-2.0.4-r3.apk
/media/ubuntu/newos/apks/aarch64/wireless-tools-30_pre9-r1.apk
/media/ubuntu/newos/apks/aarch64/openssl-1.1.1c-r0.apk
/media/ubuntu/newos/apks/aarch64/alpine-mirrors-3.5.10-r0.apk
/media/ubuntu/newos/apks/aarch64/busybox-1.30.1-r2.apk
/media/ubuntu/newos/apks/aarch64/ppp-pppoe-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/alpine-base-3.10.1-r0.apk
/media/ubuntu/newos/apks/aarch64/haveged-openrc-1.9.4-r4.apk
/media/ubuntu/newos/apks/aarch64/ncurses-libs-6.1_p20190518-r0.apk
/media/ubuntu/newos/apks/aarch64/openssh-server-8.0_p1-r0.apk
/media/ubuntu/newos/apks/aarch64/musl-1.1.22-r2.apk
/media/ubuntu/newos/apks/aarch64/ppp-daemon-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/ppp-atm-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/libnl3-3.4.0-r0.apk
/media/ubuntu/newos/apks/aarch64/vlan-2.2-r0.apk
/media/ubuntu/newos/apks/aarch64/libcom_err-1.45.2-r0.apk
/media/ubuntu/newos/apks/aarch64/network-extras-1.2-r0.apk
/media/ubuntu/newos/apks/aarch64/APKINDEX.tar.gz
/media/ubuntu/newos/apks/aarch64/openssh-8.0_p1-r0.apk
/media/ubuntu/newos/apks/aarch64/libssl1.1-1.1.1c-r0.apk
/media/ubuntu/newos/apks/aarch64/ppp-passwordfd-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/wpa_supplicant-openrc-2.8-r1.apk
/media/ubuntu/newos/apks/aarch64/pcsc-lite-libs-1.8.25-r1.apk
/media/ubuntu/newos/apks/aarch64/scanelf-1.2.3-r0.apk
/media/ubuntu/newos/apks/aarch64/openssh-server-common-8.0_p1-r0.apk
/media/ubuntu/newos/apks/aarch64/openssh-client-8.0_p1-r0.apk
/media/ubuntu/newos/apks/aarch64/ppp-winbind-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/zlib-1.2.11-r1.apk
/media/ubuntu/newos/apks/aarch64/openrc-0.41.2-r1.apk
/media/ubuntu/newos/apks/aarch64/e2fsprogs-1.45.2-r0.apk
/media/ubuntu/newos/apks/aarch64/alpine-baselayout-3.1.2-r0.apk
/media/ubuntu/newos/apks/aarch64/libcap-2.27-r0.apk
/media/ubuntu/newos/apks/aarch64/ssl_client-1.30.1-r2.apk
/media/ubuntu/newos/apks/aarch64/chrony-3.5-r0.apk
/media/ubuntu/newos/apks/aarch64/ppp-passprompt-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/libedit-20190324.3.1-r0.apk
/media/ubuntu/newos/apks/aarch64/bonding-2.6-r4.apk
/media/ubuntu/newos/apks/aarch64/alpine-keys-2.1-r2.apk
/media/ubuntu/newos/apks/aarch64/libuuid-2.33.2-r0.apk
/media/ubuntu/newos/apks/aarch64/libtls-standalone-2.9.1-r0.apk
/media/ubuntu/newos/apks/aarch64/dbus-libs-1.12.16-r0.apk
/media/ubuntu/newos/apks/aarch64/ppp-l2tp-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/bridge-1.5-r4.apk
/media/ubuntu/newos/apks/aarch64/libcrypto1.1-1.1.1c-r0.apk
/media/ubuntu/newos/apks/aarch64/ncurses-terminfo-base-6.1_p20190518-r0.apk
/media/ubuntu/newos/apks/aarch64/ca-certificates-cacert-20190108-r0.apk
/media/ubuntu/newos/apks/aarch64/alpine-conf-3.8.3-r0.apk
/media/ubuntu/newos/apks/aarch64/ppp-chat-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/wpa_supplicant-2.8-r1.apk
/media/ubuntu/newos/apks/aarch64/busybox-suid-1.30.1-r2.apk
/media/ubuntu/newos/apks/aarch64/tzdata-2019a-r0.apk
/media/ubuntu/newos/apks/aarch64/musl-utils-1.1.22-r2.apk
/media/ubuntu/newos/apks/aarch64/usb-modeswitch-2.5.2-r0.apk
/media/ubuntu/newos/apks/aarch64/ncurses-terminfo-6.1_p20190518-r0.apk
/media/ubuntu/newos/apks/aarch64/libusb-1.0.22-r0.apk
/media/ubuntu/newos/apks/aarch64/openssh-keygen-8.0_p1-r0.apk
/media/ubuntu/newos/apks/aarch64/e2fsprogs-libs-1.45.2-r0.apk
/media/ubuntu/newos/apks/aarch64/apk-tools-2.10.4-r2.apk
/media/ubuntu/newos/apks/aarch64/ppp-radius-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/libc-utils-0.7.1-r0.apk
/media/ubuntu/newos/apks/aarch64/chrony-openrc-3.5-r0.apk
/media/ubuntu/newos/apks/aarch64/busybox-initscripts-3.1-r7.apk
/media/ubuntu/newos/apks/aarch64/haveged-1.9.4-r4.apk
/media/ubuntu/newos/apks/aarch64/ppp-minconn-2.4.7-r6.apk
/media/ubuntu/newos/apks/aarch64/libblkid-2.33.2-r0.apk
/media/ubuntu/newos/apks/aarch64/openssh-sftp-server-8.0_p1-r0.apk
/media/ubuntu/newos/boot
/media/ubuntu/newos/boot/vmlinuz-5.3.0
/media/ubuntu/newos/boot/config-5.3.0
/media/ubuntu/newos/boot/System.map-5.3.0
/media/ubuntu/newos/boot/initramfs-neu
/media/ubuntu/newos/boot/modloop-neu
/media/ubuntu/newos/boot/extlinux
/media/ubuntu/newos/boot/extlinux/extlinux.conf
/media/ubuntu/newos/boot/dtbs
/media/ubuntu/newos/boot/dtbs/rk3328-rock64.dtb
/media/ubuntu/newos/boot/boot.scr
/media/ubuntu/newos/alpine.apkovl.tar.gz

Thanks in advance for your help!
  Reply
#2
Information 
Here is the solution:
https://forum.pine64.org/showthread.php?tid=8174
Archive.is: http://archive.is/w3uQN
Waybackmachine: https://web.archive.org/web/201910222216...881&page=2
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to boot an older, working kernel bits 0 54 11-01-2024, 04:43 PM
Last Post: bits
  problem with debian emmc boot G4zCDzWb 10 1,432 11-01-2024, 04:32 PM
Last Post: bits
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 5 907 10-09-2024, 01:03 PM
Last Post: mara
  arch rock64 does not boot nemnob 1 928 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  Rock64 won't boot dstallmo 0 620 12-27-2023, 10:34 AM
Last Post: dstallmo
  MIPI-CSI IMX214 on Linux NO SUCCESS zeus666 2 2,265 06-02-2023, 07:52 AM
Last Post: diederik
  Disabling last mount time check on boot acwest 0 859 03-03-2023, 09:24 PM
Last Post: acwest
  Rock64 Rev3 doesn't boot and leds blinking fast dishins 6 8,757 06-30-2022, 06:28 PM
Last Post: rookie_267
  my rock64 can't boot rookie_267 0 1,280 06-27-2022, 06:52 PM
Last Post: rookie_267
  Linux 5.15 Kernel - openSuse mark1250 0 1,514 12-02-2021, 04:36 PM
Last Post: mark1250

Forum Jump:


Users browsing this thread: 1 Guest(s)