I have recently gotten a Rev v1.3 Meles and I have followed the guide here to flash the Linux on an eMMC module, with the 6.6 kernel image, and I also flashed the SPI NOR with the docs guide to the u-boot-with-spl-meles.bin that came with the image, yet I am getting the Bad Linux RISCV Image magic! error.
Here is the full ttyUSB0 output:
brom_ver 8
[APP][E] protocol_connect failed, exit.
-----------------------------------------
_____ _ _____ _____ _ __
| __ \ (_)/ ____| __ \| |/ /
| |__) | _ _ _ _| (___ | | | | ' /
| _ / | | | | | | |\___ \| | | | <
| | \ \ |_| | |_| | |____) | |__| | . \
|_| \_\__,_|\__, |_|_____/|_____/|_|\_\
__/ |
|___/
-- Presented by ISCAS
-----------------------------------------
U-Boot SPL 2020.01-g96627087 (May 29 2024 - 08:34:19 +0000)
FM[1] lpddr4x dualrank freq=3733 64bit dbi_off=n sdram init
found ddr boundary <0x200000000>
ddr initialized, jump to uboot
image has no header
U-Boot 2020.01-g96627087 (May 29 2024 - 08:34:19 +0000)
CPU: rv64imafdcvsu
Model: Milk-V Meles
DRAM: 8 GiB
aon wakeup by gpio enabled
aon wakeup by rtc enabled
iic id:0 addr_mode:0 speed:2
C910 CPU FREQ: 750MHz
MMC: sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
In: serial@ffe7014000
Out: serial
Err: serial
light_c910_set_gpio_output_high: trying to set gpio output high
ethaddr: 06:c2:96:5c:63:49
eth1addr: 06:c2:96:5c:63:4a
Net: ethernet@ffe7070000 (eth0) using MAC address - 06:c2:96:5c:63:49
eth0: ethernet@ffe7070000
Hit any key to stop autoboot: 0
Unknown command 'usb' - try 'help'
Card did not respond to voltage select!
53192 bytes read in 1 ms (50.7 MiB/s)
pmic_dev_num:2 offset:60 addr:1099510546492
regu_num:17 offset:178 addr:1099510546610
-->pmic_dev_num:2 offset:60
-->regu_num:17 offset:178
5281216 bytes read in 16 ms (314.8 MiB/s)
1736 bytes read in 0 ms
273976 bytes read in 2 ms (130.6 MiB/s)
not find hibernate sign
Retrieving file: /extlinux/extlinux.conf
935 bytes read in 1 ms (913.1 KiB/s)
U-Boot menu
1: RevyOS GNU/Linux 6.6.119-th1520
2: RevyOS GNU/Linux 6.6.119-th1520 (rescue target)
Enter choice: 1: RevyOS GNU/Linux 6.6.119-th1520
Retrieving file: /initrd.img-6.6.119-th1520
21828077 bytes read in 67 ms (310.7 MiB/s)
Retrieving file: /vmlinuz-6.6.119-th1520
14205105 bytes read in 44 ms (307.9 MiB/s)
append: root=PARTUUID=80a5a8e9-c744-491a-93c1-4f4194fd690a console=ttyS0,115200 rootwait rw earlycon clk_ignore_unuses
Retrieving file: /dtbs/linux-image-6.6.119-th1520/thead/th1520-milkv-meles.dtb
65816 bytes read in 2 ms (31.4 MiB/s)
Bad Linux RISCV Image magic!
2: RevyOS GNU/Linux 6.6.119-th1520 (rescue target)
Retrieving file: /initrd.img-6.6.119-th1520
21828077 bytes read in 67 ms (310.7 MiB/s)
Retrieving file: /vmlinuz-6.6.119-th1520
14205105 bytes read in 44 ms (307.9 MiB/s)
append: root=PARTUUID=80a5a8e9-c744-491a-93c1-4f4194fd690a console=ttyS0,115200 rootwait rw earlycon clk_ignore_unusee
Retrieving file: /dtbs/linux-image-6.6.119-th1520/thead/th1520-milkv-meles.dtb
65816 bytes read in 1 ms (62.8 MiB/s)
Bad Linux RISCV Image magic!
Am I missing something or what’s going on here?