skiffos / SkiffOS

Any Linux distribution, anywhere.
https://skiffos.com
MIT License
703 stars 52 forks source link

odroid/m1: Bad Linux ARM64 Image magic #296

Closed nadsat closed 1 year ago

nadsat commented 1 year ago

Hi

I'm getting an error when booting an odroid m1 from a SD disk. I followed the instructions from the documentation and it looks like it worked. Part of boot info:

Found U-Boot script /boot.scr                                                                                                                                                                 
1451 bytes read in 4 ms (353.5 KiB/s)                                                                                                                                                         
## Executing script at 00c00000                                                                                                                                                               
SkiffOS for Odroid M1 board odroidm1 starting...                                                                                                                                              
Loading Image...                                                                                                                                                                              
** Unrecognized filesystem type **                                                                                                                                                            
Loading rootfs.cpio.uboot...                                                                                                                                                                  
** Unrecognized filesystem type **                                                                                                                                                            
Loading rk3568-odroid-m1.dtb                                                                                                                                                                  
** Unrecognized filesystem type **                                                                                                                                                            
Fdt Ramdisk skip relocation                                                                                                                                                                   
No misc partition                                                                                                                                                                             
Bad Linux ARM64 Image magic!                                                                                                                                                                  
SCRIPT FAILED: continuing...

uboot version:

=> version                                                                                                                                                                                    
U-Boot 2017.09 (Mar 28 2023 - 06:53:03 +0000)                                                                                                                                                 

aarch64-linux-gnu-gcc (Linaro GCC 6.3-2017.02) 6.3.1 20170109                                                                                                                                 
GNU ld (Linaro_Binutils-2017.02) 2.27.0.20161019   

Any advice would be appreciated

paralin commented 1 year ago

@nadsat hi, thanks for the report. I'll test on my m1 locally within the next hour or so and will let you know when I find the fix.

paralin commented 1 year ago

Hi @nadsat - I have confirmed that the odroid m1 boots fine on master:

image

Please make clean and delete the cache, then build again on master.

git checkout master
git pull
git submodule update
make clean
export SKIFF_CONFIG=odroid/m1,skiff/core
make configure compile

Feel free to open a new issue or reply here if still having problems. Also would appreciate it if you could let me know if it's working for you now.

Thanks!

nadsat commented 1 year ago

Hi @paralin thanks for your help. It worked.

Screenshot from 2023-09-17 16-20-43

paralin commented 1 year ago

@nadsat great to hear!